ADDQUAD, ADDOCT, ADDHEXD – Multi-input addition

Block SymbolsLicensing group: STANDARD
PIC PIC PIC

Function Description
The ADDQUAD, ADDOCT and ADDHEXD blocks sum (or subtract) up to 16 input signals. The nl parameter defines the inputs which are subtracted instead of adding. For an empty nl parameter the block output is given by y= u1 + u2 + u3 + u4 + u5 + u6 + u7 + + u16. For e.g. nl=2,5,7, the block implements the function y = u1u2 + u3 + u4u5 + u6u7 + + u16.

Note that the ADD and SUB blocks are available for simple addition and subtraction operations.

Inputs

u1..u16

Analog input signals

Double (F64)

Output

y

Resulting value

Double (F64)

Parameter

nl

List of signals to subtract instead of adding. 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)

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