e-blocks EASY CAN help

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
dan654321
Posts: 2
Joined: Tue Apr 19, 2011 8:19 pm

e-blocks EASY CAN help

Post by dan654321 »

hello

i have the Easy Can bundle and im stuck.
I can only send 3 buffers ,so 3 switchs N1 to 3 leds N2

How can i sent can massages from each of the 8 switchs from N1 , to 8 output leds to N2 ? .So switch 0 = led 0,switch 1 = led 1,switch 2 = led 2,switch 3 = led 3,switch 4 = led 4 ,switch 5 = led 5, switch 6 = led 6,switch 7 = led 7 .

thanks dan

User avatar
Steve
Matrix Staff
Posts: 3431
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: e-blocks EASY CAN help

Post by Steve »

You have some choices - use individual message IDs for each switch, or use 1 message ID and use the data to identify which switch has changed. It doesn't really matter, but I would vote for latter.

You can set the ID and/or data of an outgoing message within your program using an appropriate "call macro" icon for the CAN component. Similarly, you will read the CAN ID or data on the receiving node.

Post Reply