kamenges
Member
I'm in the middle of a ControlLogix project and I started thinking about integers (dangerous, eh?).
When you specify an INT data type that is not part of an array or structure, how many bits does Logix5000 assign for that data type? From what I've been told the CLX platform is designed around 32-bit data access. So to do 16-bit integer math the CLX would need to do some masking or data shifting (possibly) before using the data it only 16 bits are assigned. If this is true it would be more processor efficient to use double integers wherever possible.
Anybody know how this is done? This is more for curiosity's sake than for any processing benefit I might realize.
Keith
When you specify an INT data type that is not part of an array or structure, how many bits does Logix5000 assign for that data type? From what I've been told the CLX platform is designed around 32-bit data access. So to do 16-bit integer math the CLX would need to do some masking or data shifting (possibly) before using the data it only 16 bits are assigned. If this is true it would be more processor efficient to use double integers wherever possible.
Anybody know how this is done? This is more for curiosity's sake than for any processing benefit I might realize.
Keith