Amx Signature Series NetLinx Integrated Controller NI- Manuel d'utilisateur Page 125

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 156
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 124
Programming
115
NI-3101-SIG Signature Series NetLinx Integrated Controller
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 > Te c h 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 Description
CLOCK
Set the date and time on the
Master.
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.
Vue de la page 124
1 2 ... 120 121 122 123 124 125 126 127 128 129 130 ... 155 156

Commentaires sur ces manuels

Pas de commentaire