ADDOCT – Addition of eight signals

Block SymbolLicensing group: STANDARD
PIC

Function Description
The ADDOCT block sums (or subtracts) up to 8 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 + u8. For e.g. nl=2,5,7, the block implements the function y = u1u2 + u3 + u4u5 + u6u7 + u8.

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

Inputs

u1

First analog input of the block

double

u2

Second analog input of the block

double

u3

Third analog input of the block

double

u4

Fourth analog input of the block

double

u5

Fifth analog input of the block

double

u6

Sixth analog input of the block

double

u7

Seventh analog input of the block

double

u8

Eighth analog input of the block

double

Output

y

Sum of the input signals

double

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