SMC_ITextStream.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_ITextStream.Name (PROP) ¶ PROPERTY Name : STRING(255) Returns the name of the stream. This could for example be the file name if the stream is file-based.
SMC_ITextStream.Read (METH) ¶ METHOD Read : __XWORD Reads at most nBufSize ASCII characters from the stream into pDst . If an error occurs, 0 is returned, otherwise the number of characters read. Note The number of characters read may be less than nBufSize . InOut: Scope Name Type Comment Return Read __XWORD Input pDst POINTER TO BYTE The destination buffer, needs at least space for nBufSize characters nBufSize __XWORD The size of the destination buffer in bytes
SMC_ITextStream.Reset (METH) ¶ METHOD Reset : BOOL Resets current position of the stream to its beginning InOut: Scope Name Type Return Reset BOOL
SMC_StringStream2 (FB) ¶ FUNCTION_BLOCK SMC_StringStream2 IMPLEMENTS SMC_ITextStream This function block reads strings and presents the contents as a stream of characters to other function blocks such as SMC_ReadNCFromStream . InOut: Scope Name Type Comment Output refillData BOOL Indicates that a reset is requested. The data of the stream must be appended with AppendData from the beginning again. stream SMC_ITextStream Properties: EOS Name Methods: AppendData Close Init SetEndOfData Structure: AppendData (Method) Close (Method) EOS (Property) Init (Method) Name (Property) SetEndOfData (Method)
SMC_Token.SetString (METH) ¶ METHOD SetString : BOOL InOut: Scope Name Type Input pbyString POINTER TO BYTE iSize INT Return SetString BOOL
SMC_TokenQueue (FB) ¶ FUNCTION_BLOCK SMC_TokenQueue InOut: Scope Name Type Comment Input strProgramName STRING Program name (producer to consumer) bRestart BOOL Restart signal from consumer to producer Methods: Append Capacity EndOfData Full GetFirst GetFromEnd GetFromStart Init IsEmpty NumElems RemoveAll RemoveFirst RemoveLast SetEndOfData SetPointer SpaceLeft Structure: Append (Method) Capacity (Method) EndOfData (Method) Full (Method) GetFirst (Method) GetFromEnd (Method) GetFromStart (Method) Init (Method) IsEmpty (Method) NumElems (Method) RemoveAll (Method) RemoveFirst (Method) RemoveLast (Method) SetEndOfData (Method) SetPointer (Method) SpaceLeft (Method)
SMC_TokenQueue.Append (METH) ¶ METHOD Append : BOOL Tries to append a new element to the queue. Returns TRUE if the queue was not full yet, FALSE otherwise. InOut: Scope Name Type Inout Const token SMC_Token Return Append BOOL
SMC_TokenQueue.Capacity (METH) ¶ METHOD Capacity : UDINT The maximum number of samples that can be stored in the queue InOut: Scope Name Type Return Capacity UDINT
SMC_TokenQueue.EndOfData (METH) ¶ METHOD EndOfData : BOOL Returns whether end of data has been reached for the queue InOut: Scope Name Type Return EndOfData BOOL