Programming

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)

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:

PC COM Port Communication Settings

Baud

38400 (default)

 

 

Parity

None

 

 

Data Bits

8

 

 

Stop Bits

1

 

 

Flow Control

None

 

 

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

Program Port Commands

Command

Description

 

 

DATE

Displays the current date and day of the week.

 

 

DEVICE STATUS <D:P:S>

Displays a list of all active (on) channels for the specified D:P:S. Enter

 

DEVICE STATUS without the D:P:S variable, the Master Card displays

 

ports, channels, and version information.

 

 

DNS LIST <D:P:S>

Displays:

 

• Domain suffix

 

• Configured DNS IP Information

 

 

DOC FREE

Displays the total bytes of free space available on the Master Card's Disk

 

on Chip.

 

 

ECHO OFF

Disables terminal character's echo (display) function.

 

 

ECHO ON

Enables terminal character's echo (display) function.

 

 

 

110

NetLinx Integrated Controllers

 

 

 

Page 116
Image 116
AMX NI-2000, NI-3000, NI-4000 instruction manual Program Port Commands, PC COM Port Communication Settings