1. Technical Field
The present disclosure relates to compilers, and particularly to a compiler for a drilling machine.
2. Description of the Related Art
Generally, there are three kinds of tasks for dealing with cutting tools of a drilling machine: cutting tool loading, cutting tool unloading, and cutting tool changing. Accordingly, three kinds of control programs corresponding to the three kinds of tasks need to be compiled, according to predetermined codes and parameters in a specification of a drilling machine, which is inconvenient.
Referring to
Referring to
Additionally, the 20 kinds of drilling operations can also be classified according to location operations and action operations, wherein the cutting tool loading, cutting tool unloading, cutting tool deployed in a first tool storage, cutting tool deployed in a second tool storage, and cutting tool offset measurement all are referred to as location operations, and belong to a location operation category; and the other operations are referred as action operations, and belong to the action operation category. The location operations are used for indicating locations of the action operations. A corresponding icon of each drilling operation is also shown in
The operation parameter module 12 stores a plurality of working parameters of the 20 kinds of drilling operations, such as Z coordinate values for spindle rise and lower, speeds for the spindle turn clockwise and anticlockwise. The plurality of working parameters of the 20 kinds of drilling operations may be input by an operator through an operation setting menu in
The control unit setting module 14 stores a plurality of object codes, such as grid matrix (GM) codes and programmable logic controller (PLC) codes, for the 20 kinds of drilling operations. For example, if the GM codes corresponding to spindle rotation clockwise and spindle rise are M03 and M05 in the specification, then those code associations need to be input in GM/PLC code menu depicted in
Whereas the setting module 14 is used for manually setting the code associations, the control unit module 15 stores predetermined associations of the GM and PLC codes of each drilling operation corresponding to a drilling machine type preset. When an icon of one of the preset drilling machine types in a controller setting menu (shown in
The cutting tool module 16 is to calculate the information of the operation cutting tool according to preset tool operation parameters in a tool parameter setting menu in
The process setting module 13 is to generate a source program according to the source codes of the selected drilling operations. Drilling operations corresponding to each of the three kinds of tool tasks can be selected in two ways. First, referred to a fast setting manner, drilling operations are selected from the movement operation category. Second, referred to a normal setting manner, drilling operations are selected from the 20 kinds of operations.
The process settings for cutting tool changing, i.e. replacing an old tool by a new tool, in the fast setting manner and in the normal setting manner are described as follow. In the fast setting manner, shown as in the operation region 1 in
The icon of the spindle movement is deployed below the icon of the cutting tool deployed in a second tool storage, to indicate that the spindle moves to the location of the second tool storage to deploy an old cutting tool in the second tool storage. The icon of the spindle movement is deployed below the icon of the cutting tool deployed in a first tool storage, to indicate that the spindle moves to the location of the first tool storage to load the new cutting tool. The icon of the jaw movement is deployed below the icon of the cutting tool deployed in a second tool storage, to indicate that the jaw moves to the location of the second tool storage to get the old cutting tool. The icon of the jaw movement is deployed below the icon of the cutting tool return, to indicate that the jaw deploys the old cutting tool at a location of a preset tool set.
In the normal process setting manner, the icons of the jaw movement, jaw lower, jaw open, jaw close, jaw rise, and spindle rise are deployed below the icon of the cutting tool unloading to indicate that the jaw moves to the location of the new cutting tool to load the new cutting tool. The icons of the jaw movement, spindle lower, jaw open, and spindle rise are deployed below the icon of the cutting tool deployed in a first tool storage to indicate that the jaw moves to the location of the first tool storage to deploy the new cutting tool in the first tool storage.
The icons for spindle lower, jaw open, spindle rise are deployed below the icon of the cutting tool deployed in a second tool storage to indicate that the spindle deploys the old cutting tool in the second tool storage. The icons of the spindle movements, spindle chuck open, spindle chuck close, and spindle turn clockwise are deployed below the icon of the cutting tool deployed in a first tool storage to indicate that the spindle install the new cutting tool. The icons of the jaw movement, jaw close, jaw rise, and spindle rise are deployed below the icon of the cutting tool deployed in a second tool storage to indicate that the jaw get the old cutting tool. The icons of the jaw movement, jaw lower, jaw open, and jaw rise are deployed below the icon of the cutting tool return to indicate that the jaw deploys the old cutting tool on the location of the preset tool set. In this way, comparing with the normal setting manner, the fast setting manner greatly simplifies the operator's workload.
The operation module 11 is to transmit source codes corresponding the selected drilling operations to the process setting module 13 when the icons of the selected drilling operation are selected. After the icons of the selected drilling operation are deployed in the operation region 1, the operation module 11 associates the location drilling operations with the corresponding action drilling operations based on the abscissas of the location and action drilling operations. For example, if the icon of the jaw movement is deployed below the icon of the cutting tool unloading, the jaw movement and the cutting tool unloading have the same abscissas, and have the same location.
The operation module 11 further determines the sequence of the source codes for the selected drilling operations in the source program based on the ordinates of the icons of the selected drilling operations. Because the drilling operations in the fast setting manner is selected from the movement operation category, the process setting module 13 needs to complement a plurality of assistance drilling operations corresponding to each location drilling operations based on a preset processing program stored in the process setting module 13. Because the assistance drilling operations corresponding to each location drilling operation are different for the three kinds of tool tasks, the tool tasks need to be preset in a process setting menu in
Referring to
It is to be understood, however, that even though numerous characteristics and advantages of the embodiments have been set forth in the foregoing description, together with details of the structure and function of the embodiments, the disclosure is illustrative only, and changes may be made in details, especially in matters of shape, size, and arrangement of parts within the principles of the embodiments to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
200910301708.X | Apr 2009 | CN | national |