Allen-Bradley LOGIX 5000 Reference Manual page 550

Controllers advanced process control and drives and equipment phase and sequence instructions
Hide thumbs Also See for LOGIX 5000:
Table of Contents

Advertisement

Chapter 11
Common Attributes for Advanced Process Control and Drives Instructions
550
x is the small incremented variable.
y is the large incremented variable.
z is the total current count that can be used anywhere.
x = x+1;
if x = 100,000;
{
y = y + 100,000;
x = 0;
}
z = y + x;
Or another example:
x = x + some_tiny_number;
if (x >= 100)
{
z = z + 100;
x = x - 100; // there might be a tiny remainder
}
Rockwell Automation Publication 1756-RM006K-EN-P - November 2018

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents