Configured offset in INI file not applied properly

More
08 Dec 2023 14:05 #287535 by Unlogic
This thread is a continuation of the error I first described in the thread linked below:

forum.linuxcnc.org/qtpyvcp/48401-py3-pro...-2-9?start=10#287480

I have installed Probe Basic on two separate computers over the past days and ran into the same error on both of them regarding the default work offset.

My INI file contains the following section copied from the "Probe Basic Config Conversion Doc Lcnc 2.9+" thread.  My full configuration is attached to this post.

[RS274NGC]
RS274NGC_STARTUP_CODE = F10 S300 G21 G17 G40 G49 G54 G64 P0.001 G80 G90 G91.1 G92.1 G94 G97 G98
FEATURES = 30
PROGRAM_PREFIX = ~/linuxcnc/nc_files
PARAMETER_FILE = linuxcnc.var
SUBROUTINE_PATH = /home/cnc/linuxcnc/configs/MH50V-PB/subroutines/

It's supposed to set G54 as the default work offset but it seems to only partially work. Here is screenshot of Probe Basic just after I've started it. On the right side of the screen G54 is clearly listed under "Machine status" however the G54 button under "Work coordinate offsets" is not toggled.

 


If I try to jog or home the machine this error pops up.

 


Even if I click on the G54 button after homing I get the same error during any movement.

 


If I click on any other work offset the error goes away and if I switch back to G54 afterwards that offset works fine too. Changing the default offset to G55 for example leads to the same behavior but with that offset not being properly applied or highlighted during startup instead.

So it seems that the default work offset specified in the configuration file is not properly applied during startup.

I'm running the official LinuxCNC 2.9.1 release on one computer and the 2.9.1 from buildbot on the other one both behave the same. I've installed Probe Basic from the qtpyvcp repos following this guide: kcjengr.github.io/probe_basic/quick_start_apt.html

I realize that there are many variables in motion here so maybe there is something in my configuration that interferes with Probe Basic. I followed the recommendation in the guide and got everything fully working in Axis before converting the configuration to Probe Basic.
 
Attachments:

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

More
08 Dec 2023 18:35 #287573 by Lcvette
does the sim behave correctly? if so it is in your configuration.  I am installing a clean apt install to test now as we have been working in VTK but that is on a separate branch and wouldn't affect the main apt repository.

ok on a clean install on startup i have G54 active, button is checked blue, offsets table G54 row is highlighted blue showing active.

does not change on estop/power/ref all, no errors anywhere, so i am going to say you have something off in your configuration files.  i would start looking for differences, i would especially investigate anything pendant related if you have external buttons or if it is usb look and see how it is loaded and what commands are active on startup.  my guess is its something in that area.  usb pendants tend to create some hassles from time to time and need some tweaking.

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

More
08 Dec 2023 19:38 #287582 by Unlogic
Thanks for a quick reply Lcvette and for verifying that the current version works.

I don't have a pendant but I do have these hardware buttons wired directly to the Mesa cards and I'm using a latching e-stop setup with an external e-stop relay.

 

I got all that working using Axis and didn't realize it could cause problems with other user interfaces (I'm still a rookie when it comes to LinuxCNC).

First I'll try the simulator and if that works I'll start commenting out my added HAL code to see if I can put my finger on what's causing the issue.

When/if I figure this out I'll update this thread so that any other people encountering this issue can learn from my experiences.
Attachments:
The following user(s) said Thank You: tommylight, Lcvette

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

More
09 Dec 2023 16:35 #287689 by Lcvette
were you able to find a resolution?

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

More
09 Dec 2023 17:10 - 10 Dec 2023 20:15 #287692 by Unlogic
Nope not yet, I got the simulator running but it I'm fighting a bit with getting it to home/move properly.

Is everything supposed to work in the probe basic configuration available via LinuxCNC on the start menu?
Last edit: 10 Dec 2023 20:15 by Unlogic.

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

More
09 Dec 2023 18:32 #287703 by Lcvette
depends on how you installed, if you installed a development version, no you need to use the launchers that are written to the desktop to launch those instances.

if you installed via apt, then yes those are the configs installed during the apt installation process for machine use version. if you have a mixed installation of both it can cause some issues.

what issues specifically are you seeing? i have both the dev main installed on a test pc and a machine version apt install on a separate pc for testing and both are working as expected.

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

More
09 Dec 2023 19:25 #287710 by Unlogic
I used the APT install metod described on the page linked below:

kcjengr.github.io/probe_basic/quick_start_apt.html

The problem I ran into with the simulator after testing it a bit was that it got stuck saying that I couldn't do this and that until the machine was enabled and homed. It was enabled but the home button was no clickable. I was unable to clear that until I restarted LinuxCNC/Probe Basic.

I had to leave the garage for the day but I'll resume my work on in this tomorrow to see of I can make some progress.

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

More
09 Dec 2023 19:45 #287712 by Lcvette
to operate the sim you simply click estop and turn it red, then power to turn it green, then ref all to home then it should be ready to test. for jogging you need to select manual mode on the right hand side bar tab bottom. when a program is loaded it will switch to auto mode. to jog after loading a program you must change back to man mode. hitting cycle start for the program will change back to auto mode. if you are using the apt installation, everything should work as intended unless you have made changes to the ui or the sim configuration files. for your machine you need to create a separate configuration file set. it is not advisable to change the ui on a apt install as your changes will be overwritten on update. perhaps @knoxmachining will chime in with the correct method to make changes that will not be overwritten using a custom py file.
The following user(s) said Thank You: Unlogic

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

More
10 Dec 2023 13:52 - 10 Dec 2023 13:54 #287754 by Unlogic
When I launch the Probe Basic simulator this way:

 

There is no "REF ALL" button visible. Trying to press the home button results in the following message being displayed in the lower left corner of the screen: "CAN'T ISSUE MDI UNLESS MACHINE IS ON, HOMED AND IDLE"

 

Am I launching the simulator the wrong way or is there something missing in the default configuration? (I haven't modified it)
Attachments:
Last edit: 10 Dec 2023 13:54 by Unlogic. Reason: Fixed typo

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

More
10 Dec 2023 14:09 #287756 by tommylight
Attachments:
The following user(s) said Thank You: Unlogic

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

Moderators: KCJLcvette
Time to create page: 2.924 seconds
Powered by Kunena Forum