Syntax, Example – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual
Page 242
Advertising
Publication 1746-RM001A-US-P
14-6 Setup Functions
Syntax
MODE (port name, baud rate, arg1, arg2, arg3, arg4, arg5)
Example
>1
REM EXAMPLE PROGRAM
>10 MODE(DH485,19200,0,1,2,,R)
>.
.
>25 MODE(PRT1,1200,N,8,,,)
Table 14.6 DH485 Port Parameters
Port Parameters
Selections
Default
Settings
Baud rate
300, 600, 1200, 2400, 4800, 9600, 19200
19200 baud
arg1 (host node address)
0 to 31
0
arg2 (module node address)
1 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
The E storage type option cannot be used if MODE is used as a
statement.
Advertising