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 27, 2012, 12:17:28 PM
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
Nesting Parts
Pages:
1
Go Down
« previous
next »
Author
Topic: Nesting Parts (Read 363 times)
0 Members and 2 Guests are viewing this topic.
haydn
Active Member
Offline
Posts: 9
Nesting Parts
«
on:
February 07, 2011, 06:15:28 PM »
I have several items of code which were nested using using fanuc code. I want to run them on mach3 but it can't handle the fanuc variables. Does anyone know a work around for this? The parts are nested in rows and columns, it's the # variable that spits it back out, example code below.
Thanks
(Standard Fanuc)
(3 rows 2 columns)
(x step 50, y step 40)
O100 (PART1.NC)
G90 G17
G80 G49 G40
G54
G91 G28 Z0
G90
M01
N1 M6 T1
(T1 ENDMILL DIA 6.0 R0. MM )
G90 G00 G40 G54
G43 H1 D31 G0 X7.5 Y-3. Z10. S1000 M3
M8
#21 = 0
WHILE [#21 LT 3] DO 1
#22 = 0
WHILE [#22 LT 2] DO 2
(PROFILE)
G0 X7.5 Y-3. Z10.
Z2.
G1 Z-3. F33
X30. F100
G3 X33. Y0. R3.
G1 Y20.
G3 X30. Y23. R3.
G1 X0.
G3 X-3. Y20. R3.
G1 Y0.
G3 X0. Y-3. R3.
G1 X7.5
G0 Z10.
G10G91 L2 P1 X50. Y0. Z0.
G90
#22 = #22 + 1
G1
END 2
G10G91 L2 P1 X-100. Y40. Z0.
G90
#21 = #21 + 1
G1
END 1
G10G91 L2 P1 X0. Y-120. Z0.
G90
M30
Logged
BR549
Active Member
Offline
Posts: 2,556
Re: Nesting Parts
«
Reply #1 on:
February 07, 2011, 08:20:17 PM »
It is not the # variables that is the problem, it is the conditional code that is the problem. Mach does not do conditional code
Logged
kf2qd
Active Member
Offline
Posts: 118
Re: Nesting Parts
«
Reply #2 on:
February 09, 2011, 05:38:57 PM »
You need to change the section that offsets the parts - it looks to me to be a 3 x 4 array pattern that it is cutting. you have 3 positions in X 0, 50 and 100, and 4 posuitions in Y 0,40, 80 ,120
so where your while statements are you would need to put something like this (THis may not work as written, just looked at your code and then read the book) I would be more likely to use work offsets as there are some other advantages.
(position 1)
M98 P001
G10G91 L2 P1 X50. Y0. Z0.
M98 P001
G10G91 L2 P1 X50. Y0. Z0.
M98 P001
G10G91 L2 P1 X-100. Y40. Z0.G10G91 L2 P1 X50. Y0. Z0.
M98 P001
G10G91 L2 P1 X50. Y0. Z0.
M98 P001
G10G91 L2 P1 X-100. Y40. Z0.M98 P001
G10G91 L2 P1 X50. Y0. Z0.
M98 P001
G10G91 L2 P1 X50. Y0. Z0.
M98 P001
G10G91 L2 P1 X-100. Y40. Z0.
M98 P001
G10G91 LM98 P0012 P1 X0. Y-120. Z0.
END
and replace where (profile) is in the code
and stick an M99 whereright after the G0 Z10.0
«
Last Edit: February 09, 2011, 05:41:30 PM by kf2qd
»
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...