Mitsubishi QD51 Programming Manual page 353

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
Program Example
(1) Program example for a format 1 control table
100 'A program example that reads extension file registers registered to be monitored by the PCWT
instruction
110 DIM TBL1%(10), A%(20), TBL2%(10), B%(20)
120 TBL1%(0)=255
130 TBL1%(1)=5
140 TBL1%(2)=2
150 A%(0)=1:A%(1)=0
160 A%(2)=1:A%(3)=1
170 PCWT TBL1%( ),A%( )
180 TBL2%(0)=255
190 TBL2%(1)=5
200 PCRD TBL2%( ),B%( )
210 PRINT"B%(0)=";B%(0)
220 PRINT"B%(1)=";B%(1)
230 END
11 - 183
:
'Defines arrays
:
'Specifies the station number to
communicate with to the local station
:
'Specifies to register extension file registers
to be monitored
:
'Specifies the number of points to be
monitored
:
'Specifies block number 1 and device
number 0
:
'Specifies block number 1 and device
number 1
:
'Executes the monitor registration
:
'Specifies the station number to
communicate with to the local station
:
'Specifies to read the extension file
registers registered to be monitored by the
PCWT instruction
:
'Executes the read operation
:
'Displays the result
MELSEC-Q
11 - 183

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents