![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Parametric Programing (custom macro b, fadal macro, okuma user task) |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
I am writing a series of subprograms to track tool life and wear offset adjustments over the course of several long-running jobs. One of the subprograms will output (via DPRNT) the collected data on a regular basis; this subprogram is generic and can be called from any part programs as required. The part program will store the part number, job number, etc as variables which the reporting subprogram can use when it generates its output. What I would *like* to do is also be able to output the drawing revision. Some of our customers use a numeric system for drawing revisions, which is no trouble at all to store/retrieve. However, a large number of our customers use letters... e.g. "REV D". I have not been able to figure out a way to handle this. Section from part program: #599=2137649(PART NUMBER) #598=20(SEQ NUMBER) #596=134558.09(JOB/LOT NUMBER) Subprogram segment: DPRNT[PART NUMBER #599[80] REV NO ????[20]] DPRNT[JOB NO #596[52] SEQ NO #598[40]] DPRNT[MACHINE NUMBER #6026[80]] |
|
#2
| ||||
| ||||
| Something to mull over... You could possibly store a number from 1 to 26, then use that value to pick one of several DPRNT statements. IF[#20EQ1]GOTO1001(A) IF[#20EQ2]GOTO1002(B) ... ... ... IF[#20EQ26]GOTO1026(Z) (START OF LETTERS) N1000(NO REV) DPRNT[PART NUMBER #599[80]] GOTO1027 N1001(A) DPRNT[PART NUMBER #599[80] REV NO A] GOTO1027 N1002(B) DPRNT[PART NUMBER #599[80] REV NO B] GOTO1027 ... ... N1026(Z) DPRNT[PART NUMBER #599[80] REV NO Z] N1027(REMAINING DPRNTS) DPRNT[JOB NO #596[52] SEQ NO #598[40]] DPRNT[MACHINE NUMBER #6026[80]] |
![]() |
| 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 |
| Need Help!- Retrieving TNC 145 via serial connection | A.A | Bridgeport and Hardinge Mills | 3 | 03-20-2009 09:07 AM |
| Retrieving Storing Status of G41/G42 in VB Script | Mr. Technical | Mach Wizards, Macros, & Addons | 0 | 06-02-2008 02:31 PM |
| EMC2 variable pitch / variable diameter threading. | samco | General Metalwork Discussion | 0 | 03-09-2008 02:40 PM |
| retrieving files? | bearracecars | Autodesk Software (Autocad, Inventor etc) | 2 | 09-17-2007 11:34 AM |
| Retrieving Stepper Motors | andy_ck87028 | Stepper Motors and Drives | 16 | 10-25-2005 05:42 PM |