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 - ipo- Instance of the interpolator of the path - Input - bExecute- BOOL- Rising edge: Starts the saving of the current position - Falling edge: Resets the output - ePos- bResetInternalVariables- BOOL- potentially useful input when interpolating the same CNC-program several times (as a whole), as we store the last object we worked on - Output - ePos- Position information. Requires connection to input ePos of SMC_BlockSearch - bPositionStored- BOOL- TRUE: Position has been saved- bError- BOOL- FALSE - TRUE: Error has occurred- wErrorID- SMC_ERROR- SMC_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.