SMC_BlockSearchSavePos (FB)ΒΆ
FUNCTION_BLOCK SMC_BlockSearchSavePos
The function block is used to store the current position of a path.
SMC_BlockSearchSavePos must run in the task of the interpolator.
- InOut:
Scope
Name
Type
Initial
Comment
Inout
ipoInstance of the interpolator of the path
Input
bExecuteBOOLRising edge: Starts the saving of the current position
Falling edge: Resets the output
ePosbResetInternalVariablesBOOLpotentially useful input when interpolating the same CNC-program several times (as a whole), as we store the last object we worked on
Output
ePosPosition information. Requires connection to input ePos of SMC_BlockSearch
bPositionStoredBOOLTRUE: Position has been savedbErrorBOOLFALSE
TRUE: Error has occurredwErrorIDSMC_ERRORSMC_NO_ERROR
Error identification
Possible values
SMC_BSSP_IPO_NOT_ACTIVE:When a rising edge is detected at
bExecuteand SMC_Interpolator is disabled, no position can be stored.