Mitsubishi QD51-R24 User Manual page 71

Melesec q series
Hide thumbs Also See for QD51-R24:
Table of Contents

Advertisement

3 SPECIFICATIONS
3 - 36
(3) Writing/ Reading of Expansion Relay ON/OFF Data
ON/OFF data are written to or read from the expansion relay by the following
methods.
• Using the special variable B@ of the BASIC program
• Using the FROM/TO command in the sequence program
The expansion relay designation method differs as follows in the special variable
B@ and the FROM/TO command.
(a)
Writing ON/OFF data and reading them using special variable B@ in a
BASIC program
With special variable B@, the expansion relay is designated by EM0 to
EM1023. Designation is in 1-bit units.
EM1021
EM1022
EM1023
Program example
The following shows a program where "1" is written into the QD51 (-
R24)'s expansion relay EM0.
150 B@ (EM, 0)=1
b15
EM
2380
H
15
EM
2381
H
31
to
EM
23BE
H
1007
EM
23BF
H
1023
QD51(-R24)
Expansion Relay
EM0
1/0
EM1
1/0
EM2
1/0
(Reading of data)
EM3
1/0
EM4
1/0
1/0
1/0
1/0
Special variable B@
(Writing of data)
QD51(-R24)
Expansion Relay
to
b0
EM
EM
EM
EM0 to EM15
to
14
1
0
EM
EM
EM
EM16 to EM31
to
30
17
16
to
EM
EM
EM
EM992 to EM1007
to
1006
993
992
EM
EM
EM
EM1008 to EM1023
to
1022
1008
1009
B@
BASIC
program
B@
(Writing of data)
BASIC
Program
(1-bit units)
MELSEC-Q
3 - 36

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qd51

Table of Contents