M5: Measuring
8.4 Setting zeros, workpiece measuring and tool measuring
Measuring cycles
The calculation in the measuring cycles is performed according to the predefined function:
INT MEASURE( )
MEASURE() delivers a result frame that can be read via $AC_MEAS_FRAME:
● The result is the translation and rotation from the setpoint values recalculated on the
● The result frame is calculated as follows:
Semaphore variable
The measurement variable occurs only once per channel. The measuring operation can be
initiated via an operator input in the stop and reset states. The operation can overlap with the
measuring cycles in the stop state. The following variable serves the purpose of protection of
mutual overwriting:
$AC_MEAS_SEMA (Semaphore of measurement interface)
The semaphore variable $AC_MEAS_SEMA is
● set to 1 at the beginning of the cycle and
● reset to 0 again at the end of the cycle.
HMI does not use the measurement interface if the variable has the value 1.
Error messages
If the client does not log on, group error number 0xD003 is always generated. If a logon
takes place through DIAGN:errCodeSetNrGent or DIAGN:errCodeSetNrPi, then PI_SETUDT
provides the error code corresponding to the following syntax:
EX_ERR_PI_REJ_<Return value>, e.g.: EX_ERR_PI_REJ_ MEASNOTYPE
626
selected frame.
The concatenated total frame equals the concatenation of the total frame (prior to
measurement) with the calculated translation and rotation.
Note
If no frame is selected, the calculated frame is not transformed, i.e. the translation and
rotation is determined on the basis of the specified setpoints and the calculated position
of the edge, corner, groove, etc. Where the function is used more than once, it is always
added to the result frame.
It must be noted that the result frame may need to be deleted beforehand.
NOTICE
MEASURE() does not trigger any implicit block search stop. As MEASURE() works with
the frames of the block search set, it must itself decide whether a block search stop is
necessary before the calculation.
Function Manual, 09/2009, 6FC5397-1BP20-0BA0
Extended Functions