![]() |
![]() |
|
Van-Isle Technology Systems Ltd.
|
Object-Oriented NC code
Advantages of Object-Oriented NC code:
- Object-oriented programs are well structured, which makes it easy to figure out what a particular routine does.
- With object-oriented programming files are easy to edit on the wire machine saving valuable production time. For example, the order in which the different objects are cut may be changed.:EPack settings, offsets, object taper angle, micro-joint settings, or just running one cut of the ten different cuts in the job.
- Object-oriented programs are easy to test. The whole job may be broken down into smaller components and isolated to testing specific components.
The basic idea of object-oriented programming is simple. Data, and the routines to process the data, are separated sorting the processing routines, called control blocks, to the top of the file, and the data blocks to the bottom of the file.
Each control block sets up the wire machine to run a data block in a different way. One control block could set up the rough cut with a taper, Z1 & Z5 setting, micro-joint, EPack, feed rate, and offset. A second control block could access a different data block to cut off the micro-joint. The next control block could cut a skim or even cut the land cuts all with the first data block. By allowing different control blocks to access the same data block, you save memory space, processing time, and time to try to edit the old style code are all saved.The Output file is divided into 4 distinct groups. Each group plays a significant role in the operation of the file.
Header:
- Tells the wire machine:
- the file number
- file name
- units of measure
- machine start location
- Gives the operator key pieces of information
- date the file was created
- the disk file name
- the original AutoCAD file name
- the programmer's name that created the file
- machine type file was created for
- EDMwire version number
Object Control Blocks:
Sets the parameters and controls the sequence of events for the data blocks to be executed.
- Parameters
- Object name
- Power settings (EPack number)
- Feed rate
- Wire Offset
- Power Master
- Alternate Rough cut
- Cut wire
- Micro-Joint
- Micro-Joint width
- Z1, Z2, Z5 for this cut
- Corner Mode G88/G89 for Object
- Taper angle
- Approach
- Startup EPack distance
- Ramp ON/OFF
- Nib radius
- Fine Hole Insert
- Insert search X and Y
- Raise Z-Axis on wire insert
- Speed between objects
- Land cut
- Land thickness
- Z1, Z2, Z5 for land cut
- Power Master
- Wire Cut
- Taper Angle
- Sequence Controls
- Object number (order number)
- Pass number
Start Sequence:
N05 is called at the start of each DATA BLOCK if wire insert (M20) is on in the Object Dialog box, or else N06 is called, avoiding the wire insert (M20). The tank is filled twice to avoid the problem of the tank draining below the table level and filling up to the table level on the fill tank command (a problem we have all learned the hard way). Flushing On, Wire ON, Machining ON, Adaptive Control ON, Absolute ON, Feed Rate set to H3, G01, and return to data block.
(Start_Sequence)
N05
M20
N06
M78
M78
M80 M82 M84
M90
G90 FH3
G01
G23
Data Block:
All vertex information is located here. X,Y,Z,U,V.I,J,R,Q,Qi,Qj, plus all the other MCodes the wire machine can handle.
The sample code shown here is of the Key Drawing shown below
.
The cut consists of one rough cut at -5 degree with Z1 set to 0.65 inches, and Z5 at 0 to create a 0.10 land. The second cut is a land cut with no taper, and the third cut is the land skim cut.
|
Home
| Download | EDMwire
Features | ToolBar |
Tutorials | Program History |
Bug Reporting | Contact Us
Dialog Boxes: Job Info
| Object Info | Vertex
Info | Render |
Output Editor
© Copyright 2007 Van-Isle Technology Systems, Ltd.