Mitsubishi Electronics FX3G Video Gaming Accessories User Manual


 
317
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.2 FNC 41 – DECO / Decode
11
FNC30-FNC39
Rotation and
Shift
12
FNC40-FNC49
Data Operation
13
FNC50-FNC59
High Speed
Processing
14
FMC60-FNC69
Handy
Instruction
15
FNC70-FNC79
External FX I/O
Device
16
FNC80-FNC89
External FX
Device
17
FNC100-FNC109
Data
Transfer 2
18
FNC110-FNC139
Floating Point
19
FNC140-FNC149
Data
Operation 2
20
FNC150-FNC159
Positioning
Control
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
2. Set data
3. Applicable devices
S: This function is supported only in FX3U/FX3UC PLCs.
Explanation of function and operation
1. 16-bit operation (DECO and DECOP)
One bit among to +2
n
1 is set to ON according to the value.
1) When is a bit device (1 n 8)
The numeric value (expressed in 2
n
, 1 n 8) of a device specified by is decoded to .
-When all bits of are "0", the bit device turns ON.
-When "n" is "8", 2
8
points (= 256 bits which is the maximum value) are occupied.
Operand type Description Data type
Data to be decoded or word device number storing data 16-bit binary
Bit or word device number storing the decoding result 16-bit binary
n
Number of bits of device storing the decoding result (n = 1 to 8)
(No processing is executed in the case of "n = 0".)
16-bit binary
Oper-
and
Type
Bit Devices Word Devices Others
System User Digit Specification System User
Special
Unit
Index
Con-
stant
Real
Number
Charac-
ter String
Pointer
XYMTCSD.b KnX KnY KnM KnS T C D R U\G VZModifyKH E ""P
333 3 3 3 3 3 S 33 3 33
33 3 33 33 S 3
n 33
P
FNC 41
DECO
Mnemonic Operation Condition
16-bit Instruction
7 steps
DECO
DECOP
Mnemonic Operation Condition
Continuous
Operation
Pulse (Single)
Operation
32-bit Instruction
S
1
S
D
S
1
S
S
2
D
D
1
D
D
1
D
D
1
S
D
1
D
D
1
S
D
1
D
D
1
S
D
1
D
When is M0
0000000000000010
n
D
Up to 256 bits (The number of occupied bits varies depending on the specified "n" value.)
Up to
M31
Up to
M63
Up to
M127
Up to
M255
K1K2K3K4K5K6K7K8
Turns ON when all
bits of are OFF.
0 0 0 0 1 1 1 0
1
2
4
8
16
32
64
128
2
n
S
8 bits
b0b1b2b3b4b5b6b7
M255
M0M1M2M3M4M5M6M7M8M9
M10M11M12M13M14M15
b8b9b10b11b12b13b14b15
When is D0
When it is Y, M or S
(1
n
8)
Command
input
FNC 41
DECO
S
D
n
Ignored
When "n" is "8"
S