![Siemens SIMATIC S7-300 FM 350-1 Manual Download Page 96](http://html.mh-extra.com/html/siemens/simatic-s7-300-fm-350-1/simatic-s7-300-fm-350-1_manual_1265384096.webp)
Operating Modes, parameters and commands
7.3 Count modes
FM 350-1 Counter module
96
Manual, 05/2011, A5E03648639-01
Opening and Closing the Software Gate
You open and close the software gate and set the counter to the load value with the
SW_GATE input parameter of FC CNT_CTL1.
Table 7- 8
Triggering the Opening/Closing of a SW Gate (Single Counting)
Action
...Is initiated by
Open software gate
Setting SW_GATE
Close software gate
Resetting SW_GATE
Opening and Closing the Hardware Gate
You open and close the hardware gate and set the counter to the load value by applying and
removing the corresponding signals to and from digital inputs DI Start and DI Stop.
Table 7- 9
Triggering the Opening/Closing of a HW Gate (Single Counting)
Action
...Is initiated by
Open hardware gate (level-controlled)
Apply signal to digital input DI Start
Open hardware gate (edge-controlled)
Apply positive pulse edge across digital input DI Start
Close hardware gate (level-controlled)
Remove signal from digital input DI Start
Close hardware gate (edge-controlled) Apply positive pulse edge across digital input DI Stop
With a level-controlled hardware gate, the renewed opening of the gate and setting of the
counter to the load value is performed by a signal across DI Start.
If a positive pulse edge is reapplied across DI Start in the case of an edge-controlled
hardware gate, the counter will again start counting from the load value, irrespective of
whether the gate is closed or still open (retrigger); that is, provided that the DI Stop is not set.
Behavior at the Count Limits
If the counter has reached the high or low count limit and a further count pulse is received,
the counter is set as follows:
●
To the other count limit when counting without a main count direction
●
To the load value when counting with a main count direction
The gate is then closed and the count is terminated even if the SW_GATE parameter is still
set or the hardware gate is still open. An appropriate status bit is set in the DB.
Table 7- 10 Behavior at the Count Limits (Single Counting)
Count limit reached
Status bit in DB
High count limit
STS_OFLW is set
Low count limit
STS_UFLW is set
If you wish to restart the counter, you must reset the SW_GATE parameter or reopen the
HW gate. The counting process is then continued from the load value.
Summary of Contents for SIMATIC S7-300 FM 350-1
Page 8: ...Table of contents FM 350 1 Counter module 8 Manual 05 2011 A5E03648639 01 ...
Page 186: ...Technical data 11 2 Technical data FM 350 1 Counter module 186 Manual 05 2011 A5E03648639 01 ...
Page 188: ...Replacement parts FM 350 1 Counter module 188 Manual 05 2011 A5E03648639 01 ...
Page 190: ...References FM 350 1 Counter module 190 Manual 05 2011 A5E03648639 01 ...
Page 194: ...Glossary FM 350 1 Counter module 194 Manual 05 2011 A5E03648639 01 ...