Newbie migrating a gantry from Mach3 to LinuxCNC
- pl7i92
- Offline
- Platinum Member
- Posts: 1875
- Thank you received: 354
or the other way you did not load the panel to the coustompostgui
its for shure the first as hal trys to find your pyvcp panel but its not present
in DISPLAY section
PYVCP = yourpanel.xml
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23178
- Thank you received: 4862
That, and rewriting old broken stuff with decades of accumulated cruft isn't nearly as much fun as working on new stuff.
Fixing stepconf but leaving it still stuck in Python2 would feel a bit wrong too.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23178
- Thank you received: 4862
That significantly more concise output from the command line would be very helpful
There is a bit of work going on with that: github.com/LinuxCNC/linuxcnc/issues/657
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23178
- Thank you received: 4862
pyvcp_options.hal:8: Pin 'pyvcp.spindle-speed' does not exist
This looks like it is part of a file called by your postgui call list.hal. (line 8 of a file called pyvcp_options.hal )
I don't see anything in the [DISPLAY} section of the INI that is loading a pyvcp panel, so it makes sense that this pin does not exist.
Initially I would suggest commenting out POSTGUI_HALFILE = postgui_call_list.hal in the [HAL] section of the INI.
The other thing missing from the INI file is the HOME_*_VELOCITY settings for each joint and the HOME_SEQUENCE numbers (which should be negative for joints 0 and 1 that make up your X.)
Your HAL file does not define any limit switch inputs. Perhaps this has been glossed over in the preceding discussion, but you absolutely must have a pair of limit switches for your gantry axis if you want gantry homing to work.
As things stand your machine will (probably) use immediate homing at the current position, but until it is homed you won't be able to jog both sides of the gantry simultaneously.
Please Log in or Create an account to join the conversation.
- Bats
- Topic Author
- Offline
- Senior Member
- Posts: 55
- Thank you received: 7
This is about where I run out of time but your error is mentioned here
www.forum.linuxcnc.org/gmoccapy/32186-mo...e-side-panel-problem
this is a bit different but I suspect its a load order thing.
The details are a little different and it looks like there might've been some other issues complicating the picture, but, yeah, based on what I could follow it looks like the same thing's probably happening.
Will do. I'll see if I can double-check my repro & toss a post over there a bit later.I would post in the gmocappy forum and I think Norbert the gmoccappy author will be along to help.
-Bats
Please Log in or Create an account to join the conversation.
- Bats
- Topic Author
- Offline
- Senior Member
- Posts: 55
- Thank you received: 7
That's the thing - and the only reason I thought the crash was worth reporting. The only thing I did was to take the stock by_interface->parport->gecko->Gecko_G540B4 config and switch the screen from axis to gmoccapy using stepconf. Switch it back to axis, and it works fine. Do the same thing using the Gecko_G540B3 config (I haven't looked at the files in depth, but it looks like it's supposed to be the same thing without the *B4's extra A axis), and that works fine, too. That made it look to me like there was either a problem with one of the stock configs, or with the way stepconf was handling them.you did not load the coustom postgui hal file
or the other way you did not load the panel to the coustompostgui
Well, either that or there was a "No! Stop! Wait! Don't do that, you idiot!" warning that I ignored somewhere along the way, assuming it must be talking about some other idiot.
(and again, this really doesn't apply to my actual setup - it was just something I stumbled across early on while fiddling with various configs)
-Bats
Please Log in or Create an account to join the conversation.
- Bats
- Topic Author
- Offline
- Senior Member
- Posts: 55
- Thank you received: 7
Oooo... yeah. That would definitely be a little tacky.Fixing stepconf but leaving it still stuck in Python2 would feel a bit wrong too.
I think I may have been posting when I should've been sleeping (again), since I guess I didn't do a very good job of making it clear. The error report is from switching the stock Gecko_G540B4 config from axis to gmoccapy, not from the ini/hal files I posted (which were modified a la joel0407 from Gecko_G540B3). My ini/hal files run without a crash, but are only sending signals to three of the four motors.This looks like it is part of a file called by your postgui call list.hal. (line 8 of a file called pyvcp_options.hal )
I don't see anything in the [DISPLAY} section of the INI that is loading a pyvcp panel, so it makes sense that this pin does not exist.
Ok, then it looks like my problem (yet again) comes purely from getting ahead of myself. I'd put off dealing with the home/limit switches because it was getting late and I didn't have the energy to dive into the (embarrassingly) poorly labeled wiring to sort out which pins carried which switches, assuming (wrongly, it seems) that I could test to make sure all the motors were behaving before moving on to homing.As things stand your machine will (probably) use immediate homing at the current position, but until it is homed you won't be able to jog both sides of the gantry simultaneously.
So it looks like I know what I need to do next - thanks for saving me from wasting any more time (oops) on premature troubleshooting.
-Bats
Please Log in or Create an account to join the conversation.
- Bats
- Topic Author
- Offline
- Senior Member
- Posts: 55
- Thank you received: 7
With the machine out of commission these past couple months, I hadn't given it much thought, but it turns out the job I was in the middle of when the old motherboard died was...
(wait for it)
Cutting mounts for home/limit switches.
This will make things... interesting. I'm hoping I can hack a couple of the not-quite-right prototypes into temporary service - otherwise I may just try to set up manual homing until I can finish the job.
Guess I could've gone with 2.7 after all.
Oops,
-Bats
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23178
- Thank you received: 4862
If the machine goes straight to a homed state when you press home, then it's usable as-is.
Please Log in or Create an account to join the conversation.
- Bats
- Topic Author
- Offline
- Senior Member
- Posts: 55
- Thank you received: 7
It didn't seem to be related to my prior issue, but I also discovered that I'd mixed up my pins, and the "gantry" was composed of one X motor and one Y motor. Oops. Still, no damage done. Unlike the time I learned that Mach3 treated slaved axis config differently in some modes than others, as it demonstrated by "homing" the two ends of the gantry in opposite directions as fast as the machine would let it.
Still, I think I've got the most intimidating bits or setup out of the way (and think I understand how homing should work once the the switches are re-mounted)... At least until I try to get my
Thanks again, everyone - I appreciate all the help (and/or patience) in getting to this point.
-Bats
Please Log in or Create an account to join the conversation.