NORD Drivesystems BU0550 User Manual
Page 28
PLC logic for NORD SK 54xE frequency inverters
28
BU 0550 GB-0813
3.2.2.9
MUL and MUL(
Multiplication of the accumulator with one or more variables or constants.
For bracket multiplication, the accumulator is multiplied by the result of the expression in brackets. Up to 6
bracket levels are possible.
Both values must belong to the same type of variable.
BOOL
BYTE
INT
DINT
Possible data types
X
X
X
Commands
Explanation
LD 25
Load the multiplier
MUL Var1, Var2
25 * Var1 * Var2
ST Var2
Save the result
LD 25
Load the multiplier
MUL( Var1
Result = 25*(Var1 + Var2)
ADD Var2
)
ST Var3
Save the result as Var3
Table 19 MUL and MUL(
3.2.2.10 SUB and SUB(
Subtracts the accumulator from one or more variables or constants.
For bracket subtraction, the accumulator is subtracted from the result of the expression in brackets. Up to 6
bracket levels are possible.
The values to be subtracted must belong to the same type of variable.
BOOL
BYTE
INT
DINT
Possible data types
X
X
X
Commands
Explanation
LD 10
SUB Value1
Result = 10 - Value1
ST Value1
LD 20
SUB Value1,Value2,30
Result = 20 - Value1 - Value2 - 30
ST Value1
LD 20
SUB( 6
Subtract 20 from the contents of the bracket
AND 2
)
Result = 20 - (6 AND 2)
ST Value1
Save the result 18 in Var1
Table 20 SUB and SUB(