Axess Ready CM-1115-RT-AR Instalační příručka Strana 28

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 31
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 27
CM-1115(20)-RT-AR User Manual
Page 27
VIII. DxP Protocol
(continued)
Payloads
TChangeRelay
typedef struct{
unsigned char relay;
unsigned char state;
} TChangeRelay;
Where relay is the number of the relay to be affected 1 (For example, 0 for relay 1 and 1
for relay 2) and state sets the state of the relay (1=Energize; 2=Relax).
TChangeRelays
typedef struct{
unsigned char relayStates[32];
}TChangeRelays;
Where relayStates is an array of relay states as defined below:
#define NO_CHANGE 0
#define ENERGIZE 1
#define RELAX 2
This payload is supported by devices that support the DxP protocol with 2-32
controllable relays.
TPulseRelay
typedef struct{
unsigned char relay; //the relay to be pulsed
unsigned char state; //the state to pulse
uint16 pulseWidth; //the pulse width in seconds
}TPulseRelay;
Where relay is the number of the relay to be affected, state is the state to pulse,
and pulseWidth is the time to pulse in seconds.
Zobrazit stránku 27
1 2 ... 23 24 25 26 27 28 29 30 31

Komentáře k této Příručce

Žádné komentáře