beautypg.com

Rpbasic-52 programming guide – Remote Processing BASIC 52 User Manual

Page 140

background image

RPBASIC-52 PROGRAMMING GUIDE

2-121

CONFIG BAUD

Syntax:

CONFIG BAUD 0,baud
CONFIG BAUD 1,baud,rs-485
Where:

baud = B a u d r a te n u m be r . S e e ta b le s b el o w .
rs-485 = P a ra m e t er s fo r R S- 4 85 p o rt . S e e ta b le b e lo w .

Specify 0 or 1 for seria l port.

Function:

Set baud rates for COM0 and COM 1.

Mode:

Comm and, Run

Use:

CONFIG BAUD 1,3,OFF

Cards:

All. baud code will vary from card to card.

D E S C R IP T I ON

Power up baud rate is 9600 for both ports. Serial param eters change im mediately after this comm and is
exec uted. C omm unica tion pa rame ters are set at 8 d ata bits , 1 stop, n o parity .

Use the table below for COM0 and CO M1 baud code on the RPC-320 and RPC-330:

baud code

Baud rate

baud code

Baud rate

0

38400 (COM0), 57600 (COM 1)

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)

E R R O R

BAD ARGUMENT When any parameters are out of range.
B A D S Y N T A X

When any required parameters are missing.