K8056 Programming Code

Hi There,

I have the K8056 card.
It works fine under windows with the demo software.

Now i have connected the card on a linux computer (raspberry PI).
I want to open the relais with PHP.
I can open the serial port in PHP en i’m ready to send someting.

But i don’t understand what to write.
Can you give me an example for opening te 1st relais ? I’m not searching for PHP code, just the string or characters

Thx in forward.

Frank

Please have a look at page 10 & 11 of the manual,
it gives an overview of all available commands and what the command string should look like.
http://www.velleman.eu/downloads/0/illustrated/illustrated_assembly_manual_k8056.pdf

[quote=“VEL417”]Please have a look at page 10 & 11 of the manual,
it gives an overview of all available commands and what the command string should look like.
http://www.velleman.eu/downloads/0/illustrated/illustrated_assembly_manual_k8056.pdf[/quote]

I know the manual. I’m searching all over the internet.
What i’m sending to the card is (try to open relais 1):

start 13
adress 1
param1 S
param2 1
checksum 256

Nothing happens, i think the checksum isnt correct, i used the code from the demo program…

Checksum is 8-bit, so it can never be 256.
May you can modify the VB program so that it displays the ASCII value of every command.

Hy,
i work on a new project, and i have to use K8056.

But all the code found on internet doesn’t work with excel VBA.
is it possible to have an example ? juste to see how i have to code .

I’m using, excel 2007.

thx