Mitsubishi QD51 Programming Manual page 177

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
B@
Variable
• Reads and writes bit information of the expansion relay (EM), general-purpose input (X),
and general-purpose output (Y).
B@ ( <device> , <device number> )
Syntax
device
device number
A%=B@ (EM, 100)
Examples
A%=B@ (Y, &H1B)
B@ (EM, 200) =A%
B@ (X, &HA) = A%
• The B@ variable reads and writes the bit information of the device.
Description
• Specify one of the following devices for <device>:
Expansion relay • • • • EM
General-purpose input • • • • X
General-purpose output • • • • Y
• Specify the following device number for <device number>:
EM • • • • 0 to 1023
X, Y • • • • &H0 to &H1F
• The read data is 1 when ON and 0 when OFF.
• For the write data, bit 0 of the specified value or of the value that is stored in the specified
variable is valid.
• Set the data by an integer constant or an integer variable when writing.
• Only write operation can be used when general-purpose input X is specified.
• Only read operation can be used when general-purpose output Y is specified.
11 - 7
Bit@
• • • •
• • • •
• • • •
• • • •
• • • •
• • • •
to
b15
b8b7
REMARK
See the W@ function.
Specify the device to read and write.
Specify the device number to read and write.
Reads the bit information of the expansion relay
EM100 to A%.
Reads the bit information of the general-purpose
output Y001B to A%.
Write the bit information to the expansion relay
EM200.
Write the bit information to the general-purpose input
X000A.
to
b0
The corresponding device
is turned ON when "1."
The corresponding device
is turned OFF when "0."
MELSEC-Q
11 - 7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents