Mark,
[quote:73b0e0313d="albertsm"]maybe you can first write which values you expect to see and which one you get instead ?[/quote:73b0e0313d]
it was clear to me, that he expected to assign &h3F to the double variable and find &h3F in the terminal window as one of the received bytes.
Now, &h3F, or 63 is stored differently within a double, therefore I've posted the code snippet, which would have been self-explaining, if it would have ran trough the simulator, the result there: ... 80 4F 40.
@RolandT,
[quote:73b0e0313d]But how to send it on CAN with cansend? I have no idea. [/quote:73b0e0313d]
I didn't use it, but I'd expect it like that:
[code:1:73b0e0313d]Dim my_array(8) As Byte
Dim low_dword As Word At my_array(1) Overlay
Dim high_dword As Word At my_array(5) Overlay
Bok = Cansend(1 , my_array(1) , 8)[/code:1:73b0e0313d]
↧