Delta EtherCAT Programming Manual page 52

Table of Contents

Advertisement

EtherCAT Programming Guide
StrVel.: Input the initial speed. The parameter "StrVel" in the API function.
ConstVel: Input the constant speed. The parameter "ConstVel" in the API function.
EndVel: Input the end speed when it reaches the target position. The parameter "EndVel"
in the API function.
TPhase1: Input the duration from initial speed to constant speed. The parameter
"TPhase1" in the API function.
TPhase2: Input the duration from constant speed to end speed. The parameter "TPhase2"
in the API function.
S-Curve: Check this box to use S-curve for the speed curve. Otherwise, it will use
T-Curve.
ABS.: Check this box to have the motion conducted according to absolute coordinates set
in Dist.
(17) Set the servo motor to ON/OFF state (servo on/servo off)
Press the SVON key (as shown in figure 3.6.2.4) to execute the following program:
RetCode = _ECAT_Slave_Motion_Set_Svon(gESCCardNo, gNodeID[i], gSlotID[i],
ON_OFF);
// ON_OFF
// 0: Servo OFF
// 1: Servo ON
(18) Select Arc for two-axis arc motion (circle center and angle)
Press the ← or → key (as shown in figure 3.6.2.4) to execute the following program:
RetCode = _ECAT_Slave_CSP_Start_Arc_Move(gESCCardNo, gNodeID, gSlotID,
CenPoint, Angle, StrVel, ConstVel, EndVel, Tacc, Tdec, gbIsSCurve, gbIsABS);
// gblsSCurve
// 1: T-Curve
// 2: S-Curve
// gblsABS
// 0: Relative movement
// 1: Absolute movement
March, 2017
EtherCAT Operation Example
3
3-31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents