Fixed AxisPTP MoveVelocity
This commit is contained in:
@@ -136,7 +136,7 @@
|
||||
</System>
|
||||
<Plc>
|
||||
<Project GUID="{4E62D9E7-436C-457D-8DC4-82D2FEF91C96}" Name="BasicComponents" PrjFilePath="BasicComponents\BasicComponents.plcproj" TmcFilePath="BasicComponents\BasicComponents.tmc" ReloadTmc="true" AmsPort="851" FileArchiveSettings="#x000e" CopyTmcToTarget="true" CopyTpyToTarget="false" SymbolicMapping="true">
|
||||
<Instance Id="#x08502000" TcSmClass="TComPlcObjDef" KeepUnrestoredLinks="2" TmcHash="{864A6F78-5663-9977-8C53-B90BFD312EA0}" TmcPath="BasicComponents\BasicComponents.tmc">
|
||||
<Instance Id="#x08502000" TcSmClass="TComPlcObjDef" KeepUnrestoredLinks="2" TmcHash="{F7EEFF71-0952-DE86-79DA-785827446F08}" TmcPath="BasicComponents\BasicComponents.tmc">
|
||||
<Name>BasicComponents Instance</Name>
|
||||
<CLSID ClassFactory="TcPlc30">{08500001-0000-0000-F000-000000000064}</CLSID>
|
||||
<Contexts>
|
||||
|
||||
Binary file not shown.
@@ -537,7 +537,7 @@ END_VAR
|
||||
<Implementation>
|
||||
<ST><![CDATA[// Reject command if axis is not enabled
|
||||
IF (NOT _fbPower.Status) THEN
|
||||
M_MoveRel := E_CmdResult.REJECTED;
|
||||
M_MoveVelocity := E_CmdResult.REJECTED;
|
||||
RETURN;
|
||||
END_IF
|
||||
|
||||
@@ -548,13 +548,13 @@ CASE _eState OF
|
||||
|
||||
xBusy := TRUE;
|
||||
xDone := FALSE;
|
||||
M_MoveRel := E_CmdResult.ACCEPTED;
|
||||
M_MoveVelocity := E_CmdResult.ACCEPTED;
|
||||
|
||||
E_AXIS_PTP_STATE.ERROR:
|
||||
M_MoveRel := E_CmdResult.ERROR;
|
||||
M_MoveVelocity := E_CmdResult.ERROR;
|
||||
|
||||
ELSE
|
||||
M_MoveRel := E_CmdResult.BUSY;
|
||||
M_MoveVelocity := E_CmdResult.BUSY;
|
||||
END_CASE]]></ST>
|
||||
</Implementation>
|
||||
</Method>
|
||||
|
||||
Reference in New Issue
Block a user