Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!

More
2 years 4 months ago #303064 by eduard
I have tandem axes, but they are configured outside lcnc, in servo drives gantry function. This is why TRAJ using XYZ.

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

More
2 years 4 months ago - 2 years 4 months ago #303066 by Aciera
Just noticed this in your ini file:

[AXIS_X]
#Softlimit
MIN_LIMIT = 5.00
MAX_LIMIT = 1395.00
MAX_VELOCITY = 400.0
MAX_ACCELERATION = 4000.0

#Joint coordinate. Must be equal or bigger than working coordinates.
[JOINT_0]
TYPE = LINEAR
AXIS = X
#Hardlimit
MIN_LIMIT = 0.00
MAX_LIMIT = 1400.00


Not sure why you chose to use different limits for joint and axis but if your home position is at 0 then you would get a limit violation warning immediately after homing since then the axis limits are enforced and 0 would be outside those.
In my opinion there is no real advantage  in having different values for joint/axis limits in a trivial cartesian machine setup but you may have your reasons.
Also I would use the term 'hard limit' for the position of the limit switches while Joint and Axis limits are both 'soft limits'.
Last edit: 2 years 4 months ago by Aciera. Reason: wording

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

More
2 years 4 months ago #303067 by paul_chx
Hello Eduard!
I am currently fiddling around with a similar system too, just using the EL7 drives instead of the EL8 - but the communication protocols are the same as far as I can see.
You write that you got the drives internal homing routine to work with Marco Reps' el8homecomp - are you sure of that? When I tried his component yesterday I could never see the opmode (pin "opmode-display") change from CSP (value 8) to HM (value 6). And the limits that I had set for homing velocity and homing acceleration were clearly disregarded - the drive would simply drive the axis to zero at 6000rpm and maximum achievable accelleration. Luckily I had nothing connected to the motors shaft...
So currently this problem remains unresolved for me, too.
Have a nice evening!
Paul

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

More
2 years 4 months ago - 2 years 4 months ago #303069 by eduard
Here is the latest INI.
 

File Attachment:

File Name: qtdragon_h...15-4.ini
File Size:6.98 KB


still having the error when powering off linuxcnc:
Exceeded POSITIVE soft limit on Joint_2 (0.000000)

After turn it on, the axes are homed and not be able to move a joint, neither homing again ewen if I unhomed the machine. So I have to shut it down, open lcnc again and now I can homing. But when it runs, never run into soft limit error, just very very close to limitswitch. 

Actually I tought the AXIS is soft limit, JOINT is hard limit, but not that case. I need something to have when softlimit is smaller area than hardlimit and machine not even close to limit switch. It is so basic, I'm sure lcnc has to have, and I'm suprised why it is so hard to find.
Last edit: 2 years 4 months ago by eduard.

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

More
2 years 4 months ago #303071 by tommylight
Also, home 0 with home_offset 0 and min limit 5 will most probably not work, you have those for X and Z axis.

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

More
2 years 4 months ago #303075 by eduard
Here is the latest ini. Still having issues while powering off lcnc, but after homing, jogging from 0,0,0 to any other point, and power off, does not complaining about softlimits. Am I missing something? 

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

Time to create page: 0.272 seconds
Powered by Kunena Forum