Programming; Converting Axcess Code To Netlinx Code; Master Send_Commands - AMX NetLinx NI-3101-SIG Operation/Reference Manual

Signature series netlinx integrated controller
Hide thumbs Also See for NetLinx NI-3101-SIG:
Table of Contents

Advertisement

Programming

This section describes the Send_Commands, Send_Strings, and Channel commands you can use to
program the Integrated Controller. The examples in this section require a declaration in the
DEFINE_DEVICE section of your program to work correctly. Refer to the NetLinx Programming
Language instruction manual for specifics about declarations and DEFINE_DEVICE information.

Converting Axcess Code to NetLinx Code

In order to compile existing Axcess code to NetLinx code, minor modifications will be required. These
modifications include identifier names that conflict with NetLinx identifiers, warning on variable type
conversions, and stricter syntax rules.
For more information on NetLinx standards and conversion recommendations, go to www.amx.com and
click on Dealers > Tech Center > Tech Notes. You can either search for the documents (such as
NetLinx Programming Standards and Converting Axcess Code to NetLinx Code) or Tech Notes (TN
numbers: 186, 249, 261, and 310).
Refer to the NetLinx Programming Instruction Manual for more detailed information on the differences
between the two codes and how they can be re-written. The section is called Converting Axcess Code to
NetLinx Code.

Master Send_Commands

These commands are specific to the Master and not the Controller. These commands are sent to the DPS
0:1:0 (the Master). 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.
Master Send_Commands
Command
CLOCK
Set the date and time on the
Master.
NI-3101-SIG Signature Series NetLinx Integrated Controller
Description
The date and time settings are propagated over the local bus.
Syntax:
SEND_COMMAND <DEV>,"'CLOCK <mm-dd-yyyy> <hh:mm:ss>'"
Variables:
mm-dd-yyyy = Month, day, and year. Month and day have 2 significant digits.
Year has 4 significant digits.
hh-mm-ss = Hour, minute, and seconds. Each using only 2 significant digits.
Example:
SEND_COMMAND 0,"'CLOCK 04-12-2005 09:45:31'"
Sets the Master's date to April 12, 2005 with a time of 9:45 am.
Programming
137

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fg2105-08

Table of Contents