SMC_NCInterpreter.GetDCS (METH) ¶ METHOD GetDCS : SMC_PosInfo Describes the transformation from DCS to MCS. Since the transformation can change with every call of the decoder, this method returns the transformation which is valid at the current leading pointer (iLineNumberDecoded). dX, dY, dZ describe the offset of the DCS relative to the MCS. (The vector from the origin of the MCS to the origin of the DCS, expressed in MCS coordinates) dA1, …, dA5 describe the offset of the additional axes P, Q, U, V, W. If eOriConv = SMC_ORI_CONVENTION.ADDAXES, dA, dB, and dC describe an offset for each coordinate. If eOriConv <> SMC_ORI_CONVENTION.ADDAXES, then the members dA, dB, dC describe the rotation from DCS to MCS. InOut: Scope Name Type Return GetDCS SMC_PosInfo
SMC_NC_IStackAddressResolver.GetAddress (METH) ¶ METHOD GetAddress : POINTER TO BYTE InOut: Scope Name Type Return GetAddress POINTER TO BYTE Input offset DINT nSize UDINT
Functions ¶ SMC_NC_GArgument (Struct) SMC_NC_GArgumentValue (Union) SMC_NC_GFunction (Struct) SMC_NC_GFunctionTable (Struct) SMC_NC_IFunction (Interface) Call (Method) GetSignature (Method)
SMC_NC_GArgument (STRUCT) ¶ TYPE SMC_NC_GArgument : STRUCT common type for inputs and outputs of functions inside G-Code expressions InOut: Name Type argType SMC_GVar_Type argValue SMC_NC_GArgumentValue argPos SMC_NC_SourcePosition
SMC_NC_GArgumentValue (UNION) ¶ TYPE SMC_NC_GArgumentValue : UNION InOut: Name Type Comment bValue BOOL value for arguments of type T_BOOL fValue LREAL value for arguments of type T_LREAL sValue STRING(255) value for arguments of type T_STRING
SMC_IGSentenceModifier.Call (METH) ¶ METHOD Call Called cyclically to process sentences from sentencesIn to sentencesOut. The implementation should read the sentences in sentencesIn, and append (possibly modified) sentences to sentencesOut. The processed sentences need to be removed from sentencesIn. InOut: Scope Name Type Comment Inout sentencesIn SMC_GSentenceQueue Input sentence queue sentencesOut SMC_GSentenceQueue Output sentence queue errorPos SMC_NC_SourcePosition Out: error position in case of error Output Done BOOL All sentences have been processed and no new sentences will be appended. Should be set if sentencesIn is empty and has EndOfData set, and there are no pending sentences due to the state of the modifier function block. Error BOOL An error has occurred ErrorID SMC_ERROR Error-ID
SMC_IGSentenceModifier.Start (METH) ¶ METHOD Start Called when sentence processing is started or restarted. Any internal state should be reset.
SMC_INCLookup.LookUp (METH) ¶ METHOD LookUp : SMC_ERROR Looks up a program and initializes the stream with the contents of the program on success. Note that the stream must have the correct type for the used LookUp implementation, for example SMC_FileStream2 for SMC_NCLookupFile . InOut: Scope Name Type Comment Return LookUp SMC_ERROR Inout Const programName STRING The program name of the CNC program to look up. Note that the comparison needs to be done in a case-insensitive way. Input stream SMC_ITextStream The stream to initialize with the contents of the CNC program.
SMC_ITokenModifier.Call (METH) ¶ METHOD Call Called cyclically to process tokens from tokensIn to tokensOut. The implementation should read the tokens in tokensIn, and append (possibly modified) tokens to tokensOut. The processed tokens need to be removed from tokensIn. InOut: Scope Name Type Comment Inout tokensIn SMC_TokenQueue Input token queue tokensOut SMC_TokenQueue Output token queue errorPos SMC_NC_SourcePosition Out: error position in case of error Output Done BOOL All tokens have been processed and no new tokens will be appended. Should be set if tokensIn is empty and has EndOfData set, and there are no pending tokens due to the state of the modifier function block. Error BOOL An error has occurred ErrorID SMC_ERROR Error-ID
SMC_ITokenModifier.Start (METH) ¶ METHOD Start Called when token processing is started or restarted. Any internal state should be reset.