FX Series Programmable Controlers Applied Instructions 5
5-56
5.5.2 DECO (FNC 41)
Operation:
Source data is provided by a combination of operands
S and n. Where S specifies the head address of the
data and n, the number of consecutive bits. The
source data is read as a single number (binary to
decimal conversion) Q. The source number Q is the
location of a bit within the destination device (D) which
will be turned ON (see example opposite). When the
destination device is a data device n must be within
therange1to4asthereareonly16available
destination bits in a single data word. All unused data
bits within the word are set to 0.
Mnemonic Function
Operands
Program steps
SD n
DECO
FNC 41
(Decode)
Source data value
Q identifies the
Qth bit of the
destination device
which will be
turned ON
K, H,
X, Y, M,S,
T, C, D, V,
Z
Y, M, S,
T, C, D
K, H,

Note:
D= Y,M,S then n range =
1-8
D= T,C,D then
n range = 1-4
n= 0, then no
processing
DECO,
DECOP:
7steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
X4
M 10 K 3
[ S ]
[ D ]
X 0
[ n ]
DECO
M15 M14 M13 M12 M11 M10M16M17
01000 000
7. 6. 5. 4. 3. 2. 1. 0.
421
011
X 2 X 1 X 0
=3
+