The present disclosure relates to a technique for managing use of software downloaded to a controller.
In various production sites, FA (Factory Automation) systems for automating production processes have been pervasive. Each of such FA systems includes various industrial drive devices. Examples of the industrial drive devices include: a movable table for moving a workpiece; a conveyor for conveying a workpiece; an arm robot for moving a workpiece to a predetermined target location; and the like. These drive devices are controlled by industrial controllers such as PLCs (Programmable Logic Controllers) and robot controllers.
In recent years, controllers to which software can be installed from external devices have been pervasive. Such controllers are disclosed in WO 2015/136965 (Patent Literature 1), WO 2015/136972 (Patent Literature 2), WO 2015/136966 (Patent Literature 3), and WO 2015/136964 (Patent Literature 4).
PTL 1: WO 2015/136965
PTL 2: WO 2015/136972
PTL 3: WO 2015/136966
PTL 4: WO 2015/136964
In recent years, since various types of software have been developed, management of software licenses has become complicated. If a license is not managed appropriately, purchased software may be copied in an unauthorized manner, which may lead to unauthorized use of the software in a different controller not having the license. Therefore, a mechanism for preventing such unauthorized use is desired.
The present disclosure has been made to solve the above-described problem, and an object thereof in a certain aspect is to provide a mechanism by which unauthorized use of software downloaded to a controller can be prevented.
In one example of the present disclosure, a controller for controlling a control target includes: an obtaining unit that obtains, from an external device, software to be used by the controller; and a processor that executes the software. The software includes: a generation module that generates an execution right for the software from first unique information for uniquely identifying the controller or the external device; and a check module that generates second unique information from the execution right at a predetermined timing after the generation of the execution right, and that prohibits use of the software when the second unique information does not coincide with the first unique information.
According to the present disclosure, use of the obtained software is prohibited based on the license information, whereby unauthorized use of the software is prevented.
In one example of the present disclosure, the external device includes a communication device that communicates with the controller. The obtaining unit downloads the software from the communication device communicatively connected to the controller.
According to the present disclosure, unauthorized use of the software downloaded from the communication device is prevented.
In one example of the present disclosure, the external device includes a memory card that is electrically connectable to the controller. The obtaining unit obtains the software from the memory card electrically connected to the controller.
According to the present disclosure, unauthorized use of the software obtained from the memory card is prevented.
In one example of the present disclosure, the processor deletes the execution right when transferring the obtained software from the controller to the external device.
According to the present disclosure, a plurality of pieces of the license information of the software do not exist, whereby unauthorized use of the software is prevented more securely.
In one example of the present disclosure, the processor deletes the generation module and the check module when transferring the obtained software from the controller to the external device.
According to the present disclosure, since the generation module and the check module are deleted, a resource of the controller can be effectively used.
In one example of the present disclosure, the software obtainable from the external device includes at least one of a program to be operated on firmware of the controller, a program to be added to the firmware, and data usable by the controller.
According to the present disclosure, unauthorized use of the program to be operated on the firmware and the program to be added to the firmware is prevented.
In another example of the present disclosure, a method for managing a license of software used by a controller for controlling a control target includes: obtaining, from an external device, software to be used by the controller, and first license information for the software; and executing the software. The executing includes: generating an execution right for the software from first unique information for uniquely identifying the controller or the external device; and generating second unique information from the execution right at a predetermined timing after the generation of the execution right, and prohibiting use of the software when the second unique information does not coincide with the first unique information.
According to the present disclosure, use of the obtained software is prohibited based on the license information, whereby unauthorized use of the software is prevented.
In another example of the present disclosure, a program for managing a license of software used by a controller for controlling a control target causes the controller to perform: obtaining, from an external device, software to be used by the controller for controlling the control target; and executing the software. The executing includes: generating an execution right for the software from first unique information for uniquely identifying the controller or the external device; and generating second unique information from the execution right at a predetermined timing after the generation of the execution right, and prohibiting use of the software when the second unique information does not coincide with the first unique information.
According to the present disclosure, use of the obtained software is prohibited based on the license information, whereby unauthorized use of the software is prevented.
In a certain aspect, unauthorized use of software downloaded to a controller can be prevented.
The following describes embodiments according to the present invention with reference to figures. In the description below, the same reference characters are given to the same parts and components. Their names and functions are also the same. Hence, they are not described in detail repeatedly.
<A. Implementation>
An implementation of the present invention will be described with reference to
FA system 10 is a system for controlling a control target such as a facility or a device to automate a production process. FA system 10 includes one or more controllers 100, one or more external devices 200, and one or more drive devices 300.
Controller 100 includes an obtaining unit 101, a processor 102, and a storage device 110 as hardware configurations. Storage device 110 stores package software 141 downloaded from external device 200, and unique information 143A of controller 100.
External device 200 provides various types of software executable by controller 100. Examples of such an external device 200 include a below-described development assistance device 200A (see
Obtaining unit 101 is appropriate hardware having a function of obtaining software from external device 200. As an example, obtaining unit 101 includes: a communication interface for communicating with external device 200; a memory card interface to which a memory card such as an SD card is connectable; or the like.
In the example of
Processor 102 executes various types of programs of controller 100 to control a drive device 300 serving as a control target. As an example, the programs executed by processor 102 include various types of programs, such as downloaded package software 141.
Downloaded package software 141 includes a generation module 154, a check module 156, and other function modules. Each of the other function modules is a function module usable by the user. Generation module 154 and check module 156 are accompanied with the function module.
Generation module 154 generates execution right 139 for package software 141 from unique information 143A (first unique information) for uniquely identifying controller 100. Execution right 139 corresponds to an authority to execute package software 141. That is, controller 100 holding execution right 139 can execute package software 141. Unique information 143A includes: format, production information (such as manufacturing number), and name of controller 100 or processor 102; and other information for uniquely identifying controller 100, for example.
Any method is employed to generate execution right 139. As an example, generation module 154 generates execution right 139 by encrypting unique information 143A in accordance with a predetermined encryption method. In this case, generation module 154 generates execution right 139 using a predetermined encryption key. Alternatively, generation module 154 may generate, as execution right 139, a result obtained by substituting unique information 143A for a predetermined, reversibly computable formula. Generated execution right 139 is stored into storage device 110.
Check module 156 generates unique information (second unique information) from execution right 139 at a predetermined timing after the generation of execution right 139, such as a time at which controller 100 is activated or a time at which package software 141 is executed. In the description below, for the ease of description, the unique information held in advance in controller 100 will be referred to as “unique information 143A”, and the unique information generated from execution right 139 after the generation of execution right 139 will be referred to as “unique information 143B”. Check module 156 prohibits use of package software 141 when unique information 143B does not coincide with original unique information 143A.
More specifically, check module 156 includes a decryption module 156A and a comparison module 156B. Decryption module 156A decrypts execution right 139 in accordance with a predetermined decryption method using a predetermined decryption key, thereby generating unique information 143B.
Comparison module 156B compares unique information 143B generated at the time at which controller 100 is activated or the time at which package software 141 is used, with original unique information 143A. When unique information 143B coincides with unique information 143A, comparison module 156B permits use of downloaded package software 141. On the other hand, when unique information 143B does not coincide with unique information 143A, comparison module 156B prohibits use of downloaded package software 141.
The expression “coincide” herein can include not only a case where the whole of unique information 143B coincides with the whole of unique information 143A, but also a case where a predetermined portion of unique information 143B coincides with a predetermined portion of unique information 143A. The expression “not coincide” indicates a case where the condition for “coincide” is not satisfied.
As described above, permission/prohibition of use of package software 141 is switched based on a result of the comparison between original unique information 143A and unique information 143B generated at the time at which package software 141 is executed or the like. Accordingly, for example, use of package software 141 can be prevented when package software 141 is transferred in an unauthorized manner to a controller different from the one to which package software 141 is downloaded. Moreover, since the mechanism for checking a license is included in package software 141, controller 100 does not need to have a license check function in advance.
<B. Device Configuration of FA System 10>
With reference to
FA system 10 includes one or more controllers 100 and one or more external devices 200. In the example of
In the description below, controllers 100A, 100B will be also collectively referred to as controller 100. Controller 100 has a plurality of physical communication ports. Different networks can be connected to the respective communication ports. In the example of
For network NW1, EtherNet/IP (registered trademark), EtherNet (registered trademark), or the like is employed, for example. As an example, various types of communication devices each having a function of communicating with controller 100 can be connected to network NW1, such as development assistance device 200A and server 200B.
Development assistance device 200A is a PC (Personal Computer), a tablet terminal, a smartphone, or the like, for example. A program development tool can be installed in development assistance device 200A. The program development tool is an application for assisting development of a control program for controller 100. As an example, the program development tool is “Sysmac Studio” provided by OMRON. The user can design a control program for controller 100 on the program development tool, and can install the designed control program to controller 100. The created control program is sent to controller 100 as a file of a code in an executable form compiled by development assistance device 200A.
Server 200B is a device that provides various types of package software 141 executable by controller 100. Examples of package software 141 to be provided include: a function of connecting to an external database; various types of functions for NC (Numerical Control) control; various types of functions for robotic control; various types of functions for AI (Artificial Intelligence); various types of data usable by controller 100 (for example, various types of data obtained through a learning process of AI); various types of functions of controlling specific drive devices 300 (for example, an oscillation control function); and the like. It should be noted that package software 141 is not limited to be provided from server 200B, and is provided from any external device 200. As an example, package software 141 may be provided from memory card 200C.
For network NW2, it is preferable to employ a field network that performs constant-cycle communication to ensure a time of arrival of data. As the field network that performs such constant-cycle communication, EtherCAT (registered trademark), CompoNet (registered trademark), or the like has been known. In accordance with the control program created on development assistance device 200A, controller 100 controls drive device 300 serving as a control target.
Drive device 300 represents a group of devices for performing predetermined operations onto a workpiece directly or indirectly. In the example of
<C. Manner of Sales of Package Software 141>
With reference to
The example of
In a step (1), a user of development assistance device 200A accesses a web site or the like of server 200B to select a piece of package software for download from pieces of package software for sale. The pieces of package software for sale include: a program to be operated on firmware of controller 100; a firmware program to be added to the firmware; and the like. The package software to be operated on the firmware is operated depending on a basic function provided from the firmware.
The user of development assistance device 200A selects package software 141 for purchase and then performs a purchasing procedure. When the purchasing procedure is completed, server 200B installs purchased package software 141 into development assistance device 200A. On this occasion, in a step (2), server 200B transmits, to development assistance device 200A, a license right 142 for permitting use of package software 141.
In a step (3), development assistance device 200A installs, into controller 100, package software 141 and license right 142 that are installed from server 200B.
It is assumed that in a step (4), development assistance device 200A receives a validation manipulation for validating the license right for package software 141. Based on this, development assistance device 200A transmits a validation command to controller 100. Based on reception of the validation command, controller 100 generates execution right 139 from unique information 143A of controller 100.
In a step (5), based on the validation process for package software 141 being completed normally, development assistance device 200A transmits, to server 200B, an indication that a right of use of package software 141 is exercised. On this occasion, information about the user who exercises the right of use is transmitted to server 200B, and is registered into server 200B.
<D. Data Flow>
With reference to
It is assumed that in a step S10, the user of development assistance device 200A accesses the web site of server 200B and performs a manipulation to sell package software 141. On this time, the user inputs various types of information (hereinafter, also referred to as “purchasing information”) in order to purchase package software 141. The purchasing information includes: information for specifying package software 141 for purchase; various types of information about the purchaser (for example, the name, address, and the like); and various types of information about controller 100 to which package software 141 is to be downloaded. The purchasing information thus input is transmitted to server 200B.
In a step S14, server 200B issues license right 142 for package software 141 based on the purchasing information received from development assistance device 200A. Issued license right 142 is transmitted to development assistance device 200A together with purchased package software 141.
It is assumed that in a step S20, development assistance device 200A receives a manipulation for downloading package software 141 downloaded from server 200B. Based on this, development assistance device 200A transmits package software 141 and license right 142 to designated controller 100.
In a step S26, controller 100 performs a deploy process to deploy package software 141 to internal storage device 110 (see
Software management table 155 is a database for managing pieces of package software downloaded to controller 100. Software management table 155 includes: a list table 160 for pieces of package software; and pieces of detailed information 161 to 163 of the pieces of package software.
List table 160 for the pieces of package software includes: a column 160A that defines an abbreviation of each piece of package software; a column 160B that defines a version of the package software; a column 160C that defines a classification of the package software; a column 160D that defines an add-on type of the package software; a column 160E that defines a manner of provision of the package software; a column 160F that defines a full name of the package software; and a column 160F that defines a provider of the package software.
Each record of list table 160 for the pieces of package software is associated with the detailed information of the package software. As an example, the detailed information of each piece of package software 141 is associated using the information of column 160A of list table 160 as a key. In the example of
Detailed information 161 includes: a column 161A that defines the abbreviation of the package software; a column 161B that indicates a type of supported language; a column 161C that defines the full name of the package software; and a column 161D that defines the provider of the package software.
Detailed information 162 includes: a column 162A that defines the abbreviation of the package software; a column 162B that indicates the type of supported language; a column 162C that defines the full name of the package software; and a column 162D that defines the provider of the package software.
In detailed information 163, various types of methods (processes) included in the package software are defined. Detailed information 163 includes: a column 163A that indicates a name of a method; a column 163B indicating an invoke type of the package software; a column 163C that defines a deploy method of the package software; and a column 163D that defines a rollback method of the package software.
With reference to
In a step S30, controller 100 determines whether or not a predetermined timing has come. Examples of the predetermined timing include: a time at which controller 100 is activated; a time at which package software 141 is executed; and any predetermined timing after the generation of execution right 139. When it is determined that the predetermined timing has come (YES in step S30), controller 100 switches the control to a step S32. Otherwise (NO in step S30), controller 100 performs the process of step S30 again.
In step S32, controller 100 serves as check module 156 (see
In a step S40, controller 100 serves as check module 156 (see
In step S42, controller 100 permits use of downloaded package software 141. Any means can be employed to permit use of package software 141. As an example, a flag indicating prohibition/permission of use is managed by controller 100, and controller 100 rewrites the flag to indicate permission.
In step S44, controller 100 prohibits use of downloaded package software 141. Any means can be employed to prohibit use of package software 141. As an example, a flag indicating prohibition/permission of use is managed by controller 100, and controller 100 rewrites the flag to indicate prohibition.
<E. Hardware Configuration>
With reference to
(E1. Hardware Configuration of Controller 100)
First, the hardware configuration of controller 100 will be described with reference to
Controller 100 includes: a communication interface 101A; a memory card interface 101B; processor 102, such as a CPU (Central Processing Unit) or a MPU (Micro-Processing Unit); a chip set 104; a main memory 106; nonvolatile storage device 110; an internal bus controller 122; and a field bus controller 124.
Processor 102 reads out control program 130 stored in storage device 110, expands it in main memory 106, and executes it, thereby implementing appropriate control over a drive device 300 or the like to be controlled. Control program 130 includes various types of programs for controlling controller 100. As an example, control program 130 includes a system program 140 as firmware, package software 141, a user program 145, and the like. System program 140 includes an instruction code for providing a basic function of controller 100 such as a data input/output process or execution timing control. User program 145 is downloaded from external device 200. User program 145 is appropriately designed for a control target on external device 200, and includes: a sequence program 145A for performing sequence control; and a motion program 145B for performing motion control.
Chip set 104 implements a process as a whole of controller 100 by controlling each component.
Storage device 110 stores various types of data in addition to control program 130. As an example, storage device 110 stores: license right 142 for package software 141; unique information 143A for uniquely identifying controller 100; software management table 155 (see
Internal bus controller 122 is an interface for exchanging data with various types of devices coupled to controller 100 through an internal bus. As an example of such devices, an I/O unit 126 is connected thereto.
Field bus controller 124 is an interface for exchanging data between controller 100 and various types of drive devices 300 coupled thereto through afield bus. As examples of such devices, robot controller 300A and servo driver 300B are connected thereto. In addition, a drive device such as a visual sensor may be connected thereto.
Each of internal bus controller 122 and field bus controller 124 can provide an appropriate command to a device connected thereto, and can obtain appropriate data managed by the device. Moreover, internal bus controller 122 and/or field bus controller 124 function also as interface(s) for exchanging data with robot controller 300A or servo driver 300B.
Communication interface 101A represents an example of obtaining unit 101 (see
Memory card interface 101B represents an example of obtaining unit 101 (see
(E2. Hardware Configuration of External Device 200)
Next, the hardware configuration of external device 200 will be described with reference to
As an example, external device 200 includes a computer configured in accordance with a general-purpose computer architecture. External device 200 is development assistance device 200A or server 200B described above, for example. External device 200 includes: a control device 202 such as a CPU or an MPU; a main memory 204; a nonvolatile storage device 208; a communication interface 211; an I/O (Input/Output) interface 214; and a display interface 220. These components are communicatively connected to one another through an internal bus 225.
Control device 202 expands, into main memory 204, a development assistance program 208A stored in storage device 208, and executes it, thereby implementing various types of processes in the program development tool. Development assistance program 208A is a program for providing a development environment for user program 145. In addition to development assistance program 208A, storage device 208 stores various types of data, such as package software 141 for distribution.
Communication interface 211 exchanges data with another communication device through a network. Examples of the other communication device include controller 100, and an external device such as a server. External device 200 may be configured such that various types of programs, such as development assistance program 208A, can be downloaded from the other communication device through communication interface 211.
I/O interface 214 is connected to a manipulation unit 215, and accepts, from manipulation unit 215, a signal indicating a user's manipulation. Typically, manipulation unit 215 includes a keyboard, a mouse, a touch panel, a touchpad, or the like, and receives a manipulation from a user.
Display interface 220 is connected to a display unit 221, and sends, to display unit 221, an image signal for displaying an image in accordance with a command from control device 202 or the like. Display unit 221 includes an LCD (Liquid Crystal Display), an organic EL (Electro Luminescence) display, or the like, and presents various types of information to a user. Various types of screens provided by the program development tool can be displayed on display unit 221. It should be noted that in the example of
<F. Control Structure>
The following describes a control structure of controller 100 with reference to
The processes shown in
The following sequentially describes the flowcharts shown in
(F1. Download Process for Package Software 141)
First, with reference to
In a step S110, processor 102 determines whether or not a download instruction for package software 141 is received from development assistance device 200A. The download instruction is issued when the user performs a download manipulation onto development assistance device 200A, for example. When it is determined that the download instruction for package software 141 is received from development assistance device 200A (YES in step S110), processor 102 switches the control to a step S120. Otherwise (NO in step S110), the download process shown in
In step S120, processor 102 determines whether or not package software 141 for download is compatible with controller 100 to which package software 141 is to be downloaded. More specifically, processor 102 receives, from external device 200, software information about package software 141 for download. The software information includes format information of a controller 100 compatible therewith, for example. Controller 100 compares the format information defined in the package information with the format information of controller 100, and determines whether or not these pieces of format information coincide with each other. When these pieces of format information coincide with each other, processor 102 determines that package software 141 for download is compatible with controller 100.
When it is determined that package software 141 for download is compatible with controller 100 (YES in step S120), processor 102 switches the control to a step S122. Otherwise (NO in step S120), processor 102 switches the control to a step S126.
In step S122, processor 102 receives package software 141 and license right 142 for package software 141 from development assistance device 200A.
In a step S124, processor 102 saves received package software 141 and license right 142 into storage device 110 of controller 100.
In step S26, processor 102 outputs an error indicating that package software 141 for download is not compatible with controller 100. The error may be output in any manner. As an example, the error may be output as an error log, or may be output by way of an error sound, a message, or the like.
(F2. Validation Process)
Next, with reference to
In a step S180, processor 102 of controller 100 determines whether or not there is license right 142 for package software 141. Typically, processor 102 determines whether or not there is license right 142, based on whether or not license right 142 is stored in storage device 110 of controller 100. When it is determined that there is license right 142 for package software 141 (YES in step S180), processor 102 switches the control to a step S182. Otherwise (NO in step S180), processor 102 switches the control to a step S184.
In step S182, processor 102 serves as generation module 154 (see
In step S184, processor 102 outputs an error indicating that there is no license right for package software 141. The error may be output in any manner. As an example, the error may be output as an error log, or may be output by way of an error sound, a message, or the like.
(F3. Check Process for Execution Right)
Next, with reference to
More specifically, in a step S210, processor 102 determines whether or not there is execution right 139 for package software 141. When it is determined that there is execution right 139 for package software 141 (YES in step S210), processor 102 switches the control to a step S212. Otherwise (NO in step S210), processor 102 switches the control to a step S224.
In step S212, processor 102 serves as decryption module 156A (see
In a step S220, processor 102 serves as comparison module 156B (see
In step S222, processor 102 permits use of package software 141. As an example, a flag indicating prohibition/permission of use is managed in storage device 110 of controller 100, and processor 102 rewrites the flag to indicate permission.
In step S224, processor 102 prohibits use of package software 141. As an example, a flag indicating prohibition/permission of use is managed in storage device 110 of controller 100, and processor 102 rewrites the flag to indicate prohibition.
(F4. Execution Process for Package Software 141)
Next, with reference to
In a step S310, processor 102 determines whether or not an execution instruction for package software 141 is received. When it is determined that the execution instruction for package software 141 is received (YES in step S310), processor 102 switches the control to a step S320. Otherwise (NO in step S310), processor 102 performs the process of step S310 again.
In step S320, processor 102 determines whether or not use of package software 141 for execution is permitted. As an example, when a flag indicating prohibition/permission of use of package software 141 indicates permission, processor 102 determines that use of package software 141 is permitted. When it is determined that use of package software 141 for execution is permitted (YES in step S320), processor 102 switches the control to a step S322. Otherwise (NO in step S320), processor 102 switches the control to a step S324.
In step S322, processor 102 executes package software 141.
In step S324, processor 102 does not execute package software 141 and outputs an error indicating that execution of package software 141 is prohibited. The error may be output in any manner. As an example, the error may be output as an error log, or may be output by way of an error sound, a message, or the like.
<G. Modification 1>
(G1. Other Manner of Sales of Package Software 141)
In the description above, it is assumed that package software 141 is sold by way of downloading; however, the manner of sales of package software 141 is not limited to this. As an example, package software 141 stored in memory card 200 may be sold.
The following describes another exemplary manner of sales of package software 141 with reference to
In the example of
As a more specific manner of sales, in a step (1), memory card 200C having package software 141 for sale stored therein is manufactured by company “B”.
In a step (2), company “B” makes registration of package software 141 to company “A”. On this occasion, package information about package software 141 for sale is transmitted to server 200B of company “A”. Based on the received package information, server 200B performs a registration process for package software 141.
In a step (3), a purchaser of company “C” accesses a web site or the like of company “B”, selects package software 141 for purchase, and performs a purchasing procedure. When the purchasing procedure is completed, company “B” prepares memory card 200C having purchased package software 141 stored therein. On this occasion, license right 142 for package software 141 is issued and is saved in memory card 200C. Company “B” sends, to company “C”, memory card 200C having package software 141 and license right 142 stored therein.
In a step (4), the purchaser connects purchased memory card 200C to controller 100, and installs package software 141 and license right 142 thereto from memory card 200C.
(G2. Download Process for Package Software 141)
With reference to
The process shown in
In a step S150, processor 102 determines whether or not memory card 200C is connected to controller 100. When it is determined that memory card 200C is connected to controller 100 (YES in step S150), processor 102 switches the control to step S160. Otherwise (NO in step S150), processor 102 ends the download process shown in
In a step S160, processor 102 determines whether or not a download instruction for package software 141 is received from development assistance device 200A. The download instruction is issued when the user performs a download manipulation onto development assistance device 200A, for example. When it is determined that the download instruction for package software 141 is received from development assistance device 200A (YES in step S160), processor 102 switches the control to a step S170. Otherwise (NO in step S160), the download process shown in
In step S170, processor 102 determines whether or not package software 141 for download is compatible with controller 100 to which package software 141 is to be downloaded. More specifically, processor 102 obtains, from memory card 200C, software information about package software 141 for download. The software information includes format information of a controller 100 compatible therewith, for example. Controller 100 compares the format information defined in the package information with the format information of controller 100, and determines whether or not these pieces of format information coincide with each other. When these pieces of format information coincide with each other, processor 102 determines that package software 141 for download is compatible with controller 100 to which package software 141 is to be downloaded.
When it is determined that package software 141 for download is compatible with controller 100 (YES in step S170), processor 102 switches the control to a step S172. Otherwise (NO in step S170), processor 102 switches the control to a step S176.
In step S172, processor 102 obtains package software 141 and license right 142 for package software 141 from memory card 200C.
In step S174, processor 102 saves obtained package software 141 and license right 142 into storage device 110 of controller 100.
In step S176, processor 102 outputs an error indicating that package software 141 for download is not compatible with controller 100. The error may be output in any manner. As an example, the error may be output as an error log, or may be output by way of an error sound, a message, or the like.
<H. Deploy Process for Package Software 141>
With reference to
Processor 102 of controller 100 includes a package management module 150 for managing the downloaded package software. In memory card 200C, package software 141 for download is indicated as package software “X”.
In a step (1), a certain invoker outputs a deploy command for package software “X” to package management module 150. Examples of the invoker include: an updater of the firmware; external device 200 (for example, development assistance device 200A); a process in controller 100; a library in controller 100; and the like.
In a step (2), package management module 150 executes a deploy method of package software “X” on memory card 200C. The deploy method is defined in “Package_X.db” in advance, and package management module 150 searches for this method from “Package_X.db” and executes it.
In steps (3) and (4), deploy method 141A starts a check as to whether or not format information of processor 102 of controller 100 is compatible with package software “X”.
More specifically, deploy method 141A makes reference to unique information 143A of processor 102 to obtain the format information of processor 102. Deploy method 141A compares the format information of processor 102 with the compatible format information of package software “X”, so as to check whether or not package software “X” can be deployed in controller 100. When the obtained format of processor 102 coincides with the compatible format of package software “X”, deploy method 141A determines that package software “X” can be deployed in controller 100. Otherwise, the deploy method determines that package software “X” cannot be deployed in controller 100.
In steps (5) and (6), deploy method 141A checks a dependency relation between package software 141 for download and a package software (hereinafter, also referred to as “existing package software”) already downloaded in controller 100.
More specifically, deploy method 141A makes reference to list table 160 for pieces of package software to obtain a list of pieces of existing package software. Then, deploy method 141A checks a dependency relation between package software 141 for download and each piece of existing package software. When package software 141 for download is in such a relation that package software 141 cannot coexist with the existing package software, it is determined that package software “X” cannot be deployed in controller 100.
In a step (7), deploy method 141A deploys various types of files (for example, an so file) in processor 102.
In a step (8), deploy method 141A deploys the DB file “Package_X.db” in processor 102. In the DB file “Package_X.db”, information of deploy method 141A is described. Examples of the DB file are the above-described pieces of detailed information 161 to 163.
In a step (9), based on the deployment of the various types of files being completed, deploy method 141A resisters package software “X” to package management module 150.
In a step (10), package management module 150 adds, to list table 160 for pieces of package software, the information of the newly deployed package software “X”.
In a step (11), package management module 150 saves, in a change history 165, a record of package change/addition.
It should be noted that in
<I. Transfer Process for Package Software 141>
Package software 141 downloaded to controller 100 can be transferred to external device 200. On this occasion, license right 142 including execution right 139 for package software 141, and the various types of function modules for checking the license are deleted from controller 100. Accordingly, a plurality of execution rights 139 and license rights 142 never exist, whereby license right 142 can be managed uniquely.
The following describes the transfer process for package software 141 with reference to
It should be noted that in
<J. Modification 2>
The above description is directed to the example in which package software 141 is sold by way of downloading, and the example in which package software 141 stored in memory card 200C is sold; however, the manner of sales of package software 141 is not limited to these. As an example, package software 141 may be sold by way of BTO.
The following describes still another exemplary manner of sales of package software 141 with reference to
In the example of
As a more specific manner of sales, in a step (1), a designer of company “B” uses development assistance device 200A to design package software 141 for sale.
In a step (2), company “B”, which sells package software 141, registers package software 141 for sale to company “A”. On this occasion, package information about package software 141 for sale is transmitted to server 200B of company “A”. Based on the received package information, server 200B performs a registration process for package software 141.
In a step (3), a purchaser of company “C” accesses a web site or the like of company “B”, selects package software 141 for download, and performs a purchasing procedure. On this occasion, unique information of controller 100 to which package software 141 is to be downloaded is input. When the purchasing procedure is completed, license right 142 is generated from the unique information for uniquely identifying controller 100 to which package software 141 is to be downloaded, and is transmitted to company “C” together with purchased package software 141.
In a step (4), purchased package software 141 and license right 142 are installed in controller 100.
In a step (5), company “C” sells, to other companies, controller 100 having package software 141 and license right 142 installed therein.
<K. Conclusion>
As described above, controller 100 generates execution right 139 for package software 141 from unique information 143A of controller 100 at a time at which package software 141 is downloaded or the like. Then, controller 100 generates unique information 143B from execution right 139 at the time at which package software 141 is executed, the time at which controller 100 is activated, or the like. When generated unique information 143B does not coincide with original unique information 143A, controller 100 prohibits use of package software 141.
Accordingly, package software 141 can be used when package software 141 is transferred in an unauthorized manner to a controller different from one to which package software 141 is downloaded, for example. Moreover, since the mechanism for checking a license is included in package software 141, controller 100 does not need to have a license check function in advance.
<L. Additional Description>
As described above, the present embodiment includes the following disclosure.
[Configuration 1]
A controller for controlling a control target, the controller (100) comprising:
an obtaining unit (101) that obtains, from an external device (200), software (141) to be used by the controller (100); and
a processor (102) that executes the software (141), wherein
the software (141) includes
[Configuration 2]
The controller according to configuration 1, wherein
the external device (200) includes a communication device that communicates with the controller (100), and
the obtaining unit (101) downloads the software (141) from the communication device communicatively connected to the controller (100).
[Configuration 3]
The controller according to configuration 1 or 2, wherein
the external device (200) includes a memory card that is electrically connectable to the controller (100), and
the obtaining unit (101) obtains the software (141) from the memory card electrically connected to the controller (100).
[Configuration 4]
The controller according to any one of configurations 1 to 3, wherein the processor (102) deletes the execution right (139) when transferring the obtained software (141) from the controller (100) to the external device (200).
[Configuration 5]
The controller according to any one of configurations 1 to 4, wherein the processor (102) deletes the generation module (154) and the check module (156) when transferring the obtained software (141) from the controller (100) to the external device (200).
[Configuration 6]
The controller according to any one of configurations 1 to 5, wherein the software (141) obtainable from the external device (200) includes at least one of a program to be operated on firmware of the controller (100), a program to be added to the firmware, and data usable by the controller (100).
[Configuration 7]
A method for managing a license of software (141) used by a controller (100) for controlling a control target, the method comprising:
obtaining, from an external device (200), software (141) to be used by the controller (100), and first license information for the software (141); and
executing the software (141), wherein
the executing includes
[Configuration 8]
A program for managing a license of software (141) used by a controller (100) for controlling a control target,
the program causing the controller (100) to perform:
obtaining, from an external device (200), software (141) to be used by the controller (100) for controlling the control target; and
the executing includes
The embodiments disclosed herein are illustrative and non-restrictive in any respect. The scope of the present invention is defined by the terms of the claims, rather than the embodiments described above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.
10: FA system; 100, 100A, 100B: controller; 101: obtaining unit; 101A, 211: communication interface; 101B: memory card interface; 102: processor; 104: chip set; 106, 204: main memory; 110, 208: storage device; 122: internal bus controller; 124: field bus controller; 126: I/O unit; 130: control program; 139: execution right; 140: system program; 141: package software; 141A: deploy method; 142: license right; 143A, 143B, 243A: unique information; 145: user program; 145A: sequence program; 145B: motion program; 150: package management module; 154: generation module; 155: software management table; 156: check module; 156A: decryption module; 156B: comparison module; 160: list table; 160A, 160B, 160C, 160D, 160E, 160F, 161A, 161B, 161C, 161D, 162A, 162B, 162C, 162D, 163A, 163B, 163C, 163D: column; 161, 162, 163: detailed information; 165: change history; 200: external device; 200A: development assistance device; 200B: server, 200C: memory card; 202: control device; 208A: development assistance program; 214: interface; 215: manipulation unit; 220: display interface; 221: display unit; 225: internal bus; 300: drive device; 300A: robot controller; 300B: servo driver; 301A: arm robot; 301B: servo motor.
Number | Date | Country | Kind |
---|---|---|---|
2018-045097 | Mar 2018 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2019/001250 | 1/17/2019 | WO | 00 |