Program instructions
7.6 Counters
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
223
● Before you use a high-speed counter, you must execute the HDEF instruction (High-
Speed Counter Definition) to select a counter mode. Use the first scan memory bit,
SM0.1 (this bit is ON for the first scan and OFF for subsequent scans) to execute HDEF
directly, or call a subroutine that contains the HDEF instruction.
● You can use all counter types with or without a reset input.
● When you activate the reset input, it clears the current value and holds it clear until you
deactivate the reset input.
High-speed counter programming examples (Page 226)
High-speed counter initialization sequence examples (Page 238)
Noise reduction for high-speed inputs (Page 224)