SIZE Ladder Logic Instruction

The Size Ladder instruction calculates the size of a dimension in an array. Arrays can have up to three dimensions. The instruction is enabled when the preceding logic is true and disabled otherwise. The Source can be an array, structure or string.

List of possible arguments

DIMENSION TO VARY

CONSTANT     Can be 0,1,2 for dimensions 0,1,2

SOURCE can be any of the following arrays:

  • SINT              
  • INT
  • DINT
  • REAL
  • STRUCTURE
  • STRING

SIZE can be any of the following:

  • SINT
  • INT
  • DINT
  • REAL

Note: The data type REAL is supported for safety routines in the 1756-L7xs processors.

Leave a Comment