Mitsubishi QD51 Programming Manual page 589

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
Program Example
10 ' This program specifies the status of the RS/ER control signals to ON or OFF
20 DIM TBL1%(2),TBL2%(3),TBL3%(1)
30 A%=1
40 TBL1%(0)=9600
50 TBL1%(1)=&H108
60 TBL1%(2)=&H1
70 ZOPEN #A%,TBL1%( )
80 TBL2%(0)=18
90 TBL2%(1)=&H0
100 TBL2%(3)=1024
110 ZCNTL #A%,0,TBL2%( )
120 TBL3%(0)=32
130 TBL3%(1)=&H101
140 ZCNTL #A%,0,TBL3%( )
150 ZCLOSE #A%
160 END
11 - 419
:
' Defines arrays
:
' Defines a channel number
:
' Sets the baud rate
:
' Sets the character length and the parity bit
:
' Sets the stop bit
:
' Opens the communication channel
:
' Specifies to set the communication control
parameters
:
' Control by the RS/ER control signals
disabled
:
' Sets the receive buffer size to 1024 bytes
:
' Executes
:
' Specifies to turn ON/OFF the RS/ER
control signals
:
' Turns ON the RS and ER control signals
:
' Executes
MELSEC-Q
11 - 419

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents