Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The GRELE object sends events presented in the table.   Procedure is started when the corresponding event appears.

...

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 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:

...

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 lost

.

 Examples of using events and reactions of the Relay object:

...