Mitsubishi QD51-R24 User Manual page 68

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

Advertisement

3 SPECIFICATIONS
3 - 33
(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.
ED9000
ED9001
ED9002
ED9003
ED9004
ED9125
ED9126
ED9127
Program example
The following shows a program where data are read from the QD51 (-
R24)'s special register ED9000.
100 A=W@ (ED, 9000)
QD51(-R24)
Special Register
2400
H
2401
H
2402
H
2403
H
to
247C
H
247D
H
247E
H
247F
H
QD51(-R24)
Special Register
b15
to
b0
W@
(Reading of data)
Special variable W@
ED9000
(Reading of data)
ED9001
ED9002
ED9003
to
ED9124
ED9125
ED9126
ED9127
MELSEC-Q
BASIC
program
BASIC
Program
(1-word units)
3 - 33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qd51

Table of Contents