
B-63983EN/02 4.LADDER LANGUAGE
- 263 -
4.6.3 COIN (Coincidence Check: SUB 16)
Checks whether the input value and comparison value coincide.
The value type in this instruction is BCD.
Format
Fig. 4.6.3 shows the ladder format and Table 4.6.3 shows the
mnemonic format.
COIN
SUB 16
BYT
CT
¡¡¡¡.¡
W1
¡¡¡¡.¡
Specification of input data format (constant or address)
Input data
Comparison data address
Comparison
result
output
Control conditions
¡¡¡¡.¡
¡
¡¡¡¡
¡¡¡¡
Fig. 4.6.3 Format of COIN instruction
Table 4.6.3 Mnemonic of COIN 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 ¡¡¡¡ .¡ ACT BYT ACT
3 SUB 16 COIN instruction
4(PRM) ¡ Specification of input data format
5(PRM) ¡¡¡¡ Input data
6(PRM) ¡¡¡¡ Comparison data address
7WRT ¡¡¡¡ .¡ Comparison result output W1