### ORQUAD, OROCT, ORHEXD – Logical sum of multiple signals

Block SymbolsLicensing group: STANDARD   Function Description
The ORQUAD, OROCT and ORHEXD blocks compute the logical sum of up to sixteen input signals U1, U2, …, U16. The signals listed in the nl parameter are negated prior to computing the logical sum.

For an empty nl parameter a simple logical sum $\mathtt{\text{Y}}=\mathtt{\text{U1}}\vee \mathtt{\text{U2}}\vee \mathtt{\text{U3}}\vee \mathtt{\text{U4}}\vee \mathtt{\text{U5}}\vee \mathtt{\text{U6}}\vee \mathtt{\text{U7}}\vee \dots \vee \mathtt{\text{U16}}$ is computed. For e.g. nl=1,3..5, the logical function is $\mathtt{\text{Y}}=¬\mathtt{\text{U1}}\vee \mathtt{\text{U2}}\vee ¬\mathtt{\text{U3}}\vee ¬\mathtt{\text{U4}}\vee ¬\mathtt{\text{U5}}\vee \mathtt{\text{U6}}\vee \dots \vee \mathtt{\text{U16}}$.

If you have only two input signals, consider using the OR_ block.

Inputs

 U1..U16 Logical inputs of the block Bool

Outputs

 Y Result of the logical operation Bool NY Boolean complementation of Y Bool

Parameter

 nl List of signals to negate. The format of the list is e.g. 1,3..5,8. Third-party programs (Simulink, OPC clients etc.) work with an integer number, which is a binary mask, i.e. 157 (binary 10011101) in the mentioned case. Long (I32)

2020 © REX Controls s.r.o., www.rexygen.com