High-performance Counter Callback Sample [countercallback]


■Appearance

 

■Overview

This is a sample that uses the counter function for devices equipped with the high-performance counter.

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 [High-performance Counter]].
When viewing/changing the source code for the control input signal function in addition to the counter function, please refer to [Flow Chart for Control Input Signal [High-performance Counter]].

This sample program requires use with a high-performance 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 usual counter type device, please use the [Usual Counter Sample].

This sample program uses callback functions for event processing.

 

■Explanation

Input the number in the menu list to select a menu.
The menu is arranged by executing sequence.

 

■Execution example

py countercallback.py