/
ECL Homing Notes with PAC Via EtherCAT
ECL Homing Notes with PAC Via EtherCAT
Use SMC3_ETC_WriteParameter_CoE to do a SDO (acyclic 'one-shot' data write) to the eCL to set the Homing Speed and Homing Mode before doing an MC_Home.
Index and subindex are listed in eCL user manual.
PROGRAM PLC_PRG
VAR
YPower: mc_power;
bTurnOnY: BOOL;
Ymove: SM3_Basic.MC_MoveRelative;
bMoveY: BOOL;
Yhome: SM3_Basic.MC_Home;
bHomeY: BOOL;
YSetHomingMode:SM3_Drive_ETC.SMC3_ETC_WriteParameter_CoE;
bYSetHomingMode:BOOL;
YSetHomingSpeed:SM3_Drive_ETC.SMC3_ETC_WriteParameter_CoE;
bYSetHomingSpeed:BOOL;
END_VAR
YPower(
Axis:= Y,
Enable:= TRUE,
bRegulatorOn:= bTurnOnY,
bDriveStart:= bTurnOnY,
Status=> ,
bRegulatorRealState=> ,
bDriveStartRealState=> ,
Busy=> ,
Error=> ,
ErrorID=> );
Ymove(
Axis:= Y,
Execute:=bMoveY ,
Distance:= 1,
Velocity:= 1,
Acceleration:=10 ,
Deceleration:=10 ,
Jerk:= ,
Done=> ,
Busy=> ,
CommandAborted=> ,
Error=> ,
ErrorID=> );
YSetHomingMode(
xExecute:=bYSetHomingMode,
xAbort:= ,
uiIndex:=16#6098 ,
usiSubIndex:= 0,
usiDataLength:=1 ,
dwValue:= 1,
Axis:= Y,
xDone=> ,
xBusy=> ,
xError=> ,
dwErrorCode=> ,
eError=> );
YSetHomingSpeed(
xExecute:=bYSetHomingSpeed,
xAbort:= ,
uiIndex:=16#6099 ,
usiSubIndex:= 1,
usiDataLength:=4 ,
dwValue:= 10000,
Axis:= Y,
xDone=> ,
xBusy=> ,
xError=> ,
dwErrorCode=> ,
eError=> );
Yhome(
Axis:=Y ,
Execute:= bHomeY,
Position:= 0,
Done=> ,
Busy=> ,
CommandAborted=> ,
Error=> ,
ErrorID=> );
ECLD-4DC-PC EtherCAT Stepper drive wiring for Limit Sensors (Limit+, Limit-, Origin; and Inputs & Outputs)
aka End of Travel and Home inputs
NPN sensors required with wiring shown.
Related content
Compax3 Misc - Homing A SinCos System
Compax3 Misc - Homing A SinCos System
More like this
Compax3 Training - Interact Xpress HMI to Compax3 T30 Sample Project (Video)
Compax3 Training - Interact Xpress HMI to Compax3 T30 Sample Project (Video)
More like this
How to Read the Absolute Position from EPL Drive?
How to Read the Absolute Position from EPL Drive?
More like this
IPA Software - How to Change the Home Start Direction and Other Home Settings
IPA Software - How to Change the Home Start Direction and Other Home Settings
More like this
How to Home to a Limit in AcroBASIC
How to Home to a Limit in AcroBASIC
More like this
Assigning Limit and Home Inputs (HLBIT)
Assigning Limit and Home Inputs (HLBIT)
More like this