Table of Contents

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

bInitRetains BOOL

if TRUE, the retain variables are initialized (warm start / cold start)

bInCopyCode BOOL

if TRUE, the instance afterwards gets moved into the copy code (online change)

channel IParameterChannel

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

taskToken ITaskToken
actionFlags ParameterChannelActionFlag
parameter1 DWORD
parameter2 DWORD
parameterType INT
bufferPtr ZPointer
bufferSize UDINT

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

timeout LREAL

in seconds

StepDecoded

METHOD StepDecoded (
 [input] stepIndex : INT) : ZString

Inputs

stepIndex INT

Returns

ZString