Jog from external pushbutton only works after a move say G0 X1
- slowpoke
- Offline
- Elite Member
Less
More
- Posts: 173
- Thank you received: 25
06 Jan 2025 19:06 - 06 Jan 2025 19:17 #318250
by slowpoke
Jog from external pushbutton only works after a move say G0 X1 was created by slowpoke
I have an annoying bug possibly in my HAL or ini.
I have external buttons for jogging. When I first start axis if I press a jog button, it won't jog. However if I go to the MDI tab and then say do a G0 X1, or F10 (probably any G-code?) and then go back to Manual Control tab, then the jog buttons work.
Note the jog buttons in the axis GUI do work without having to do the MDI thing described.
Also when I look using HAL Show (initially when it won't jog), I can see my jog button activating, and I can see it activating halui.axis.x.increment-plus.
I'm not sure what changes or gets updated when I issue a G-Code in the MDI tab, but whatever it is it's stopping my jog buttons from working initially when I start axis. Simply going to the MDI tab and back does not work, so it's something to do with actually executing a command in MDI.
E-Stop is reset, machine power is on and I have NO_FORCE_HOMING = 1, so not the super obvious stuff.
Another hint, if I home the axis before I try the jog button, that also works, so it's as if the NO_FORCE_HOMING = 1 is being ignored until I issue a command.
Any ideas?
I have external buttons for jogging. When I first start axis if I press a jog button, it won't jog. However if I go to the MDI tab and then say do a G0 X1, or F10 (probably any G-code?) and then go back to Manual Control tab, then the jog buttons work.
Note the jog buttons in the axis GUI do work without having to do the MDI thing described.
Also when I look using HAL Show (initially when it won't jog), I can see my jog button activating, and I can see it activating halui.axis.x.increment-plus.
I'm not sure what changes or gets updated when I issue a G-Code in the MDI tab, but whatever it is it's stopping my jog buttons from working initially when I start axis. Simply going to the MDI tab and back does not work, so it's something to do with actually executing a command in MDI.
E-Stop is reset, machine power is on and I have NO_FORCE_HOMING = 1, so not the super obvious stuff.
Another hint, if I home the axis before I try the jog button, that also works, so it's as if the NO_FORCE_HOMING = 1 is being ignored until I issue a command.
Any ideas?
Last edit: 06 Jan 2025 19:17 by slowpoke.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4862
12 Jan 2025 17:11 #318797
by andypugh
Replied by andypugh on topic Jog from external pushbutton only works after a move say G0 X1
This sounds like the machine is not in "Manual" mode when you start up. (which is a bit odd, actually)
You shouldn't have to do anything in the MDI window, just switching to MDI and back should but you in MANUAL. But you shouldn't need to do anything anyway of it's the "manual" tab at the front in Axis.
It might be instructive to monitor halui.mode.is_manual.
I have looked through your HAL files and haven't spotted where the pushbuttons connect to the axis/joint jog pins. Maybe these are connected in your postgui.hal?
You shouldn't have to do anything in the MDI window, just switching to MDI and back should but you in MANUAL. But you shouldn't need to do anything anyway of it's the "manual" tab at the front in Axis.
It might be instructive to monitor halui.mode.is_manual.
I have looked through your HAL files and haven't spotted where the pushbuttons connect to the axis/joint jog pins. Maybe these are connected in your postgui.hal?
Please Log in or Create an account to join the conversation.
Time to create page: 0.172 seconds