358
DECO, DECOP
[Operation]
: Data to be decoded or the number of the device where the data to be decoded is stored (BIN 16 bits)
: Head number of the devices where the decoding result will be stored (Device name)
n
: Valid bit length (1 to 8), 0: No processing (BIN 16 bits)
Function
(1) Turns ON the bit position of , which corresponds to the binary value designated by the lower n bits at .
(2) The value of n can be designated between 1 and 8.
(3) No processing is conducted if n 0, and there are no changes in the details of the device designated at .
(4) Bit devices are treated as 1 bit, and word devices as 16 bits.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
DECO, DECOP
Decoding from 8 to 256 bits
7.5.3
DECO, DECOP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
n
––
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The value of n is other than 0 to 8.
4101
The range 2
n
bits from exceeds the range of the corresponding
device.
0 1 0 1 0 0 0 0 1 1 1 1 0 0 0 1
Stores
the
tota
l
number
of
b
i
ts
where
1
i
s
set
i
nto
D0
.
D0
15
b15
0 0 1 1 1 1 0 0 0 0 1 1 0 0 1 1
b0
b31
b16
D100
,
D101
Basic
Process
High
performance
Redundant Universal
LCPU
n
n
DECO
DECOP
D
D
Command
Command
DECOP
DECO
S
S
S
D
S
D
D
S
7
0 1
ON
0 0 0 0 0 0
1 1 0
6 5 4 3 2 1 0
D
(
Binar
y
value = 6
)
n = 3
S
D
D