background image

Programming

1

 NetLinx Integrated Controller (No Master) - Operation Reference Guide

Programming

Overview

This section describes the Send_Commands, Send_Strings, and Channel commands you can use to program the NXI. 
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.

Using the ID Button

The ID Button on the rear panel of the NXI (FIG. 3 on page 1) is used in conjunction with the NetLinx Studio software 
program to allow you to assign new Device and System numbers for the NXI.

1.

Using NetLinx Studio, place the system in Identity (ID) Mode. ID Mode means the entire system is put on hold 
while it waits for an event from any NetLinx device in the named system (for example, pushing the ID button on the 
NXI). The device that generates the first event is the identified device.

2.

Press the ID Mode button to generate an event from the NXI and assign new device and system numbers in NetLinx 
Studio.

Device:Port:System (D:P:S)

A device is any hardware component that can be connected to an AXlink or ICSNet bus. Each device must be assigned a 
unique number to locate that device on the bus. The NetLinx programming language allows numbers in the range 0-
32,767. Device 0 refers to the local master; numbers greater than 32,767 are reserved.

NetLinx requires a Device:Port:System (D:P:S) specification. This D:P:S triplet can be expressed as a series of 
constants, variables separated by colons, or a DEV structure. For example:

STRUCTURE DEV

{

INTEGER Number  // Device number

INTEGER Port    // Port on device

INTEGER System  // System the device belongs to

}

The D:P:S notation is used to explicitly represent a device number, port and system. For example, 128:1:0 represents the 
first port on device 128 on this system. If the system and Port specifications are omitted, (e.g. 128), system 0 (indicating 
this system) and port 1 (the first port) is assumed. Here's the syntax:

NUMBER:PORT:SYSTEM

where:

Program Port Commands

The Program port commands listed in the following table can be sent directly to the Master Card using a terminal 
program (i.e. Telnet). Be sure that your PC's COM port and terminal program's communication settings match those in 
the table below:

In your terminal program, type "Help" or a question mark ("?") and <Enter> to display the Program port commands 
listed in the following table.

NUMBER:

16-bit integer represents the device number

PORT:

16-bit integer represents the port number (in the range 1 through the number of 
ports on the Controller or device)

SYSTEM:

16-bit integer represents the system number (0 = this system)

PC COM Port Communication Settings

Baud

38400 (default)

Parity

None

Data Bits

8

Stop Bits

1

Flow Control

None

Summary of Contents for NetLinx NXI

Page 1: ...Operation Reference Guide Product Category NXI NetLinx Integrated Controller No Master Last Revised 3 04 2013...

Page 2: ...ked on the outside of each box The RMA is valid for a 30 day period After the 30 day period the RMA will be cancelled Any shipments received not consistent with the RMA or after the RMA is cancelled w...

Page 3: ...fications 1 Relay Connections and Wiring 1 IR Serial Connections and Wiring 2 Input Output I O Connections and Wiring 2 Programming 1 Overview 1 Using the ID Button 1 Device Port System D P S 1 Progra...

Page 4: ...programs 4 Linux Telnet client 4 LED Disable Enable SEND_COMMANDs 4 LED DIS 4 LED EN 4 ESC D 4 ESC H 4 RS232 422 485 Ports Channels 5 255 5 RS 232 422 485 SEND_COMMANDs 5 B9MOFF 5 B9MON 5 CHARD 5 CHA...

Page 5: ...oller No Master Operation Reference Guide CP 9 CTOF 9 CTON 9 GET MODE 9 IROFF 10 POD 10 POF 10 PON 10 PTOF 10 PTON 11 SET IO LINK 11 SET MODE 11 SP 11 XCHM 12 XCH 12 ZAP HIGH 12 Input Output SEND_COMM...

Page 6: ...4 NetLinx Integrated Controller No Master Operation Reference Guide Table of Contents...

Page 7: ...he NXI is equipped with a removable faceplate that covers the front panel components FIG 1 Remove the faceplate to see the front panel containing groups of colored LED indicators that light when their...

Page 8: ...N and POF commands Channel 255 feedback Power status when IOLink is set I O port Port 16 8 channel I O port for contact closure 0 5 VDC voltage sensing or interactive power sensing for IR ports Channe...

Page 9: ...werFail used with PON and POF commands Channel 255 Power status when IOLink is set I O port Port 16 8 channel I O port for contact closure 0 5 VDC voltage sensing or interactive power sensing for IR p...

Page 10: ...NXI NetLinx Integrated Controller 4 NetLinx Integrated Controller No Master Operation Reference Guide...

Page 11: ...ntil you feel the rear edge of the card lightly snap into place 9 Re apply power and other connections as necessary Preparing connecting captive wires 1 Strip 0 25 inch of wire insulation off all wire...

Page 12: ...high 3 5 5 VDC signal as a Release When used for outputs the I O port acts as a switch to GND and is rated at 200 mA 12 VDC The PWR pin 12VDC 200 mA is designed as a power output for the PCS2 or VSS2...

Page 13: ...guage allows numbers in the range 0 32 767 Device 0 refers to the local master numbers greater than 32 767 are reserved NetLinx requires a Device Port System D P S specification This D P S triplet can...

Page 14: ...that is defined in the DEFINE_DEVICE section of the program See ESC Pass Codes on page 3 for descriptions of the escape codes available in pass mode PING Tests network connectivity to and confirms th...

Page 15: ...messages will be shown starting with the most recent SHOW NOTIFY Displays a list of devices that other systems have requested input from and the types of information needed Note that the local system...

Page 16: ...e telnet RAFT If the code to go back to command mode is entered ALT 29 which is the character is not sent but telnet command mode is entered LED Disable Enable Send_Commands The following commands ena...

Page 17: ...munication parameters to nine data bits one stop bit and locks in the baud rate CHARD Sets the delay time between transmitted characters in 100 microsecond increments Syntax SEND_COMMAND DEV CHARD Tim...

Page 18: ...SEND_COMMAND DEV TSET BAUD Baud Parity Data Stop 485 DISABLE ENABLE HSOFF Disables hardware handshaking default Syntax SEND_COMMAND DEV HSOFF Example SEND_COMMAND RS232_1 HSOFF Disables hardware hand...

Page 19: ...Syntax SEND_STRING DEV 27 17 Time Variable Time 1 255 in 100 microsecond increments Example SEND_STRING RS232_1 27 17 10 Sends a break character of 1 millisecond to the RS232_1 device 27 18 1 Sets th...

Page 20: ...e Syntax SEND_STRING DEV 27 20 1 Example SEND_STRING RS232_1 27 20 1 Sets the RTS hardware handshaking output to High on the RS232_1 device IR Serial Ports Channels 00001 00229 IR commands 00229 00253...

Page 21: ...times with the CTON and CTOF commands Syntax SEND_COMMAND DEV CP Number Variable Number 1 252 and 256 65 000 253 255 reserved Example SEND_COMMAND IR_1 CP 2 Clears the active buffered commands and pu...

Page 22: ...d after receipt of this command You can only use the PON and POF commands when an IR device has a linked I O channel Syntax SEND_COMMAND DEV POF Example SEND_COMMAND IR_1 POF Sends power down IR comma...

Page 23: ...ntax SEND_COMMAND DEV SET IO LINK Number Variable Number 1 8 set the I O channel to 0 to disable I O link settings Example SEND_COMMAND IR_1 SET IO LINK 1 Sets the IR_1 port link to I O channel 1 The...

Page 24: ...4 enter SEND_COMMAND IR_1 XCH 343 Transmits the IR code as 3 4 3 enter Mode 2 Example x x x SEND_COMMAND IR_1 XCH 3 Transmits the IR code as 0 0 3 SEND_COMMAND IR_1 XCH 34 Transmits the IR code as 0...

Page 25: ...nnel changes Pushes and Releases generate reports based on their active state Syntax SEND_COMMAND DEV GET INPUT CHAN Variable CHAN 1 8 Example SEND_COMMAND IO GET INPUT 1 Gets the I O port s active st...

Page 26: ...tion knowledge In the ever changing AV industry continual education is key to success AMX University is dedicated to ensuring that you have the opportunity to gather the information and experience you...

Reviews: