Device:port:system (d:p:s) – AMX NetLinx Integrated Controllers NXI-x000 Series User Manual

Page 20

Advertising
background image

Installation and Upgrading

16

NI-2000, NI-3000, NI-4000 Hardware Reference Guide

Setting the NetLinx Control Card Addresses (NI-4000 Only)

The 8-position CardFrame Number DIP switch (located on the rear of the NI-4000) sets the
starting address (the device number in the D:P:S specification) for the Control Cards installed
in the CardFrame. The address range is 1-3064.

The factory default CardFrame DIP switch value = 0 (all CardFrame DIP switches in the OFF

position).

The formula for setting the starting address is:

(DIP switch address x 12) + Card slot Number (1-12) = Card address

For example:

DIP switch setting, 00010101: (0 + 0 + 0 + 96 + 0 + 384 + 1536) + SLOT #(ex:1) = 2017.

A card in slot number 1 would be device address 2017.

1.

Set the CardFrame Number DIP switch based on the information listed in the table below.

2.

Cycle power to the unit for approximately 5 seconds. This allows the unit to read the new device
number settings.

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).
Only the Device value can be set through the DIP switch settings mentioned above.

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 a device is declared in a NetLinx program with just the Device number (System and Port are
omitted
), the NetLinx Compiler assumes it has a Port number of 1 and a System number of 0.
However, you should convert all existing device declarations using the D:P:S (Device:Port:System)
notation. This enables certain NetLinx specific debugging features and can help pinpoint other possibly
obscure errors.

Here's the syntax:

If the cards do not appear in the NetLinx Studio’s Workspace window for the selected
Master System number: give the system time to detect the inserted cards (and
refresh the system) and/or cycle power to the unit.

Position

1

2

3

4

5

6

7

8

Value

12

24

48

96

192

384

768

1536

ON position

Advertising