
Quick Reference Section
Appendix A
A10
Table A.G
Arithmetic
Instructions
NOTE:
Arithmetic instructions operate on BCD values in the data table. THe word address XXX is displayed above the instruction;
the BCD value YYY which is the result of the arithmetic operation, is displayed beneath it. The BCD value is stored in the lower 12
bits of the word address and can be any value from 000 to 999.
Displayed word addresses will be 3 0r 4 digits depending on the data table size. When entering the word address, use a leading
zero if necessary.
Key Symbol
Instruction
Name
1770-T3
Display
Rung Conditions
-(+)- Add XXX
-(+)-
YYY
The add instruc tion is an output instruction. It is always preceded by two get
instructions which store the BCD values to be added.
When the sum exceeds 999, bit 14 is set. A1 is displayed in front of the result
YYY.
-(-)- Subtract XXX
-(-)-
YYY
The subtract instruction is an output instruction. It is always preceded by two
get instructions. The value in the second get address is subtracted from the
value in the first.
When the difference is negative, bit 16 is set and a minus sign is displayed in
front of the result YYY.
-(x)- Multiply XXX
-(x)-
YYY
The multiply instruction is an output instruciton. It is always preceded by two
get instructions which store the values to be multiplied.
Two word addresses are required to store the 6 digit product.
-(
÷
)-
Divide XXX
-(
÷
)-
YYY
The divide instruction is an output instruciton. It is always preceded ny two
get instructions. The vlue of the first is divided by the value of the second.
Two word addresses are required to store the 6 digit quotient. Its decimal
point is placed automatically by the industrial terminal.
Komentarze do niniejszej Instrukcji