-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug with blocking jogging during MDI #3082
Comments
Can you also reproduce this using one of the AxisGUI simulation configs or only on your real hardware config? |
Run LinuxCNC -> Sample Configuration ? |
So. If I use Sample -> lathe, it's required before MDI usage to set all axes to the Home position (even if emulation). After that no problems. Also running templates "LIB:basic_sim.tcl" is not easy to understand. So it looks like another pncconf where a user could only change values like "joint/axes count etc". Generated file -cmds.hal is not the only one which contains all code for example, and switching from LIB:basic_sim.tcl -> -cmds.hal has another effect. And making independent clear lathe simulation examples is not easy for beginners. From a code perspective removing duplication and move common logic and sharing between all examples is a good idea, but for newbies (even me, with IT master degree and knowledge of programming languages) it's hard to understand and make smth more than XYZ CNC. In my opinion, breaking some of the axes because of not searching for the home point (I don't know what exactly is happening under the hood and why the Z axis breaks, and why when trying to use the A and C axes it switches to the Z axis and some kind of nonsense happens) is a bug. Especially if it can be fixed by simply switching the tabs back and forth. Is it convenient? - No. I'm a newbie and spent several days trying to figure out what I did wrong, why my spindle when switching between modes (speed/position) breaks the entire machine and the axes start moving on their own. |
I'm not saying there is no bug but given that this has not popped up yet would suggest that there is something quite unusual in the setup. Are you using 'Immediate Homing' in your setup? Note that on a machine with absolute encoders you would set the homing procedure to Maybe that solves your issue for the moment until somebody else can reproduce the reported issue. |
Might be a good idea to open a thread on the forum where you can post your config as a compressed folder. |
I'm trying to write a configuration from scratch. So I just started with a simple 1-axis configuration on a stepgen for the Linear axis. Currently without optical rulers or encoders Regarding the forum. There are ~2 topics with 7i95T. One "I have no idea how to run it without PWM, that's why I flashed version with PWM for this card and control spindle via PWMgen". To be honest, I have no hope for the forum. Reproducing is very simple. Replace LIB:basic_sim.tcl with the generated HAL file (homing position became optional) and that's all. 4 files from Samples and 1 generated automatically. |
I think that what you are seeing here is a side-effect of jogging in "joint mode" where the joint numbers do not coincide with the axis layout assumed by Axis. What is your actual axis-to-joint mapping? Until you home, with Axis, left and right will jog joint-0. If that isn't the X axis then you will see what you are seeing. If you jog with the actual jogging inputs to the motion module, rather than with the (dodgy, flaky, HMI-limited ) keyboard jogging in Axis then you separately connect the jog inputs to the axes and to the joints, and this doesn't happen. I don't think this will fix it (it shouldn't!) but what happens id you set GEOMETRY = AXYZ in the [DISPLAY] section of the INI file? If you do actually have absolute encoders then HOME_ABSOLUTE_ENCODER should work better than HOME_SEARCH_VELOCITY = 0. |
Here are the steps I follow to reproduce the issue:
4a. Jogging axis A -> switched to axis X and instead of rotating for 30 (just example), move linearly by 30
4b. OR another case: Jogginx axis X doesn't work at all
BUT
While switching between tabs I saw this error in console
This is what I expected to happen:
I assume all axies should work together like without MDI command
Information about my hardware and software:
lsb_release -a
):uname -a
):Linux lathe 6.1.0-23-rt-amd64 #1 SMP PREEMPT_RT Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux
scripts/get-version-from-git
): 2.9.3The text was updated successfully, but these errors were encountered: