Help with Delta E3 Ethercat drives - hal and ethercat-conf.xml

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
24 Oct 2025 13:22 - 24 Oct 2025 13:24 #337050 by Hakan
Error messages says pyvcp_panel.hal, line 8.
Only thing I can think of is the line PYVCP=pyvcp_panel.xml in the ini file
that leads to the line it doesn't like.
PROGRAM_PREFIX = /home/cnc/linuxcnc/nc_files
INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm
PYVCP = pyvcp_panel.xml

[KINS]
JOINTS = 1
KINEMATICS = trivkins coordinates=X
I suggest you comment out that line. It is for customization if I understand right. You can always come back later and look at that.
Last edit: 24 Oct 2025 13:24 by Hakan.

Please Log in or Create an account to join the conversation.

  • SPH
  • SPH's Avatar Topic Author
  • Away
  • Premium Member
  • Premium Member
More
24 Oct 2025 22:22 - 24 Oct 2025 22:34 #337097 by SPH
That sorted it. Just #'d out the two PYVCP lines. Looking back over the build thread it was using probe basic so that's probably the issue.
I now have axis running with one encoder that's reading! Fantastic. Don't have any motor control though. I can move the motor shaft and get count and motion on the simulator display but with the machine enabled I can't jog. The sim shows movement but no shaft rotation.

I'm also getting a Linuxcnc notification "LCEC: Invalid appTimePeriod of 0 for master 0 (should be 1000000)."

A quick search on the forum suggests that relates to:
[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
SERVO_PERIOD = 1000000
HOMEMOD=always_homed

in the ini file but it's set to 1000000 already.
Last edit: 24 Oct 2025 22:34 by SPH.

Please Log in or Create an account to join the conversation.

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
25 Oct 2025 08:20 - 25 Oct 2025 08:26 #337116 by Hakan
That's what makes it so challenging with ethercat. Settings in several places and cross-dependencies.
Anyways, the second line in ethercat-conf.xml has the appTimePeriod setting.
There also :)


There are two more settings you can do now when things start to work.
Add this line right under the "<slave" line
<dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0"/>

and go back up to the second line in the file and add a minus-sign to the refClockSyncCycles value
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="-1000"
Last edit: 25 Oct 2025 08:26 by Hakan.

Please Log in or Create an account to join the conversation.

  • SPH
  • SPH's Avatar Topic Author
  • Away
  • Premium Member
  • Premium Member
More
25 Oct 2025 11:09 - 25 Oct 2025 11:28 #337121 by SPH
Righto I've added those lines in. No change on the x axis motor movement though.

In the interim I've connected up my second servo drive in order to start getting a full setup. I've essentially just copied and pasted the working x drive info but I'm getting
[code][code]./EL8_machine.hal:69: Pin 'joint.1.motor-pos-fb' does not exist
I've attached the files. No doubt it's some stupid simple thing.

*Is it easier if I just put the files straight into the post as code rather than attaching them? I want to make sure it's as easy as possible for everyone.[/code][/code]
Attachments:
Last edit: 25 Oct 2025 11:28 by SPH.

Please Log in or Create an account to join the conversation.

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
25 Oct 2025 11:25 #337123 by Hakan
Ok, it's the second line in the hal file,  num_joints=2

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum