Call 31: display prt2 port parameters – Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 211
Chapter
Call Routines 0–68
12
12 -21
Syntax
PUSH
number of bits/word
PUSH
parity
PUSH
number of stop bits
PUSH
software handshaking
PUSH
hardware handshaking
CALL 30
Example
>100 PUSH 8 :REM 8 BITS/WORD
>120 PUSH 0 :REM NO PARITY
>140 PUSH 1 :REM 1 STOP BIT
>160 PUSH 0 :REM NO SOFTWARE HANDSHAKING
>180 PUSH 0 :REM IGNORE CTS, DCD and DSR
>190 CALL 30 :REM SET UP PRT2 PORT
–or–
>100 PUSH 8, 0, 1, 0, 0:CALL 30
This routine displays the current PRT2 port configuration on the terminal.
Enter CALL 31 from the Command mode.
Input and Output Arguments
This routine has no input or output arguments.
Syntax
CALL 31
Return
Example
>CALL 31
1200 BAUD
Hardware Handshaking OFF
1 Stop Bit(s)
No Parity
8 Bits/Char
Xon/Xoff
Important: Software handshaking status is shown only if enabled.
CALL 31: Display PRT2 Port
Parameters