Mitsubishi QD51 Programming Manual page 447

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
(2) Program example for a format 2 control table
100 ' A program example that monitors extension file registers registered to be monitored by the
PCWT instruction
110 DIM TBL1%(10),A%(20),TBL2%(10),B%(20)
120 TBL1%(0)=256
130 TBL1%(1)=1
140 TBL1%(2)=1
150 TBL1%(4)=5
160 TBL1%(5)=2
170 A%(0)=1:A%(1)=0
180 A%(2)=1:A%(3)=1
190 PCWT TBL1%( ),A%( )
200 TBL2%(0)=256
210 TBL2%(1)=1
220 TBL2%(2)=1
230 TBL2%(4)=5
240 PCRD TBL2%( ),B%( )
250 PRINT"B%(0)=" :B%(0)
260 PRINT"B%(1)=" :B%(1)
270 END
11 - 277
:
'Defines arrays
:
'Specifies a format 2 control table
:
'Specifies network number 1
:
'Specifies station number 1
:
'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 a format 2 control table
:
'Specifies network number 1
:
'Specifies station number 1
:
'Specifies to register extension file registers
to be monitored
:
'Executes the monitoring
:
'Displays the result
MELSEC-Q
11 - 277

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents