Syntax – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 53

Advertising
background image

Publication 1746-RM001A-US-P

BASIC Commands 4-13

Syntax

MODE(port name, baud rate, arg1, arg2, arg3, arg4, arg5)

Table 4.3 PRT1 and PRT2 Port Parameters

Port Parameters

Selections

Default Settings

baud rate

300, 600, 1200, 2400, 4800, 9600, 19200

1200

arg1 (parity)

None (N), Even (E), Odd (O)

N

arg2 (number of data bits)

7 or 8

8

arg3 (number of stop bits)

1 or 2

1

arg4 (handshaking)

No handshaking (N)
Software handshaking (S)
Hardware handshaking (H)
Hardware and software handshaking (B)

S

arg5 (storage type)

Store information in user ROM and RAM (E)
Store information in battery backed RAM (R)

R

IMPORTANT

If any argument (other than port name and baud rate) is left
blank, then that argument defaults to the previously specified
value for that argument.

Table 4.4 DH485 Port Parameters

Port Parameters

Selections

Default
Settings

baud rate

300, 600, 1200, 2400, 4800, 9600, 19200

19200

arg1 (host node address)

0 to 31

0

arg2 (module node address)

0 to 31

1

arg3 (maximum node address) 1 to 31

31

arg4 (not used)

arg5 (storage type)

Store information in user ROM and RAM (E)
Store information in battery backed RAM (R)

R

IMPORTANT

If any argument (other than port name) is left blank, then that
argument defaults to the previously specified value for that
argument.

Advertising