Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 26, 2012, 04:47:57 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
General Mach Discussion
Using G52 to do step and repeat
Pages:
1
Go Down
« previous
next »
Author
Topic: Using G52 to do step and repeat (Read 457 times)
0 Members and 1 Guest are viewing this topic.
sixmile
Active Member
Offline
Posts: 26
Using G52 to do step and repeat
«
on:
June 06, 2010, 04:06:58 PM »
I wrote some C# code to take any of my production GCode files and use G52 to step and repeat the pattern. This way I do not have to re-cam my production patterns if I choose to do a smaller or larger run.
Anyways, I look at the output code in NCPlot, it shows the rapids going to the new step and repeat sections, but does not show it running the file at teh new location.
Here is some GCode:
N10G00G20G17G20G90G40G49G80
N20G70
N30T4M06
N40G00G43Z0.7874H4
N50S15279M03
N60G94
N70X0.0000Y0.0000F12.0
N80G00X-0.1250Y0.0000Z0.2362
N90G01Z-0.0250F6.0
N100G01Y2.6000F12.0
N110G2X0.0000Y2.7250I0.1250J0.0000
N120G01X18.4400
N130G2X18.5650Y2.6000I0.0000J-0.1250
N140G01Y0.0000
N150G2X18.4400Y-0.1250I-0.1250J0.0000
N160G01X0.0000
N170G2X-0.1250Y0.0000I0.0000J0.1250
N180G01Z-0.0500F6.0
N190G01Y2.6000F12.0
N200G2X0.0000Y2.7250I0.1250J0.0000
N210G01X18.4400
N220G2X18.5650Y2.6000I0.0000J-0.1250
N230G01Y0.0000
N240G2X18.4400Y-0.1250I-0.1250J0.0000
N250G01X0.0000
N260G2X-0.1250Y0.0000I0.0000J0.1250
N270G00Z0.2362
N280G00Z0.7874
N290G00X0.0000Y0.0000
N300M09
N310G52 X0 Y0 Z0 A0 B0 C0
N320G52 X0 Y3
N330G00G20G17G20G90G40G49G80
N340G70
N350T4M06
N360G00G43Z0.7874H4
N370S15279M03
N380G94
N390X0.0000Y0.0000F12.0
N400G00X-0.1250Y0.0000Z0.2362
N410G01Z-0.0250F6.0
N420G01Y2.6000F12.0
N430G2X0.0000Y2.7250I0.1250J0.0000
N440G01X18.4400
N450G2X18.5650Y2.6000I0.0000J-0.1250
N460G01Y0.0000
N470G2X18.4400Y-0.1250I-0.1250J0.0000
N480G01X0.0000
N490G2X-0.1250Y0.0000I0.0000J0.1250
N500G01Z-0.0500F6.0
N510G01Y2.6000F12.0
N520G2X0.0000Y2.7250I0.1250J0.0000
N530G01X18.4400
N540G2X18.5650Y2.6000I0.0000J-0.1250
N550G01Y0.0000
N560G2X18.4400Y-0.1250I-0.1250J0.0000
N570G01X0.0000
N580G2X-0.1250Y0.0000I0.0000J0.1250
N590G00Z0.2362
N600G00Z0.7874
N610G00X0.0000Y0.0000
N620M09
N630G52 X0 Y0 Z0 A0 B0 C0
N640G52 X0 Y6
N650G00G20G17G20G90G40G49G80
N660G70
N670T4M06
N680G00G43Z0.7874H4
N690S15279M03
N700G94
N710X0.0000Y0.0000F12.0
N720G00X-0.1250Y0.0000Z0.2362
N730G01Z-0.0250F6.0
N740G01Y2.6000F12.0
N750G2X0.0000Y2.7250I0.1250J0.0000
N760G01X18.4400
N770G2X18.5650Y2.6000I0.0000J-0.1250
N780G01Y0.0000
N790G2X18.4400Y-0.1250I-0.1250J0.0000
N800G01X0.0000
N810G2X-0.1250Y0.0000I0.0000J0.1250
N820G01Z-0.0500F6.0
N830G01Y2.6000F12.0
N840G2X0.0000Y2.7250I0.1250J0.0000
N850G01X18.4400
N860G2X18.5650Y2.6000I0.0000J-0.1250
N870G01Y0.0000
N880G2X18.4400Y-0.1250I-0.1250J0.0000
N890G01X0.0000
N900G2X-0.1250Y0.0000I0.0000J0.1250
N910G00Z0.2362
N920G00Z0.7874
N930G00X0.0000Y0.0000
N940M09
N950G52 X0 Y0 Z0 A0 B0 C0
N960G52 X20 Y0
N970G00G20G17G20G90G40G49G80
N980G70
N990T4M06
N1000G00G43Z0.7874H4
N1010S15279M03
N1020G94
N1030X0.0000Y0.0000F12.0
N1040G00X-0.1250Y0.0000Z0.2362
N1050G01Z-0.0250F6.0
N1060G01Y2.6000F12.0
N1070G2X0.0000Y2.7250I0.1250J0.0000
N1080G01X18.4400
N1090G2X18.5650Y2.6000I0.0000J-0.1250
N1100G01Y0.0000
N1110G2X18.4400Y-0.1250I-0.1250J0.0000
N1120G01X0.0000
N1130G2X-0.1250Y0.0000I0.0000J0.1250
N1140G01Z-0.0500F6.0
N1150G01Y2.6000F12.0
N1160G2X0.0000Y2.7250I0.1250J0.0000
N1170G01X18.4400
N1180G2X18.5650Y2.6000I0.0000J-0.1250
N1190G01Y0.0000
N1200G2X18.4400Y-0.1250I-0.1250J0.0000
N1210G01X0.0000
N1220G2X-0.1250Y0.0000I0.0000J0.1250
N1230G00Z0.2362
N1240G00Z0.7874
N1250G00X0.0000Y0.0000
N1260M09
N1270G52 X0 Y0 Z0 A0 B0 C0
N1280G52 X20 Y3
N1290G00G20G17G20G90G40G49G80
N1300G70
N1310T4M06
N1320G00G43Z0.7874H4
N1330S15279M03
N1340G94
N1350X0.0000Y0.0000F12.0
N1360G00X-0.1250Y0.0000Z0.2362
N1370G01Z-0.0250F6.0
N1380G01Y2.6000F12.0
N1390G2X0.0000Y2.7250I0.1250J0.0000
N1400G01X18.4400
N1410G2X18.5650Y2.6000I0.0000J-0.1250
N1420G01Y0.0000
N1430G2X18.4400Y-0.1250I-0.1250J0.0000
N1440G01X0.0000
N1450G2X-0.1250Y0.0000I0.0000J0.1250
N1460G01Z-0.0500F6.0
N1470G01Y2.6000F12.0
N1480G2X0.0000Y2.7250I0.1250J0.0000
N1490G01X18.4400
N1500G2X18.5650Y2.6000I0.0000J-0.1250
N1510G01Y0.0000
N1520G2X18.4400Y-0.1250I-0.1250J0.0000
N1530G01X0.0000
N1540G2X-0.1250Y0.0000I0.0000J0.1250
N1550G00Z0.2362
N1560G00Z0.7874
N1570G00X0.0000Y0.0000
N1580M09
N1590G52 X0 Y0 Z0 A0 B0 C0
N1600G52 X20 Y6
N1610G00G20G17G20G90G40G49G80
N1620G70
N1630T4M06
N1640G00G43Z0.7874H4
N1650S15279M03
N1660G94
N1670X0.0000Y0.0000F12.0
N1680G00X-0.1250Y0.0000Z0.2362
N1690G01Z-0.0250F6.0
N1700G01Y2.6000F12.0
N1710G2X0.0000Y2.7250I0.1250J0.0000
N1720G01X18.4400
N1730G2X18.5650Y2.6000I0.0000J-0.1250
N1740G01Y0.0000
N1750G2X18.4400Y-0.1250I-0.1250J0.0000
N1760G01X0.0000
N1770G2X-0.1250Y0.0000I0.0000J0.1250
N1780G01Z-0.0500F6.0
N1790G01Y2.6000F12.0
N1800G2X0.0000Y2.7250I0.1250J0.0000
N1810G01X18.4400
N1820G2X18.5650Y2.6000I0.0000J-0.1250
N1830G01Y0.0000
N1840G2X18.4400Y-0.1250I-0.1250J0.0000
N1850G01X0.0000
N1860G2X-0.1250Y0.0000I0.0000J0.1250
N1870G00Z0.2362
N1880G00Z0.7874
N1890G00X0.0000Y0.0000
N1900M09
N1910M30%
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: Using G52 to do step and repeat
«
Reply #1 on:
June 06, 2010, 04:51:12 PM »
SOme SIms do not "show" the G52 offsetting AND as each set of code has the SAME gcode points it appears to only be one path when actually it WILL cut all of them.
Look at it in MACH and you should see 2 columns of a vertical stack of 3 rectangles
It that waht it is suppose to look like?
Logged
sixmile
Active Member
Offline
Posts: 26
Re: Using G52 to do step and repeat
«
Reply #2 on:
June 06, 2010, 06:04:37 PM »
Yep thats - it, thanks. I will look at it in mach.
Logged
Pages:
1
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...