321
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.3 FNC 42 – ENCO / Encode
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
2) When is a word device (1 ≤ n ≤ 4)
ON bit positions among "2
n
" bits (1 ≤ n ≤ 4) from a device specified in are encoded to .
-The encoding result of is "0" (OFF) from the most significant bit to the low-order bit "n".
Cautions
1. When two or more bits are ON in the data
The low-order side is ignored, and only the ON position on the high-order side is encoded.
2. While the command input is OFF
The instruction is not executed. Activated encode outputs are latched in the previous ON/OFF status.
D
1
S
D
1
S
D
1
D
D
1
D
Command
input
FNC 42
ENCO
nS
D
When it is T, C, D, R, U
\G
, V or Z
(1
≤
n
≤
4)
0001000010101010
b15
All of these bits are 0.
b0
1100000000000000
b15 (1)(2)4
b0
012(3)456
7
Ignored
S
D
2
n
= 8 (When "n" is 3)
D0
D2
D
1
S