Starts measuring the elapsed time.
Ret = TimCountStart(CountId)
CountId [ VB.NET: Short ] [ C, C++: short *] [ C#: out short ]
Returns an ID that is the Timer identifier.
Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ]
Definition |
Value |
Description |
TIM_ERR_SUCCESS |
0 |
Normal completed |
TIM_ERR_DLL_NOT_INITIALIZED |
10010 |
It is not initialized.Please confirm whether the initialization function has completed normally. |
TIM_ERR_DLL_BUFF_ADDRESS |
10100 |
Invalid data buffer address. |
TIM_ERR_DLL_OVER_MAX_TIMER |
10553 |
Timer beyond the available maximum number. |
The others (See also:Details of Error Code)
None
Starts measuring the elapsed time.
The maximum number of used Timer is 256.
Measurement range
Onboard System Timer
1 to 1,073,741,823 (us) *1
System Timer
1,000 to 4,294,967,295 (us)
*1 When
using DIO-32DM3-PE, the setting range is as follows.
1 to 107,374,182 (us)
TimCountStop,
TimCountLap, TimCountReset