ParametrizeSequence
- Namespace
- ZCore
- Extends
- Inherited Properties
- Inherited Methods
- Implements
FUNCTION_BLOCK ParametrizeSequence EXTENDS ZCore.Sequence IMPLEMENTS ZCore.IParameterChannel, ZCore.IObject, ZCore.IError, ZCore.IUnmanagedObject, ZCore.ISequence, ZCore.ICancellationToken, ZCore.IHaltable, ZCore.IHaltToken, ZCore.IStartToken, ZCore.IRecoverable (
[output] State : ObjectState,
[output] Diagnostics : DiagnosticMessage)
This wrapper allows to perform calls to a IParameterChannel as a sequence rather than a plain object. This allows IParameterChannels to be used in the context of a statemachine (e.g. one state can be used for writing parameters)
Constructor
FB_init
METHOD FB_init (
[input] bInitRetains : BOOL,
[input] bInCopyCode : BOOL,
[input] channel : IParameterChannel) : BOOL
Inputs
bInitRetainsBOOLif TRUE, the retain variables are initialized (warm start / cold start)
bInCopyCodeBOOLif TRUE, the instance afterwards gets moved into the copy code (online change)
channelIParameterChannel
Returns
- BOOL
Methods
RequestAsync
METHOD RequestAsync (
[input] taskToken : ITaskToken,
[input] actionFlags : ParameterChannelActionFlag,
[input] parameter1 : DWORD,
[input] parameter2 : DWORD,
[input] parameterType : INT,
[input] bufferPtr : ZPointer,
[input] bufferSize : UDINT)
Requests a parameter from the fieldbus. The actual meaning of the parameters is implementation dependent.
Inputs
taskTokenITaskTokenactionFlagsParameterChannelActionFlagparameter1DWORDparameter2DWORDparameterTypeINTbufferPtrZPointerbufferSizeUDINT
SetTimeout
METHOD SetTimeout (
[input] timeout : LREAL)
Controls the general timeout behavior of this object. If a command (i.e. request) takes longer than timeout the object
transitions into its error state.
Inputs
StepDecoded
METHOD StepDecoded (
[input] stepIndex : INT) : ZString