Hello Guest it is April 19, 2024, 06:30:30 AM

Author Topic: Very Basic G-Code Help  (Read 3255 times)

0 Members and 1 Guest are viewing this topic.

Offline JJ

*
  •  16 16
    • View Profile
Very Basic G-Code Help
« on: August 29, 2007, 01:31:17 PM »
Hello,

i apologize in advance for the basic nature of my question. 

I am using a custom 3-Axis stepper motor CNC device controlled by Mach3 and a Xylotex controller board. The device has been designed to press buttons on cel phones to stress our phone software.  The following is an example of the G-Code we use to navigate to the phone screen and make a call:

G28.1 Z0 Y0 X0
G0 G49 G40 G17 G50 G90
G82 X0 Y0 Z-.01 P0 R-.001 F150

(Start - Phone 1)
X5.5955 Y6.5254 Z-.49 P0

(#5 - Phone 1)
X5.9477 Y5.2646 Z-.49 P0

(#5 - Phone 1)
X5.9477 Y5.2646 Z-.49 P0

(#5 - Phone 1)
X5.9477 Y5.2646 Z-.49 P0

(#5 - Phone 1)
X5.9477 Y5.2646 Z-.49 P0

(#5 - Phone 1)
X5.9477 Y5.2646 Z-.49 P0

(#5 - Phone 1)
X5.9477 Y5.2646 Z-.49 P0

(#5 - Phone 1)
X5.9477 Y5.2646 Z-.49 P0

(Send - Phone 1)
X6.6462 Y4.8187 Z-.49 P0

(Pause for 10 seconds)
G4 P10

(Turn Off Phone 1)
X6.8215 Y6.4143 Z-.49 P6

G80
G28
M30


My simple question is what code should I use to add a "slot" here?  I basically need to move a phone's navigation button left, right, up, or down.  I want to accomplish this by cutting a fake slot... bringing the Z down to a given value, then moving the X or Y axis a short linear distance while Z remains down, then returning Z to it's Home position (determined by a limit switch).

Any help is GREATLY appreciated!

Thanks again,

JJ
« Last Edit: August 29, 2007, 01:34:59 PM by JJ »

Offline Graham Waterworth

*
  • *
  •  2,672 2,672
  • Yorkshire Dales, England
    • View Profile
Re: Very Basic G-Code Help
« Reply #1 on: August 29, 2007, 04:30:06 PM »
You can do it this way,

Add this after your G80 line:

G00 Z-.49
G01 G91 X.25 F2.
X-.5
X.25
Y.25
Y-.5
Y.25
G00 G90 Z1.

Graham.
Without engineers the world stops

Offline JJ

*
  •  16 16
    • View Profile
Re: Very Basic G-Code Help
« Reply #2 on: September 11, 2007, 01:12:54 PM »
Thanks Graham!

Sorry for the delayed response, but that worked terrifically.  Thanks again!

JJ