It is a sample of interval timer and stop-watch timer.
This sample program requires selection of a device with timer function.
Sample specification |
※This is the initial value of the sample program. |
Program name |
Timer |
Timer ID |
0 |
Event |
Event that interval elapses |
1. Specify the desired program name, run the program, and a window that looks like the one above will appear.
Appearance may vary depending on software version.
2. Initialize
・Specify the device name set in the device manager as the device name, and click the [AioInit] button.
Notifies the device driver to start using the specified device.
3. Operation of Interval Timer
・In [Interval:], specify the desired interval value in units of [μsec], and press the [Operation Start] button to start interval processing.
・The displayed value of [Notification count:] is updated each time it matches the interval value.
・When you press the [Operation Stop] button, interval processing stops.
4. Operation of stop-watch Timer
・When you press the [Operation start] button, stop-watch timer processing will start.
・When you press the [AioLapTmCount] button, the displayed value of [Elapsed time:] will be updated.
・Press the [AioResetTmCount] button to reset the elapsed time.
・When you press the [Operation Stop] button, stop-watch timer processing stops.
5. Exit
・Press the [AioExit] button to notify the device driver that the use of the current device is complete.
Data can be output from different devices (e.g. AIO001, etc.) without terminating the program.
To output data again, specify a new device name and press the [AioInit] button to initialize the device.
6. Processing to terminate the program
・Press the [Close] button in the window to terminate the program.