WWW.NNC.IR
Macro Reference
746
Vision System FH/FZ5 Series
User’s Manual (Z340)
StartTimer
Starts the elapsed time measurement.
Format
StartTimer
Parameter
None.
Return value
Returns the elapsed time as a double precision type real number value.
Description
Starts the elapsed time measurement.
After starting measurment of elapsed time with this macro function, get the elapsed time by executing the
Timer function.
Execution of the ElapsedTime function is valid only for the processing units such as the unit calculation macro
and the Unit Macro processing units. In contrast, executions of this macro function and the Timer function are
valid for all macro customize functions.
If a value is assigned to the return value variable or the variable is not used in an expression, a "Syntax error"
error will occur.
Usage Cautions
• None.
Example
Measures the elapsed time since the beginning of the StartTimer function until the execution of the Timer
function.
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 3.50 or later
Related Items
T# = StartTimer
Rem Executes the process whose the process execution elapsed time is measured.
Rem Gets the elapsed time using the return value of the StartTimer function.
TIME& = Timer(T#, 0)
ElapsedTime (Reference: X Details (p.508)) Timer (Reference: X Details (p.759))
Wait (Reference: X Details (p.806))