WWW.NNC.IR
Macro Reference
615
8
Appendices
Vision System FH/FZ5 Series
User’s Manual (Z340)
MeasureId$
Gets the measurement identification.
Format
MeasureId$
Parameter
None.
Return value
Returns the measurement identification as a character string.
The measurement identification is a character string in the format (YYYY-MM-DD_HH-MM-SS-XXXX) that
consists of the date and time of the internal clock at the time measurement was executed. The date consists
of the year (YYYY), month (MM), and day (DD), separated by hyphens (-), and the time consists of the hour
(HH), minute (MM), second (SS), and 100-
μsec (XXXX), separated by hyphens (-), with the two segments
joined by an underline.
Description
Gets the measurement identification.
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
• This macro function can only be used in the *MEASUREPROC subroutine. If used in any other subroutines,
an error will occur and the function will not be executed.
Example
In the *MEASUREPROC subroutine of the Unit Macro processing unit, gets the measurement identification
and saves the processing unit measurement image with the measurement identification as the file name.
Useable Modules
Unit Macro / Unit Calculation Macro
Supported Versions
Version 3.50 or later
Related Items
SaveMeasureImage (Reference: X Details (p.673))
*MEASUREPROC
Rem Get the measurement identification to set the character string for the file name.
FILENAME$ = MeasureId$ + ".bmp"
Rem Output measurement image 0 in bitmap format.
SaveMeasureImage 0, FILENAME$, 0
Return