### EMD – Extended multiplication and division

Block SymbolLicensing group: STANDARD

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

 $\mathtt{\text{y}}=\frac{\left(\mathtt{\text{a}}\ast \mathtt{\text{u1}}+\mathtt{\text{a0}}\right)\left(\mathtt{\text{b}}\ast \mathtt{\text{u2}}+\mathtt{\text{b0}}\right)}{\left(\mathtt{\text{c}}\ast \mathtt{\text{u3}}+\mathtt{\text{c0}}\right)\left(\mathtt{\text{d}}\ast \mathtt{\text{u4}}+\mathtt{\text{d0}}\right)}.$ (4.1)

The output $\mathtt{\text{E}}$ is set to on in the case that the denominator in the equation (4.1) is equal to $0$ and the output $\mathtt{\text{y}}$ is substituted by $\mathtt{\text{y}}=\mathtt{\text{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  $\odot$1.0 Double (F64) a0 Additive constant for u1 input Double (F64) b Weighting coefficient of the u2 input  $\odot$1.0 Double (F64) b0 Additive constant for u2 input Double (F64) c Weighting coefficient of the u3 input  $\odot$1.0 Double (F64) c0 Additive constant for u3 input Double (F64) d Weighting coefficient of the u4 input  $\odot$1.0 Double (F64) d0 Additive constant for u4 input Double (F64) yerr Substitute value for an error case  $\odot$1.0 Double (F64)

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