Siemens SIMATIC IM 151/CPU Manual page 173

Interface module for et 200s distributed i/o system
Table of Contents

Advertisement

B.25
Floating-Point Math Instructions (32 Bits)
The result of the math instructions is in ACCU1. The execution time of the
instruction depends on the value to be calculated.
In-
Address
struc-
ID
tion
+R
Add 2 real numbers (32 bits)
(ACCU1)=(ACCU2)+(ACCU1)
–R
Subtract 2 real numbers (32 bits)
(ACCU1)=(ACCU2)–(ACCU1)
R
Multiply 2 real numbers (32 bits)
*
(ACCU1)=(ACCU2)
/R
Divide 2 real numbers (32 bits)
(ACCU1)=(ACCU2)
Status word for:
+R, –R,
Instruction depends on:
Instruction controls:
NEGR –
Negate real number in ACCU1
ABS
Make absolute value of the real number in
ACCU1
Status word for:
NEGR, ABS
Instruction depends on:
Instruction controls:
B.26
Addition of Constants
Addition of integer constants to ACCU1. The indicators are not affected.
In-
Address
struc-
ID
tion
+
i8
Add an 8-bit integer constant
+
i16
Add a 16-bit integer constant
+
i32
Add an 32-bit integer constant
ET 200S Interface Module IM 151/CPU
A5E00058783-01
Description
(ACCU1)
*
(ACCU1)
:
R, /R
BR
A1
*
Yes
BR
A1
Description
Length
Typical Execution Time in
in
Words
1
1
1
1
A0
OV
OS
Yes
Yes
Yes
1
1
A0
OV
OS
Length
Typical Execution Time in
in
Words
1
2
3
Instruction List
s
< 35
< 35
< 35
< 40
OR
STA
RLO
/FC
0.3
0.3
OR
STA
RLO
/FC
s
0.3
0.3
0.6
B-39

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents