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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…