Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G ユーザーズマニュアル

ページ / 936
321
FX
3G
/FX
3U
/FX
3UC
 Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.3 FNC 42 – ENCO / Encode
11
FN
C
30
-FN
C
39
R
otati
on and 
Shi
ft
12
FNC4
0-F
NC4
9
D
ata O
per
ati
on
13
FN
C
50-FN
C
59
H
igh S
pe
ed 
P
rocessing
14
FM
C
60-FN
C
69
H
andy 
In
st
ru
ct
ion
15
FNC7
0-F
NC7
9
Ex
ter
nal FX
 I/O
 
D
evice
16
FN
C
80-FN
C
89
Ext
ernal
 FX 
De
vic
e
17
FN
C
100-
FN
C
10
9
Da
ta
 
Transf
er 2
18
FN
C
110-
FN
C
139
Floati
ng Poi
nt
19
FN
C
14
0-F
N
C
149
Da
ta
 
O
per
at
ion 2
20
FN
C
150-
FN
C
159
Posit
ioning 
C
ont
ro
l
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
n
S ‚
D ‚
When it is T, C, D, R, U…\G…, V or Z
(1 
≤ n ≤ 4)
0
0
0
1
0
0
0
0
1
0
1
0
1
0
1
0
b15
All of these bits are 0.
b0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
b15
(1)
(2)
4
b0
0
1
2
(3)
4
5
6
7
Ignored
S ‚
D ‚
2
= 8 (When "n" is 3)
D0
D2
  
D
1
   
S