Call 78 – set program port baud rate, Call 78 – set program port baud rate -2, Example – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual
Page 238: Purpose

Publication 1746-RM001A-US-P
14-2 Setup Functions
Example
>1
REM EXAMPLE PROGRAM
>10
REM CALL 30 INPUT PARAMETERS:
>20
REM FIRST PUSH : 5, 6, 7, OR 8 (BITS/CHARACTER)
>30
REM SECOND PUSH : 0, 1, OR 2 (NO PARITY, ODD, OR EVEN)
>40
REM THIRD PUSH : 1, 2, OR 3 (1, 2, OR 1.5 STOP BITS)
>50
REM FOURTH PUSH: 0 OR 1 (SOFTWARE HANDSHAKING
DISABLE, ENABLED)
>60
REM FIFTH PUSH : 0 OR 1 (HARDWARE HANDSHAKING
DISABLED, ENABLED)
>70
REM PRT2 DEFAULT CONFIGURATION IS:
>80
REM 1200 BAUD, 8 BITS/CHAR, NO PARITY, 1 STOP BIT, AND
>90
REM SOFTWARE HANDSHAKING ENABLED
>100 PUSH 8 0,1,1,0 : CALL 30
>110 CALL 31
19200 Baud
Hardware Handshaking OFF
1 Stop Bit(s)
No Parity
8 Bits/Char
Xon/Xoff
>
CALL 78 – Set Program
Port Baud Rate
Purpose
Use CALL 78 to change the program port baud rate from its default value (1200
baud) to one of the following: 300, 600, 1200, 2400, 4800, 9600 or 19200 baud.
The default baud rate for the program port is 1200 baud if port PRT1 is
configured as the program port or 19200 baud if port DH485 is configured as the
program port. PUSH the desired baud rate and CALL 78. The program port
remains at this baud rate unless CALL 73 is invoked or the following conditions are
met:
•
The battery is dead or has been removed.
•
The battery-backup capacitor is discharged.
•
The EEPROM is removed or not programmed.
•
The power is cycled.
If this happens the baud rate defaults to 1200 baud.