Go to documentation repository
Page History
...
The GRELE object sends events presented in the table. Procedure is started when the corresponding event appears.
Format of events procedure for the relay:
| Code Block |
|---|
OnEvent("GRELE", "_id_","_event_") |
Event | Description |
"OFF" | Relay Off. |
"ON" | Relay On. |
"SIGNAL_LOST" | Connection lost. |
Operator format to describe actions with the relay is:
| Code Block |
|---|
DoReact("GRELE","_id_","_command_"); |
...
List of commands and parameters for the the GRELE object is presented in the following table:
Command – command description | Parameters | Description |
"ON" - enable relay. | - | - |
"OFF" - disable relay. | - | - |
"SETUP" – settings for relay. | chan <> | Output number (0 – 15). |
flags<> | Flags. | |
name<> | Object name. |
Properties of the GRELE object are shown in the table.
Properties of the GRELE object | Description of properties |
ID<> | Object ID. |
PARENT_ID<> | Parent object ID. |
REGION_ID<> | Region ID. |
Check function of the GRELE object state:
| Code Block |
|---|
CheckState("GRELE","number","state") |
The GRELE The GRELE object can be in the following states:
State of the GRELE object | State description |
"ON" | Relay ON. |
"OFF" | Relay OFF. |
"DETACHED_ON" | Connection lost. |
"DETACHED_OFF" | Connection |
Examples of using events and reactions of the Relay object:
...
lost. |
...