Hello Guest it is April 18, 2024, 05:00:47 PM

Author Topic: g-code verifying  (Read 7722 times)

0 Members and 1 Guest are viewing this topic.

Re: g-code verifying
« Reply #10 on: July 25, 2007, 05:09:49 PM »
Hi
Can Please someone help to newbee in g code scripting with advise how I can programm A axis swivle +30 degree and -30 degree from 0 I need to have it from 0 as it is the only way position tool on the right spot. Pleese
And would be good if someone know a soft to veryfy G code for rotary axis.
I'm using Mach2
Have tryed Mash3 but have a problem with fast movements they seems to freeze on the middle and then go again have some one same problem?
« Last Edit: July 25, 2007, 05:39:51 PM by coolfox »

Offline Graham Waterworth

*
  • *
  •  2,672 2,672
  • Yorkshire Dales, England
    • View Profile
Re: g-code verifying
« Reply #11 on: August 04, 2007, 02:20:52 PM »
Here is a bit of code that will datum the a axis at what ever point it is at and then move the A axis from 0 to 30 degrees back to 0 and then 30 degrees the other way.

G92 A0 (datum a at this point)
G00 G90 Z0 (rapid to z0)
G01 A30. F100. (feed to 30 degrees)
G00 Z1. (rapid z clear)
A0 (rapid a to 0)
Z0 (rapid z to 0)
G01 A-30. (feed a to -30 degrees)
G00 Z1. (rapid z clear)
M30 (end program)

Graham.
Without engineers the world stops