Ádám Novák wrote: > Hi All, > > At our company we have built a computer controlled 2 axis system which is > meant to heat up a part of a plastic sheet. There are two factors (power of > heater head and low thermal conductivity of the polymer) that requires the > heater-head to run the path 10-30 times with high velocity. At the end of > the process the sheet is flexible enough and lets us deform it the way we > want. > > As for the G-code we have it from a CAM software which runs well once. And > that's where our problem starts from: we need it to run at least 10 times > but the number of cycles varies with the surrounding temperature and > pre-heating. I was planning to write a script which would do this: creates a > slide or a text field on EMC2 screen. When the user defines the number of > cycles (either with the slide or with a specific number in the text field) > the machine would run accordingly. I have never tried to write such a script > as I never needed such a function on my CNC machnies. > > Could anyone help me on how to do this? > > Thanks,
Copy your program then paste 10 times with an M1 between each section. If the plastic is not hot enough then press the S key to jump over the M1 and repeat as needed, if it is hot enough then press the ESC key to abort the program. Ed. ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
