SMC_StringStream2.AppendData (METH) ¶ METHOD AppendData : SMC_ERROR InOut: Scope Name Type Comment Return AppendData SMC_ERROR Inout Const sData STRING(255) The data to be copied to the stream
SMC_StringStream2.Close (METH) ¶ METHOD Close
SMC_StringStream2.EOS (PROP) ¶ PROPERTY EOS : BOOL Returns whether the “End Of Stream” has been reached. Calling Read() if EOS is TRUE will always return 0.
SMC_StringStream2.Init (METH) ¶ METHOD Init InOut: Scope Name Type Input sName STRING(255)
SMC_StringStream2.Name (PROP) ¶ PROPERTY Name : STRING(255)
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.
SMC_NCLookupFile.LookUp (METH) ¶ METHOD LookUp : SMC_ERROR InOut: Scope Name Type Return LookUp SMC_ERROR Inout Const programName STRING Input stream SMC_ITextStream
SMC_ReadNCFile2.SetDelimiters (METH) ¶ METHOD FINAL SetDelimiters : BOOL Reconfigures delimiters for comment, string and variable tokens. Returns TRUE if configuration was accepted and the FB isn’t busy, FALSE otherwise. This method needs to be called before SMC_ReadNCFile2 is called. Delimiter tokens may start with every character in aby*StartDelim , but must end with the character in aby*EndDelim with the same array index as the starting character. Only the following values/characters are allowed as delimiters: 33 ! , 34 " , 35 # , 36 $ , 37 % , 38 & , 39 ' , 40 ( , 41 ) , 42 * , 43 + , 44 , , 45 - , 47 / , 58 : , 59 ; , 60 < , 61 = , 62 > , 63 ? , 64 @ , 91 [ , 92 \ , 93 ] , 94 ^ , 96 ´ , 123 { , 124 | , 125 } , 126 ~ A maximum of 3 different pairs of delimiters can be configured for each token type. Delimiters will be checked for ambiguitiy against each other. Only operator characters not used as delimiter will be recognized as operators. InOut: Scope Name Type Return SetDelimiters BOOL Inout Const delimCfg SMC_NCScanner_DelimConfig