Amx NetLinx Integrated Controllers NI-3000 Manuel d'utilisateur Page 129

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 134
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 128
Programming
123
NetLinx Integrated Controllers
Input/Output Send_Commands
The following Send_Commands program the I/O ports on the Integrated Controller.
I/O SEND_COMMANDS
GET INPUT
Gets the input channels
active state.
An active state can be high (logic high) or low (logic low or contact closure).
Channel changes, Pushes, and Releases generate reports based on their
active state.
Syntax:
SEND_COMMAND <DEV>,'GET INPUT <CHAN>'
Variable:
CHAN = 1-8
Example:
SEND_COMMAND IO,'GET INPUT 1'
Gets the I/O port's active state.
System response:
INPUT1 ACTIVE HIGH
SET INPUT
Sets the input channel's
active state.
An active state can be high (logic high) or low (logic low or contact closure).
Channel changes, Pushes, and Releases generate reports based on their
active state. Setting an input to ACTIVE HIGH will disable the output for that
channel.
Syntax:
SEND_COMMAND <DEV>,'SET INPUT <Channel> <State>'
Variable:
State = LOW or HIGH
Example:
SEND_COMMAND IO,'SET INPUT 1 HIGH'
Sets the I/O channel to detect a high state change, and disables output on the
channel.
Vue de la page 128

Commentaires sur ces manuels

Pas de commentaire