
B–61863E/15
5. FUNCTIONAL INSTRUCTIONSPMC SEQUENCE PROGRAM
177
Outputs 1 when the two–digit BCD code signal is equal to a specified
number, and 0 when not. Is used mainly to decode M or T function.
Fig.5.7.2 and Table 5.7.2 show the expression format and Table 5.7.2
show the coding format.
ACT
DEC
fff. f
Control condition
ffff
fff. f
Address of decode signal
Decode
instruction
Decoding result output
W1
ffff
Instruction
ff
Number of digits
instruction
ff
Number of digits instruction
Fig. 5.7.2 Format of DEC
Table 5.7.2 Coding of DEC
Step
Number
Instruction
Address
Number
Bit
Number
Remarks
1 RD fff. f ACT
2 DEC ffff
3 (PRM) ffff
4 WRT fff. f W1, Decoding result output
ACT=0 : Turns the decoding result output off (W1).
ACT=1 : Performs decoding.
When the specified number is equal to the code signal, W1=1;
when not, W1=0.
Specify the address containing two–digit BCD code signals.
5.7
DEC (DECODE)
5.7.1
Function
5.7.2
Format
5.7.3
Control Condition
5.7.4
Code Signal Address