Figure 7.32: ladder diagram for rising edge, Figure 7.32:ladder diagram for rising edge – B&B Electronics ADAM-6066 - Manual User Manual

Page 220

Advertising
background image

ADAM-6000 Series User Manual

210

You can see that DO 0 will only be triggered when rising edge of DI 0
occurs. In the example project we provide, the DO status will remain
logic high for 1 second. Then it will back to logic low. When PLC is used
for this kind of application, the ladder diagram will look similar to Figure
7.32 below:

Figure 7.32: Ladder Diagram for Rising Edge

When you use GCL to achieve rising edge application, 3 logic rules, 1
Internal Timer (Timer 0) and 1 Internal Flag (Flag 0) are needed. Refer to
Figure 7.33 below for GCL logic architecture. With logic rule 3, DO 0
value is controlled by DI 0 and Flag 0. Flag 0 is initially set as False.
When rising edge occurs (DI value changes from logic low to logic high),
DO will be activated (logic rule 3 are satisfied), and Timer 0 starts to
count time (logic rule 1 are satisfied). After Timer 0 counts up to the spe-
cific time interval (1 second), Flag 0 will become logic True by logic rule
2, making DO 0 value logic low (logic rule 3 are not satisfied). The GCL
architecture is similar to the ladder diagram.

( )

T0

[ ]

T0 ≧ 1

( )

DI 0

( )

Flag0

DO 0

DI 0

Flag0

Advertising