EasyManua.ls Logo

Ecumaster ADU-5 - Page 106

Ecumaster ADU-5
137 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
List of operations available for mathematical channels.
FACTOR is a single multiplier in the A*B*C notation
RESULT is the calculated result of previous multiplications or divisions / division reminders
Operation Parameter Pseudocode
Channel or constant Result
1
FACTOR = Result
Constant Result
2
FACTOR = Result
Choose Condtion channel
Result if true
Result if false
if Condition_channel ≠ 0 then FACTOR = Result_if_true
else FACTOR = Result_if_false
Divide Value RESULT := RESULT DIV Value
(DIV – integer division; eg.: 9 DIV 2 = 4)
Modulo Value RESULT := RESULT MOD Value
(MOD - division reminder; eg.: 9 MOD 5 = 4)
Addition Value 1
Value 2
FACTOR = Value_1 + Value_2
Subtraction Value 1
Value 2
FACTOR = Value_1 - Value_2
Min Value 1
Value 2
if Value_1 < Value_2 then FACTOR = Value_1
else FACTOR = Value_2
Max Value 1
Value 2
if Value_1 > Value_2 then FACTOR = Value_1
else FACTOR = Value_2
Clamp Input
Min
Max
if Input < Min then FACTOR = Min
else if Input > Max then FACTOR = Max
else FACTOR = Input
Lookup2 Channel
First index
Value[A], Value[B]
if ChannelFirst_index then FACTOR = Value[A]
else FACTOR = Value[B]
Lookup3 Channel
First index
Value[A], Value[B]
Value[C]
if ChannelFirst_index then FACTOR = Value[A]
else if Channel = First_index+1 then FACTOR = Value[B]
else FACTOR = Value[C]
Lookup4 Channel
First index
Value[A], Value[B]
Value[C], Value[D]
if ChannelFirst_index then FACTOR = Value[A]
else if Channel = First_index+1 then FACTOR = Value[B]
else if Channel = First_index+2 then FACTOR = Value[C]
else FACTOR = Value[D]
1
- Constant value for Chanel or constant operation is in range [-16384, +16383]
2
- Constant value for Constant operation is in range [-32768, +32767]
Page 106/137

Table of Contents