Numerical controller
10878672 ยท 2020-12-29
Assignee
Inventors
Cpc classification
G08B5/22
PHYSICS
G05B2219/33136
PHYSICS
International classification
Abstract
There is provided a numerical controller that automatically acquires detailed information on a wired device prior to connection setting. The numerical controller is connectable to a plurality of devices, and includes a connection information acquisition unit that acquires connection information on each of the devices, including information indicating a connection order and a kind of each of the devices by communicating with each of the devices in a hardware level, a connecting data creation unit that creates connecting data using the connection information, a connection processing execution unit that executes connection processing with each of the devices in a software level using the connecting data, and a detailed information acquisition unit that acquires detailed information from each of the devices subjected to the connection processing.
Claims
1. A numerical controller connectable to a plurality of devices, the numerical controller comprising: a connection information acquisition unit that acquires connection information on the devices, including information indicating a connection order and a kind of each of the devices by communicating with each of the devices; a connecting data creation unit that creates connecting data using the connection information; a connection processing execution unit that executes connection processing with each of the devices using the connecting data; a detailed information acquisition unit that acquires detailed information from each of the devices subjected to the connection processing; and a connection information comparison unit that compares the connection information with a connection setting parameter, wherein the connecting data creation unit creates connecting data using the connection information when a comparison result acquired by the connection information comparison unit shows a problem between the connection information and the connection setting parameter.
2. The numerical controller according to claim 1, wherein the connecting data includes a number identifying an amplifier, a motor, a separate detector, or an input/output device.
3. The numerical controller according to claim 1, wherein the detailed information acquisition unit repeats communication to acquire additional information from each of the devices.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The object of the present invention described above, and other objects and features of the present invention, will be clear from descriptions on embodiments below with reference to accompanying drawings. The drawings are as follows:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
(18) A configuration of a numerical controller 1 according to an embodiment of the present invention will be described.
(19)
(20) The numerical controller 1 includes a central processing unit (CPU) 11 that is a processor for totally controlling the numerical controller 1. The CPU 11 reads out a program stored in a nonvolatile memory 14 via a bus 20 to control the entire numerical controller 1 according to the program.
(21) The nonvolatile memory 14 is configured as a memory that is kept in a storage state even when a power source of the numerical controller 1 is turned off, due to a backup of a battery (not illustrated), for example. The nonvolatile memory 14 stores a program, data, and the like, which may be loaded from a volatile memory 13 when being used. The volatile memory 13 stores temporary calculation data and display data, and data input using an input device and the like, along with the program, the data loaded from the nonvolatile memory 14.
(22) A display/manual data input (MDI) unit 70 is a data input/output device including a display, a keyboard, and the like. A command and data input using the keyboard of the display/MDI unit 70 is transferred to the CPU 11 via an interface 15. Display data output from the CPU 11 is displayed in a display of the display/MDI unit 70 via the interface 15.
(23) A serial bus 16 is an interface for connecting one or more devices 81, 82, . . . , using a daisy chain system. Data input from the devices 81, 82, . . . , is transferred to the CPU 11 via the serial bus 16. A command and data output from the CPU 11 are input to the devices 81, 82, . . . , via the serial bus 16.
(24) Each of the devices 81, 82, . . . , includes a device control unit. The device control unit transmits identification information on the corresponding one of the devices in response to request by a connection information acquisition unit (described below) of the numerical controller. The identification information is information or the like indicating a kind of each of the devices and the like, for example. The identification information can be acquired by the numerical controller using only communication with each of the devices in a hardware level.
(25)
(26) The conventional numerical controller includes a connection information acquisition unit that acquires connection information from each of devices (device 1, device 2, . . . ) connected to a serial bus to form a daisy chain connection, a connection information comparison unit that checks the connection information against a connection setting parameter read from the outside to check whether there is a problem, a connection processing execution unit that creates connecting data on the basis of the connection setting parameter to execute connection processing with each of the devices, and a detailed information acquisition unit that acquires detailed information from each of the devices with which the connection processing is completed.
(27) The connection information indicates a correspondence between a connection order indicating an order of each of the devices in the daisy chain and identification information. In the present embodiment, the connection order is numbered in ascending order from a position closer to the numerical controller, as 1, 2, . . . .
(28) The connection setting parameter includes the following three information items in the present embodiment. Amplifier number: an interface number associated with the numerical controller and a specific amplifier, i.e., an identifier enabling the numerical controller to uniquely identify an amplifier. Motor number: an interface number associated with the numerical controller and a specific motor, i.e., an identifier enabling the numerical controller to uniquely identify a motor. Correspondence number: an identifier for uniquely identifying a combination of a logic axis in the numerical controller, and an amplifier number and a motor number.
(29) As illustrated in
(30) The connecting data is necessary to allow the numerical controller to complete connection to various amplifiers, a motor, and the like. The connecting data is setting data created using a combination table created on the basis of the connection setting parameter to execute connection processing with each of the devices.
(31) A procedure for reading a connection setting parameter to the numerical controller will be described. Typically, a connection setting parameter setting unit comprises a personal computer (PC), an MDI unit, or the like, and receives a connection setting parameter input by a technician. A connection setting parameter storage unit is a storage area for storing the connection setting parameter received from the connection setting parameter setting unit, and is typically provided in a nonvolatile memory in the numerical controller. A connection setting parameter reading unit is a processing unit that reads a connection setting parameter from the connection setting parameter storage unit so as to enable the connection information comparison unit to use the connection setting parameter. The connection setting parameter reading unit typically reads a connection setting parameter from the connection setting parameter storage unit to a volatile memory in the numerical controller.
(32) Meanwhile, the numerical controller 1 according to the present embodiment includes a connection information acquisition unit 101, a connection information comparison unit 102, a connecting data creation unit 103, a connection processing execution unit 104, and a detailed information acquisition unit 105 that acquires detailed information from each of the devices.
(33) The connection information acquisition unit 101 acquires connection information from each of the devices connected to the numerical controller 1 hardware-wise. Acquisition of the connection information is a publicly known art, so that detailed description thereof is eliminated here.
(34) The connection information comparison unit 102 checks the connection information against a connection setting parameter read by the connection setting parameter reading unit to check whether there is a problem, as with the conventional numerical controller.
(35) The connecting data creation unit 103 creates connecting data on the basis of the connection information acquired by the connection information acquisition unit 101. While the conventional numerical controller uses a connection setting parameter to create connecting data, the numerical controller 1 according to the present embodiment has a feature of using the connection information when a connection setting parameter is unusable.
(36) The connection processing execution unit 104 executes connection processing with each of the devices by using the connecting data created by the connecting data creation unit 103. The connection processing is a publicly known art, so that detailed description thereof is eliminated here.
(37) The detailed information acquisition unit 105 acquires detailed information from each of the devices connected by the connection processing execution unit 104. Acquisition of detailed information after connection is completed is a publicly known art, so that detailed description thereof is eliminated here.
(38) With reference to a flowchart of
(39) Meanwhile, a procedure for acquiring detailed information from each of the devices in the numerical controller 1 according to the present embodiment is as follows. With reference to an example illustrated in
(40) With reference to a flowchart of
(41) S101: Setting a connection setting parameter.
(42) A technician inputs a connection setting parameter in the connection setting parameter setting unit.
(43) S102: Storing a connection setting parameter in the connection setting parameter storage unit.
(44) The connection setting parameter input in S101 is stored in the connection setting parameter storage unit. Once the connection setting parameter is stored in the connection setting parameter storage unit, the connection setting parameter is hold even when a power source of the numerical controller 1 is interrupted.
(45) S103: Reading a connection setting parameter
(46) The connection setting parameter reading unit reads the connection setting parameter stored in the connection setting parameter storage unit to the volatile memory 13. When a machine tool is started, the connection setting parameter storage unit does not store a connection setting parameter, and thus no connection setting parameter is read.
(47) S104: Acquiring connection information
(48) As illustrated in
(49)
(50) S105: Checking connection information against a connection setting parameter
(51) The connection information comparison unit 102 compares the connection information with the connection setting parameter to check whether there is a problem in setting. When there is no problem, i.e., when the connection information conforms to the connection setting parameter, processing proceeds to TRUE processing (S106). In contrast, when there is a problem, i.e., when the connection information does not conform to the connection setting parameter, the processing proceeds to FALSE processing (S107). In this example of the present embodiment, no connection setting parameter is acquired in S103, so that the processing proceeds to the FALSE processing.
(52) S106: Creating connecting data (conventional art)
(53) The connecting data creation unit 103 creates a combination table using connection setting parameters and creates connecting data on the basis of the combination table, as with the conventional numerical controller.
(54) S107: Creating connecting data
(55) The connecting data creation unit 103 creates a combination table using connection information and creates connecting data on the basis of the combination table.
(56) The conventional numerical controller creates a combination table using connection setting parameters. This combination table includes an amplifier number and a motor number. The amplifier number and the motor number are information that is to be basically set as a connection setting parameter. However, without reference to detailed information of each of the devices, the amplifier number and the motor number may not be easily created. In this stage, the detailed information is not yet acquired, so that a technician has no clue to set the amplifier number and the motor number.
(57) Concerning this point, the inventors find that satisfying a predetermined condition succeeds in connection processing with each of the devices even when the amplifier number and the motor number included in the combination table are not necessarily correct. More specifically, when conditions such as including information (information indicating a kind of each of the devices), included in the connection information, in a part of the amplifier number and motor number, and describing the amplifier number and the motor number in a predetermined form, are satisfied, connection processing with each of the devices can be executed even using an amplifier number and a motor number based on dummy data.
(58) For example, the connecting data creation unit 103 creates a prefix including information indicating a kind of each of the devices, included in the connection information, and adds a serial number for each prefix. The serial number can be added according to a connection order. Even when an amplifier with multiple axes is included in an actual configuration, a number is added on the assumption that all amplifiers are each a uniaxial amplifier. The combination table is created by using an amplifier number and a motor number, created as described above.
(59) As described above, the connecting data creation unit 103 creates a temporary amplifier number, motor number, and correspondence number, using the connection information acquired in S104, and creates a temporary combination table including the numbers.
(60) It is preferable that the temporary combination table created here be used only for acquiring detailed information in the present embodiment. When each of the devices actually operates, the numerical controller 1 additionally creates a connection setting parameter with reference to detailed information acquired later to execute the connection processing with each of the devices again according to a usual procedure.
(61) S108: Connection processing
(62) The connection processing execution unit 104 executes connection processing with each amplifier and motor using the connecting data created in S106 or S107.
(63) S109: Acquiring detailed information
(64) The detailed information acquisition unit 105 acquires detailed information from each amplifier and motor for which the connection processing is completed. In this state, the numerical controller 1 can finally recognize that the servo amplifier #1 is a triaxial amplifier or the like, for example.
(65) The detailed information acquisition unit 105 may repeat communication in a software level while changing or adding communication setting as needed, thereby acquiring additional detailed information from each of the devices.
(66)
(67) The numerical controller 1 includes a display unit (not illustrated) that acquires displaying data when a technician selects a connection-state checking screen. The displaying data includes connection information and detailed information. The connection information is acquired by the connection information acquisition unit 101 in S104. The detailed information is acquired by the detailed information acquisition unit 105 in S109.
(68) When the connection information is acquired, the display unit displays the connection information in a screen. In each of
(69) According to the present embodiment, a technician can refer to detailed information on each of the devices when setting a connection setting parameter, so that a burden of setting and a setting error can be reduced. In addition, a detailed wiring state between the numerical controller and each of the devices can be visually seen, so that a wiring error or the like can be easily found.
(70) The present invention is not limited to the embodiment described above, and can be practiced in various aspects by modifying the embodiment. For example, while each of the devices connected to the serial bus to form a daisy chain connection is exemplified in the embodiment described above, the present invention is not limited to this. Any connection form can be used as long as the connection information acquisition unit 101 can acquire a connection order and identification information.
(71) In addition, while the amplifier, the motor, the separate detector, and the like are exemplified as the devices in the embodiment described above, the present invention is not limited to this. Instead of the devices, input/output devices such as an operation panel, a monitor, and a sensor may be used, for example, as long as they operate like the devices of the embodiment described above.