Programming

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 1-32,767 for ICSNet (255 for AXlink).

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:

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)

Configuration Port Commands

The Configuration 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:

PC COM Port Communication Settings

Baud

115200 (default)

 

 

Parity

None

 

 

Data Bits

8

 

 

Stop Bits

1

 

 

Flow Control

None

 

 

Each of the NetLinx Integrated Controllers has specific port assignments:

NI-2x00 Port Assignments

Serial

Ports 1

- 3

 

 

 

Relays

Port 4

 

 

 

 

IR

Ports 5

-8

 

 

 

I/Os

Port 9

 

 

 

Count

4 relays and 4 I/O's

 

 

 

NI-4x00 & NI-3x00) Port Assignments

Serial

Ports 1

- 7

 

 

 

Relays

Port 8

 

 

 

 

IR

Ports 9

-16

 

 

 

I/Os

Port 17

 

 

 

Count

8 relays and 8 I/O's

 

 

 

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

Configuration Port Commands

Command

Description

 

 

DATE

Displays the current date and day of the week.

 

Example:

 

>DATE

 

10/31/2004 Wed

 

 

118

NI-3101-SIG Signature Series NetLinx Integrated Controller

Page 128
Image 128
AMX NI-3101-SIG manual Configuration Port Commands, DevicePortSystem DPS