5. Functions
AO-1604LX-USB
47
-
Compare count match event
This event is triggered when a compare match occurs on the counter.
-
Count overrun event
This event is triggered when a counter overrun occurs.
-
Counter operation error
This event is triggered when a counter operation error causes the counter to stop.
2. Starting/Stopping Operation
Starting and stopping the counter
are performed using software commands.
Once the counter has started, it can be stopped at any time by a software command.
3. Monitoring the Status and Acquiring Data
Software commands can be used to monitor the device operating status and read counter data. Status
monitoring and data acquisition can both be performed while the counter is running.
Status
The current state of the device can be checked by obtaining the device status.
The following types of device status are available:
-
Counter operating
The device operating status is ON from the time the operation start command is executed until
operation stops due to a stop command or error.
-
Compare count match
The compare count match status turns ON when a count match occurs after the counter is started.
The status is turned OFF by the status reset command.
-
Overrun
The overrun status turns ON if another count match occurs when the compare count match status is
already ON. The status is turned OFF by the status reset command.
Even if the overrun status turns ON, this does not stop the counter.
-
Counter operation error
Execution of driver processing may not be able to keep up if multiple count match events occur
within a short time period.
In this case, the counter operation error status turns ON and counter operation stops.
Data acquisition
The current count value can be read using a software command.