Add MPG to XXYZ machine

More
6 years 10 months ago #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.

Attachment not found

Please Log in to join the conversation.

More
6 years 10 months ago #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 to join the conversation.

More
6 years 10 months ago #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 to join the conversation.

More
6 years 10 months ago #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

Please Log in to join the conversation.

More
6 years 10 months ago #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 to join the conversation.

More
6 years 10 months ago #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

Attachment not found

Please Log in to join the conversation.

Time to create page: 0.115 seconds
Powered by Kunena Forum