Figure 7.39: gcl logic for event trigger, Figure 7.40: event trigger configuration – B&B Electronics ADAM-6066 - Manual User Manual

Page 225

Advertising
background image

215

Chapter 7

9.

DI Event Trigger (Only Occurs Once)

We can simply use GCL to perform Event trigger. For this kind of appli-
cation, a DI channel is used to trigger some action. So, the input condition
of GCL logic rule will be if the DI value is logic True, and output of the
rule can be some desired action, such as sending remote message. When
the DI value becomes logic True, the input condition is satisfied. The
GCL logic rule will send message continuously until the DI value backs
to logic False. However, it is not what we plan. (We don't want the mes-
sage is sent out continuously. Instead, we want the message will only be
sent once at the first moment that the condition is satisfied.)
This kind of application can be simply achieved by using one counter
input channel. You can refer to figure 7.39 below. Select local counter
input channel (DI_Counter) in the Input condition for one logic rule.
There are two output used for the same logic rule, one is reset the counter
input channel, and another is the desired action you want. Then, when the
counter input channel detect DI signal, the condition is satisfied and the
desired action will be done. At the same time, the GCL rule reset the
counter input channel. So the desired action will only be executed once.

Figure 7.39: GCL Logic for Event Trigger

(Only Occurs Once)

The true image of configuration of GCL logic rule in ADAM.NET Utility
can be shown by Figure 7.40 below. (Here, the desired action is to send
remote message.)

Figure 7.40: Event Trigger Configuration

(Only Occurs Once)

AND

DI_Counter Reset

If DI_Counter ≧ 1

Desired Action

Advertising