SL5000 - Best PLC Data Type for CAN message bytes - INTs or SINTs

OWEN.DAVID

Member
Join Date
Aug 2018
Location
Monmouthshire
Posts
31
We have an AB system that is connected to several CANbus networks via HMS gateways.

A CAN message is comprised of upto eight, eight-bit bytes. However, the program is setup with INT arrays (16bits) such that two adjoining message bytes are always combined into each INT. So for every CAN message of eight bytes the data ends up in four INTs in the PLC.

For example, a battery has eight voltage values which are sent on the CAN bus in one message. This is written to the PLC input array as four INTS. The logic then separates the values from the four INTs and we are able to read the eight voltages.

Would an array of SINTs be more appropriate for transferring the CANbus message bytes?

SINTs would allow the contents of each message byte to be easily identifiable when viewed in tag monitor, for example. It could simplify the associated logic as we have cases where one parameter is represented by a single byte, such that we have eight battery voltages per message, as above.


What is the guidance for transferring data between networks?

*To respect the format of the original network / CAN bus and use one SINT per message byte

*To align with the content of the messages, so if we are using two message bytes for each parameter we use INTs which minimises logic but reduces clarity in the input array.


What are there best practices in industry when it comes to handling data transfers?
 

Similar Topics

I am using version V17.01.00 (CPR 9 SR 1) I have a fairly large machine with multiple PIO nodes on an ethernet network. I am getting a flashing...
Replies
0
Views
1,382
Hello, My coworker and I are commissioning a new panel. We have a 1732-AENTR series C remote IO thats Rev 6.1. The project file from a previous...
Replies
3
Views
1,611
Hello all. Yes, I remember well that RSL5k v.20 was plagued with issues however, it used to run on my laptop. After many years of hibernation I...
Replies
2
Views
1,558
Is there are way to set up RSLogix 5000 to start up with a category in the Controller Organizer 'minimized'? For instance, make the Add-On...
Replies
2
Views
1,732
Hello, I recently converted a control system from PLC-5 to ControLogix and have a question please. My discrete IO converted kind of weird and I...
Replies
2
Views
1,544
Back
Top Bottom