Update Gmoccapy

453 views
Skip to first unread message

Erik

unread,
Nov 8, 2016, 9:20:52 AM11/8/16
to Machinekit
Hi,
I'm trying to get my gantry plasma working. It has 2 joints on Y and it seems gmoccapy 1.5.6.5 doesn't support this.
I saw that gmoccapy 2.1 is released and supports joint mode so now I'm wondering if I can update to this version and how?

I'm running on a Raspberry PI 2 and used this image, http://0ptr.link/files/RPi2-machinekit-1.0.img.bz2

Norbert Schechner

unread,
Nov 8, 2016, 10:33:54 PM11/8/16
to Machinekit
Hallo Erik,

I developed gmoccapy2 to support the joint /axis changes from recent linuxcnc. It was needed to change some internals of the gui code, to archive this.

According to my actual knowledge, the joint axis handling of machinekit is different of the linuxcnc part. I refer to ini entries and the python interface. This difference will requiere more work than just updating to gmoccapy2.

At the moment i am not willing to spend time to support two different gmoccapy2 branches, as this would be the third one, and unfortunately I am still a one man team.

If you want to do the changes, i will support you as much as possible.

Gmoccapy 1.5 can also be used with a gantry, but with limitatons, homing must be done only with home all, and jogging of the parallel axis is not possible before homing.

Norbert

Erik

unread,
Nov 10, 2016, 8:19:18 AM11/10/16
to Machinekit
Thank you for answering,

I compared the code in /src/emc/usr_intf/gmoccapy between machinekit and linuxcnc master and it looks like not very much is differing. Is this where I would put the gmoccapy.py/glade from the linux master branch and then recompile machinekit?
Any changes you know of?

I can't find the "home all" in 1.5.6.5. I can't even switch to joint mode which I thought was needed to home the joints?

best regards,
Erik

Norbert Schechner

unread,
Nov 12, 2016, 7:31:54 AM11/12/16
to Machinekit
Hallo Erik,

there are quiet a lot changes under the hood.
You will need to replace the gmoccapy.py file, also the gmoccapy.glade file and the replace all files from share/gmoccapy with the linuxcnc ones.

Also the sliders changed to the "new generation", so you will need to add the speedcontrol.py gladevcp widget to your gladevcp installation, do not forget to replace also the hal_python.xml and hal_pythonplugin.py files, as theese ones are the gladevcp catalog files.

Even if you do all this, you will need to add several changes to your INI file, as linuxcnc expect [JOINT] sections and also some additional stuff in [TRAJ]
To begin, just use a sim config from linuxcnc/configs/sim/gmoccapy/

Please report about your results.
IMHO there are also some changes needed in other machinekit code, but I am not sure about that. (Does machinekit make a difference between the denomination of Joints and Axis and the handling of jogging and homing?

Changing between Joint and Axis mode is done by keyboard shourtcut F12
In joint Mode the DRO in the preview are shown, if unhomed, the combiDRO will show "------.---"

Norbert

Norbert

Erik

unread,
Dec 13, 2016, 8:49:51 AM12/13/16
to Machinekit
Hello,
I had to abandon this project because of RFI issues but thank you for taking your time to explain.
Raspberry PI and picnc don't seem to like plasma cutters at all. When I switched to a regular PC all problems disappeared. And that means I can run LinuxCNC master now. :)

Best regards,
Erik
Reply all
Reply to author
Forward
0 new messages