
Chapter
Statements
1
1
11 -20
Use the MODE command to set the port parameters of ports PRT1, PRT2,
and DH-485.
Important: If a argument (other than port name and communication rate)
is blank, the argument defaults to the previously specified value for the
argument.
PRT1 and PRT2 port parameters (CALL 94, page 13 -32 and CALL 31,
page 12 -21 display these settings):
Port parameters Selections Default settings
communication rate
300, 600, 1200, 2400, 4800, 9600, 19200 1200
parity (arg1) none (N), even (E), odd (O) N
number of data bits (arg2) 7 or 8 8
number of stop bits (arg3) 1 or 2 1
handshaking (arg4) no handshaking (N)
software handshaking (S)
hardware handshaking (H)
hardware and software handshaking (B)
S
storage type (arg5)
store information in user ROM and RAM (E)
①
store information in battery backed RAM (R)
R
①
The E storage setting type option cannot be used if MODE is used as a statement.
DH-485 port parameters (CALL 83, page 13 -11 displays these settings):
Port parameters Selections Default settings
communication rate
300, 600, 1200, 2400, 4800, 9600, 19200 19200
host node address (arg1) 0 to 31 0
module node address (arg2) 1 to 31 1
maximum node address (arg3) 1 to 31 31
not used (arg4) leave blank –
storage type (arg5) store information in user ROM and RAM (E)
store information in battery backed RAM (R)
R
Syntax
MODE
(port,
communication 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,,,)
MODE
Comentarios a estos manuales