2 - 16 2 - 16
MELSEC-Q
2 THE BASICS OF AD51H-BASIC
• When writing 32-bit data, the data is first set in array variables of integer format
using CDBI and CSNI instructions, then written to each device.
Example
100 DIM A%(1)
110 CDBI 123456!,A%(0)
• • • • •
“123456” is handled as 32-bit
data and the lower 16-bits of data
are stored in A%(0) and the upper
16-bits of data are stored in
A%(1).
120 W@(ED,102)=A%(0)
130 W@(ED,103)=A%(1)
• • • • •
The lower 16-bits of data stored in
A%(0) is written to ED102, and
the upper 16-bits of data stored in
A%(1) is written to ED103.
The internal word devices ED can be read from and written
to using the PUTMEM and GETMEM instructions, instead
of the special variables.
See Section 8.5.1, description of PUTMEM and GETMEM
instructions for details.
Содержание A1SD51S
Страница 183: ...11 13 11 13 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS RUN Before swap A 0 H924 A 1 H1159 After swap A 0 H1159 A 1 H924 OK...
Страница 331: ...11 161 11 161 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CON ON OFF STOP and ZOPEN functions and Section 7 4...
Страница 557: ...11 387 11 387 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CHR SPACE and SPC functions...
Страница 629: ...11 459 11 459 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZOPEN ZSEND and ZCNTL instructions and Section 7 3 4...
Страница 645: ...11 475 11 475 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZEVENT ZSIGNAL and DEF ZEVENT instructions...