4 Special Functions
3-68 SmartAXIS Touch User's Manual
● Example 1
Using the single-phase high-speed counter in the ladder program, this example program turns on external output Q2 when
1,000 pulses are input.
Application description
When pulses are input to input I0 and the count reaches 1,000, output Q2 is turned on.
In the WindLDR Function Area Settings, select Two/Single-phase High-speed Counter for Group 1.
In High-speed Counter Settings, configure the settings as follows.
External input : Group 2 (I2)
Operation Mode : Single-phase High-speed Counter
Counting Mode : Adding Counter
Comparison Action : Comparison Output
Comparison Settings
Tag Name/Device Address : D0000 (data register)
Number of Comparisons : 1
Comparison output : Q2 (external output when matched)
Comparison1 (D4) : 0 (upper word)
Comparison1 (D5) : 1,000 (lower word)
Keep : Cleared
Reset value (D8054) : 0 (upper word)
Reset value (D8055) : 0 (lower word)
Overflow : Cleared
Underflow : Cleared
Use HSC Reset Input : Cleared