Siemens Simatic S7-300 Service Manual Page 64

  • Download
  • Add to my manuals
  • Print
  • Page
    / 272
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 63
Counter Instructions
Statement List (STL) for S7-300 and S7-400 Programming
4-4
A5E00706960-01
4.4 LC Load Current Counter Value into ACCU 1 as BCD
Format
LC <counter>
Address Data type Memory area Description
<counter> COUNTER C Counter, range
depends on CPU.
Description
LC <counter> loads the count of the addressed counter as a BCD number into
ACCU 1 after the old contents of ACCU 1 have been saved into ACCU 2.
Status word
BR CC 1 CC 0 OV OS OR STA RLO /FC
writes: - - - - - - - - -
Example
STL Explanation
LC C3 //Load ACCU 1-L with the count value of counter C3 in binary coded decimal
format.
Contents o
f
A
CCU1-L afte
r
Load instruction
LC C3
Counter value (0 to 999) in binary coding
codiert
LC Z3
Counter value in BCD
Counter word
for counter C3
in memory
2
0
2
1
2
2
2
3
2
4
2
5
2
6
2
7
2
8
2
9
2
10
2
11
2
12
2
13
2
14
2
15
2
0
2
1
2
2
2
3
2
4
2
5
2
6
2
7
2
8
2
9
2
10
2
11
2
12
2
13
2
14
2
15
000
0
10
1
Tens 10
0
Ones10
2
Hundreds
Page view 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 ... 271 272

Comments to this Manuals

No comments