Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Velleman K8056 hex code?

Status
Not open for further replies.

Magi55

New Member
Hi.

I have a Velleman K8056 on my RS232 but i use CGI and need to send hex code to my system.

So how do I translate.

Lets say I need to set relay two ON and I have only one K8056 card.

Instruction sequence:

1. CHR$(13) = 0D
2. Card adress(1..255) = 01?
3. Instuktions ('S') = 53
4. Adress (1..255) or relay#('1'..'9' ACHII) = 02
5. Checksum(2-complement of the sum of 4 previous bytes + 1)

13+01+83+02+01 = 100 and in hex 64

So the code would look something like this in hex:
0D01530264


Do someone here know how this looks in hex?
---------------------------

I fixed the problem. :)

Regards Magi
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top