ControlLogix Integers

if that was true then we should have seen a 1.2 ms decrease in scan time, not an increase. I would say to use the data type that make the most sense for the application.
 
I don't think I explained myself quite right in the last post.
The copy instruction (COP and the CSP variant) will copy a byte-for-byte version of the source data to the destination data with the length defined by the destination data type.
So if you are copying an array of ten DINTs to another array of ten DINTs you would be copying a total of 40 bytes (10 DINT * 4 bytes per DINT). The command line instruction would be:
COP Source_Array[0], Dest_Array[0], 1
Now let's assume that the data you are concerned with will fit into a SINT so you make your array a SINT array. You do that same copy:
COP Source_Array[0], Dest_Array[0], 1
but now the arrays are SINT. The number of bytes transferred is based on the destination data type so you end up with 10 bytes (10 SINT * 1 byte per SINT). It still comes down to raw data transfer at this point and copying 40 bytes will take longer than copying 10 bytes.

Keith

PS: I think I missed a post in there so this might not make sense.
 
We do not have any copy functions either. From other information we have found from A-B the DINT format should also be more efficient for comms with RSLinx. I'm starting to have my doubts about this particular optimization. It may be helpful in some extream cases, but I will no longer stay up at night wondering if I should change the data types in my program to optimize the scan time. 🍺
 

Similar Topics

Hello everyone, has anyone managed to communicate Twido with Controllogix using the Ethernet connection?
Replies
1
Views
96
I'm trying to integrate a Beckhoff IPC with a Controllogix PLC. There is some documentation, on the Beckhoff website, on how to do a PLC-PLC comms...
Replies
0
Views
174
Why does the controllogix redundancy modules use a single mode fiber vs multimode fiber?
Replies
1
Views
118
Hello, I have two 16 point input cards and 1 16 point output card showing module faulted on my IO tree in Logix Designer. The fault code is...
Replies
7
Views
247
Hello, My associate and I are trying to sync up two ControlLogix racks (7-slot chassis) with identical modules. We are able to see the secondary...
Replies
4
Views
251
Back
Top Bottom