![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
What I would like to do is have mill move to a set position, say x -1, y 0, z 1, when M6 command is hit in g-code. I can get pull up the M6start macro but don't know how to write code to move to a set position. Now I jog to that position, make tool change and hit cycle start to continue. Can anyone provide sample VB code to implement? |
|
#2
| ||||
| ||||
| Code("G1 Z1") Code("G1 X-1 Y0")
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#3
| |||
| |||
| Thanks for the reply. I understand the G0 code, just don't know how to insert into the M6start.m1s macro (if that is proper way). M6 current code is: tool = GetSelectedTool() SetCurrentTool( tool ) I could edit and insert prior to each tool change, however was looking for way to do auto with each M6 as have as many as 6 tool changes in a Gcode file. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |