Added first hmi interface implementation

This commit is contained in:
2026-02-19 00:20:05 +01:00
parent 0c40092d8f
commit a3ad956f0d
29 changed files with 591 additions and 240 deletions

View File

@@ -23,6 +23,9 @@ VAR_OUTPUT
xReady : BOOL;
xError : BOOL;
END_VAR
VAR_IN_OUT
stHMIInterface : ST_HMI_Kuka;
END_VAR
VAR
// 0 - Nicht aus
// 1 - Enable
@@ -142,7 +145,7 @@ _xRobotReady := stState.bExt
// =============================
// Call isa88 base state machine
// =============================
SUPER^(stPackMLHMIInterface := THIS^.stPackMLHMIInterface);
SUPER^(stPackMLHMIInterface := stHMIInterface.stStationCmds);
// ==============================

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1">
<DUT Name="ST_HMI_Kuka" Id="{d33ceec3-928d-4488-9aec-30598b609ff5}">
<Declaration><![CDATA[TYPE ST_HMI_Kuka :
STRUCT
stStationCmds : ST_HMI_PackML;
// Job parameter
stJobParams : ST_KukaRobot_JobParams;
END_STRUCT
END_TYPE
]]></Declaration>
</DUT>
</TcPlcObject>

View File

@@ -6,16 +6,16 @@ STRUCT
// Robot job number
eJob : E_KukaRobot_JobNumberRobot;
// Position in x in mm
// Pick/Place position in x in mm
rPosX : REAL := 78;
// Position in y in mm
// Pick/Place Position in y in mm
rPosY : REAL := 88;
// Substrate thickness in mm
rThickness : REAL := 2.7;
// Gripper side (1 or 2)
// Gripper side (1 - 6)
byGripperSide : BYTE := 3;
// Scan QR Code during pickup from loading station