185
Command, function and parameter description Section 6-3
See also: DRV_RESET
6-3-175 SET_BIT
Type: System Command
Syntax: SET_BIT(
bit_number
,
vr_number
)
Description: The SET_BIT command sets the specified bit in the specified VR variable to
one. Other bits in the variable will keep their values.
Arguments: bit_number
The number of the bit to be set. Range: [0,23].
vr_number
The number of the VR variable for which the bit is set. Range: [0,250].
See also: CLEAR_BIT, READ_BIT, VR
6-3-176 SETCOM
Type: I/O Command
Syntax: SETCOM(
baud_rate, data_bits, stop_bits, parity, port_number, mode
)
Description: The SETCOM command sets the serial communications for the serial ports.
The command will enable the Host Link protocols or define the general-pur-
pose communication.
The serial ports have 9,600 baud, 7 data bits, 2 stop bits, even parity and
XON/XOFF enabled for general-purpose communication by default. These
default settings are recovered at start-up.
Arguments:
baud_rate
data_bits
stop_bits
parity
port_number
mode
Select one of the following modes for serial ports 1 and 2:
6-3-177 SGN
Type: Mathematical Function
Syntax: SGN(
expression
)
Description: The SGN function returns the sign of a number. It returns value 1 for positive
values (including zero) and value -1 for negative values.
1200, 2400,4800, 9600,19200, 38400
7, 8
1, 2
0 None
1Odd
2Even
0 RS-232C programming port 0
1 RS-232C serial port 1
2 RS-422A/485 serial port 2
0 General-purpose communication (no XON/XOFF mechanism)
5 Host Link Slave protocol
6 Host Link Master protocol