Hello
I have a DC motor for a conveyor that I controll usind EL7342 beckhoff drive and AtmoSingleAxisDrive object from OES.
The thing is I can start the motor but I can not stop it without having a drive error.
for starting I am using this code:
The only way to stop it that I found is:
But this triggers the following error:
'TCNC' (500): 'ImportBand' (Axis-ID: 1, Grp-ID: 1):
The axis or a coupled slave axis has lost its controller enable signal while executing a command => error 0x4260 (StateDWord: 0x2181501, CoupleState: 0, ActPos: 0.000000, ActVelo: 0.000000)
What code sequence I have to use to stop the motors without triggering the error above?
I have a DC motor for a conveyor that I controll usind EL7342 beckhoff drive and AtmoSingleAxisDrive object from OES.
The thing is I can start the motor but I can not stop it without having a drive error.
for starting I am using this code:
Code:
Fu2ImportLiftBand.Unit.ParCfg.iDrive.Reset();
Fu2ImportLiftBand.Unit.Enable:=TRUE;
Fu2ImportLiftBand.Unit.ParCmd.Speed:=3000;
Fu2ImportLiftBand.Unit.Command:=SingleAxisCmd.SETVELO;
Fu2ImportLiftBand.Unit.Execute:=TRUE;
_retVal:=OK;
The only way to stop it that I found is:
Code:
IF(rParImm.LiftBeltStopSensor)
THEN
Fu2ImportLiftBand.Unit.ParCfg.iDrive.PowerOff();
_retVal:=OK;
ELSE
_retVal:=OK;
END_IF
But this triggers the following error:
'TCNC' (500): 'ImportBand' (Axis-ID: 1, Grp-ID: 1):
The axis or a coupled slave axis has lost its controller enable signal while executing a command => error 0x4260 (StateDWord: 0x2181501, CoupleState: 0, ActPos: 0.000000, ActVelo: 0.000000)
What code sequence I have to use to stop the motors without triggering the error above?