High−level Instructions
3 − 202
Outline Decodes the specified data.
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
“P90 (PDECO)” is not available.
Program example
Boolean
Ladder Diagram
Address Instruction
10
F90 DECO, DT10, H404, DT20
S
D
Trigger
R20
n
10
11
ST R 20
F 90 (DECO)
DT 10
H 404
DT 20
S 16-bit equivalent constant or 16-bit area to be decoded (source)
n 16-bit area equivalent constant or 16-bit area to specify starting bit position and
number of bits to be decoded
D Starting 16-bit area for storing decoded data (destination)
Operands
modifier
S A A A A A A A A A A A A A A
n A A A A A A A A A A A A A A
D N/A A A A A A A A A A A N/A N/A A
(*1) This cannot be used with the FP0 and FP−e.
(*2) This cannot be used with the FP0, FP−e, FP0R, FPΣ, FP−X.
(*3) With the FP0R, FPΣ,FP−X, FP2, FP2SH, and FP10SH, this is I0 to IC.
(*4) With the FP0R, FPΣ,FP−X, FP2, FP2SH, and FP10SH, this is ID.
Explanation of example
Decodes data register DT10 according to the n = H404 when trigger R20 turns on. The decoded result is
stored in data register DT20.
Example: When n: H404
DT20
····
Bit position
·····
DT10
15
010
12
0
11
011
8
0
7
011
4
1
3
100
0
1
R20: on
····
Bit position
·····
15
000
12
0
11
000
8
0
7
100
4
0
3
000
0
0
Destination
Source
4 bits from bit position 4 to 7 of
DT10 are decoded.
[Binary: 0111 (decimal: K7)]
The decoded data “1 (on)” is
stored in bit position 7 of DT20.
The bits except bit position 7
become 0.
Bit position 4
4 bits
F90
P90
(PDECO)
(DECO)
Decode
A: Available
N/A: Not Available