Installation and Upgrading
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.
Setting the NetLinx Control Card Addresses (NI-4000 Only)
The
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
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.
| Position |
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 | ON position |
|
|
|
|
|
|
|
|
| 8 |
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Value |
| 12 |
| 24 |
| 48 |
| 96 |
| 192 |
| 384 |
| 768 | 1536 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
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:
16 |