CNC CONTROL SYSTEM

Abstract: PCT No. PCT/JP88/01095 Sec. 371 Date Jul. 21, 1989 Sec. 102(e) Date Jul. 21, 1989 PCT Filed Oct. 27, 1988 PCT Pub. No. WO89/05482 PCT Pub. Date Jun. 15, 1989.A computerized numerical control system controls the axes of a computerized numerical control apparatus (20) from a programmable machine controller (10) coupled to the computerized numerical control apparatus (20). Command values for the axes, information with respect to the grouping of the axes, and execution times for the axes in respective groups are sent from the programmable machine controller (10) to the computerized numerical control apparatus (20). When all commands for the axes in the respective groups are received by the computerized numerical control apparatus (20), pulses start to be distributed to the axes, and the pulses are distributed within the execution times. Linear interpolation can be performed on any desired combination of axes of the computerized numerical control apparatus (20) for preventing physical interference which could otherwise occur between axes when an automatic tool changing (ATC) mode is controlled by the programmable machine controller (10).

Description: Technical Field The present invention relates to a computerized numerical control (CNC) system for controlling the axes of a computerized numerical control apparatus from a programmable machine controller (PMC) coupled to the computerized numerical control apparatus, and more particularly to a computerized numerical control system for controlling the axes of the computerized numerical control apparatus through linear interpolation. Background Art There are widely used systems for controlling machines with computerized numerical control (CNC) apparatus to which programmable machine controllers (PMC) are coupled. The axes of a computerized numerical control apparatus are controlled from a programmable machine controller by command signals applied through a common RAM. With this arrangement, the axes of the CNC apparatus can be controlled by a user program stored in the PMC. However, command signals from the PMC are applied respectively for the individual axes, and hence these axes of the CNC apparatus can only be controlled asynchronously. There is no information regarding the grouping of the axes, etc. Therefore, it has heretofore been unable to operate the axes of the CNC apparatus in relation to each other, and to specify passages of axes. EP-A-0103714 discloses a method of controlling a plurality of axes of motion of an industrial machine. DE-A-3145894 discloses a programmable controller for an industrial machine. It is an object of the present invention to provide a computerised numerical control system which will solve the aforesaid problems of the conventional computerised numerical control methods, and which controls the axes of a computerised numerical control apparatus through linear interpolation with command signals from a programmable machine controller. To solve the above problems, there is provided in accordance with the present invention a computerised numerical control system for controlling the axes of a computerised numerical control apparatus from a programmable machine controller coupled to the computerised numerical control apparatus, the computerised numerical control system comprising: means for sending, in the programmable machine controller information, sent from the programmable machine controller to the computerised numerical control apparatus, command values for the axes relating to respective groups of the axes and execution times for the axes in respective groups; and means for starting to distribute pulses to axes in the computerised numerical control apparatus when all commands for the axes in the respective groups are received by the computerised numerical control apparatus, and for distributing the pulses within the execution times to effect linear interpolation with respect to the axes. The axes in the groups are caused to start simultaneously moving in response to the information with respect to the grouping of the axes sent from the programmable machine controller. Furthermore, the execution times are given to the axes in the groups, and the pulses are distributed within the execution times for effecting linear interpolation with respect to the axes of the computerized numerical control apparatus. In the drawings:- FIG. 1 is a block diagram of a computerized numerical control system according to an embodiment of the present invention; and FIG. 2 is a diagram illustrating the grouping of axes. An embodiment of the present invention will hereinafter be described with reference to the drawings. FIG. 1 shows in block form a computerized numerical control system according to an embodiment of the present invention. A programmable machine controller (PMC) 10 is coupled to a computerized numerical control (CNC) apparatus 20 and issues command signals for controlling three axes of the CNC apparatus 20. Moving commands are send from the PMC 10 to axis command interfaces 31, 32, 33 through a common RAM. Command values and execution times from the PMC 10 are temporarily stored in buffers 21, 22, 23. Axis control circuits 24, 25, 26 are responsive to commands from the buffers 21, 22, 23 for controlling servomotors or the like (not shown). In FIG. 1, a first axis belongs to a group A, and second and third axes to a group B. Command values for the second and third axes are stored in the buffers 22, 23 and simultaneously start to be distributed for enabling the second and third axes to start moving at the same time. The first axis of the group A is given an execution time Ta, whereas the second and third axes of the group B are given an execution time Te. Therefore, since the second and third axes of the group B execute commanded motions during the given time Te, linear interpolation is effected with respect to the second and third axes. The grouping of the axes or the execution times can be varied according to commands from the PMC 10. Consequently, linear interpolation can be performed on any desired combination of axes of the CNC apparatus 20. FIG. 2 illustrates the grouping of the axes. The group A is indicated by a flag 41, and the group B is indicated by a flag 42. The 0th bit position in each of the flags 41, 42 represents the first axis of the CNC apparatus 20. In the 0th bit position, a "1" bit is placed in the flag 41 for the group A, and hence the first axis is assigned to the group A. The 1st bit position represents the second axis of the CNC apparatus. In the 1st bit position, a "1" bit is placed in the flag 42 for the group B, and hence the second axis is assigned to the group B. The 2nd bit position indicates the third axis of the CNC apparatus 20. The third axis is assigned to the group B since a "1" bit is placed in the 2nd bit position in the flag 42. Therefore, the first axis of the CNC apparatus 20 belongs to the group A, whereas the second and third axes thereof belong to the group B, with linear interpolation effected on the second and third axes. The CNC apparatus has been described as having three axes. However, any desired number of axes may be commanded similarly. Moreover, it is also possible to effect linear interpolation for three or more axes. While flags have been used for grouping the axes in the illustrated embodiment, other means such as for directly specifying groups for the axes may be employed. With the present invention, as described above, moving commands, grouping information, and execution times for the axes are commanded from the PMC to the CNC apparatus for effecting linear interpolation with respect to axes of the CNC apparatus, so that linear interpolation may be performed on any desired combination of axes of the CNC apparatus. Thus, physical interference which could otherwise occur between axes when an automatic tool changing (ATC) mode is controlled by the PMC can reliably be prevented from taking place.

Claims: A computerised numerical control (CNC) system for controlling the axes of a computerised numerical control apparatus (20) from a programmable machine controller (10) coupled to the computerised numerical control apparatus, the computerised numerical control system comprising: means for sending, in the programmable machine controller information, sent from the programmable machine controller to the computerised numerical control apparatus, command values for the axes relating to respective groups of the axes and execution times for the axes in respective groups; and means (21,22,23) for starting to distribute pulses to axes in the computerised numerical control apparatus when all commands for the axes in the respective groups are received by the computerised numerical control apparatus, and for distributing the pulses within the execution times to effect linear interpolation with respect to the axes.

Inventors: FUJIBAYASHI KENTARO, HIDAKA YOSATO, KAWAMURA HIDEAKI, FUJIBAYASHI, KENTARO, HIDAKA, YOSATO, KAWAMURA, HIDEAKI
Applicants: FANUC LTD, FANUC LTD.
Application year: 1988
Main classification: G05B19
IPC codes: G05B19