Mitsubishi QD51 Programming Manual page 587

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
Program Example
100 ' This program specifies and reads continuous break characters
110 DIM TBL1%(2),TBL2%(4),TBL3%(4)
120 A%=1
130 TBL1%(0)=9600
140 TBL1%(1)=&H107
150 TBL1%(2)=&H1
160 ZOPEN #A%,TBL1%( )
170 TBL2%(0)=24
180 TBL2%(1)=1
190 TBL2%(2)=2
200 TBL2%(3)=&H30D
210 ZCNTL #A%,0,TBL2%( )
220 TBL3%(0)=25
230 ZCNTL #A%,0,TBL3%( )
240 PRINT"Number of break characters=";TBL3%(1)
250 PRINT"Break character=&H";HEX$(TBL3%(2))
260 ZCLOSE #A%
270 END
11 - 417
:
' Defines arrays
:
' Communication channel CH1 (RS-232C)
:
' Sets the baud rate
:
' Sets the character length and parity bit
:
' Sets the stop bit
:
' Opens the communication channel
:
' Specifies to set continuous break
characters
:
' Sets the number of break characters
MELSEC-Q
11 - 417

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents