NetLinx Programming
101
NX-Series Controllers - WebConsole & Programming Guide
AxLink SEND_COMMANDs
The following commands program the AxLink ports on the NX controller.
NOTE:
These commands are not compatible with Massio ControlPads.
Audit Log SEND_COMMANDs
The following command enables you to send an audit log from a device.
AxLink SEND_COMMANDs
Command
Description
AXPWROFF
Powers off the specified AxLink port.
Syntax:
SEND_COMMAND <DEV>,"'AXPWROFF <UPPER|LOWER>'"
Variable:
UPPER|LOWER = Specifies the AxLink port on the controller
Example:
SEND_COMMAND 5001:1:0,"'AXPWROFF UPPER'"
Powers off the upper AxLink port on the controller.
AXPWRON
Powers on the specified AxLink port.
Syntax:
SEND_COMMAND <DEV>,"'AXPWRON <UPPER|LOWER>'"
Variable:
UPPER|LOWER = Specifies the AxLink port on the controller
Example:
SEND_COMMAND 5001:1:0,"'AXPWRON LOWER'"
Powers on the lower AxLink port on the controller.
GET AX FAULT
Retrieve the AxLink port which currently has a fault.
Syntax:
SEND_COMMAND <DEV>,"'GET AX FAULT'"
Example:
SEND_COMMAND 5001:1:0,"'GET AX FAULT'"
Responds with the COMMAND event: ’AX FAULT: UPPER/LOWER’ or ’NONE’.
Audit Log SEND_COMMANDs
Command
Description
LOG
Sends Audit Logs to the Master for output via Syslog. The D:P:S of the sending device will be added to the audit log. It is
the sender's responsibility to ensure that the log conforms to the standard format (i.e. contains event type, component,
source if not the device itself, identity and outcome).
Syntax:
SEND_COMMAND <DEV>,"'LOG, <log text>'"
or
SEND_COMMAND <DEV>,"'LOG, <severity>, <log text>'"
Variable:
log text - the text of the log message
severity - 1=fatal, 2=error, 3=warning, 4=info, 5=debug
Example:
SEND_COMMAND <DEV>,"'LOG, TEST LOG'"
SEND_COMMAND <DEV>,"'LOG, 4, TEST LOG'"