Kkula
Browse Questions » SIMATIC Technology: Hsc: probably does not catch faling front

About User

Questions Asked: 30.3K

Answers Given: 0

0
  • Open
  • New

SIMATIC Technology: Hsc: probably does not catch faling front

Hi everybody. I hope to get any help.

It is necessary to count number of pulses which comes into the HSC2 (Input %I0.2). The Rising front Hardware interrupt (OB201) resets CTRL_HSC (strobe pulse comes in the input %I0.3) and after than the Falling front Hardware interrupt (OB202) moves a count value from %ID1004 to memory (e.g. %MD56).

1. If period of input pulses is T=400μs and strobe duration is 32T or 64T then counter HSC2 counts 32 or 64 pulses appropriately. MD56= 32 or 64. It is correct.

2. If T<=200μs and strobe duration is 64T then MD56=60, 61, 62, 63 or 64 (accidentally).

3. If strobe duration is 32T, then counter does not reset and MD56 is not regenerated.
Thanks

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(0)