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

More
1 year 1 week ago - 1 year 1 week ago #337045 by SPH
*facepalm* I must have clicked every option except that one.

Well at least now I understand how to rename the drives in the xml file to make organising things simpler.

Here's the output from halcmd show pin

What are the basic pins I need for motion?

And a massive thank you to everyone who takes the time to offer help and guidance, it's genuinely amazing.
Last edit: 1 year 1 week ago by SPH.

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

More
1 year 1 week ago - 1 year 1 week ago #337047 by SPH
Ok, I think I've replaced all the relevant pins from the EL8 config with my Delta ASDA pins.
Hal file attached. Fails to run with the following error.
Code:
Debug file information: Note: Using POSIX realtime LCEC: Invalid appTimePeriod of 0 for master 0 (should be 1000000). note: MAXV max: 50.000 units/sec 3000.000 units/min note: LJOG max: 50.000 units/sec 3000.000 units/min note: LJOG default: 2.500 units/sec 150.000 units/min note: jog_order='X' note: jog_invert=set() HAL: ERROR: function 'conv-s32-float.0' not found pyvcp_panel.hal:8: addf failed 27918 27951 Stopping realtime threads Unloading hal components Note: Using POSIX realtime I can't find any reference to conv-s32-float.0 in any of the files.
Last edit: 1 year 1 week ago by SPH.

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

More
1 year 1 week ago - 1 year 1 week ago #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.
Code:
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: 1 year 1 week ago by Hakan.

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

More
1 year 1 week ago - 1 year 1 week ago #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:
Code:
[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: 1 year 1 week ago by SPH.

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

More
1 year 1 week ago - 1 year 1 week ago #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
Code:
<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
Code:
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="-1000"
Last edit: 1 year 1 week ago by Hakan.

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

More
1 year 1 week ago - 1 year 1 week ago #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][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]
Last edit: 1 year 1 week ago by SPH.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum