Controller and control system for execution of a callback operation for an industrial machine
11194307 · 2021-12-07
Assignee
Inventors
Cpc classification
B23Q15/007
PERFORMING OPERATIONS; TRANSPORTING
International classification
Abstract
A controller capable of preventing human mistakes by customizing checking contents upon operations of users to automatically perform customized checking appropriately is provided. A controller that controls an industrial machine includes: a receiving unit that receives a condition of a callback process associated with control of the industrial machine and an action corresponding to the condition; and a designated condition registering unit that registers the condition and the action received by the receiving unit as a callback process.
Claims
1. A callback processing device, comprising: a controller configured to control an industrial machine performing an industrial machining operation; and a non-transitory memory configured to store a program, which when executed by the controller causes the callback setting device to: receive a condition of a callback process associated with control of the industrial machine and an action corresponding to the condition; read the condition and the action; generate a syntax tree from a script including the condition and action read, and extract the condition and the action from the syntax tree generated; register the condition and the action extracted as a callback process; receive input data to a callback I/F for executing the registered action; determine whether to execute the action or modify the action as the callback process by referring to the input data to the callback I/F; and execute the callback process based on the data input to the callback I/F.
2. The callback processing device according to claim 1, wherein the condition includes any one or more among identifiers corresponding to various operations of a user in the industrial machine, a machine coordinate value, a tool length compensation amount, a tool wear compensation amount, a work coordinate system offset, a workpiece setting error compensation amount, input signals from a control board for operating the industrial machine, input signals from sensors attached to the industrial machine, operation information of an MDI key or a soft key of the industrial machine, transmission/reception information of communication signals, parameters, macro variables, and system variables used for controlling the industrial machine, and diagnosis information of the industrial machine.
3. The callback processing device according to claim 1, wherein the action includes one or more among permission of execution of an operation from a user, rejection of execution of an operation from a user, application of changes in setting values of the controller, cancellation of changes in setting values of the controller, displaying of messages, issuing of alarms, transmission/reception of control signals, and transmission/reception of communication signals.
4. The callback processing device according to claim 1, further comprising: a designated condition execution unit that executes the callback process corresponding to the operation.
5. A control system comprising: a callback processing device; and one or more industrial machines communicably connected to the callback processing device via a network, the callback processing device includes: a callback controller configured to control the one or more industrial machines performing industrial machining operations, and a first non-transitory memory configured to store a program, which when executed by the callback controller causes the callback setting device to: receive a condition of a callback process associated with control of the one or more industrial machines and an action corresponding to the condition, read condition and the action; generate a syntax tree from a script including the condition and action read, and extract the condition and the action from the syntax tree generated; register the condition and the action extracted as a callback process; and receive input data to a callback I/F for executing the registered action, each industrial machine is configured to: receive a content of the callback process registered by the callback processing device; include a numerical controller; and a second non-transitory memory configured to store program, which when executed by the numerical controller causes the industrial machine to: receive an operation by a user on the industrial machine, determine whether to execute the action or modify the action as the callback process corresponding to the operation by referring to the input data to the callback I/F, and execute the callback process corresponding to the operation based on the data input to the callback I/F.
6. The control system according to claim 5, wherein the numerical controller is separated from the industrial machine.
7. The control system according to claim 5, wherein the callback processing device is separated from the industrial machine.
8. A control system comprising: a callback processing device; and one or more industrial machines communicably connected directly to the callback setting device, the callback processing device includes: a callback controller configured to control the one or more industrial machines performing industrial machining operations, and a first non-transitory memory configured to store a program, which when executed by the callback controller causes the callback setting device to: receive a condition of a callback process associated with control of the one or more industrial machines and an action corresponding to the condition, register the condition and the action received as a callback process, receive input data to a callback I/F for executing the registered action; and each industrial machine includes: a numerical controller, and a second non-transitory memory configured to store a memory, which when executed by the numerical controller causes the industrial machine to: receive execution of an operation by a user on the industrial machines, determine whether to execute the action or modify the action as the callback process corresponding to the operation by referring to the input data to the callback I/F, and execute the action as the callback process corresponding to the operation based on the data input to the callback I/F, wherein the numerical controller is separated from the industrial machine.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
DETAILED DESCRIPTION OF THE INVENTION
First Embodiment
(6) Hereinafter, a first embodiment of the present invention will be described in detail with reference to
(7) More specifically, the controller 1 includes a control unit (not shown) that controls the entire controller 1. The controller 1 reads various programs appropriately from a storage area such as a ROM, a RAM, a flash memory, or a hard disk (HDD) and executes the programs. In this way, various functions of the receiving unit 11, the designated condition reading unit 121, the designated condition analyzing unit 122, the designated condition registering unit 123, the operation receiving unit 131, and the designated condition execution unit 132 are realized.
The control unit may be a CPU, for example.
In the functional block diagram of
(8) The controller 1 is a device for controlling an industrial machine, and may be a numerical controller for controlling a machine tool, for example, or a robot controller for controlling a robot.
(9) The receiving unit 11 receives a condition of a callback process associated with control of an industrial machine and an action corresponding to this condition.
(10) More specifically, a user inputs conditions and actions for defining the content of a callback process with the aid of the receiving unit 11.
(11) The user may input conditions and actions by describing such a script as described later and may input conditions and actions by operating via a GUI.
(12) The receiving unit 11 may be separated from the controller 1.
(13)
(14) The identifier “On_ToolOfsChange” indicates that the following commands are conditional determination and actions that are to be performed once a user changes a tool offset. In the example of
(15) The identifier “On_WorkOfsChange” indicates that the following commands are conditional determination and actions that are to be performed once a user changes a work offset. In the example of
(16) The identifier “On_SimulationExecution” indicates that the following commands are conditional determination and actions that are to be executed once a user executes simulations for respective program numbers.
(17) In the example of
(18) The identifier “On_ProgramExecution” indicates that the following commands are conditional determination and actions that are to be executed once a user executes programs of respective program numbers.
(19) In the example of
(20) An element that forms a condition may include any one or more among identifiers corresponding to various operations of the user in an industrial machine, a machine coordinate value, a tool length compensation amount, a tool wear compensation amount, a work coordinate system offset, a workpiece setting error compensation amount, input signals from an operation board for operating the industrial machine, input signals from sensors attached to the industrial machine, operation information of an MDI key or a soft key of the industrial machine, transmission/reception information of communication signals, parameters, macro variables, and system variables used for controlling the industrial machine, and diagnosis information of the industrial machine.
(21) An action performed during callback when conditions are satisfied may include one or more among permission of execution of an operation from a user, rejection of execution of an operation from a user, application of changes in setting values of the controller, cancellation of changes in setting values of the controller, displaying of messages, issuing of alarms, transmission/reception of control signals, and transmission/reception of communication signals.
(22) The receiving unit 11 stores data of conditions and actions input by the user in a storage device (not shown).
(23) The designated condition reading unit 121 reads the conditions and actions (both will be collectively referred to as “designated conditions”) received by the receiving unit 11. More specifically, the designated condition reading unit 121 reads data including the conditions and actions stored in the storage device (not shown) via a bus or an input/output circuit.
(24) The designated condition analyzing unit 122 analyzes the data including the conditions and actions read by the designated condition reading unit 121.
(25) Specifically, first, recursive descent parsing or the like is performed on the basis of a predetermined syntax definition, for example, to generate a syntax tree from a script.
(26) The syntax tree may be generated in such a form that additional condition nodes and action nodes hang under nodes indicating the identifiers corresponding to various operations of the user by defining the syntax appropriately.
(27) By this analysis, it is possible to extract conditional determination and actions corresponding to various operations of the user from the syntax tree generated in a desired form.
(28) The designated condition registering unit 123 registers the conditions and actions analyzed by the designated condition analyzing unit 122 as a callback process corresponding to each operation of the user.
(29) More specifically, the designated condition registering unit 123 registers an action corresponding to each of the operations of the user on the basis of the analysis result obtained by the designated condition analyzing unit 122. In the example illustrated in
(30) The operation receiving unit 131 receives execution of an operation by the user on the controller 1.
(31) In the example illustrated in
The operation receiving unit 131 may be separated from the controller 1.
(32) The designated condition execution unit 132 issues an event when an operation of the user is executed and executes a callback process corresponding to the operation of the user. In the example illustrated in
(33) The designated condition execution unit 132 executes an action upon change in tool length compensation amount as a callback process by referring to the data input to the callback I/F upon change in tool length compensation amount.
(34) Similarly, the designated condition registering unit 123 inputs the data related to actions upon change in work offset to a callback I/F upon change in work offset, of the designated condition execution unit 132.
(35) The designated condition execution unit 132 executes an action upon change in work offset as a callback process by referring to the data input to the callback I/F upon change in work offset.
(36) Moreover, the designated condition registering unit 123 inputs the data related to actions upon execution of simulation to a callback I/F upon execution of simulation, of the designated condition execution unit 132.
(37) The designated condition execution unit 132 executes an action upon execution of simulation as a callback process by referring to the data input to the callback I/F upon execution of simulation.
(38) Furthermore, the designated condition registering unit 123 inputs the data related to actions upon execution of cycle start to a callback I/F upon execution of cycle start, of the designated condition execution unit 132.
(39) The designated condition execution unit 132 executes an action upon execution of cycle start by referring to the data input to the callback I/F upon execution of cycle start.
(40) These callback processes are examples only and are not limited thereto.
(41) For example, rather than executing the callback process in response to execution of a certain operation by the user, the designated condition execution unit 132 may execute the callback process when the user does not execute a certain operation for a certain period in addition to executing the callback process in response to execution of a certain operation by the user.
(42)
(43) In step S1, the designated condition reading unit 121 receives conditions and actions (designated conditions) received by the receiving unit 11 from the user.
(44) In step S2, the designated condition analyzing unit 122 analyzes the conditions and actions (designated conditions) read by the designated condition reading unit 121.
(45) In step S3, the designated condition registering unit 123 registers the conditions and actions (designated conditions) analyzed by the designated condition analyzing unit 122 as a callback process corresponding to each operation.
(46) In step S4, the operation receiving unit 131 receives execution of the operation by the user.
(47) In step S5, the designated condition execution unit 132 executes the callback process corresponding to the operation received by the operation receiving unit 131.
Advantages of First Embodiment
(48) In the first embodiment, the controller 1 includes the receiving unit 11 that receives conditions and actions of a callback process associated with control of an industrial machine, and the designated condition registering unit 123 that registers the conditions and actions received by the receiving unit 11 as a callback process.
(49) In this way, a user can customize the content of a callback process and can prevent human mistakes by automatically performing appropriate checking operations.
Second Embodiment
(50) Hereinafter, a second embodiment of the present invention will be described in detail with reference to
(51)
(52) The callback setting device 1A corresponds to a portion of the controller 1 of the first embodiment and is a device for allowing a user to set the content of a callback process.
(53) The machine tool 2 is a device that performs predetermined machining such as cutting and includes a motor driven to machine a work, a spindle and a feed axis attached to the motor, and a jig and a tool corresponding to these respective axes.
(54) The machine tool performs predetermined machining by driving the motor on the basis of a motion command.
(55) Here, there is no particular limitation to the content of the predetermined machining, and the machining may be grinding, sanding, rolling, or forging other than the cutting, for example.
(56) The network 3 is realized by a local area network (LAN) constructed in a factory or a virtual private network (VPN) constructed on the Internet.
(57)
(58) The same functional blocks as those of the controller 1 according to the first embodiment will be denoted by the same reference numerals, and the description of the functions will be omitted.
(59) The callback setting device 1A includes a receiving unit 11, a designated condition reading unit 121, a designated condition analyzing unit 122, and a designated condition registering unit 123.
(60) The machine tool 2 includes a designated condition receiving unit 23 and a numerical control unit 24.
(61) The designated condition receiving unit 23 receives data related to the content of a callback process registered by the callback setting device 1A.
(62) More specifically, the designated condition receiving unit 23 receives, via the network 3, data related to actions upon change in tool length compensation amount, data related to actions upon change in work offset, data related to actions upon execution of simulation, and data related to actions upon execution of cycle start, which are stored in the designated condition registering unit 123 of the callback setting device 1A. However, the data stored in the designated condition registering unit 123 is not limited thereto.
The designated condition receiving unit 23 can receive data related to actions of the callback process with respect to an arbitrary operation of the user.
(63) The numerical control unit 24 executes a program for numerically controlling the machine tool 2 as one of its functions.
(64) Furthermore, the numerical control unit 24 includes an operation receiving unit 131 and a designated condition execution unit 132 separately from the function of executing the program for numerical control.
(65) The designated condition receiving unit 23 inputs the received data related to actions upon change in tool length compensation amount to a callback I/F upon change in tool length compensation amount, of the designated condition execution unit 132.
(66) The designated condition execution unit 132 executes an action upon change in tool length compensation amount as a callback process by referring to the data input to the callback I/F upon change in tool length compensation amount.
(67) Similarly, the designated condition receiving unit 23 inputs the received data related to actions upon change in work offset to a callback I/F upon change in work offset, of the designated condition execution unit 132.
(68) The designated condition execution unit 132 executes an action upon change in work offset as a callback process by referring to the data input to the callback I/F upon change in work offset.
(69) Moreover, the designated condition receiving unit 23 inputs the received data related to actions upon execution of simulation to a callback I/F upon execution of simulation, of the designated condition execution unit 132.
(70) The designated condition execution unit 132 executes an action upon execution of simulation as a callback process by referring to the data input to the callback I/F upon execution of simulation.
(71) Furthermore, the designated condition receiving unit 23 inputs the received data related to actions upon execution of cycle start to a callback I/F upon execution of cycle start, of the designated condition execution unit 132.
(72) The designated condition execution unit 132 executes an action upon execution of cycle start by referring to the data input to the callback I/F upon execution of cycle start.
(73) These callback processes are examples only and are not limited thereto.
(74) For example, rather than executing the callback process in response to execution of a certain operation by the user, the designated condition execution unit 132 may execute the callback process when the user does not execute a certain operation for a certain period in addition to executing the callback process in response to execution of a certain operation by the user.
Advantages of Second Embodiment
(75) In the second embodiment, similarly to the first embodiment, a user can customize the content of a callback process and can prevent human mistakes by automatically performing appropriate checking operations.
(76) When the functions of the controller 1 according to the first embodiment are distributed over a network, edge computing or fog computing can be enabled and hence high-speed processing can be realized.
(77) When a checking function of the same specifications is set to all machine tools or numerical controllers connected to a network present in a factory, the function can be set collectively by a single callback setting device.
(78) [Modification 1]
(79) In the first and second embodiments, the user inputs the designated conditions by describing a script in the receiving unit 11. However, there is no limitation thereto.
(80) For example, as described above, the user may input the designated conditions by operating via a GUI.
(81) [Modification 2]
(82) In the second embodiment, the numerical control unit 24 is one component of the machine tool 2. However, there is no limitation thereto.
(83) For example, the numerical control unit 24 may be a numerical controller separated from the machine tool 2.
(84) In this case, the control system 10 may include a robot instead of the machine tool 2 and a robot controller instead of the numerical controller.
(85) [Modification 3]
(86) In the second embodiment, the receiving unit 11 is included in the callback setting device 1A. However, there is no limitation thereto.
(87) For example, the receiving unit 11 may be included in the machine tool 2 (particularly, the numerical control unit 24 of the machine tool 2), conditions and actions corresponding to the conditions may be input from the receiving unit 11 of the machine tool 2, and the input conditions and actions may be transmitted to the designated condition reading unit 121 of the callback setting device 1A via the network 3.
[Modification 4]
(88) In the second embodiment, the callback setting device 1 and the machine tool 2 are communicably connected via the network 3. However, there is no limitation thereto. For example, the callback setting device 1 and the machine tool 2 may be connected directly, and not via the network 3. In this case, the machine tool 2 does not include the designated condition receiving unit 23.
(89) [Modification 5]
(90) In the second embodiment, the designated condition receiving unit 23 may be separated from the machine tool 2. Furthermore, in the second embodiment, the designated condition receiving unit 23 may be included in the numerical control unit 24.
(91) In the respective embodiments above, a method of setting the content of the callback process performed by the controller 1, the callback setting device 1A, and the control system 10 is realized by software.
(92) When the method is realized by software, programs that form the software are installed in a computer (the controller 1 and the callback setting device 1A).
(93) These programs may be recorded on a removable medium and be distributed to users and may be distributed by being downloaded to the computers of users via a network.
EXPLANATION OF REFERENCE NUMERALS
(94) 1: Controller 1A: Callback setting device 2: Machine tool 3: Network 10: Control system 11: Receiving unit 23: Designated condition receiving unit 24: Numerical control unit 121: Designated condition reading unit 122: Designated condition analyzing unit 123: Designated condition registering unit 131: Operation receiving unit 132: Designated condition execution unit