Fnc 41 - Deco / Decode - Mitsubishi FX3G Series Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G Series:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
3G
3U
3GC
3UC
Programming Manual - Basic & Applied Instruction Edition
12.2
FNC 41 – DECO / Decode
Outline
This instruction converts numeric data into ON bit.
A bit number which is set to ON by this instruction indicates a numeric value.
1. Instruction format
FNC 41
DECO
P
2. Set data
Operand type
S
S
1
D
n
3. Applicable devices
Bit Devices
Oper-
System User
and
Type
X Y M T C S D .b KnX KnY KnM KnS T
S
S
1
S
D
2
n
: This function is supported only in FX
Explanation of function and operation
1. 16-bit operation (DECO and DECOP)
D
D
One bit among
is a bit device (1 ≤ n ≤ 8)
D
D
1)
When
1
The numeric value (expressed in 2
-When all bits of
-When "n" is "8", 2
Command
input
FNC 41
When it is Y, M or S
Up to
Up to
...
M255
M127
M255
Up to 256 bits (The number of occupied bits varies depending on the specified "n" value.)
Series
Mnemonic
16-bit Instruction
7 steps DECO
DECOP
Data to be decoded or word device number storing data
Bit or word device number storing the decoding result
Number of bits of device storing the decoding result (n = 1 to 8)
(No processing is executed in the case of "n = 0".)
Digit Specification
/FX
3U
3UC
n
− 1 is set to ON according to the
D
D
to
+2
1
1
n
, 1 ≤ n ≤ 8) of a device specified by
D
S
are "0", the bit device
1
8
points (= 256 bits which is the maximum value) are occupied.
S
D
DECO
(1 ≤ n ≤ 8)
Ignored
b15
b14
b13
b12
Up to
Up to
...
...
M63
M31
0
1
M15
M14
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
C D R U \G
V
PLCs.
D
S
value.
1
D
D
turns ON.
1
n
8 bits
b11
b10
b9
b8
b7
b6
b5
b4
0 0 0 0 1 1 1 0
K8
K7
K6
K5
0
0
0
0
0
0
0
0
0
M9
M8
M7
M6
M5
M13
M12
M11
M10
12 Data Operation – FNC 40 to FNC 49
12.2 FNC 41 – DECO / Decode
Mnemonic
Operation Condition
Data type
16-bit binary
16-bit binary
16-bit binary
Others
Con-
Real
Charac-
Index
stant
Number
ter String
Z Modify K H
E
" "
D
S
is decoded to
D
D
.
1
1
When "n" is "8"
b3
b2
b1
b0
S
When
is D0
← 2
n
← n
K4
K3
K2
K1
Turns ON when all
S
bits of
are OFF.
0
0
0
0
0
When
D
M4
M3
M2
M1
M0
11
12
13
14
Pointer
15
P
16
17
18
19
is M0
20
313

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3gc seriesFx3uc series

Table of Contents