Usual Counter Sample [counter]


■Appearance

 

■Overview

In this Usual Counter Sample, you can configure various settings and check the operation easily.

When viewing/changing the source code for basic counter functions only, please refer to [Flow Chart for Counter Function].
When viewing/changing the source code for the count match function in addition to the counter function, please refer to [Flow Chart for Output Pulse when Count Match [Usual Counter]].

This sample program requires use with a usual counter type device.
To check the counter type of the device you are using, please refer to [Counter Type Specifications].

If you are using a high-performance counter type device, please use the [High-performance Counter Callback Sample].

 

■How to use

The use procedure is, input the device name to initialize it, then set the counter mode and start the count.
input 'q' to perform the exit processing.

 

■Execution example

py counter.py