|
Create A2.2 = E0.0 OR E0.1 The output A2.2 should only be activated if at least one of the switches
connected to inputs E0.0 or E0.1 is closed.
The AWL solution is obtained by first loading the status of E0.0 in the RLC register (O E0.0). In fact the operation is really an OR but as it is the first of a sequence it is interpreted as a bit loading operation and therefore the status of the operand is copied into RLC. In this case the statement is identical to U E0.0, and they may be interchanged to obtain a program that functions in exactly the same way. An OR is then performed between the RLC and input E0.1 (O E0.1). The result is then again placed in the RLC. This statement is not the first of a sequence and so the operation is interpreted as a real OR. The last statement (= A2.2) transfers the content of the RLC, which at this precise time represents the logical combination E0.0 OR E0.1, to output A2.2.
More examples: |