CAN2 message ID - breaking it down to 1 byte
Posted: Fri Jun 12, 2009 3:35 pm
Hello,
I am currently working on a project using Flowcode with E-Blocks where I need to receive CAN mesages (both STD and EXT message IDs), break them down to 1 byte and send them out over RS232. The STD IDs are easy as they are already broken down for me into Hi an Lo bytes by Flowcode. Is there a way to break down the EXT ID (32 bit) into four 8-bit bytes? I read somewhere in the Flowcode documentation that Flowcode does not do 32-bit math - is this true? I believe that I can just use a series of logical ANDs to break down the EXT ID into 4 bytes, is this right?
Any help would be greatly appreciated!
Thanks,
Phil
I am currently working on a project using Flowcode with E-Blocks where I need to receive CAN mesages (both STD and EXT message IDs), break them down to 1 byte and send them out over RS232. The STD IDs are easy as they are already broken down for me into Hi an Lo bytes by Flowcode. Is there a way to break down the EXT ID (32 bit) into four 8-bit bytes? I read somewhere in the Flowcode documentation that Flowcode does not do 32-bit math - is this true? I believe that I can just use a series of logical ANDs to break down the EXT ID into 4 bytes, is this right?
Any help would be greatly appreciated!
Thanks,
Phil