Mitsubishi QD51 Programming Manual page 33

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

Advertisement

2 THE BASICS OF AD51H-BASIC
2 - 16
• 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)
120 W@(ED,102)=A%(0)
130 W@(ED,103)=A%(1)
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.
• • • • •
"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).
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.
MELSEC-Q
2 - 16

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents