Home AW-SYS Support Demo

 

Previous
Next

Example 3
AND of OR operation

Create A2.0 = (E0.0 OR E0.1) AND (E0.2 OR E0.3)

The solution ladder places two series switches (AND) in parallel (OR), to connect the corresponding operands and then the coil.

The AWL solution however requires some clarification as two new operations have been introduced. In the first place, note that after executing the second statement, the RLC contains the result of the logical combination OR between E0.0 and E0.1 (see Example 2). The next operation is to open brackets; The current RLC is ignored for the moment to be successively combined in AND with the result of the expression between brackets. The operation U( is an RLC delimiter and therefore the next statement will be the first of a new sequence. This means that the fourth statement (O E0.2) will be interpreted as loading the RLC with the status of E0.2 and, after executing the next statement, the RLC will contain the result of the logical combination E0.2 OR E0.3. The next statement to close the brackets will make the PLC execute the combination AND (the third was U() between the current RLC, the result of the OR between brackets, and the RLC that had been ignored, that is, the result of the first OR. The last statement ( = A2.0) transfers the content of the RLC, which at this time represents the logical combination (E0.0 OR E0.1) AND (E0.2 OR E0.3), to output A2.0.

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