PDA

View Full Version : Need Programming Guidance



nat_wheatley
06-17-2016, 05:39 PM
Hoping for some programming help. I'm using Enroute to create my cut files (from DXF's created by KCD). Enroute creates a tool path file for each sheet (ex: Smith Job_ Melamine_1, Smith Job_ Melamine_2, Smith Job_ Melamine_3 etc.) I'm wanting (if possible) to create a file that will run each job start to finish, without having to manually load a file for each sheet. All necessary commands to process each sheet are in each cut file (Turn vacuum on/off, send spindle home at end of files etc.)

I'm thinking that it would go something like this:

Message 'Put material onto table and press enter when ready'

Load file C:\Documents and Settings\Valued Customer\Desktop\ATP\Smith Job_ Melamine_1

Continues same same steps, adding 1 to the sheet number until it's gone through all the sheets

This is what I've come up with, with my very limited programming abilities:

&SheetNumber=1

Input "Enter Job Name" &JobName


MSGBOX(Place Material on Table and Press Enter When Ready)


Shell "C:\Documents and Settings\Valued Customer\Desktop\ATP\Smith Job_ Melamine_1" **(Need to somehow insert &JobName and &SheetNumber into this command?)**


&SheetNumber=&SheetNumber+1


Return **(Not sure how to return to the 2nd line now?)

I've only done a small amount of SB programming, so any help guidance would be very much appreciated.

Thanks

Gary Campbell
06-17-2016, 09:33 PM
Nat...
Look on the forum from a few years back. David Buchsbaum had a utility that would run all the files in a given folder by alpha-numeric order. Bill Young or one of those scary smart guys wrote it for him. I saw it in action when servicing his machine. You should be able to find who has it, or email me for David's contact info.
Doesn't work in metric tho! :)
GCMF

nat_wheatley
06-18-2016, 05:35 AM
Thanks Gary, I've sent David an email. FWIW I consider you one of those scary smart guys!

My wife likes my grey hair, and I likely wouldn't have it if it weren't for metric, so there ya go!

Nat