FB_AdaptableSequence

FB_AdaptableSequence 1:

Allows variable extension of implemented procedures of a class. The class itself is used to manage all sequences and to indicate the state of a single sequence with reference to the management (master).

Syntax:

FUNCTION_BLOCK FB_AdaptableSequence

FB_AdaptableSequence 2: Properties

Name

Type

Access

Initial value

Description

ActiveSeq

I_AdaptableSeqItf

Get

THIS^

Interface to the current step of the procedure.

Done

BOOL

Get, Set

FALSE

Indicates successful processing of a procedure step.

Failed

BOOL

Get, Set

FALSE

Indicates the failed execution of a procedure step.

Index

BOOL

Get

0

Index of the class in relation to the overall procedure.

IsActive

BOOL

Get

FALSE

The class is active as the current sequence.

IsMaster

BOOL

Get

TRUE

The class is the management object of a procedure.

Length

INT

Get

0

Length of the list of appended procedure steps.

Next

I_AdaptableSeqItf

Get

NULL

Interface to the next step of the procedure.

Tag

I_FlexValue

Get

<Local>

Arbitrary value for saving user-defined information.

FB_AdaptableSequence 3: Methods

Name

Description

Append(iNew)

Appends a step to the procedure.

Check()

Checks whether the current step of the procedure has been processed.

Clear()

Deletes all sequences from the master.

Exists()

Checks whether a sequence is included in the master.

Idx()

Returns the xth step from the procedure.

Insert()

Inserts a step in the procedure.

Jump()

Requests jumping to a sequence that does not follow.

Reset()

Slave: Resets the state of the procedure step.
Master: Resets the progress of the entire procedure.

[INTERN] SetMaster(ipMaster)

Assigns a master to the procedure step.

Notice Used by the Insert() method and does not need to be called separately.

FB_AdaptableSequence 4: Interfaces

Type

Description

I_AdaptableSeqItf

Interface for implementation as slave.

I_AdaptableSeqState

Interface for reading the sequence state.

I_AdaptableSeqQuery

Advanced interface for editing by the master.

I_AdaptableSeqMaster

Interface for implementation as master.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT >= v3.1.4024.54 (recommended)
TwinCAT >= v3.1.4024.42 (required)

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v3.12.7.0)