7-71
DECO(P)
1
2
3
4
6
6
7
8
7.5 Data processing instructions
7.5.3 Decoding from 8 to 256 bits (DECO(P))
7.5.3 Decoding from 8 to 256 bits (DECO(P))
DECO(P)
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 bits 2
n
from the device
designated at .
(4) Bit devices are treated as 1 bit, and word devices as 16 bits.
: 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)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
–– –– ––
n ––
Basic
Process
High
performance
Redundant
Universal
n
n
DECO
DECOP
D
D
Command
Command
DECOP
DECO S
S
S
D
S
D
D
S
7
01
ON
000000
110
6543210
D
(Binary value = 6)
n = 3
S
D