Add MPG to XXYZ machine

More
22 Dec 2019 15:28 #153035 by vala
Add MPG to XXYZ machine was created by vala
Help me please add an MPG pendant
In joint mode the axes Y Z work, but the axis X issues an error- cannot wheel jog joint 0 and joint1 because home sequence is negative (-1).
After homing the MPG pendant is not responding.
I don't know what is the logic for mpg to switch from joint to world modes.
My MPG hal file is attached.
Sorry about my bad english.

File Attachment:

File Name: MPG_file.hal
File Size:2 KB
Attachments:

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

More
22 Dec 2019 15:58 #153038 by vala
Replied by vala on topic Add MPG to XXYZ machine
I've seen it all.
My cnc XXYZ is working properly.
I don't know for mpg: "Configurations with non-identity kinematics and configurations that use duplicated axis letters (for example, gantries using more than one joint for an axis coordinate) will require appropriate independent control logic to support both joint and teleop (world) jogging.'

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

More
22 Dec 2019 16:54 #153047 by PCW
Replied by PCW on topic Add MPG to XXYZ machine
Not sure of the best way to do this but to get jogging working after homing
you would need to link your hardware jog enable pins to the axis jog enables in
addition to the joint jog enables:

net mpg-x axis.x.jog-enable <= parport.1.pin-04-in-not
net mpg-y joint.2.jog-enable axis.y.jog-enable <= parport.1.pin-05-in-not
net mpg-z joint.3.jog-enable axis.z.jog-enable <= parport.1.pin-06-in-not

(in addition to setting up the axis jogging scale/modes etc)

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

More
22 Dec 2019 18:42 #153056 by rodw
Replied by rodw on topic Add MPG to XXYZ machine
MPG jogging works perfectly after homing with joint axes. There is a worked example in the documents.
linuxcnc.org/docs/devel/html/examples/mpg.html

I modified this to work with a Mesa 7i76e
The following user(s) said Thank You: vala

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

More
23 Dec 2019 03:24 #153080 by bevins
Replied by bevins on topic Add MPG to XXYZ machine
Mpg code

This is right off a working machine.... it works.

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

More
23 Dec 2019 07:50 #153084 by vala
Replied by vala on topic Add MPG to XXYZ machine
Thanks Rodw for the help and also everyone who participated.
This works perfectly with my XXYZcnc.
Is another question -
i have a pendant switch - joging mode.
As can be switched from pendant jogging mode from 0 to 1
Pendant switch turns on pin 12

File Attachment:

File Name: MPG_file_2...2-23.hal
File Size:2 KB
Attachments:

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

Time to create page: 0.419 seconds
Powered by Kunena Forum