XZ lathe + C axis: gmoccapy crashes

More
10 years 9 months ago #68063 by DaBit
Not sure if this is a stupid user error or gmoccapy bug..

I am currently converting a small lathe to CNC, and the spindle motor will be a servo motor capable of positioning as well.
This means that I get a C-axis to do indexing on the main spindle for free. Very handy for cross-drilling a few holes.

Now, in AXIS this works (
).
In gmoccapy it doesn't....



This is a sim config on a fresh install. The configuration chosen was sim.gmoccapy/gmoccapy_lathe.ini
Unmodified, this works (duh..)

But when I change:
Code:
[TRAJ] AXES = 3 COORDINATES = X Z

to
Code:
[TRAJ] AXES = 6 COORDINATES = X Z C

and add an [AXIS_5] section with an angular axis, I get the behaviour shown in the screenshot.
(If I do not add an [AXIS_5] section, it still chashes on startup)

Please Log in to join the conversation.

More
10 years 9 months ago #68083 by newbynobi
Gmoccapy lathe is suposed to work only with x and z axis. I do know allready why it crashes. Let me see, if there is a way to make it work.

If you use xyzc it should work, just let Y with scale =0

Norbert

Please Log in to join the conversation.

More
10 years 9 months ago #68109 by DaBit
Ran a quick test and replaced the COORDINATES/AXES lines with XYZC and 6 axes in sim.gmoccapy/gmoccapy_lathe.ini.
The Y axis does not display (I am seeing R/D, Z, C, which is what I want), so this seems to be a perfectly acceptable workaround.

Please Log in to join the conversation.

More
10 years 9 months ago #68164 by DaBit
XYZC works like a charm on the 'real' machine too. I only wonder how I would display a real Y axis if I had one?







youtube.com/watch?v=Bd3Oc2ZqmbQ

My first lathe part ever. Happy, happy, thanks to gmoccapy and LinuxCNC. :laugh:

Please Log in to join the conversation.

More
10 years 9 months ago #68194 by newbynobi
Hallo DaBit,

just wait a few weeks, as I am preparing gmoccapy 2.0 as a 5 axis version B)

As you discovered a bug, I have to solve that one and two others and after that I will announce the new features.
Just be patient.

Norbert

Please Log in to join the conversation.

More
10 years 9 months ago #68195 by DaBit
Norbert,

No problem, it works fine at this moment and there is a heap of other work left to do. Just ordered a Pokeys56U board to feed gmoccapy external encoders and buttons.

If you need me to test something, let me know. Currently running 2.7.3 because master has no features I desperately need, but no problem compiling a RIP install when needed.

Please Log in to join the conversation.

More
4 years 9 months ago #233075 by HalaszAttila
Hello,

i work on retrofit of X-Z + Y axis lathe (swiss type lathe). Y axis i parallel with Z axis and moves the hydraulic chuck (lünette function).
I use 2.7.15 with gmoccapy. I setted up the Y axis positioning, i can use axis, but when i jog the Y axis, it can jog over software limits, and hit the end switch.
In MDI i CAN'T send Y over softlim, i get alarm and moving is not executed.
Jog button is controlled by halui.jog.1.minus /plus signals.

There is a connection between that gmoccapy not supports Y axis, and jogging axis over softlimit?
X and Z axis jogging works ok.

Please Log in to join the conversation.

More
4 years 9 months ago #233078 by newbynobi
Y-axis can not be parallel with Z axis!
Parallel to Z can be a W axis.

If you can jog over the limits and hit that way the end switch, your himing or limit is not set correct. Do you home the related axis prior to jogging?

Gmoccapy should support XZCW config. May be you should not set Lathe = 1 in your INI.

Norbert

Please Log in to join the conversation.

More
4 years 9 months ago #233261 by HalaszAttila
Hello,
thanks for quick answer. I set LATHE = 0; and then the Y jogging is correct (that means min_limit / max_limit / homing setup is correct). The axis is stops on softlimit, and i cant jog over them (niether with button, or MPG).
It seems to be something if LATHE = 1. What you think if I set W axis instead of Y, something changed?
I dont know this side of linuxcnc source code. I checked a gmoccapy.py file, what happens if LATHE=1, i found swapping / removing jog buttons / DRO etc.
If I modify this file, to activate Y axis jogging buttons, maybe change something?
Or some other file? (i use halui.jog.1.minus / plus pins)

Just need to Y jog works like on LATHE=0 mode.
In program mode, when executing G code, the soft limit is working on Y axis. (show error messages if i program axis over softlimit).

It is little complicated 4 channel lathe. And would be good to use Y axis for moving the chuck.
Video

photos.app.goo.gl/Thk3apEb6d1hLz1aA

 

Attachment not found

Please Log in to join the conversation.

Time to create page: 0.257 seconds
Powered by Kunena Forum