EasyManua.ls Logo

Siemens SIMATIC S7 - Page 273

Siemens SIMATIC S7
866 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Program instructions
7.6 Counters
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
273
HSC Control bytes
HSC0
HSC1
HSC2
HSC3
HSC4
HSC5
Description
SM37.3 SM47.3 SM57.3 SM137.3
SM147.3 SM157.3 Counting direction control bit:
0 = Count down
1 =Count up
SM37.4 SM47.4 SM57.4 SM137.4
SM147.4 SM157.4 Write the counting direction to the
HSC:
0 = No update
1 =Update direction
SM37.5 SM47.5 SM57.5 SM137.5
SM147.5 SM157.5 Write the new preset value to the
HSC:
0 = No update
1 = Update preset
SM37.6 SM47.6 SM57.6 SM137.6
SM147.6 SM157.6 Write the new current value to the
HSC:
0 = No update
1 =Update current value
SM37.7 SM47.7 SM57.7 SM137.7
SM147.7 SM157.7 Enable the HSC:
0 = Disable the HSC
1 =Enable the HSC
Read the HSC current value with your program
You can only read the current value of each high-speed counter using the data type HC
(High-Speed-Counter Current) followed by the counter identifier number (0, 1, 2, 3, 4, or 5)
as shown in the following table. Use the HC data type whenever you wish to read the current
count, either in a status chart or in the user program. The HC data type is read-only double
word value; you cannot write a new current count to the high-speed counter using the HC
data type.
Current values of HSC0, HSC1, HSC2, HSC3, HSC4, and HSC5
Value to be read
HSC0
address
HSC1
address
HSC2
address
HSC3
address
HSC4
address
HSC5
address
CV (counter current value)
HC0
HC1
HC2
HC3
HC4
HC5

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals