The result of the math instructions is in ACCU1. The execution time of the instruction
depends on the value to calculate.
Com-
mand
Operand Parameter Function Length
in words
+R - Add up two real numbers (32bit)
(ACCU1)=(ACCU2)+(ACCU1)
1
-R - Subtract two real numbers (32bit)
(ACCU1)=(ACCU2)-(ACCU1)
1
*R - Multiply two real numbers (32bit)
(ACCU1)=(ACCU2)*(ACCU1)
1
/R - Divide two real numbers (32bit)
(ACCU1)=(ACCU2):(ACCU1)
1
NEGR - Negate the real number in ACCU1 1
ABS - Form the absolute value of the real number in ACCU1 1
Status word for: R BR CC1 CC0 OV OS OR STA RLO /FC
Instruction depends on - - - - - - - - -
Instruction influences -
ü ü ü ü
- - - -
Status word for: NEGR, ABS BR CC1 CC0 OV OS OR STA RLO /FC
Instruction depends on - - - - - - - - -
Instruction influences - - - - - - - - -
The result of the instructions is in ACCU1.
The instructions may be interrupted by alarms.
Com-
mand
Operand Parameter Function Length
in words
SQRT - Calculate the Square root of a real number in ACCU1 1
SQR - Form the square of a real number in ACCU1 1
Status word BR CC1 CC0 OV OS OR STA RLO /FC
Instruction depends on - - - - - - - - -
Instruction influences -
ü ü ü ü
- - - -
Floating-point arithmetic
(32bit)
Square root an square
instructions (32bit)
VIPA SPEED7
IL operations
Math instructions
HB00 | OPL_SP7 | Operation list | en | 18-30 32