Hello Guest it is April 10, 2021, 11:34:00 AM

Author Topic: A Get It Out Of The Way button???  (Read 6861 times)

0 Members and 1 Guest are viewing this topic.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
A Get It Out Of The Way button???
« on: August 01, 2014, 09:06:27 AM »
In the standard Mach3 Plasma setup, is there a keyboard button or shortcut lurking anywhere that can be pressed to rapid the gantry to Ymax position???

My little machine is front loading and the torch parks at 0/0 which is right in the way.

Thought it would be handy to have a F button or something that just shoots the gantry to the furthest position.


Dave
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
Re: A Get It Out Of The Way button???
« Reply #1 on: August 01, 2014, 11:58:05 AM »
Just thought, I can add a button to my screen but what's the best code to put in it?

It would need to jog to the same max Y point as manually jogging would, preferably using the safe deceleration zone near the limit as well.
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: A Get It Out Of The Way button???
« Reply #2 on: August 01, 2014, 05:37:00 PM »
G53G0Y***

Where the *** is the position in machine coords you want to move to.

Hood

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
Re: A Get It Out Of The Way button???
« Reply #3 on: August 02, 2014, 03:27:51 AM »
Many thanks, knew there would be a way :)
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
Re: A Get It Out Of The Way button???
« Reply #4 on: August 11, 2014, 05:47:51 AM »
That works perfectly.

Is there a code snippet I can precede that code with to disable the move if the table has not been homed yet???
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: A Get It Out Of The Way button???
« Reply #5 on: August 11, 2014, 06:10:16 AM »
Yep, put this in the button and it should work.


If GetOemLED(807) and GetOemLED(808) and GetOemLED(809) Then
MsgBox"Axes not referenced, home axes and try again"
Else
Code "G53G0Y0"
End If



That is assuming you have X Y and Z axes, if not then remove the one you dont have, X is 807 Y808 etc.

Hood

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
Re: A Get It Out Of The Way button???
« Reply #6 on: August 11, 2014, 06:28:40 AM »
Hmm likely my fault, I removed the 809 part as I dont zero Z. and also reworded the msg text but kept the same formatting.

I get an error "Null missing after newline, Block......" message when pressing the button

Any ideas?

Dave
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: A Get It Out Of The Way button???
« Reply #7 on: August 11, 2014, 06:39:54 AM »
paste the code you have.

Hood

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
Re: A Get It Out Of The Way button???
« Reply #8 on: August 11, 2014, 06:44:14 AM »
If GetOemLED(807) and GetOemLED(808) Then
MsgBox"Machine Not Homed, Home Axes And Try Again"
Else
Code "G53 G0 Y600"
End If
 

Thats all, I had to cut/paste into a txt doc then transfer via usb stick, could have typed it but thought it safer to cut/paste :)

I spaced the G-code out as my original code was spaced and that worked fine.
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: A Get It Out Of The Way button???
« Reply #9 on: August 11, 2014, 06:54:29 AM »
Looks fine and works fine here.
If you cant get it working attach your xml and I will test with that.
Hood