Siemens CPU 948 Programming Manual page 130

Simatic s5 s5-155u
Table of Contents

Advertisement

Supplementary Operations
Table 3-20
Supplementary arithmetic operations
Operation
Operand
S ADD
BN
-128 to
+127
S ADD
KF
-32 768 to
+32 767
1)
S ADD
DH
0000 0000
to
FFFF FFFF
1)
S +D
1)
S -D
S TAK
1)
Programming is dependent on the PG type and the release of the PG system software.
2)
For changes in ACCU 2 and ACCU 3: see Section 3.5.1 "Basic Operations/Arithmetic Operations".
3 - 58
Function
Add a byte constant (fixed point) to ACCU-1-L (includes
sign change)/the condition code in CC 0, CC 1, OV and
OS are not affected! – ACCU-1-H and ACCUs 2 to 4
remain unchanged.
Add a fixed point constant (word) to ACCU-1-L/ the
condition codes in CC 0, CC 1, OV and OS are not
affected! – ACCU-1-H and ACCUs 2 to 4 remain unchanged.
Add a double word fixed point constant to ACCU 1/the
condition codes in CC 0, CC 1, OV and OS are not affected! –
ACCUs 2 to 4 remain unchanged.
Add two double word fixed point constants
(ACCU 2 + ACCU 1)/the result can be evaluated
2)
in CC 0/CC 1.
Subtract two double word fixed point constants
(ACCU 2 - ACCU 1)/the result can be evaluated in CC 0/CC 1.
Swap the contents of ACCU 1 and ACCU 2
2)
CPU 948 Programming Guide
C79000-G8576-C848-04

Advertisement

Table of Contents
loading

Table of Contents