Fixed aligner and started main state machine

- Fixed datatype for received offsets
- Added HMI Interface for Hot and Coolplate
This commit is contained in:
2026-02-06 14:39:41 +01:00
parent c1850f780b
commit bdaaf1fe9f
13 changed files with 295 additions and 4599 deletions

View File

@@ -7,6 +7,9 @@ VAR_INPUT
END_VAR
VAR_OUTPUT
END_VAR
VAR_IN_OUT
stHMIInterface : ST_HCPlateHMIInterface;
END_VAR
VAR
// Card inputs
_stStatus AT %I* : ST_SerialStatus;
@@ -31,7 +34,8 @@ END_VAR
]]></Declaration>
<Implementation>
<ST><![CDATA[// Clamp temperature settings
_rTempSetpoint := rTempSetpoint;
// Currently only controlled throught hmi interface
_rTempSetpoint := stHMIInterface.rSetpoint;
IF _rTempSetpoint > 60.0 THEN
_rTempSetpoint := 60.0;
@@ -62,8 +66,8 @@ IF _stStatus.bTransmitAccepted THEN
END_IF
// Debug test
IF _xTempTest THEN
_xTempTest := FALSE;
IF stHMIInterface.xEnable THEN
stHMIInterface.xEnable := FALSE;
M_SetTemp(rTemp := _rTempSetpoint);
_xSend := TRUE;
END_IF]]></ST>