8
RS-232 and Telnet Command Set / Protocol Specification
(Continued)
2.3
Comm. System:
Asynchronous, half-duplex
2.4
Baud Rate:
9600bps
2.5
Start Bits:
1
2.6
Data Bits:
8
2.7
Stop Bits:
1
2.8
Parity:
None
2.9
Flow Control:
None
3. CONTROLLER COMMANDS
The following are commands sent by the controlling equipment to the M4320-PRO unit.
Note:
Responses are only transmitted if unsolicited feedback (§3.9) is enabled.
3.0 GREEN BUTTON
3.0.1
Command:
!GREEN_BUTTON<CR>
3.0.2
Action:
Power down or up, all outlets controlled by this trigger. Has the
same effect as if someone pressed both REBOOT Button #1 and
#2 at the same time for 2 seconds.
3.0.3
Response: If turning off outlets:
$ENTERING GREEN MODE<CR>
If turning on outlets
$LEAVING GREEN MODE<CR>
3.1 REBOOT 1
3.1.1
Command:
!REBOOT_1<CR>
3.1.2
Action:
Power cycle the outlets controlled by this trigger
Has the same effect as if someone pressed the
reboot button #1for 2 seconds.
Default is outlet 1
3.1.3
Response:
$BUTTON_1 = TRIGGERED<CR>
3.2 REBOOT 2
3.2.1
Command:
!REBOOT_2<CR>
3.2.2
Action:
Power cycle the outlets controlled by this trigger
Has the same effect as if someone pressed the
reboot button #2
Default is outlet 2
3.2.3
Response:
$ BUTTON_2 = TRIGGERED <CR>
3.3 ALL OFF
Turns off all outlets including those designated as always on. Turn off is immediate with
no delay.
3.3.1
Command:
!ALL_OFF<CR>
3.3.2
Action:
All outlet relays turn OFF. Terminates any running
turn on or turn off sequence. Overrides the DC trigger
input.
3.3.3
Response:
$PWR = OFF<CR>
3.4 ALL ON
Turns on all outlets. Turn on is immediate with no delay.
3.4.1
Command:
!ALL_ON<CR>
3.4.2
Action:
All outlet relays turn ON. Terminates any running
turn on or turn off sequence. Overrides the DC trigger
input.
3.4.3
Response:
If successful: $PWR = ON<CR>
If over-voltage fault: $PWR=OVERVOLTAGE<CR>
If under-voltage fault: $PWR =UNDERVOLTAGE<CR>
3.5 SWITCH OUTLET
Turns a specific outlet on or off. Switching is immediate with no delay.
3.5.1
Command:
!SWITCH
outlet state
<CR>
outlet
= {1..8}
state
= {ON, OFF}
Example: !SWITCH 2 ON<CR> (turns on outlet 2)
3.5.2
Action:
Immediately switches
outlet
to
state
.
3.5.3
Response:
If
outlet
or
state
are invalid, $INVALID_PARAMETER<CR>
If
outlet
and
state
are valid, and no fault exists, a
confirmation message is sent. Refer to §5.1.2.
If over-voltage fault:
$PWR = OVERVOLTAGE<CR>
If under-voltage fault: $PWR = UNDERVOLTAGE<CR>
If no fault
$OUTLET1 = ON<CR>
3.6 SET TRIGGER
Assigns the trigger(s) for an outlet.
3.6.1
Command:
!SET_TRIGGER
outlet triggersource
<CR>
outlet
= { 1..8 }
triggersource
= { NONE, BUTTON_1, BUTTON_2,
BUTTON_GREEN, TRIGIN}
where
NONE
= Outlet is always ON
BUTTON_n
= Trigger on front panel
button n where n is {1,2}.
BUTTON_GREEN
= Both buttons 1 & 2 being
pressed.
TRIGIN
= Trigger on DC input trigger.
Example: !SET_TRIGGER 3 TRIGIN<CR> (sets outlet 3
to be controlled by the DC trigger input).
3.6.2
Action:
Sets the trigger for
outlet
to
triggersource
.
Trigger commands are additive,
Eg.
!SET_TRIGGER 3 TRIGIN<CR>
!SET_TRIGGER 3 BUTTON_GREEN<CR>
Sets DC trigger and green button for outlet 3.
To clear triggers the NONE command must be used
.
3.6.3
Response:
If
outlet
and
triggersource
are valid:
$TRIGGER FOR outlet = triggersource<CR>
If
outlet
or
triggersource
are invalid, $INVALID_
PARAMETER<CR>