Common Attributes for Advanced Process Control and Drives Instructions 
 
550  Rockwell Automation Publication 1756-RM006K-EN-P - November 2018 
•  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 
•  }