Commit 9f4c0567 authored by Jörg Weingrill's avatar Jörg Weingrill
Browse files

added McHalt

parent 5baa63d7
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4022.12">
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.0">
<POU Name="FB_ModuloAxis" Id="{eb42ac6b-4ba5-4589-8a29-bb7b971966a8}" SpecialFunc="None">
<Declaration><![CDATA[FUNCTION_BLOCK FB_ModuloAxis
VAR_INPUT
......@@ -13,6 +13,7 @@ VAR_INPUT
fMoveModPos: LREAL;
fMoveModVelo: LREAL;
bStop: BOOL;
bHalt: BOOL;
END_VAR
VAR_OUTPUT
///=============GROUP ADMINISTRATIVE==============
......@@ -34,12 +35,6 @@ VAR_OUTPUT
END_VAR
VAR
(*
Aufgabe
fbMcPower vom MC_Power anlegen;
fbMc_Reset vom Typ MC_Reset anlegen;
fbMoveAbsolute vom Typ MC_MoveAbsolute anlegen;
*)
// Baustein Reglerfreigabe
fbMcPower: MC_Power;
......@@ -60,8 +55,11 @@ VAR
fbMcStop : MC_Stop;
st_fbMcStopOut: ST_McOutputs;
nstate: INT;
fb_RTrig1: R_TRIG;
(* MC_Halt *)
fbMcHalt : MC_Halt;
st_fbMcHaltOut: ST_McOutputs;
//nstate: INT;
//fb_RTrig1: R_TRIG;
MC_ReadActualPosition: MC_ReadActualPosition;
END_VAR
......@@ -132,7 +130,8 @@ fbMoveModulo(
Acceleration := 0, // 0 heisst default aus SystemManager "Dynamik"
Deceleration := 0,
Jerk := 0,
BufferMode := ,
Direction := MC_Shortest_Way,
BufferMode := MC_Buffered,
Options := ,
Done => StfbMcMoveModulo.Done,
Busy => StfbMcMoveModulo.Busy,
......@@ -159,7 +158,12 @@ fbMcStop(
Error => st_fbMcStopOut.Error,
ErrorID => st_fbMcStopOut.ErrorID );
]]></ST>
fbMcHalt(
Axis := stAxis,
Execute := bHalt,
Deceleration := 0,
Jerk := 0,
BufferMode := MC_Aborting);]]></ST>
</Implementation>
<LineIds Name="FB_ModuloAxis">
<LineId Id="91" Count="3" />
......@@ -168,7 +172,11 @@ fbMcStop(
<LineId Id="247" Count="0" />
<LineId Id="95" Count="39" />
<LineId Id="242" Count="0" />
<LineId Id="135" Count="39" />
<LineId Id="135" Count="11" />
<LineId Id="317" Count="0" />
<LineId Id="147" Count="26" />
<LineId Id="321" Count="4" />
<LineId Id="174" Count="0" />
</LineIds>
</POU>
</TcPlcObject>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment