1756-L7x math/compare execution time based on tag type

RonJohn

Lifetime Supporting Member
Join Date
Jul 2013
Location
NE Ohio
Posts
535
I'm checking on somebody else's very first PLC5 to CLX program conversion for them and noticed most integer tags were kept as INT rather than DINT. (it was a manual conversion as the Rockwell convert tool kept crashing). I had always been taught that performing math (and maybe compare?) instructions with DINT tags was much faster than with INT tags.

I looked for a Rockwell KB document, but came up empty. Tech support basically said I was all wet when I contacted them. This old thread, especially post #5, seems to back up what I was taught though.

Has something changed with the L7x processors where it doesn't matter which data type is used any more? I want to start them off on the right path and keep me sane as well. Thanks in advance for your help.
 
Last edited:
32 bit values (DINT / REAL) are what the CPU handles natively. Any other integer type has an implicit conversion to DINT, and wastes space. Would you notice that as a performance hit? probably not, but it is generally better to try to always use the CPU native types.
 

Similar Topics

Hi to All, I have a 1756-L7x redundant processor in one VLAN gateway is 10.17.120.1 and 1734-AENT in another VLAN gateway is 10.17.130.1, subnet...
Replies
6
Views
3,982
Having heard about the Intel quad core in the new L8 series processors, I was eager to get a new project where I could use one. That day came and...
Replies
17
Views
12,627
Being an amateur I was pondering upon the use of the ESM in hazardous environments. I've been told that they're well desired in mining. I suppose...
Replies
0
Views
1,455
Hi all I have a ControlLogix 1756-L71SP that i want to use for general PLC applications, not safety. I am running Studio5000 v33, i can't...
Replies
2
Views
64
Hi, I have a ControlLogix system with 1756-IF16 analogue inputs. I can't scale the inputs at the card as there is a requirement to facilitate...
Replies
14
Views
361
Back
Top Bottom