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

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
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
2. Set data
Operand type
S
S
1
D
n
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
S
1
S
D
2
n
Explanation of function and operation
1. 16-bit operation (DECO and DECOP)
One bit among
1) When
D
D
1
The numeric value (expressed in 2
-
When all bits of
-
When "n" is "8" and
Command
input
When it is Y, M or S
Up to
...
M255
M255
Up to 256 bits (The number of occupied bits varies depending on the specified "n" value.)
296
Mnemonic
16-bit Instruction
P
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
n
− 1 is set to ON according to the
D
D
to
D
D
+2
1
1
is a bit device (1 ≤ n ≤ 8)
n
, 1 ≤ n ≤ 8) of a device specified by
D
S
are "0", the bit device
1
D
D
is a bit device, 2
1
FNC 41
S
D
DECO
b15
b14
Up to
Up to
Up to
...
...
M127
M63
M31
0
M15
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
D
D
turns ON.
1
8
= 256 bits (which is the maximum value) are occupied.
n
(1 ≤ n ≤ 8)
Ignored
b13
b12
b11
b10
b9
b8
b7
b6
0 0 0 0 1 1 1 0
K8
K7
1
0
0
0
0
0
0
0
M14
M13
M12
M11
M10
M9
M8
M7
12 Data Operation – FNC 40 to FNC 49
12.2 FNC 41 – DECO / Decode
Mnemonic
32-bit Instruction
Con-
Real
Index
stant
Number
V Z Modify K H
E
D
S
value.
1
D
S
is decoded to
1
8 bits
When "n" is "8"
b5
b4
b3
b2
b1
b0
When
← 2
n
← n
K6
K5
K4
K3
K2
K1
Turns ON when all
bits of
0
0
0
0
0
0
0
When
M6
M5
M4
M3
M2
M1
M0
Operation Condition
Data type
16-bit binary
16-bit binary
16-bit binary
Others
Charac-
Pointer
ter String
" "
P
D
D
.
1
S
is D0
S
are OFF.
D
is M0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents