7. APPLICATION INSTRUCTIONS
7
−
46
MELSEC-A
7.4.3 8
↔
256-bit decode, encode
(DECO, DECOP, ENCO, ENCOP)
Available Device
Bit device
Word (16-bit) device
Constant
Pointer
Level
Ca
rr
y
fla
g
Err
o
r
fla
g
X Y M L S B F T C D W R A0
A1
Z V K H P I N
D
igit specification
Inde
x
M9012 (M9010, M9011)
(S) O O O O O O O O O O O O O O O O O O
(D) O O O O O O O O O O O
DECO
n
O
O
(S) O O O O O O O O O O O O O O O O
(D) O O O O O O O O O
ENCO
n
O
O
O
O
Functions DECO
8
→
256 bit decode
(1) Corresponding to the binary value specified with the lower “n” bits in (S), a bit in
(D) turns ON.
7
0 1
ON
0 0 0 0 0 0
1 1 0
6 5 4 3 2 1 0
D
n=3
S
(Binary value=6)
(2) For "n", 1 to 8 can be specified.
(3) When "n" is 0, no processing is performed and the contents of 2
n
bits, which
begin with the device specified at (D), do not change.
(4) A bit device is treated as one bit and a word device as 16 bits.
Applicable
CPU
All CPUs
(S)
Decode, encode data or
head device number
stor-ing decode, encode
data
(D)
Head device number
which will store the
op-eration result
n
Effective bit length (1 to 8)
Setting data
DECO, ENCO
Indicates the instruction symbol.
P
(S)
(D)
n
(S)
(D)
n
Decode, encode commands
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......