将同步对象的 SyncingMotion.camReferenceBySlaveModeRelative
修改为 POSITION_AT_START_OF_CAMMING
myRetDINT :=
_enableCamming(
followingObject :=
// ,direction := USER_DEFAULT
// ,masterMode := USER_DEFAULT
// ,slaveMode := USER_DEFAULT
// ,cammingMode := USER_DEFAULT
,cam :=
// ,synchronizingMode := USER_DEFAULT
// ,syncPositionReference := USER_DEFAULT
// ,syncProfileReference := USER_DEFAULT
// ,syncLengthType := USER_DEFAULT
// ,syncLength := 0.0
// ,camStartPositionMasterType := USER_DEFAULT
// ,camStartPositionMaster := 0.0
// ,syncPositionMasterType := USER_DEFAULT
// ,syncPositionMaster := 0.0
// ,syncPositionSlaveType := USER_DEFAULT
// ,syncPositionSlave := 0.0
// ,velocityType := USER_DEFAULT
// ,velocity := 100.0
// ,positiveAccelType := USER_DEFAULT
// ,positiveAccel := 100.0
// ,negativeAccelType := USER_DEFAULT
// ,negativeAccel := 100.0
// ,positiveAccelStartJerkType := USER_DEFAULT
// ,positiveAccelStartJerk := 100.0
// ,positiveAccelEndJerkType := USER_DEFAULT
// ,positiveAccelEndJerk := 100.0
// ,negativeAccelStartJerkType := USER_DEFAULT
// ,negativeAccelStartJerk := 100.0
// ,negativeAccelEndJerkType := USER_DEFAULT
// ,negativeAccelEndJerk := 100.0
// ,velocityProfile := USER_DEFAULT
// ,mergeMode := SEQUENTIAL
// ,nextCommand := IMMEDIATELY
// ,commandId := (0,0)
// ,synchronizingDirection := USER_DEFAULT
);