Mitsubishi Electronics FX3G User Manual

Page of 964
329
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.5 FNC 44 – BON / Check Specified Bit Status
11
FN
C30
-FN
C3
9
R
ota
tion and 
Shi
ft
12
FN
C40-FN
C49
D
ata O
perati
on
13
FNC
50-FNC
59
High-Speed
 
Proc
essing
14
FM
C60-FN
C69
H
andy 
In
struction
15
FN
C70-FN
C79
E
xternal
 F
X
 I/O
 
De
vice
16
FNC
80-FNC
89
External
 FX 
Dev
ice
17
FNC1
00-
FNC10
9
Dat
Transfer 2
18
FNC1
10-
FNC139
Fl
oati
ng Poi
nt
19
FNC14
0-F
N
C
149
Da
ta
 
Operation 2
20
FNC1
50-
FNC159
Pos
itioning 
Control
2. 32-bit operation (DBON and DBONP)
The status (ON or OFF) of the bit "n" in [
+1, 
] is output to 
.
[When the bit "n" is ON, 
 is set to ON. When the bit "n" is OFF, 
 is set to OFF.]
• When a constant (K) is specified as the transfer source [
+1, 
], it is automatically converted into binary 
format.
Caution
• Note that the 32-bit value [n+1, n] is valid when D or R is specified as "n" in a 32-bit instruction.
In the case of "DBON D0 M0 R0", "n" is [R1, R0].
Program example
When the bit 9 (n = 9) in D10 is "1" (ON), M0 is set to "1" (ON).
  
D
1
   
S
  
D
1
   
S
  
D
1
   
D
  
D
1
   
D
  
D
1
   
D
  
D
1
   
S
  
D
1
   
S
[          +1,           ]
Command
input
FNC 44
DBON
n
(n = K0 to K31)
← n
0
1
bit device
S  +1, S 
b0
b1
b2
b3
b4
b5
b6
b7
b8
b9
b10
b11
b12
b13
b14
b15
0
1
0
0
1
1
1
1
1
0
1
0
1
0
0
0
K4
K5
K6
K7
K0
K1
K2
K3
K8
K9
K10
K11
K12
K13
K14
K15
b16
b17
b29
b30
b31
0
1
1
1
1
K29
K30
K16
K17
K31
n = 29
n = 5
(OFF)
(ON)
= ON/OFF status of bit "n"
X000
n
FNC 44
BON
D 10
M  0
K 9
M  0 = ON
M  0 = OFF
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
0
b0
b15
D 10
b0
b15
b7
b8
n = 9
n = 9