
RPBASIC-52 PROGRAMMING GUIDE
2-121
CONFIG BAUD
Syntax: CONFIG BAUD 0,baud
CONFIG BAUD 1,baud,rs-485
Where: baud = Baud rate number. See tables below.
rs-485 = Parameters for RS-485 port. See table below.
Specify 0 or 1 for serial port.
Function: Set baud rates for COM0 and COM1.
Mode: Command, Run
Use: CONFIG BAUD 1,3,OFF
Cards: All. baud code will vary from card to card.
DESCRIPTION
Power up baud rate is 9600 for both ports. Serial param eters change im mediately after this comm and is
executed. Comm unication parame ters are set at 8 d ata bits , 1 stop, no parity.
Use the table below for COM0 and COM1 baud code on the RPC-320 and RPC-330:
baud code Baud rate baud code Baud rate
0 38400 (COM0), 57600 (COM1) 4 2400
1 19200 5 1200
2 9600 6 600
3 4800 7 300
Notice baud code 0 gives different rates for COM0 and COM 1.
rs-485 configures COM1 for RS-232, RS-422, and 4 wire RS-485. Set jumper W4 as needed. Power up
default is 0, or RS-232 configuration.
rs-485 Configuration
0 RS-232
1 RS-422 (transmitter and receiver always on)
2 RS-485, 4 wire (Tx on during transmit, receiver always on)
ERROR
BAD ARGUMENT When any parameters are out of range.
BAD SYNTAX When any required parameters are missing.
Komentáře k této Příručce