
4.LADDER LANGUAGE B-63983EN/02
- 322 -
4.10.5 ADD (BCD Addition: SUB 19)
Adds BCD two- or four-digit data.
Format
Fig. 4.10.5 shows the ladder format and Table 4.10.5 shows the
mnemonic format.
DD
SUB 19
RST
¡
¡¡¡¡
¡¡¡¡
¡¡¡¡
¡¡¡¡.¡
CT
¡¡¡¡.¡
W1
¡¡¡¡.¡
Data format of addend (Constant or address)
Summand address
ddend
Sum output address
Error output
BYT
¡¡¡¡.¡
Control conditions
Fig. 4.10.5 Format of ADD instruction
Table 4.10.5 Mnemonic of ADD instruction
Mnemonic format
Memory status of control
condition
Step
number
Instruction
Address
No.
Bit No. Remarks ST3 ST2 ST1 ST0
1RD ¡¡¡¡ .¡ BYT BYT
2 RD. STK ¡¡¡¡ .¡ RST BYT RST
3 RD. STK ¡¡¡¡ .¡ ACT BYT RST ACT
4 SUB 19 ADD instruction
5(PRM) ¡ Addend format
6(PRM) ¡¡¡¡ Summand address
7(PRM) ¡¡¡¡ Addend (address)
8(PRM) ¡¡¡¡ Sum output address
9WRT ¡¡¡¡ .¡ Error output W1