Relinked everything with HAL and Execute pattern
- Switched to BaseConponents V2.0
This commit is contained in:
13
PLC/01_Stationen/Hotplate/DUTs/ST_Hotplate_IO.TcDUT
Normal file
13
PLC/01_Stationen/Hotplate/DUTs/ST_Hotplate_IO.TcDUT
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TcPlcObject Version="1.1.0.1">
|
||||
<DUT Name="ST_Hotplate_IO" Id="{9ecd375b-67b5-481a-abf5-608608737ea7}">
|
||||
<Declaration><![CDATA[TYPE ST_Hotplate_IO :
|
||||
STRUCT
|
||||
stTempSensor : ST_AnalogInput_IO;
|
||||
|
||||
o_xEnableHotplate AT %Q* : BOOL;
|
||||
END_STRUCT
|
||||
END_TYPE
|
||||
]]></Declaration>
|
||||
</DUT>
|
||||
</TcPlcObject>
|
||||
@@ -14,11 +14,10 @@ VAR_OUTPUT
|
||||
uiNextReadySlot : UINT;
|
||||
END_VAR
|
||||
VAR_IN_OUT
|
||||
stIO : ST_Hotplate_IO;
|
||||
stHMIInterface : ST_HMI_Hotplate;
|
||||
END_VAR
|
||||
VAR
|
||||
xEnableHotplate AT %Q* : BOOL;
|
||||
|
||||
// _axSlotFree : ARRAY [0..(GVL_HeatCoolConfig.HEAT_COOL_PLATES_NUM_SLOTS - 1)] OF BOOL;
|
||||
// _atonSlotTimer : ARRAY[0..(GVL_HeatCoolConfig.HEAT_COOL_PLATES_NUM_SLOTS - 1)] OF TON;
|
||||
|
||||
@@ -66,7 +65,8 @@ _fbTempSensor(
|
||||
xReleaseErrors:= xReleaseAlarms,
|
||||
xReleaseLimitErrors:= FALSE,
|
||||
xReleaseHardwareErrors:= TRUE,
|
||||
xConfirmAlarms:= xConfirmAlarms,
|
||||
xConfirmAlarms:= xConfirmAlarms,
|
||||
stIO := stIO.stTempSensor,
|
||||
stHMIInterface=> stHMIInterface.stPV);
|
||||
|
||||
// For now get setpoint from HMI interface
|
||||
@@ -87,7 +87,7 @@ _fbLimit(
|
||||
|
||||
_fbPWMOut(
|
||||
timPeriod:= T#100MS,
|
||||
xOutput=> xEnableHotplate);
|
||||
xOutput=> stIO.o_xEnableHotplate);
|
||||
|
||||
SUPER^(stPackMLHMIInterface := stHMIInterface.stStationCmds);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user