ST_BA_PIDControlSequence

Data and command structure between the individual sequence controllers FB_BA_PIDControlSequence and the control block FB_BA_PIDControlSequenceLink.

Syntax

TYPE ST_BA_PIDControlSequence :
STRUCT
  arrSeqLinkData    : ARRAY[1..MAX(1,BA_Param.nMaxSeqCtrl)] OF ST_BA_PIDControlSequenceData;
  fE                : REAL;
  nActvSeqCtrl      : UDINT;
  bSync             : BOOL;
  bEnSeqLink        : BOOL;
END_STRUCT
END_TYPE

Name

Type

Description

arrSeqLinkData

ARRAY[1..MAX(1,BA_Param.nMaxSeqCtrl)] OF ST_BA_PIDControlSequenceData

This field of the ST_BA_PIDControlSequenceData structure displays the data and commands of the individual sequence controllers.

This field is limited by the global parameter BA_Param.nMaxSeqCtrl.

fE

REAL

Displays the control deviation of the active sequence controller.

This depends on the control direction of the respective sequence controller.

E_BA_Action.eDirect -> fE = fX-fW

E_BA_Action.eReverse -> fE = fW-fX

nActvSeqCtrl

UDINT

Number of the active sequence controller.

bSync

BOOL

A synchronization pulse has been triggered on one of the sequence controllers. This pulse makes the sequence controller the active one in the sequence.

bEnSeqLink

BOOL

This variable shows bEn of the function block FB_BA_PIDControlSequenceLink.