Specifications
NetLinx Programming
72
NX-Series Controllers - WebConsole & Programming Guide
NetLinx Programming
Overview
This section describes the Send_Commands, Send_Strings, and Channel commands you can use to program the Master.
The examples in this section require a declaration in the DEFINE_DEVICE section of your program to work correctly.
Refer to the NetLinx Programming Language instruction manual for specifics about declarations and DEFINE_DEVICE
information.
Note: All file names on the X-Series controllers are case sensitive. This includes all user files created or used within
NetLinx or Java code. If you have legacy code that uses files, it is important that you verify that every reference to each
file is consistent with regard to case. If your legacy code generates an error when accessing a file, it is likely due to
inconsistent use of case in the filename.
Port Assignments by NetLinx Master
Master SEND_COMMANDs
These commands are specific to the Master and not the Controller. These commands are sent to the DPS 0:1:0 (the
Master you are connected to).
A device (<DEV>) must first be defined in the NetLinx programming language with values for the Device: Port: System
(<D:P:S>).
Port Assignments By Master
Master RS-232 RS-232/422/485 IR/Serial IR/RX Relays I/O PoE
NX-1200 Port 2 Port 1 Ports 11-12 Port 20 N/A Port 22 N/A
NX-2200 Ports 2-4 Port 1 Ports 11-14 N/A Port 21 Port 22 N/A
NX-3200 Ports 2-4, 6-8 Ports 1, 5 Ports 11-18 N/A Port 21 Port 22 N/A
NX-4200 Ports 2-4, 6-8 Ports 1, 5 Ports 11-18 N/A Port 21 Port 22 Ports 24-27
Master SEND_COMMANDs
Command Description
CLOCK Set the date and time on the Master. The date and time settings are propagated over the local
bus.
Syntax:
SEND_COMMAND <DEV>,"'CLOCK <mm-dd-yyyy> <hh:mm:ss>'"
Variables:
mm-dd-yyyy = Month, day, and year. Month and day have 2 significant digits. Year has 4
significant digits.
hh-mm-ss = Hour, minute, and seconds. Each using only 2 significant digits.
Example:
SEND_COMMAND 0,"'CLOCK 04-12-2005 09:45:31'"
Sets the Master's date to April 12, 2005 with a time of 9:45 am.










