HSC counter s7 200

ungaro

Member
Join Date
May 2005
Location
Lokeren
Posts
72
Hi,
I'am using a HSC counter (s7-200 PLC siemens)to measure a lenght but I want to disable the counter when a certan input is high without resetting the value of the counter. What is the easiest way to do this. Can I do this with the same subroutine that I use to enable the counter?
Thanks
 
Stopping a HSC

I believe if you disable the counter it will just stop counting and the when you enable it it will begina again at the same place. Instructions from the help file below:


Disable a High-Speed Counter (Any Mode)
The following steps describe how to disable the HSC1 high-speed counter (any mode):

1. Load SMB47 to disable the counter:
SMB47 = 16#00 Disables the counter

2. Execute the HSC instruction to disable the counter.
 
The special memory bit SMx7.5 (e.g. for HSC1 SM37.5) within the
configuration byte SMBx7 is responsible if the HSC value would be
reset while start or not.
 
Easiest way is to put merker parallel to SM0.1
SM0.1--|---[SUB_0] HSC Subroutin
M0.0---|
if M0.0 is active, HC0=0 and Counter is disable.
M0.0 is "0" , HSC starts to count.

Attached program has got HSC and TD200 example
 

Similar Topics

Hey Everyone, After reading a lot on this forum and elsewhere I see not many are fond of the 1794-VHSC module. I can see to a degree as I was...
Replies
2
Views
32
I'm trying to set up a ring counter - one that transitions from 3599 to 0 (and 0 to 3599 in the reverse direction). My counter insists on...
Replies
2
Views
328
I have am trying to determine if I can use a 1756-IB16I (or some dc input equivalent) to handle a 24vdc input pulse frequency of 80 pulses per...
Replies
15
Views
884
Here is my hail Mary pass I have a wheel that produces 33 pulses per revolution. The RPM of that wheel will be anywhere from 25.21 to 62.7 Pulses...
Replies
14
Views
4,660
Hi, I am using L24ER-QBFC1B. Does anyone have a sample using embeded HSC? I need to read angle and doing reset this counter. Tnak you Mario
Replies
1
Views
1,124
Back
Top Bottom