13
SYSTEM COUNT FUNCTION
This function counts the elapsed time from when the power supply of this product was turned ON.
The counter value of this function can be utilized, for example, to measure the processing performance of a user program.
Counter
The following table shows the counters of this function.
Item
1 μs counter
1 ms counter
*1 When the maximum value is exceeded, the counter value returns to the minimum value. (0→1→・・・→4294967295→0→1→・・・)
Acquisition of count value
The count value can be acquired by a C Controller module dedicated function.
■Function list
Function name
CCPU_GetCounterMillis
CCPU_GetCounterMillis_ISR
CCPU_GetCounterMicros
CCPU_GetCounterMicros_ISR
For details on the C Controller module dedicated functions, refer to the following manual.
MELIPC MI5000 Series Programming Manual (VxWorks)
Description
Increased by 1 every 1 μs after the power is turned ON.
Increased by 1 every 1 ms after the power is turned ON.
Description
Acquires a 1 ms counter value of a MELIPC.
Acquires a 1 μs counter value of a MELIPC.
*1
Range
0 to 4294967295
0 to 4294967295
13 SYSTEM COUNT FUNCTION
13
147