PLC libraries
Interface
Table1: Inputs
Name Unit Range Description
eControlMode 1 E_CTRL_MODE Switches modes.
bSelSetpoint 1 [TRUE,FALSE] Selects one of two possible set values. FALSE selects
the normal set value, while TRUE selects the standby set
value.
fW1 °C LREAL Setpoint
fW2 °C LREAL Standby set value, generally smaller than fW1.
fSelSetpoint can be used to switch between fW1 and
fW2.
fX °C LREAL Actual value. This value must be converted to LREAL.
fYManual -100% -
+100%
LREAL Control value in manual mode.
bOpenThermoc
ouple
1 [TRUE,FALSE] The thermocouple is open if TRUE. Must be indicated by
the hardware (e.g. KLxxxx).
bReverseTherm
ocouple
1 [TRUE,FALSE] TRUE indicates that the thermocouple has been
connected with the wrong polarity. Must be indicated by
the hardware.
bBackVoltage 1 [TRUE,FALSE] TRUE indicates that the input voltage at the
thermocouple is too high. Must be indicated by the
hardware.
bLeakage 1 [TRUE,FALSE] TRUE indicates that leakage current has been detected
at the heating element. Must be indicated by the
hardware.
bShortCircuit 1 [TRUE,FALSE] TRUE indicates that a short circuit has been detected at
the heating element. Must be indicated by the hardware.
bOpenCircuit 1 [TRUE,FALSE] TRUE indicates that an open circuit has been detected at
the heating element. Must be indicated by the hardware.
sControllerPara
meter
none Structure General parameters (sampling rate etc.) are passed to
the block in this structure.
sParaController
External
none Structure An external controller parameter set is passed to the
block in this structure.
Table2: Outputs
Name Unit Range Description
fYAnalog none LREAL Analogue control value.
bYPWMPos none [TRUE,FALSE] Boolean output, pulse width modulated (positive, heating)
bYPWMNeg none [TRUE,FALSE] Boolean output, pulse width modulated (negative,
cooling)
bYDigPos none [TRUE,FALSE] Boolean output of a three-point controller (TRUE control
value 100%, FALSE control value off)
bYDigNeg none [TRUE,FALSE] Boolean output of a three-point controller (TRUE control
value -100%, FALSE control value off)
dwAlarm none DWORD Alarm signals (see ENUM ...)
fMaxOverShoot °C LREAL max. overshoot in °C under/over setpoint
tStartUpTime TIME - rising time until the first time reaching the setpoint.
eCtrlState none E_CTRL_STATE actuel state of the controller (s. ENUM ...)
sParaControllerI
nternal
none Structure PID controller parameter from tuning.
bError none [TRUE,FALSE] If an error is present, then bError is TRUE.
iErrorId none INT If bError is TRUE, then iErrorId provides an error code
(see ENUM ...)
TC3 Temperature Controller22 Version: 1.1