Initial commit
This commit is contained in:
57
TC3_CNCPLCBase/OEM/Werkzeugverwaltung/FB_CmdDInfo.TcPOU
Normal file
57
TC3_CNCPLCBase/OEM/Werkzeugverwaltung/FB_CmdDInfo.TcPOU
Normal file
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.6">
|
||||
<POU Name="FB_CmdDInfo" Id="{e0e28df1-2233-498b-971b-7f8c787db05a}" SpecialFunc="None">
|
||||
<Declaration><![CDATA[FUNCTION_BLOCK FB_CmdDInfo IMPLEMENTS ITF_ToolAction
|
||||
VAR_INPUT
|
||||
END_VAR
|
||||
VAR_OUTPUT
|
||||
END_VAR
|
||||
VAR
|
||||
_tool : TC3_CNC.ST_CNC_TOOL_DATA_EXT;
|
||||
END_VAR
|
||||
]]></Declaration>
|
||||
<Implementation>
|
||||
<ST><![CDATA[]]></ST>
|
||||
</Implementation>
|
||||
<Method Name="Commit" Id="{25561adb-e2c3-4952-8971-6e0bd5714826}">
|
||||
<Declaration><![CDATA[(* Commits the tool data transfer action if it returns true*)
|
||||
METHOD Commit : BOOL
|
||||
VAR_INPUT
|
||||
t : Tc3_CNC.ST_CNC_TOOL_DATA_EXT;
|
||||
END_VAR
|
||||
]]></Declaration>
|
||||
<Implementation>
|
||||
<ST><![CDATA[_tool := t;
|
||||
|
||||
GVL_ToolMgmt.stCurrentTool := _tool;
|
||||
|
||||
Commit := true;]]></ST>
|
||||
</Implementation>
|
||||
</Method>
|
||||
<Property Name="Tool" Id="{55b786a9-d0b6-4eca-9acb-c4eac7ca1a59}">
|
||||
<Declaration><![CDATA[PROPERTY Tool : Tc3_CNC.ST_CNC_TOOL_DATA_EXT
|
||||
]]></Declaration>
|
||||
<Get Name="Get" Id="{0ca7819b-ca71-4950-b112-4e0e7a01037b}">
|
||||
<Declaration><![CDATA[VAR
|
||||
END_VAR
|
||||
]]></Declaration>
|
||||
<Implementation>
|
||||
<ST><![CDATA[Tool := _tool;]]></ST>
|
||||
</Implementation>
|
||||
</Get>
|
||||
</Property>
|
||||
<LineIds Name="FB_CmdDInfo">
|
||||
<LineId Id="9" Count="0" />
|
||||
</LineIds>
|
||||
<LineIds Name="FB_CmdDInfo.Commit">
|
||||
<LineId Id="8" Count="0" />
|
||||
<LineId Id="10" Count="0" />
|
||||
<LineId Id="9" Count="0" />
|
||||
<LineId Id="12" Count="0" />
|
||||
<LineId Id="11" Count="0" />
|
||||
</LineIds>
|
||||
<LineIds Name="FB_CmdDInfo.Tool.Get">
|
||||
<LineId Id="2" Count="0" />
|
||||
</LineIds>
|
||||
</POU>
|
||||
</TcPlcObject>
|
||||
Reference in New Issue
Block a user