Professional Documents
Culture Documents
SIMATIC S7
Siemens AG 2001. All rights reserved.
Date:
File:
09.01.2015
PRO2_02E.1
SIMATIC S7
Siemens AG 2001. All rights reserved.
Date:
File:
09.01.2015
PRO2_02E.2
V1
V2
V2
V1
before
after
TAK
S7-400:
ACCU4
ACCU3
ACCU2
ACCU1
before
SIMATIC S7
Siemens AG 2001. All rights reserved.
V4
V3
V1
V2
V4
V3
V2
V1
TAK
Date:
File:
09.01.2015
PRO2_02E.3
after
ACCU2
ACCU1
before
PUSH
V2
V2
V2
V1
V1
V1
V2
V1
after
before
POP
after
S7-400:
ACCU4
ACCU3
ACCU2
ACCU1
V4
V3
V2
V1
before
SIMATIC S7
Siemens AG 2001. All rights reserved.
PUSH
V3
V2
V1
V1
V4
V3
V2
V1
after
before
Date:
File:
09.01.2015
PRO2_02E.4
V4
V4
V3
V2
POP
after
V3
V2
V2
V1
V4
V3
V2
V1
before
after
LEAVE:
ACCU4
ACCU3
ACCU2
ACCU1
V4
V4
V3
V1
V4
V3
V2
V1
before
SIMATIC S7
Siemens AG 2001. All rights reserved.
after
Date:
File:
09.01.2015
PRO2_02E.5
Arithmetic Instructions
S7-300:
ACCU2
ACCU1
V2
V2 op V1
V2
V1
op: +., -., *., /.
before
after
S7-400:
ACCU4
ACCU3
ACCU2
ACCU1
V4
V4
V3
V2 op V1
V4
V3
V2
V1
before
SIMATIC S7
Siemens AG 2001. All rights reserved.
Date:
File:
09.01.2015
PRO2_02E.6
after
V2
V2 op V1
V2
V1
before
after
S7-400:
ACCU4
ACCU3
ACCU2
ACCU1
before
SIMATIC S7
Siemens AG 2001. All rights reserved.
V4
V3
V2
V2 op V1
V4
V3
V2
V1
op: A.., O.., X..,
Date:
File:
09.01.2015
PRO2_02E.7
after
ACCU1-HH
ACCU1-HL
ACCU1-LH
V4
V3
V2
V1
V4
V3
V1
V2
V4
V3
V2
V1
V1
V2
V3
V4
ACCU1-LL
CAD:
SIMATIC S7
Siemens AG 2001. All rights reserved.
Date:
File:
09.01.2015
PRO2_02E.8
ACCU1-HH
V4
ACCU1-HL
V3
ACCU1-LH
V2
ACCU1-LL
V1
+ <const>
V4
V3
V2
V1+<const>
V4
V3
V2
V1
DEC <const>:
- <const>
V4
SIMATIC S7
Siemens AG 2001. All rights reserved.
V3
Date:
File:
V2
09.01.2015
PRO2_02E.9
V1-<const>
ACCU1-H
15
ACCU1-L
0 1 0 0 0 0 1 0 0 1 0 0 1 0 0 1 1 0 0 0 1 1 0 0 0 1 0 0 0 1 1 1
15
31
0 1 0 0 0 0 1 0 0 1 0 0 1 0 0 1 0 1 1 1 0 0 1 1 1 0 1 1 1 0 0 0
ACCU1-H
15
ACCU1-L
0 1 0 0 0 0 1 0 0 1 0 0 1 0 0 1 1 0 0 0 1 1 0 0 0 1 0 0 0 1 1 1
15
31
1 0 1 1 1 1 0 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 1 1 1 0 1 1 1 0 0 0
SIMATIC S7
Siemens AG 2001. All rights reserved.
Date:
File:
09.01.2015
PRO2_02E.10
31
0 1 0 0 0 0 1 0 0 1 0 0 1 0 0 1 1 0 0 0 1 1 0 0 0 1 0 0 0 1 1 1
Ones Complement 0
31
1 0 1 1 1 1 0 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 1 1 1 0 1 1 1 0 0 0
Addition of +
31
1 0 1 1 1 1 0 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 1 1 1 0 1 1 1 0 0 1
Exponent = 8 Bit
= 1.3125
0
23 22
0 0 1 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 1 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
SIMATIC S7
Siemens AG 2001. All rights reserved.
Date:
File:
09.01.2015
PRO2_02E.11
0 1 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ACCU1
CC1 Bit
0 1 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ACCU1
CC1 Bit
SIMATIC S7
Siemens AG 2001. All rights reserved.
Date:
File:
09.01.2015
PRO2_02E.12
Pushwheel button
x
convert to
INT
BTI
ACCU1
multiply
by *I
Copy
with PUSH
ACCU1
ACCU2
SIMATIC S7
Siemens AG 2001. All rights reserved.
Date:
File:
09.01.2015
PRO2_02E.13
ACCU1 - L (before)
CAW
SIMATIC S7
Siemens AG 2001. All rights reserved.
Date:
File:
09.01.2015
PRO2_02E.14
ACCU1 - L (after)
Bit 15
1
Bit 0
.
ACCU1-L (after)
Bit 15
0
SIMATIC S7
Siemens AG 2001. All rights reserved.
Date:
File:
09.01.2015
PRO2_02E.15
Bit 0
.