The present invention relates to a parameter setting device that sets a parameter to a project of a CPU unit provided in a programmable controller (PLC) that controls an industrial machine and the like.
Conventionally, a programmable controller (PLC) has been used as a controller for an industrial machine and the like. The PLC includes a plurality of unit parts. Specifically, the PLC is configured by appropriately combining various unit parts such as a power source unit as a power supply source, a CPU unit that manages control of the entire PLC, a motion CPU unit that controls a servo motor via a servo amplifier attached to a drive unit of a production unit or facilities, an input unit that inputs signals of a switch and a sensor attached to appropriate locations of the production unit or facilities, an output unit that outputs a control output to an actuator, and a communication unit for connecting the PLC to a communication network.
Control in the CPU unit in the PLC is performed so as to take in a signal input by the input unit to an I/O memory of the CPU unit, to perform a logical operation based on a pre-registered user program, to write an operation execution result in the I/O memory and send it to the output unit, and thereafter to perform so-called peripheral processing, cyclically and repeatedly.
Further, control in the motion CPU unit is performed so as to repeat a predetermined operation such that a motion command is generated based on a user program incorporated in the unit in a pre-registered motion program language, a command result is sent to the servo amplifier to control the servo motor via the servo amplifier, and the state of the servo motor such as the speed and position thereof is sent back to the motion CPU unit. Hereinafter, the CPU unit and the motion CPU unit are occasionally referred to collectively as “CPU”. In addition, the unit part is occasionally referred simply as “unit”.
A project is allocated to the CPU mentioned above per unit by operating on a PLC configuration diagram displayed on a programming device (a parameter setting device) that performs setting of each unit in the PLC. The project means a setting file required for operations of the CPU, and the project is allocated to respective CPUs. The CPU operates with an intended operation of a user by setting various parameters to be used for each project. The user sets a parameter to each project according to a target system.
On the PLC configuration diagram, it is possible to create a multi-CPU environment to be operated while maintaining relevance between a plurality of CPUs. In the multi-CPU environment, it is required to set the same multi-CPU parameter between the CPUs having relevance. By setting the same multi-CPU parameter, it is guaranteed that each CPU unit operates normally.
The multi-CPU parameter described above is stored in each project, and downloaded in each CPU unit or motion CPU unit in the PLC via a communication line. When inconsistency occurs in the set CPU parameters, the user uses an operational application to check the parameter set to the individual project, finds a defective portion, and performs a correction operation. The corrected CPU parameter is downloaded again in each CPU unit or motion CPU unit in the PLC.
As a technique for reducing a load for parameter setting, there are disclosed a device that can collectively set parameters, which need to be commonly set to the CPU unit and an I/O unit, with respect to a plurality of units by one operation (Patent Literature 1), and a device that arranges a CPU on a network configuration and sets a parameter to an individual device (Patent Literature 2).
Patent Literature 1: Japanese Patent Application Laid-open No. 2008-186206
Patent Literature 2: Japanese Patent Application Laid-open No. 2005-327237
However, according to the technique disclosed in Patent Literature 1, setting with respect to a plurality of units in a single project is assumed, and parameters cannot be collectively set between a plurality of projects configuring a multi-CPU environment. Further, when a parameter, which is set to a project allocated to an individual CPU unit, is changed after having set the parameters to a plurality of units, changes of parameters with respect to other projects need to be reflected individually with respect to each project by using an individual operational application.
Further, according to the technique disclosed in Patent Literature 2, a mechanism for providing relevance between devices arranged in the same base unit on a network configuration diagram is not assumed, and when it is desired to set parameters to a plurality of devices at the same time, parameter setting needs to be performed separately by opening a setting screen for the individual device. When a multi-CPU parameter is to be set, a project that is not operated by the user needs to be handled. When the project is used by another user, parameter setting cannot be performed. Therefore, the use status of the project needs to be ascertained beforehand.
The present invention has been made in view of the above problems, and an object of the present invention is to provide a parameter setting device that can collectively set multi-CPU parameters included in a project of each CPU having a multi-CPU relationship.
To solve the problem and achieve an object, there is provided a parameter setting device that sets a parameter of a plurality of projects for respectively operating a plurality of CPUs provided in a programmable controller (PLC), the parameter being required for the CPUs to operate in conjunction with each other, with respect to each of the projects, the parameter setting device including: unit configuration information used for managing for each PLC unit information in which a CPU and a project allocated to the CPU are associated with each other; a unit-configuration analyzing unit that extracts a list of unit information on CPUs provided in a same PLC that includes a CPU specified by a user from the unit configuration information; and a parameter writing unit that acquires each project of CPU units, which are provided in a same PLC in which the CPU is included, based on the extracted list of unit information, when a parameter of a project of the specified CPU is set, and sets a setting content, which is same as a setting content regarding a project of the specified CPU, to each of the acquired projects. cl ADVANTAGEOUS EFFECTS OF INVENTION
According to the present invention, it is possible to provide a parameter setting device that can collectively set multi-CPU parameters included in a project of each CPU having a multi-CPU relationship.
Exemplary embodiments of a parameter setting device according to the present invention will be explained below in detail with reference to the accompanying drawings. The present invention is not limited to the embodiments.
In
The parameter setting device 10 has a function of allocating a project, which is a setting file of a CPU unit or a motion CPU unit in the PLC; a function of setting the same multi-CPU parameter to a plurality of CPU units or motion CPU units connected to the PLC; and a function of downloading the set parameter to the PLC 17 via the communication line 16.
The parameter setting device 10 executes a predetermined program to realize these functions. As the hardware configuration thereof, the parameter setting device 10 includes an input device 11 such as a keyboard or a pointing device, a display device 12, a central processing unit 13, a memory device 14, and a communication interface (I/F) device 15. Although not shown, the memory device 14 includes a nonvolatile memory device and a volatile memory device, and the nonvolatile memory device stores pieces of project information, unit configuration information and the like. The volatile memory device is appropriately used as a work memory at the time of execution by the central processing unit 13. The communication I/F device 15 communicates with the PLC 17 via the communication line 16.
The work display unit 12a includes a system-configuration-information display unit 12aa that displays system configuration information for creating the configuration of the PLC and a network configuration, and a parameter-setting-information display unit 12ab. The status display unit 12d includes an inconsistent-parameter display unit 12da that displays a list of inconsistent parameters, and an active-project display unit 12db that displays a result of usage status check of a project.
Integrated display is output and shown on the parameter-setting-information display unit 12ab regardless of the unit configuration and contents of target project data. There is a difference in the type of parameters set in a sequencer CPU unit and the motion CPU unit. However, the display screen of the parameter-setting-information display unit 12ab displays all parameters, which require same setting between projects having relevance, to prompt an input. Parameters supposed to be set among the input parameters are divided into each type of project in the parameter setting device 10 and set to the project allocated to each CPU (a CPU unit or a motion CPU unit).
Information of the PLC configuration diagram displayed on the system-configuration-information display unit 12aa is created as unit configuration information by the arithmetic unit 31, and stored in a unit-configuration-information storage unit 33a. The unit configuration information includes a plurality of unit configuration tables in which pieces of information relating to the unit configuration for each PLC are associated with each other. Each unit configuration table corresponds to each one PLC configuration diagram, and a PLC configuration name, which is the name of each PLC, is added thereto. Each configuration unit in the PLC configuration diagram respectively has unit information, and is associated with a unit name included in the unit information. The display processor 30 performs graphical processing based on the unit configuration table read from the unit-configuration-information storage unit 33a and displays on the system-configuration-information display unit 12aa. The unit configuration information and the components thereof are described later.
A list of the multi-CPU parameters displayed on the parameter-setting-information display unit 12ab is created as multi-CPU parameter information by the arithmetic unit 31, and stored in a parameter setting position in a project-information storage unit 33c. The display processor 30 extracts the multi-CPU parameter based on the multi-CPU parameter information read from the project-information storage unit 33c, and displays the multi-CPU parameter on the parameter-setting-information display unit 12ab. The multi-CPU parameter information is described later.
The unit parts information displayed on the unit-parts-information display unit 12c is stored beforehand in a unit-parts-information storage unit 33b. The display processor 30 reads the unit parts information from the unit-parts-information storage unit 33b, and displays the read unit parts information on the unit-parts-information display unit 12c. In the present embodiment of the present invention, the unit parts information is stored beforehand; in addition, the parameter setting device also has a function of adding and storing the unit parts information later.
Pieces of setting information of a plurality of groups can be displayed on the parameter setting unit 12abb by the operation of the parameter-setting-item selecting unit 12aba.
The unit configuration table 61 is created at a timing when the PLC configuration diagram 90 is newly added on the system-configuration-information display unit 12aa. The unit information 62 is created at a timing when a unit part selected from the unit-parts-information display unit 12c is shifted to a base unit A (91) on the PLC configuration diagram 90. At this point in time, a user inputs the unit name 61c and the attribute information 61d. The slot number 61b and the object ID 61e are pieces of information added by the arithmetic unit 31 at the time of creating the unit information, and these values are set in the unit configuration table 61 by the arithmetic unit 31. The project name 61f is set by the project allocating unit 31a.
The file configuration of a work space and a project have a hierarchical structure as shown in
With respect to the project file 81a, a parameter can set by the parameter setting device 10. A parameter can also be set from an operation application for the individual project file 81a. Therefore, the multi-CPU parameter can be overwritten from each operational application after setting of the multi-CPU parameter by the parameter setting device 10. When the multi-CPU parameter is changed by each application, because there may be inconsistency in the multi-CPU parameters between projects, the consistency checking unit 31f checks whether there is any inconsistency.
The PLC configuration diagram 90 indicates, as shown in
Next, functions and operations of the project allocating unit 31a, the unit-configuration analyzing unit 31b, the project acquiring unit 31c, the parameter reading unit 31d, the parameter writing unit 31e, the consistency checking unit 31f, and the project-usage-status checking unit 31g are explained.
The project allocating unit 31a has a function of allocating a project to a CPU.
As shown in
The unit-configuration analyzing unit 31b acquires a list of the unit information 62 of the CPUs having a multi-CPU relationship from the unit configuration table 61 which includes the unit part selected by the user therein.
The project acquiring unit 31c can acquire the project allocated to the selected unit part.
The parameter reading unit 31d reads parameters (multi-CPU parameters) to be collectively set from the project.
The parameter writing unit 31e can set a parameter with respect to the specified project.
In
The consistency checking unit 31f can maintain consistency by detecting inconsistency between parameters and performing resetting.
The project-usage-status checking unit 31g can check whether the project is being used.
As described above, according to the first embodiment of the present invention, the parameter setting device includes the unit configuration information 60 for managing, for each PLC, the unit information 62 in which a CPU is associated with a project allocated to the CPU the unit-configuration analyzing unit 31b that extracts a list of the unit information 62 of CPUs provided in the same PLC in which the CPU specified by the user from the unit configuration information 60 is included; and the parameter writing unit 31e that, when the multi-CPU parameter of the project of the specified CPU is set, acquires each project of CPU units provided in the same PLC in which the specified CPU is included, based on the extracted list of the unit information 62, and writes a setting content same as the setting content with respect to the project of the specified CPU in each of the acquired projects. Therefore, the multi-CPU parameters included in the projects of respective CPUs having the multi-CPU relationship can be collectively set. The parameter setting device 10 also includes the consistency checking unit 31f that checks consistency of respective parameters between the multi-CPU projects by comparing the multi-CPU parameters set to the projects of the CPUs provided in one PLC with each other. Therefore, even when the multi-CPU parameters are individually changed in the respective projects after the multi-CPU parameters are collectively set, inconsistency can be detected by extracting a changed content. That is, the time required for the multi-CPU parameter setting can be considerably reduced, and a problem due to a parameter setting error can be avoided by decreasing a time for creation and ensuring consistency. Further, the project-usage-status checking unit is further provided that checks whether each of the acquired projects is being used when the parameter writing unit 31e is to set the setting content with respect to each of the projects, thereby enabling to save the effort of ascertaining the usage status of a project beforehand.
As described above, the parameter setting device according to the present invention is preferable for a parameter setting device that sets a parameter to a project of a CPU unit provided in a PLC that controls an industrial machine and the like.
10 PARAMETER SETTING DEVICE
11 INPUT DEVICE
12 DISPLAY DEVICE
12
a WORK DISPLAY UNIT
12
aa SYSTEM-CONFIGURATION-INFORMATION DISPLAY UNIT
12
ab PARAMETER-SETTING-INFORMATION DISPLAY UNIT
12
aba PARAMETER-SETTING-ITEM SELECTING UNIT
12
abb PARAMETER SETTING UNIT
12
abba PLC-SYSTEM SETTING UNIT
12
abbb DEVICE SETTING UNIT
12
abbc I/O ALLOCATION SETTING UNIT
12
abbd MULTI-CPU SETTING UNIT
12
b USER-PROGRAM LIST-INFORMATION DISPLAY UNIT
12
c UNIT-PARTS-INFORMATION DISPLAY UNIT
12
d STATUS DISPLAY UNIT
12
da INCONSISTENT-PARAMETER DISPLAY UNIT
12
db ACTIVE-PROJECT DISPLAY UNIT
13 CENTRAL PROCESSING UNIT
14 MEMORY DEVICE
15 COMMUNICATION I/F DEVICE
16 COMMUNICATION LINE
17 PLC
30 DISPLAY PROCESSOR
31 ARITHMETIC UNIT
31
a PROJECT ALLOCATING UNIT
31
b UNIT-CONFIGURATION ANALYZING UNIT
31
c PROJECT ACQUIRING UNIT
31
d PARAMETER READING UNIT
31
e PARAMETER WRITING UNIT
31
f CONSISTENCY CHECKING UNIT
31
g PROJECT-USAGE-STATUS CHECKING UNIT
32 INPUT PROCESSOR
33 STORAGE UNIT
33
a UNIT-CONFIGURATION-INFORMATION STORAGE UNIT
33
b UNIT-PARTS-INFORMATION STORAGE UNIT
33
c PROJECT-INFORMATION STORAGE UNIT
34 COMMUNICATION PROCESSOR
50 BASE UNIT GROUP
50
a BASE UNIT A
50
b BASE UNIT B
50
aa ATTRIBUTE INFORMATION 1
50
ba ATTRIBUTE INFORMATION 2
51 CPU UNIT GROUP
51
a CPU UNIT A
51
b CPU UNIT B
51
aa ATTRIBUTE INFORMATION 3
51
ba ATTRIBUTE INFORMATION 4
52 MOTION CPU UNIT GROUP
52
a MOTION CPU UNIT A
52
b MOTION CPU UNIT B
52
aa ATTRIBUTE INFORMATION 5
52
ba ATTRIBUTE INFORMATION 6
53 INPUT UNIT GROUP
53
a INPUT UNIT A
53
b INPUT UNIT B
53
aa ATTRIBUTE INFORMATION 7
53
ba ATTRIBUTE INFORMATION 8
60 UNIT CONFIGURATION INFORMATION
61 UNTI CONFIGURATION TABLE
61
a PLC CONFIGURATION NAME
61
b SLOT NUMBER
61
c UNIT NAME
61
d ATTRIBUTE INFORMATION
61
e OBJECT ID
61
f PROJECT NAME
62 UNIT INFORMATION
70 MULTI-CPU PARAMETER INFORMATION
71 MULTI-CPU PARAMETER TABLE
71
a PARAMETER TYPE
71
b PARAMETER SETTING VALUE
80 WORK SPACE FOLDER
81 PROJECT FOLDER
81
a PROJECT FILE
81
b TEMPORARY FILE
90 PLC CONFIGURATION DIAGRAM
91 BASE UNIT A
92 POWER SOURCE UNIT A
93 CPU UNIT A
94 MOTION CPU UNIT A
95 MOTION CPU UNIT B
96 INPUT UNIT A
97 EMPTY
Number | Date | Country | Kind |
---|---|---|---|
2009-074445 | Mar 2009 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2009/070682 | 12/10/2009 | WO | 00 | 8/17/2011 |