|
Output A2.5 is activated 5 seconds after input E0.0 is closed (even though this input is opened again during this time) and deactivated with the closure of input E0.1.
The operation of the retentive On-delay timer with reset can be obtained by
comparing the first two lines and the last line of the above time diagram. The
first two lines represent the input signals, and the last line is the resulting
output.
The first group of statements of the AWL program activates the timer T2 as a retentive On-delay (SS T2) following the rising edge of the input E0.0 (U E0.0) with a time constant of 5 seconds loaded in accumulator 1 (L KT500.0). The second group of statements resets the timer (R T2) corresponding to the high state of E0.1 (U E0.1). The final group copies the status of the timer (U T2) to the output of the PLC ( = A2.5).
More examples: |