FB_CTRL_TempController_DistComp

FB_CTRL_TempController_DistComp 1:

This temperature controller function block adds disturbance compensation to the FB_CTRL_TempController function blocks. The structure is described here.

FB_CTRL_TempController_DistComp 2: VAR_INPUT

VAR_INPUT
  eCtrlMode                     : E_CTRL_MODE;
  bSelSetpoint                  : BOOL;
  fW1                           : LREAL;
  fW2                           : LREAL;
  fX                            : LREAL;
  fYManual                      : LREAL;
  bOpenThermocouple             : BOOL;
  bReverseThermocouple          : BOOL;
  bBackVoltage                  : BOOL;
  bLeakage                      : BOOL;
  bShortCircuit                 : BOOL;
  bOpenCircuit                  : BOOL;
  fD                            : LREAL;
  bCompensateDisturbance        : BOOL;
  stParaControllerExternal      : ST_CTRL_ParaController;
END_VAR

Name

Unit

Area

Description

eControlMode

Obsolete

E_CTRL_MODE

Switches mode.

bSelSetpoint

Obsolete

[True, False]

Selects one of the two possible setpoints; TRUE selects the standby setpoint.

fW1

°C

LREAL

Setpoint

fW2

°C

LREAL

Standby setpoint (normally less than fW1, bSelSetpoint is used to switch between fW1 and fW2).

fX

°C

LREAL

Actual value

fYManual

%

[-100%, +100%]

Control value in manual mode

bOpenThermocouple

Obsolete

[True, False]

The thermocouple is open when TRUE; must be specified by the hardware.

bReverseThermocouple

Obsolete

[True, False]

The thermocouple is connected with incorrect polarity if TRUE; must be specified by the hardware.

bBackVoltage

Obsolete

[True, False]

The input voltage at the thermocouple is too high if TRUE; must be specified by the hardware

bLeakage

Obsolete

[True, False]

Leakage current was detected if TRUE; must be specified by the hardware.

bShortCircuit

Obsolete

[True; False]

Short circuit was detected if TRUE; must be specified by the hardware.

bOpenCircuit

Obsolete

[True, False]

Open circuit was detected if TRUE; must be specified by the hardware.

fD

Obsolete

LREAL

Actual value of the measured disturbance variable

bCompensateDisturbance

Obsolete

[True, False]

Disturbance compensation is enabled if TRUE.

sParaControllerExternal

Obsolete

Structure

An external controller parameter set was transferred to the controller.

FB_CTRL_TempController_DistComp 3: VAR_OUTPUT

VAR_OUTPUT
  fYAnalog                      : LREAL;
  bYPWMPos                      : BOOL;
  bYPWMPos                      : BOOL;
  bYPWMNeg                      : BOOL;
  bYDigPos                      : BOOL;
  bYDigNeg                      : BOOL;
  dwAlarm                       : DWORD;
  fMaxOverShoot                 : LREAL;
  tStartUpTime                  : TIME;
  eCtrlState                    : E_CTRL_STATE;
  sParaControllerInternal       : ST_CTRL_ParaController;
  bError                        : BOOL;
  eErrorId                      : E_CTRL_ErrorCodes;
END_VAR

VAR_IN_OUT

VAR_IN_OUT
  sControllerParameter          : ST_CTRL_TempCtrlParameter;
  sCompensatorParameter         : ST_CTRL_DistCompParameter;
END_VAR

Name

Type

Description

sController
parameter

ST_CTRL_TempCtrl
Parameter

Parameter structure of the function block

sCompensatorParameter

ST_CTRL_DistComp
Parameter

Parameter structure of the function block

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT 3.1.4016

PC or CX

Tc2_TempController