EMD – Extended multiplication and division

Block SymbolLicensing group: STANDARD
PIC

Function Description
The EMD block multiplies and divides analog input signals u1, u2, u3 and u4 with corresponding weights a, b, c and d. The output y is then given by

y = (au1 + a0)(bu2 + b0) (cu3 + c0)(du4 + d0). (4.1)

The output E is set to on in the case that the denominator in the equation (4.1) is equal to 0 and the output y is substituted by y = yerr.

Inputs

u1

First analog input of the block

Double (F64)

u2

Second analog input of the block

Double (F64)

u3

Third analog input of the block

Double (F64)

u4

Fourth analog input of the block

Double (F64)

Outputs

y

Analog output of the block

Double (F64)

E

Error flag – division by zero

Bool

Parameters

a

Weighting coefficient of the u1 input  1.0

Double (F64)

a0

Additive constant for u1 input

Double (F64)

b

Weighting coefficient of the u2 input  1.0

Double (F64)

b0

Additive constant for u2 input

Double (F64)

c

Weighting coefficient of the u3 input  1.0

Double (F64)

c0

Additive constant for u3 input

Double (F64)

d

Weighting coefficient of the u4 input  1.0

Double (F64)

d0

Additive constant for u4 input

Double (F64)

yerr

Substitute value for an error case  1.0

Double (F64)

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