Hi
I changed the config to :
Config Canmob = 2 , Bitlen = 11 , Idtag = &H0121 , Msgobject = Disabled , Msglen = 2 ' this mob is used for sending data
--- MSGLEN = 2
no change - only firs 2 are sent as 2 byte msg and then rest as single byte .
If that worked - it would limit the user to send a fixed nr of bytes instead of letting the compiler send the nr of bytes depending on the var dim type . ( byte - word ... etc )
Did you change your sample code to a word or long for CAN tx and run in hardware and see what happens on your side ?
Just display the MSB of a word on the rx pcb on the leds .
Cheers
↧