User guide
Software
54
890 USE 108 00 August 2001
984 Ladder Logic
Instruction Set
The three tables that follow list, in detail, all of the ladder logic programming
instructions used by Compact.
The following table describes the Counters, Timers, (Two Nodes); Calculations, and
Other Math (Three Nodes) instructions in the Compact Instruction set.
Instruction Description
Counters and Timers
(Two-Nodes)
UCTR Counts up from 0 to a preset value
DCTR Counts down from a preset value to 0
T1.0 Timer that measures in seconds
T0.1 Timer that measures in tenths of a second
T.01 Timer that measures in hundredths of a second
T1MS A timer that increments in milliseconds E984-258/265/275/
285 only
Calculations
(Three-Nodes)
ADD Adds top node value to middle node value
SUB Subtracts middle node value from top node value
MUL Multiplies top node value by middle node value
DIV Divides top node value by middle node value
Other Math
(Three-Nodes)
AD16 Signed/unsigned 16-bit addition E984-258/265/275/285
only
SU16 Signed/unsigned 16-bit subtraction E984-258/265/275/285
only
MU16 Signed/unsigned 16-bit multiplication E984-258/265/275/
285 only
DV16 Signed/unsigned 16-bit division E984-258/265/275/285 only
ITOF Signed/unsigned integer-to-floating point conversion E984-
258/265/275/285 only
FTOI Floating point-to-signed/unsigned integer conversion E984-
258/265/275/285 only
BCD Converts binary values to BCD values and BCD values to
binary values E984-258/265/275/285 only