AMX MAX-CSD10, MAX-CSE manual NetLinx Programming, Device Port System D P S, Port Assignments

Models: MAX-CSD10 MAX-CSE

1 116
Download 116 pages 15.94 Kb
Page 85
Image 85
NetLinx Programming

NetLinx Programming

NetLinx Programming

You can program the MAX unit by using the commands in this section to perform a wide variety of operations using Send_Commands and variable text commands. A device must first be defined in the NetLinx programming language with values for the Device: Port: System.

In these programming examples, <DEV> = Device. The term <D:P:S> = Device:Port:System.

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

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 device)

SYSTEM:

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

Port Assignments

The following table outlines the Ports used by the MAX-CSE and MAX-CSD10 by referencing their Port # assignments:

MAX-CSE Port Assignments

Port/Description

ICSP Port #

 

 

Video Encoder

1

 

 

RS-232/422/485 Serial Port

2

 

 

IR/Serial Port

3

 

 

I/O Port

4

 

 

IR RX Port

5

 

 

LCD Display

6

 

 

ALL Commands used on the MAX-CSE are case sensitive and must be entered as shown within this section.

MAX-CSE/MAX-CSD10 Operation/Reference Guide

79

 

 

Page 85
Image 85
AMX MAX-CSD10, MAX-CSE manual NetLinx Programming, Device Port System D P S, Port Assignments