Patent ID: 7738992

Claim:
A numerical control system in which a machine control system for controlling a machine at a prescribed period and a collision detection system, which operates in a period different from that of said machine control system or in a constantly changing period to check a probability of collision for a command that operates said machine, are operated in association with each other, said machine control system includes: a command generation section that interprets a program for operating said machine, generates a command to said machine in the unit of control, and outputs said command by assigning to said command a command number for uniquely specifying an execution place of said program in the unit of control; a command buffer section that stores a predetermined number of commands output from said command generation section; a linkage data sending and receiving section that copies one of said commands stored in said command buffer section, sends it to said collision detection system, and transfers check result data when said check result data related to the probability of collision for said command is returned from said collision detection system; a check result data buffer section that stores said check result data transferred from said linkage data sending and receiving section; a command output determination section that analyzes the earliest stored one of said check result data stored in said check result data buffer section when the number of commands for which check result data are obtained among said commands stored in said command buffer section is more than or equal to a preset second threshold, and outputs a command number assigned to said earliest stored check result data when it is determined from the analysis of said earliest stored check result data that there is no probability of collision; and a machine drive section that takes out, when a command number is output from said command output determination section, a command of said command number from said command buffer section, and applies said command thus taken out to said machine, said machine drive section being operable to temporarily stop said machine thereby to decelerate or stop it when there is no command number output from said command output determination section; wherein when the probability of collision for a command received from said linkage data sending and receiving section is checked, said collision detection system returns check result data to said linkage data sending and receiving section by assigning a command number given to said checked command to said check result data.