![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Fadal Discuss Fadal machinery here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
| engraving with variables Hey folks, I want to use L9201 to engrave a number on a workpiece. The number is contained in the V9 variable. L9201 R0+.1 R1+0. R2+.5 R3+0. F20 (TEST V9 will engrave "TEST V9" L9201 R0+.1 R1+0. R2+.5 R3+0. F20 (TEST #V9 will engrave "TEST #V9" L9201 R0+.1 R1+0. R2+.5 R3+0. F20 #V9 gives an error "only / allowed in macros" So is it possible to engrave a number from a variable? Any thoughts?? |
|
#2
| |||
| |||
| 050609-1430 EST USA Shizzlemah: No idea on Fadal. On newer HAAS machines G47 is Text Engraving. G47 P0 (ENGRAVE THIS) ------- engraves the string ENGRAVE THIS ....... this looks similar to what you described. Additionally HAAS has G47 P1 (####) --------- this is a formatting command of sorts where ........ the number of # positions indicates the number of digits engraved. ........ No description if this becomes a mod N number internally or not. ........ If you have MACROS you should be able to do a DPRINT of the ........ content of #599. The initial serial number can be set to 5031 by G47 P1 (5031) ....... or whatever number you want. or load macro variable #599 with the initial value, does not require MACROS. I have never tried this, and as usual the description in the manual is vague. What you can not do is work with string variables because there is no provision for such animals. www.beta-a2.com . |
|
#3
| ||||
| ||||
| The L9201 Engraving Cycle is strickly literal. It will only engrave the exact characters after the "(" sign. Macro statements can not be on the same line as any "G" codes. You can serialize by using R1+2 font and add R4+1 for the increment you wish: L9201 R0+.05 R1+2 R3+0 R4+1 Z-.005 F40. (Test 01 This line will increment by one (R4+1) each time the cycle is executed. Neal |
|
#4
| |||
| |||
| Thanks guys, I guess I'll have to write a pile of code to get this job done. Shizzlemah |
|
#5
| |||
| |||
| 050610-2050 EST USA Shizzlemah: I do not known enough about Fadal to understand Neal's comment, but from a genaral standpoint I would not classify the job as a large amount of code. I believe it was on Gurus where I showed someone how to do this. Division by 10expN and use the integer value of the result to extract digits from the variable. beta-a2.com . |
| Sponsored Links |
|
#6
| |||
| |||
| Neal's post said that the command will engrave text or numbers, and can increment numbers - but you can't pass a macro variable. It will probably be about 30 lines of code, not horrible but nowhere near as convenient as one ! Divide and pull out each digit, engrave it, and move the machine some distance based on which charachter was just engraved. I'm not scared, just was hopin' for a shortcut |
![]() |
| 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 |
| Using CNC Mill for Engraving | studysession | General Metal Working Machines | 25 | 10-22-2006 10:15 PM |
| parametric programming | Karl_T | CamSoft Products | 21 | 05-24-2005 03:58 PM |
| Engraving Software | The Wizard | General CAM Discussion | 31 | 03-29-2005 06:38 AM |
| Engraving | Hack | General CAM Discussion | 6 | 03-25-2005 09:53 AM |
| Intro + engraving bits | Swede | General Metal Working Machines | 7 | 02-07-2004 03:47 PM |