Hi,
I have a project i am doing and have a master node that talks to several slave nodes using Can Bus. What i am wondering is can i manually set a message id and then set eight bytes of data and send it from buffer 0 and then set a new message id and send another block of data from buffer 0 again and repeat this process say 25 times until all data has been sent to each of the slave nodes? Will this work ok or is there a better way of doing this? Any help would be most appreciated.
Regards
Zane
Can Bus messages
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Can Bus messages
Hello Zane,
What would maybe make this easier would be to create a Flowcode macro with parameters for the ID and data and then you can simply call this macro several times in a loop when sending your data out.
Yes this is the way to do it, as you say you can re-use buffer 0 to send out all your data.can i manually set a message id and then set eight bytes of data and send it from buffer 0 and then set a new message id and send another block of data from buffer 0 again and repeat this process say 25 times until all data has been sent to each of the slave nodes?
What would maybe make this easier would be to create a Flowcode macro with parameters for the ID and data and then you can simply call this macro several times in a loop when sending your data out.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
Zane
- Flowcode v5 User
- Posts: 199
- Joined: Thu Sep 10, 2009 10:57 pm
- Location: New Zealand
- Has thanked: 93 times
- Been thanked: 76 times
Re: Can Bus messages
Hi Ben,
Thankyou, i just wanted some clarification on this, i am having a few issues and just wanted to double check that what i was doing was correct.
Regards
Zane
Thankyou, i just wanted some clarification on this, i am having a few issues and just wanted to double check that what i was doing was correct.
Regards
Zane