Home AW-SYS Support Demo

 

Previous
Next

Example 2
OR operation

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 solution ladder is obtained by connecting the parallel of the two switches, with operands E0.0 and E0.1 in series with the coil A2.2. In fact, the logical combination OR, translated into a ladder diagram, is equivalent to the parallel of two contacts: the tops of the parallel circuit "show" that the circuit is closed when at least one of the contacts is closed. therefore this is the condition that activates the coil.

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: 1 ] [ 2 ] 3 ] 4 ] 5 ] 6 ] 7 ] 8 ] 9 ] 10 ] 11 ] 12 ] 13 ] 14 ] 15 ] 16 ] 17 ] 18 ] 19 ] 20 ] 21 ] 22 ] 23 ] 24 ] 25 ] 26 ] 27 ] 28 ] 29 ] [ List ]
More PLCs examples: Not still available