|
One push button connected to input I0.0 should activate output Q0.15 and a second push button connected to input I0.1 should deactivate it. The program ladder proposed as a solution shows a holding circuit. Pressing the button connected to E0.0 activates the coil A3.7 and closes the contact with the same operand in the second line (as if the contact and the coil were part of the same relay A3.7).This maintains the coil activated even after I0.0 is opened. Pressing the button of input E0.1 causes the switch, which is normally closed, to open deactivating the coil and releasing the holding circuit.
The AWL program proposes a conversion of the above. The value of the output A3.7 in the last statement is calculated by loading the status of E0.0, later evaluating the OR with A3.7 and finally, placing the result with the complement of E0.1 in AND.
More examples: |