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

ページ / 936
325
FX
3G
/FX
3U
/FX
3UC
 Series Programmable Controllers
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
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
12.5
FNC 44 – BON / Check Specified Bit Status
Outline
This instruction checks whether a specified bit position in a specified device is ON or OFF.
1. Instruction format
2. Set data
3. Applicable devices
S1: "D….b" is available only in FX
3U
 and FX
3UC
 PLCs.  However, index modifiers (V and Z) are not available.
S2: This function is supported only in FX
3U
/FX
3UC
 PLCs.
Explanation of function and operation
1. 16-bit operation (BON and BONP)
The status (ON or OFF) of the bit "n" in 
 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 
, it is automatically converted into the binary format.
Operand type
Description
Data type
Word device number storing the source data
16- or 32-bit binary
Bit device number to be driven
Bit
n
Bit position to be checked
[n: 0 to 15 (16-bit instruction), 0 to 31 (32-bit instruction)]
16- or 32-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
X Y M T C S D….b KnX KnY KnM KnS T C D R U…\G… V Z Modify K H
E
"…"
P
3
3
3
3
3 3 3 3
S2
3 3
3
3 3
3 3
3
S1
3
n
3 3
3 3
DBON
DBONP
Mnemonic
Operation Condition
P
FNC 44
BON
D
16-bit Instruction
7 steps BON
BONP
Mnemonic
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
32-bit Instruction
13 steps
Continuous
Operation
Pulse (Single)
Operation
S
1
 ‚
  S
  D
S
1
 ‚
  S
S
2
 ‚
  D
  
D
1
   
S
  
D
1
   
D
  
D
1
   
D
  
D
1
   
D
  
D
1
   
S
Command
input
FNC 44
BON
S ‚
D ‚
n
S ‚
= ON/OFF status of bit "n"
D ‚
(n = K0 to K15)
← n
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
D ‚
0
1
bit device
n = 5
n = 8
(OFF)
(ON)