
Three Digit Math Instructions
Chapter 13
13-3
Division
Reports the quotient of two values stored in the two Get instructions
immediately preceding division instruction. Programmed in the output
position of the ladder diagram rung. The quotient is stored in two divide
instruction words. The first word contains the most significant word and
the second word contains the least significant digit.
067
G
140
050
G
141
025
:
066
002.000
:
Important: Use consecutive word addresses for the two addresses of the
divide instruction. Quotient is expressed as a decimal, accurate to 3
decimal places. Any remaining data is rounded. Division by zero
(including 0/0) gives the result of 999.999. This result differs from the
PLC-2/20 and PLC-2/30 controllers where 0/0 = 1.000.
067
G
140
000
G
141
000
:
066
999.999
:
Enter a three digit math operation by performing the following keystrokes.
1.
Start the rung. Press -[G]-.
2.
Enter <address>.
3.
Enter <data> if appropriate.
4.
Press -[G]-.
5.
Enter <address>.
6.
Enter <data> if appropriate.
7.
Close the rung by pressing the appropriate math instruction key
(Table 13.A).
Table 13.A
Three Digit Math Functions
Addition
( + )
Subtraction
( )
Multiplication
( x )
Division
(
÷
)
8.
Enter <address(es)>.
Entering a ThreeDigit
Math Instruction