SMC_NC_CopySentence (FUN) ¶ FUNCTION SMC_NC_CopySentence : BOOL InOut: Scope Name Type Return SMC_NC_CopySentence BOOL Inout sentencesOut SMC_GSentenceQueue Inout Const itSentence SMC_GSentence_Iterator
SMC_GSentence_Iterator (FB) ¶ FUNCTION_BLOCK FINAL SMC_GSentence_Iterator This iterator allows to iterate all sentences of a sentence queue. It can be retrieved from the sentence-queue ( SMC_GSentenceQueue.GetSentenceIterator ). For each sentence, a g-word iterator ( SMC_GWord_Iterator ) can be created. Methods: Advance GetCount GetGWordIterator GetValue Init IsValid Structure: Advance (Method) GetCount (Method) GetGWordIterator (Method) GetValue (Method) Init (Method) IsValid (Method)
SMC_GSentence_Let (STRUCT) ¶ TYPE SMC_GSentence_Let : STRUCT A variable declaration InOut: Name Type name STRING vtype SMC_GVar_Type
SMC_GSentence_SubCall (STRUCT) ¶ TYPE SMC_GSentence_SubCall : STRUCT A subprogram call InOut: Name Type sentenceNumber UDINT name STRING bRestoreModes BOOL
SMC_GSentence_SubRet (STRUCT) ¶ TYPE SMC_GSentence_SubRet : STRUCT A subprogram return InOut: Name Type sentenceNumber UDINT
SMC_GSentence_Type (ENUM) ¶ TYPE SMC_GSentence_Type : The possible types of GSentence Attributes: qualified_only InOut: Name Comment GWORDS List of G-Words. This is the most common type of GSentence. SUBCALL A subprogram call DYNCALL A dynamic subprogram call using an expression of type STRING for the subprogram name SUBDECL A subprogram declaration SUBRET An explicit subprogram return SUBEND A subprogram end statement LET A local variable declaration
SMC_BlockSearch.SMC_DoBeforeLeave (ACT) ¶
SMC_BlockSearch.SMC_InitAction (ACT) ¶
SMC_BlockSearchPos (STRUCT) ¶ TYPE SMC_BlockSearchPos : STRUCT InOut: Name Type Comment dRelPosInObj LREAL Relative position in the path element. Range of values: 0..1 iSourceLine_No DINT 0-based line number of the source file iSubElement INT Number of elements with the same iSourceLine_No, 0-based xPosStored BOOL TRUE : Position has been stored
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 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_ACTIVE : When a rising edge is detected at bExecute and SMC_Interpolator is disabled, no position can be stored.