EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 252

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.5 Data Operation
250
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Function and operation explanation
1. 16-bit operation(BON, BONP)
The status (ON or OFF) of the bit "n" in the device specified by is output to the device specified by .
[When the bit "n" is ON, the device specified by is set to ON. When the bit "n" is OFF, the device
specified by is set to OFF.]
When a constant (K) is specified as , it is automatically converted into the binary format.
2. 32-bit operation(DBON, DBONP)
The status (ON or OFF) of the bit "n" in the device specified by is output to the device specified by .
[When the bit "n" is ON, the device specified by is set to ON. When the bit "n" is OFF, the device
specified by is set to OFF.]
When a constant (K) is specified as , it is automatically converted into the binary format.
Cautions
1) Some restrictions to applicable devices
S1:Applicable only to the FX
3U and FX3UC PLCs. Not indexed (V, Z).
S2:The FX
3U, FX3UC and FX3G PLCs only are applicable.
S3:The FX
3U and FX3UC PLCs only are applicable.
2) When handling 32-bit data in a structured program, a 16-bit device cannot be specified directly as in the
case of a simple project. Use a label to handle 32-bit data.
A 32-bit counter can be specified directly as it is a 32-bit long device.
Use a global label to specify a device.
Command input
SUM data
Resulting data
BON
EN
s
n
ENO
d
Bit position
=ON/OFF status of bit "n"
s d
(n=K0 to K15)
n
b0b1b2b3b4b5b6b7b8b9b10b11b12b13b14b15
0 1 0 0 1 1 1 11 0 1 0 10 00
K4K5K6K7
K0K1K2K3K8K9K10K11K12K13K14K15
0
1
Bit device
n=5
n=8
(OFF)
(ON)
s
d
Label 1
*1
0
1
Bit device
n=29
n=5
(OFF)
(ON)
+1,
s s
b0b1b2b3b4b5b6b7b8b9b10b11b12b13b14b15
0 1 0 0 1 1 1 11 0 1 0 10 00
K4K5K6K7
K0K1K2K3K8K9K10K11K12K13K14K15
b16b17···b29b30b31
0 1 ··· 1 11
···K29K30
K16K17K31
n
d
[ +1, ]
(n=K0 to K31)
=ON/OFF status of bit "n"
Command input
*1 This defines the data that executes DBON or the device number storing the source data.
DBON
EN
s
n
ENO
d
Resulting data
Bit position
s s d

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals