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: | |
PORT: | |
| ports on the device) |
SYSTEM: |
Port Assignments
The following table outlines the Ports used by the
Port/Description | ICSP Port # |
|
|
Video Encoder | 1 |
|
|
2 | |
|
|
IR/Serial Port | 3 |
|
|
I/O Port | 4 |
|
|
IR RX Port | 5 |
|
|
LCD Display | 6 |
|
|
ALL Commands used on the
79 | |
|
|