
3 - 33 3 - 33
MELSEC-Q
3 SPECIFICATIONS
(1) Reading data in the special register
Data are read from the special register by the following methods.
• Using the special variable W@ of the BASIC program
• Using the FROM command in the sequence program
The method of designating the special register differs in the special variable W@
and the FROM command, as shown below.
(a) Reading of data by the special variable W@ in a BASIC program
With the special variable W@, the special register is designated by ED9000
to ED9127. The designation is in 1-word units.
QD51(-R24)
Special Register
b15 to b0
ED9000
ED9001
ED9002
ED9003
ED9004
ED9125
ED9126
ED9127
W@
(Reading of data)
BASIC
program
Program example
The following shows a program where data are read from the QD51 (-
R24)'s special register ED9000.
100 A=W@ (ED, 9000)
247C
H
247F
H
2400
H
2401
H
ED9000
ED9001
ED9002
ED9003
ED9127
ED9126
ED9125
ED9124
2402
H
2403
H
247D
H
247E
H
Special Register
Special variable W@
(Reading of data)
BASIC
Program
(1-word units)
QD51(-R24)
to
to
Содержание QD51
Страница 1: ......
Страница 2: ......
Страница 154: ...App 7 App 7 MELSEC Q APPENDIX MEMO ...
Страница 159: ......
Страница 160: ......