SMC_BlockSearchSavePos (FB)

 

FUNCTION_BLOCK SMC_BlockSearchSavePos

The function block is used to store the current position of a path. SMC_­BlockSearchSavePos must be running in the task of the interpolator.

InOut:

Scope

Name

Type

Initial

Comment

Inout

ipo

SMC_Interpolator

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

SMC_BlockSearchPos

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_AC­TIVE:

    When a rising edge is detected at bExecute and SMC_Interpolator is disabled, no position can be stored.