G54 issue with limit switch

More
24 Jan 2024 18:12 - 24 Jan 2024 18:25 #291540 by Lpkkk
Hi I've recently added limit switches to my 3040. Before I was using touchplate to measure tool and set g54 z. After adding limit switches, I'm not sure what happened but when I load any program, it's is offseted much lower than it should be. Please look at screen below
Attachments:
Last edit: 24 Jan 2024 18:25 by Lpkkk. Reason: Image add

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

More
24 Jan 2024 18:20 #291543 by tommylight
Please attach the pictures here on the forum, not on 3rd party sites, they tend to have way to much suspicious scripts running, so present a security risk.

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

More
24 Jan 2024 18:25 #291544 by Lpkkk
Replied by Lpkkk on topic G54 issue with limit switch
Thx. Corrected
The following user(s) said Thank You: tommylight

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

More
25 Jan 2024 11:29 #291589 by Lpkkk
Replied by Lpkkk on topic G54 issue with limit switch
Ok lads, I've found it. The issue was caused by using
REMAP=M6 modalgroup=6 ngc=touch_plate

I've added it because after each tool change I would like to use touchplate to measure tool.
What I'm doing wrong? Any help?

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

More
25 Jan 2024 12:10 #291590 by Aciera
Replied by Aciera on topic G54 issue with limit switch
Looking at your hal file, I don't see any links for limit switches for the Z axis:
setp stepgen.2.position-scale [JOINT_2]SCALE
setp stepgen.2.steplen 1
setp stepgen.2.stepspace 0
setp stepgen.2.dirhold 70000
setp stepgen.2.dirsetup 70000
setp stepgen.2.maxaccel [JOINT_2]STEPGEN_MAXACCEL
net zpos-cmd joint.2.motor-pos-cmd => stepgen.2.position-cmd
net zpos-fb stepgen.2.position-fb => joint.2.motor-pos-fb
net zstep <= stepgen.2.step
net zdir <= stepgen.2.dir
net zenable joint.2.amp-enable-out => stepgen.2.enable
#net max-home-z => joint.2.home-sw-in
#net max-home-z => joint.2.pos-lim-sw-in

Then in your ini I see you have HOME = 25 and HOME_OFFSET=25 yet you have not set any homing velocities, which makes me wonder how you home your z-axis?
 

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

More
26 Jan 2024 20:44 #291683 by Lpkkk
Replied by Lpkkk on topic G54 issue with limit switch
You are right, I've commented out my limitswitch on Z as I thought this config could be the reason for my issue with g54. I will bring it back.
It's still not answer for my problem

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

More
27 Jan 2024 09:01 #291727 by Aciera
Replied by Aciera on topic G54 issue with limit switch
Limit switches have no influence on your Z-offset but not properly homing your Z-axis certainly does.

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

More
27 Jan 2024 09:11 #291728 by Lpkkk
Replied by Lpkkk on topic G54 issue with limit switch
That's interesting, could you please extend this topic?

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

More
27 Jan 2024 09:21 #291729 by Aciera

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

More
27 Jan 2024 19:33 - 27 Jan 2024 20:42 #291760 by Lpkkk
Replied by Lpkkk on topic G54 issue with limit switch
Ok. I've enabled limit sw on Z axis and everything is correct.

After I add remap line, it is still wrong like on 1st screenshot. I've found out it is like that because of what I have in routines/touchplate.ngc.
Can someone point me where?
Is it missing G49? If yes where? 
Ps. When I press on button to manually measure the tool it works like a charm. But in connection with remaping M6 it cause an issue. 
All I want is if in gcode there is a tool change, lift z axis up, display message box to start manual change, measure tool in some position xy, measure using touchplate, display another messagebox with info to take touchplate, carry on the gcode. 

​​
Last edit: 27 Jan 2024 20:42 by Lpkkk.

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

Time to create page: 0.083 seconds
Powered by Kunena Forum