Open ustal opened 2 months ago
Can you also reproduce this using one of the AxisGUI simulation configs or only on your real hardware config?
Run LinuxCNC -> Sample Configuration ? If yes, I can't reproduce the issue. Lemme check those configs. TBH I was sure that switching tabs should not affect either pid, stepgen etc and problem not on my side :(
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. There is a problem ONLY when home positions are optional. In this case MDI command could be run just after LinuxCNC run, and it triggers that "EMC_TRAJ_SET_TELEOP_ENABLE = 1" for only one Axis (Z, and in the case of the A/C axis it brakes joins, because instead of A/C it runs Z and send 30 degrees into 30 machine units mm). On real-life CNC in most cases Home position is mandatory but in the case of "starting from blank INI/HAL file" OR Servos with absolute encoder + brake +... looking for the homing position is not mandatory, because all axes are in the same place from last time and servos know where positions are.
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
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 HOME_ABSOLUTE_ENCODER = 1 or HOME_ABSOLUTE_ENCODER = 2
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. Once you home, then the mapping will be correct.
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:
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.3