8 pl-18 commands in protocol 3000, 1 operating commands, Pl-18 commands in protocol 3000 – Kramer Electronics PL-18 User Manual
Page 10: Operating commands

PL-18 Commands in Protocol 3000
7
7
8
PL-18 Commands in Protocol 3000
This section describes all commands sent to the PL-18. For an explanation
of the syntax and use of Protocol 3000, see section
8.1
Operating Commands
Following are the specific commands that the controller (RC device) sends
to the PL-18 on RS-232/2 to operate the external devices connected to
RS-232/1, the IR ports and relays.
Command
Syntax
Response
Relay control
RELAY PORT_NUM , STATE
RELAY PORT_NUM , STATE
RESULT
Parameter Description:
PORT_NUM = 1 to 4
STATE = Relay state:
‘0’ or ‘close’ to close the relay
‘1’ or ‘open’ to open the relay
Generic Binary Port Configuration Command
Config binary port
CBIN PORT_TYPE,
PORT_NUM[,
CBIN PORT_TYPE, PORT_NUM
[, CFG_VAL1] [, CFG_VAL2]
[, CFG_VAL3] [, CFG_VAL4]
[, CFG_VAL5] [, CFG_VAL6]
[, CFG_VAL7] [, CFG_VAL8]
RESULT
CFG_VAL1]
[, CFG_VAL2][, CFG_VAL3]
[, CFG_VAL4][, CFG_VAL5]
[, CFG_VAL6][, CFG_VAL7]
[, CFG_VAL8]
PORT_TYPE = "UART", "ETH", "IR"
PORT_NUM = IR: 1 or 2; UART: 1 (RS-232/1); The port number is written over the physical port (see
BAUD = 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200
DATA_BITS = 5 to 8 inclusive
PARITY = “NONE”, “ODD”, “EVEN”, “MARK”, “SPACE” or first letter of those words
STOP_BITS = 1 or 2
DUTY_CYCLE = 1 to 99 inclusive
START_TOKEN = CR followed by “[“ that is, 2 bytes in hex representation = 0x0D and 0x5B
END_TOKEN = “]”
1 CBIN is a generic command, thus CFG_VAL parameters are a generic representation of the specific configuration
parameters, for instance, CFG_VAL1 and CFG_VAL2 represent CARRIER_FREQ and DUTY respectively in case
PORT_TYPE = “IR”