User manual

GETPOS.BAS
In order for the Run command to work, the script
must be loaded.
The model for the object whose script will be
searched should also be loaded.
When the script will be executed, a measurement
table with the positions will be created. The script
will also send a command that initiates a sign of the
number of objects that were found.
Function GETPOS()As String
I_IMAGE1$ = Insptr.ImgGetCur
Insptr.ImgSetCurrent I_IMAGE1$, R_Def$,
ALL_BANDS
Insptr.ImgConvertType(TO_8U)
Insptr.MeasNew()
M_X_MOD$=Insptr.PatGetCur
Insptr.PatSetCur M_X_MOD$
x=Insptr.PatFind
Insptr.ImgClose
Num=Insptr.MeasGetLastID
GETPOS="SET N=" + CStr(num)
End Function
Abort All
Format:
[Ctrl] + A
Description:
Immediately aborts all running programs and stops
movement of axes.
[Ctrl] + A is the fastest software method for stopping
program execution and halting movement of all axes. It
can be used at any moment, even while entering another
command, in order to instantly halt programs and axes.
This command is entered from keyboard, but does not
require [Enter] for execution.
ViewFlex v.3.3 2-27 User Manual
1209