![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| CamSoft Products Discuss Camsoft PC based CNC controller products here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I have the following simple Macro that is intended to read a 2D profile on a Wire EDM. Relay #60 goes to 0 when the wire touches the part. [[Find Profile]] [Wire On] 'Turn Wire on so Contact Function works \10=.02 'Increment in Y \11=5 'Number of points \12=0 'Counter \13=1 'maximum X move SLEEP 3 'Wait for wire to get up to speed IF #60=0 THEN MESSAGE INITIAL CONTACT ERROR:[Wire Off]:EXIT 'check for initial contact MACHHOME1 \677:MACHHOME2 \678 'store starting position :FINDXEDGE FEEDRATE 5 'find edge in X POSITION 1;{\677+\13} :WAITUNTIL #60=0 :STOP FEEDRATE .5 'back off edge slowly POSITION 1;{\677} :WAITUNTIL #60=1 :STOP TEACH 'Writes current position to teach.xyz file FEEDRATE 20 'return to starting X POSITION 1;{\677} :WAITUNTIL STOP :INCREMENTY \12=\12+1 :IF \12>=\11 THEN GOTO :FININCREMENTY POSITION 2;{\678+(\12*\10)} :GOTO :FINDXEDGE :FININCREMENTY TEACH OFF [Wire Off] 'Turn Wire Off MESSAGE PROFILE FINISHED FILE CLOSED It all works exactly like I want, except each time the TEACH command is executed, I get an "Unrecognized Command" error. I hit OK, and the program resumes. This continues until the loop is complete. The way I interpret the manual, it is supposed to write the current location to a TEACH.XYZ file in the AS3000\WORK directory. I checked for the file and it didn't exist, so I created a blank one and re-ran the program. Same error. Are there other parameters or some modal that I need to set to get this command to work? Do I need to manually open the TEACH.XYZ file in the macro? I'll try creating a string variable and manually doing a FILEWRITE if I can't get TEACH to work - but it looks like it should do exactly what I want so I hate not to use it. |
|
#2
| |||
| |||
| squarewave, The key question is which command gives the "Unrecognized Command" ? This simply means you either mis-spelled a command or it doesn't exist in your version. We don't see any mis-spelled command at a glance. If it was the Unrecognized TEACH command, then this version dates back a while. Using FILEOPEN then FILEWRITE is an alternative to TEACH whereas you would use READOUT or MACHHOME to gather the current position and write them to a file name of your choice. You'll have to write a several line macro to accomplish this, but with the TEACH command it is automatic and opens the file for that was named on the TOOL PARAMETER screen. It gathers position , opens the file, formats the coordinates, checks for errors and writes to the file automatically. Tech Support CamSoft Corp. (951) 674-8100 support@camsoftcorp.com www.cnccontrols.com
__________________ (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#3
| |||
| |||
| The exact error message has "Fatal Error: Unrecognized Command Please Correct" in the top bar of the window and the single word TEACH in the window itself. I guess I was assuming it was a valid command since it is in my book and online help files. My version is 14.2. I'll start working on FILEWRITE logic. Thanks! |
|
#4
| ||||
| ||||
| I'm using 15.4, the current version. (Probably a decimal point update sence my disk was sent) That's not very old, I'm sure TEACH was in the commands in version 14. Maybe try putting TEACH in an unused Mcode and put up a button to run this Mcode on your interface. Then try to record just for testing. (with the machine stopped at a known point,etc,etc) Just a wild guess here, but that error may be coming back from the operating system because the file couldn't be openned. Karl |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help teach G-code for rookie | HighOctane | G-Code Programing | 16 | 03-16-2006 10:18 AM |
| Proper Method To Shim?(for Tramming) | FLUTE HEAD | General Metal Working Machines | 3 | 05-23-2005 11:46 AM |
| Proper Planning Prevents Poor Performance | CamIam | DIY-CNC Router Table Machines | 2 | 04-01-2004 08:09 AM |
| Help with picking proper software for computer | landart | Mach Software (ArtSoft software) | 1 | 03-29-2004 03:18 AM |
| Proper Computer and Chip for Mach 1 | HomeCNC | Mach Software (ArtSoft software) | 12 | 03-17-2004 10:14 PM |