show the entry list
STEP 7 Micro/WIN -- Creating S7 programs -- Calling blocks and functions
How do you reset the high-speed counters of the S7-200?
Using an S7-200 without twilight switch, how do you have shutters open at sunrise and close at sunset?
How do you count values over 16 bits with the S7-200?
How can you limit the pitch of jumps with S7-200?
How do you configure the positioning module EM253 so that the connected stepper motor can proceed in both directions?
How do you position a servo drive axis using the S7-200 pulse interface?
How do you create a bar display in TD 200 or TD 200C?
How can you optimize use of timers in STEP 7 Micro/WIN?
How do you determine the frequency of a pulse sequence and speeds?
How can you scale analog values with S7-200 in conjunction with CPU224XP and expansion modules EM 231, EM 232 and EM 235?
How do you convert a binary number into Gray code (or vice versa) in STEP 7 Micro/WIN?
How do you convert the number format DOUBLE INTEGER into BCD code (or vice versa) in STEP 7 Micro/WIN?
How do you form the absolute and negative values of numbers in STEP 7 Micro/WIN?
Why does the PID controller created by the instruction wizard sometimes not work?
What do you have to do in the SIMATIC S7-200 in order to edit part of the program once after restarting?
Which library with the inverse functions to the trigonometric functions (sine, cosine, tangent) is available for STEP 7-Micro/WIN?
Scaling the setpoint and actual values in the STEP 7 Micro/WIN V4 wizards for PID control loops
Positioning Wizard for PTO/PWM in STEP 7 Micro/WIN V4.0
How to implement a three step control with PID-loop in the S7-200 via STEP 7-Mirco/WIN?
How do you reset the high-speed counters of the S7-200?
Part number:

Description:
Table 01 shows which high-speed counters in which counter mode you can reset via the input concerned.
 
High-speed counters Counter mode
1 2 4 5 7 8 10 11
HSC0 E0.2
HSC1 E1.0
HSC2 E1.4
HSC4 E0.5
Table 01

In addition to the external reset option, you can also reset the high-speed counters internally triggered via the special flags listed in Table 02.
 
High-speed counters New current value Write new current value to HSC
HSC0 SMD38 SM37.6
HSC1 SMD48 SM47.6
HSC2 SMD58 SM57.6
HSC3 SMD138 SM137.6
HSC4 SMD148 SM147.6
HSC5 SMD158 SM157.6
Table 02

For this, you download the value 0 into the special flag word "New current value", write the "New current value" to the high-speed counter via the relevant special flag and activate the high-speed counter (HSC0).
Fig. 01 shows the function code in STEP 7 Micro/WIN for resetting the high-speed counter HSC0.


Fig. 01

In this example, resetting is triggered by the variable bit 0.0 that is reset again immediately after action and is thus available only for one cycle.

Note:
By loading the "New current value" you can also set the high-speed counters to any other values.

Note:
More information on the high-speed counters is available in the S7-200 system manual (Entry ID: 1109582).

Keywords:
Setting high-speed counters

 Entry ID:35934628   Date:2009-05-08 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Topics
Help
Online Help
Guided Tour