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