Siemens SIMATIC S5-115U User Manual page 274

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

STEP 5 Operations
Condition Code Generation for Arithmetic Operations
Execution of arithmetic operations sets all condition codes according to the result of the arith-
metic operation (see Table 8-33).
Table 8-33. Condition Code Settings for Fixed-Point Arithmetic Operations
Result after
Arithmetic Operation
is Executed
< - 32768
- 32768 to - 1
0
+1 to +32767
> +32767
*
(-) 65536
* This number is the result of the calculation - 32768 - 32768
Condition Code Generation for Digital Logic Operations
Digital logic operations set CC 0 and CC 1. They do not affect the overflow condition code (see
Table 8-34). The setting depends on the contents of the ACCUM after the operation has been
processed.
Table 8-34. Condition Code Settings for Digital Logic Operations
Contents
of the
ACCUM
Zero (KH=0000)
Not zero
8-74
Condition Codes
CC 1
CC 0
1
0
0
1
0
0
1
0
0
1
0
0
Condition Codes
CC 1
CC 0
0
0
1
0
S5-115U Manual
Possible
Jump Operations
OV
1
JN, JP, JO
0
JN, JM
0
JZ
0
JN, JP
1
JN, JM, JO
1
JZ, JO
Possible
Jump Operations
OV
JZ
JN, JP
EWA 4NEB 811 6130-02b

Advertisement

Table of Contents
loading

Table of Contents