Download R88A-MCW151-(DRT)
Transcript
Command, function and parameter description See also: Section 6-3 DRV_RESET 6-3-175 SET_BIT Type: Syntax: System Command 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: Syntax: I/O Command 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-purpose 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 1200, 2400,4800, 9600,19200, 38400 data_bits 7, 8 stop_bits 1, 2 parity 0 None 1 Odd 2 Even port_number 0 RS-232C programming port 0 1 RS-232C serial port 1 2 RS-422A/485 serial port 2 mode Select one of the following modes for serial ports 1 and 2: 0 5 6 General-purpose communication (no XON/XOFF mechanism) Host Link Slave protocol Host Link Master protocol 6-3-177 SGN Type: Syntax: Description: Mathematical Function SGN(expression) The SGN function returns the sign of a number. It returns value 1 for positive values (including zero) and value -1 for negative values. 185