WO2020075351A1 - コントロール装置 - Google Patents

コントロール装置 Download PDF

Info

Publication number
WO2020075351A1
WO2020075351A1 PCT/JP2019/025695 JP2019025695W WO2020075351A1 WO 2020075351 A1 WO2020075351 A1 WO 2020075351A1 JP 2019025695 W JP2019025695 W JP 2019025695W WO 2020075351 A1 WO2020075351 A1 WO 2020075351A1
Authority
WO
WIPO (PCT)
Prior art keywords
program
control
information
programs
control device
Prior art date
Application number
PCT/JP2019/025695
Other languages
English (en)
French (fr)
Inventor
光洋 今井
史之 田村
Original Assignee
株式会社日立産機システム
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社日立産機システム filed Critical 株式会社日立産機システム
Priority to US17/277,995 priority Critical patent/US20210373538A1/en
Priority to CN201980048530.4A priority patent/CN112470088B/zh
Priority to KR1020217000345A priority patent/KR102445194B1/ko
Priority to EP19872111.0A priority patent/EP3865959A4/en
Publication of WO2020075351A1 publication Critical patent/WO2020075351A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4155Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by programme execution, i.e. part programme or machine function execution, e.g. selection of a programme
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/4188Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by CIM planning or realisation
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13123C language
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13134Two or more languages mixed, RLD, SFC, FBD, IL, ST, relay ladder, function block, sequential function, instruction list, structured text mixed to form logic control program
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the present invention relates generally to control devices.
  • Patent Document 1 Japanese Patent Laid-Open No. 2004-3623257 discloses that in a distributed supervisory control system in which a supervisory personal computer in a plant supervisory control facility and a control programmable logic controller are connected by a network, An information management file of a general-purpose programmable logic controller for control is provided, the general-purpose programmable logic controller for control is provided with an information automatic sweeping tool of this general-purpose programmable logic controller for control, and information input to the general-purpose personal computer and the A distributed supervisory control system characterized in that process information of a programmable logic controller for general-purpose control is integratedly managed by general-purpose software. "(Claim 1).
  • Japanese Patent Laid-Open No. 2006-178818 discloses "Real-time OS, memory, execution means for executing ladder language program in synchronization with motion control cycle, and both the ladder language program and C language program.
  • a motion controller including a microprocessor that operates, if the C language program loaded according to the project setting file of the engineering tool is a task type project, the C language program is operated as a task of the real-time OS, and the C language program is a functional type. If it is a project, it is stored in the memory in a state that it can be called as a function from another task.
  • "Is disclosed see claim 1).
  • Patent Document 1 "However, in the conventional distributed monitoring control system 41, the operator stations 50a to 50n, the digital control devices 60a to 60n, the transmission lines 52a to 52n, the backbone transmission line 42, the transmission lines 61a to 61n, etc. are described.
  • Decentralized monitoring and control system This is a dedicated device for each manufacturer, which is expensive and incompatible with products from other manufacturers, resulting in poor expandability. Also, due to the recent improvement in performance of general-purpose devices such as personal computers, it is also dedicated in terms of capacity. General-purpose devices are not used, although some may outperform devices (see paragraph 0004).
  • the dedicated device for each distributed supervisory control system maker is a programmable logic controller. Behind such a device configuration, the programmable logic controller controls the I / O unit and so on, and Since it is connected to a device used for transportation or the like, if the control is delayed, the operation of the device in the factory may become unstable or an unexpected operation may occur. Therefore, the conventional programmable logic controller does not allow complicated processing. Similarly, the invention disclosed in Patent Document 1 does not cause complicated processing and does not affect the control of the programmable logic controller by providing the information management file of the control general-purpose programmable logic controller in the general-purpose monitoring personal computer. It is disclosed to do so.
  • Patent Document 1 does not consider performing information processing in the programmable logic controller.
  • Patent Document 2 aims at allowing a ladder language application program to call a C language application program as a function on the same microprocessor.
  • Patent Document 2 includes a motion controller and an engineering tool, and a ladder language task and a C language task coexist and operate in the motion controller, and the engineering tool downloads a C language program and a setting file to the motion controller. The invention of a system for doing so is described.
  • the ladder language task and the C language task coexist in the motion controller, and the task of the ladder language task and the task of the C language program operate on a real-time OS (Operating System).
  • OS Operating System
  • the C language program is a task type project, it operates as a task of the real-time OS, and if it is a function type project, it is stored in the memory of the motion controller in a state that it can be called as a function from another task.
  • another task for example, a ladder language task, inputs the project name of the functional project as an argument and executes the function block for calling the C language function.
  • the ladder language task calls the functional project in C language and numerically controls the machine tool etc. connected to the motion controller.
  • the C language task calls the API for task operation by inputting the project name of the task type project and the type of operation such as waking up or suspending the task as an argument. It is described that the task operation API treats a project name as a task name and calls a function provided by the real-time OS corresponding to the type of task operation to indirectly realize a task operation of another task type project. .
  • the C language program loaded as a task-type project can be used for applications that operate in synchronization with motion control, and for applications that require a long processing time, such as advanced numerical calculations.
  • the C language program disclosed in Patent Document 2 discloses a technical idea used for controlling a machine tool or the like connected to the motion controller.
  • Patent Document 2 does not consider using the C language program for a purpose other than controlling hardware such as a machine tool connected to the device.
  • Patent Documents 1 and 2 discloses or suggests a technique relating to such data and its modification.
  • the present invention has been made in view of the above points, and provides a technique capable of appropriately changing execution management data indicating a resource upper limit which is a resource that can be used by a program installed in a control device. With the goal.
  • a control device that controls the operation of one or more control target devices uses a plurality of types of calculation resources related to the control of the operation of the one or more control target devices. It comprises a plurality of computing resources including.
  • the plurality of computing resources includes an interface unit, a storage unit and a processor unit.
  • the interface unit includes one or more I / O ports connected to one or more control target devices and one or more network ports connected to a network.
  • the storage unit includes one or more memories.
  • the processor unit includes one or more processors.
  • a group of programs (one or more control programs and one or more programs other than one or more information programs) is one or more target programs (one or more programs of one or more control programs and one or more information programs).
  • At least one is downloaded from the program distribution device via the network and one or more network ports.
  • the program group changes the execution management data indicating the resource upper limit, which is the resource that can be used by the target program for a plurality of calculation resources.
  • Each of the one or more control programs is a program that performs a scan operation to output control information of the control target device connected to the I / O port.
  • each of the one or more information programs is a program that performs information processing different from the scan operation.
  • the execution management data indicating the resource upper limit which is the resource that can be used by the program installed in the control device. That is, the plurality of programs installed in the control device can appropriately change the hardware resources of the control device.
  • the "interface unit" includes one or more interfaces.
  • the one or more interfaces may be one or more interface devices of the same type or two or more interface devices of different types.
  • the “storage unit” includes one or more memories. At least one memory for the storage may be volatile memory.
  • the storage unit is mainly used during processing by the processor unit.
  • the storage unit may include one or more non-volatile storage devices (eg, HDD (Hard Disk Drive) or SSD (Solid State Drive)) in addition to the memory.
  • HDD Hard Disk Drive
  • SSD Solid State Drive
  • the “processor unit” includes one or more processors. At least one processor is typically a microprocessor such as a CPU (Central Processing Unit), but may be another type of processor such as a GPU (Graphics Processing Unit). Each of the one or more processors may be single-core or multi-core.
  • the processor may include a hardware circuit that performs some or all of the processing.
  • the function may be described by the expression "kkk unit” (excluding the interface unit, the storage unit, and the processor unit), but the function is defined by one or more computer programs (a control program and a later-described program program).
  • the information program may be implemented by being executed by the processor unit, or may be implemented by one or more hardware circuits (for example, FPGA (Field-Programmable Gate Array) or ASIC (Application Specific Integrated Circuit)). Is also good.
  • FPGA Field-Programmable Gate Array
  • ASIC Application Specific Integrated Circuit
  • the processing described by using the function as a subject may be processing performed by the processor unit or an apparatus including the processor unit.
  • the program may be installed from a program source.
  • the program source may be, for example, a program distribution computer or a computer-readable recording medium (for example, a non-transitory recording medium).
  • the description of each function is an example, and a plurality of functions may be combined into one function or one function may be divided into a plurality of functions.
  • an expression such as “xxx table” may be used to describe information that can be output for an input.
  • the information may be data having any structure, and output for an input may be used.
  • a learning model such as a neural network that generates Therefore, the “xxx table” can be referred to as “xxx information”.
  • the configuration of each table is an example, and one table may be divided into two or more tables, or all or a part of the two or more tables may be one table. good.
  • the control device is also called a sequence control device, motion control device or programmable logic controller (PLC).
  • Control device such as ladder logic (LD language), sequential function chart (SFC language), function block (FBD language), structured text (ST language), instruction list (IL language)
  • LD language ladder logic
  • SFC language sequential function chart
  • BFD language function block
  • ST language structured text
  • IL language instruction list
  • a program that is described using a unique programming language or a general-purpose programming language used in the field of information communication such as C language and that executes control processing represented by sequence control or motion control is called a "control program".
  • the control program is required to actually operate the peripheral device including the motor and the like through the I / O module and the like to appropriately operate the production system and the like. Therefore, the control program is required to surely execute the process within a set time (real-time property).
  • the control program controls a control target device (for example, a hardware module such as a device component, a device including one or more hardware modules, or a system including a plurality of devices) by an instruction in which control contents are described.
  • a control target device for example, a hardware module such as a device component, a device including one or more hardware modules, or a system including a plurality of devices
  • the control target device is typically a device connected via an I / O control device (an example of an interface unit) in the control device.
  • the control target device may be controlled directly from the control program (for example, not via an I / O module or peripheral device connected to the control device) or indirectly from the control program (for example, the control device). May be controlled via an I / O module or peripheral device connected to.
  • the language for controlling the controlled device is not limited to a programming language specific to control such as a ladder language, but may be described in a general-purpose programming language such as C language, so that the controlled device (typically hardware) is The program to control is called a "control program.”
  • the control program written in the ladder language, etc. performs a "scan operation" to read or write (acquire or update) the state of the control target device specified in the description of the ladder language.
  • scan time is related to the calculation time of the control program, and is also called “cycle time” because the calculation cycle for control or the calculation for control is repeatedly performed at predetermined intervals.
  • control target device connected to the control device is connected to, for example, a device used for production or transportation in a factory, if the scanning operation is delayed, the operation of the device in the factory becomes unstable, Unexpected behavior may occur. Therefore, it is necessary to perform the scan operation within a predetermined scan time.
  • the scan time increases as the number and types of control target devices controlled by the control device increase, but it is important to scan the control target device within the scan time.
  • I / O (Input / Output) port is built in or connected to the control device.
  • the I / O port may be included in the I / O module or the I / O unit.
  • the I / O port itself or a device having an I / O port (I / O module, I / O unit, or the like) may be collectively referred to as “I / O port”.
  • the I / O port is connected to a control target device, for example, a belt conveyor in a production facility, a limit switch, an actuator (for example, a motor), and is used for controlling the operation of the control target device.
  • the I / O port is a digital or analog I / O port.
  • the analog I / O port is used for reading and writing information such as voltage, current, and temperature of the control target device of the control device.
  • the inverter unit or CNC Computerized Numerical Control
  • CNC Computerized Numerical Control
  • controlling the controlled device means controlling the operation of the I / O port when the controlled device is connected.
  • the control program is a program for controlling the I / O port to which the controlled device is connected, in other words, the control information of the controlled device is output to the I / O port to which the controlled device is connected ( Specifically, for example, it is a program that performs a scanning operation including the output of the control information.
  • control device it is considered to perform information processing (for example, information processing such as complicated arithmetic operation, SCADA, MES, and transmission / reception of information to / from a cloud system) in addition to control of a control target device.
  • information processing for example, information processing such as complicated arithmetic operation, SCADA, MES, and transmission / reception of information to / from a cloud system
  • Such information processing may be difficult to program in the control-specific language, and it may be described using a programming language used in the information processing field such as C language or Java (registered trademark) language. is there.
  • a program that executes such information processing is called an “information program”.
  • control program is a program related to the control of the I / O port of the control device
  • information program is a program for performing information processing (for example, arithmetic operation or communication with the cloud as described above). Is.
  • the control program is written in ladder, ST language, etc., and has a higher real-time property than general-purpose languages such as Java (registered trademark) and python.
  • the information program is described in a language typified by Java (registered trademark), python, or the like, and is more suitable for information processing than a ladder or the like.
  • a language such as C language that has high real-time property and is suitable for controlling hardware, and also suitable for information processing may be available for both control program and information program.
  • the information program is a program other than the control program described above (however, for example, for realizing a task management unit 110, a control program execution unit 111, an information program execution unit 112, and an I / O control unit 117 described later). Excluding one or more programs).
  • the controlled device is connected to the control device via the I / O port, but the information program is an analog or digital I / O port connected to the controlled device (however, sharing with the information program is permitted. It is a program that does not access (excluding the I / O port).
  • the control program is a program that performs a scan operation including transmitting control information of the controlled device to an analog or digital I / O port connected to the controlled device.
  • the information program is a program that performs information processing that does not include the scan operation (different from the scan operation) (that is, a program that does not perform the scan operation).
  • a control device which is equipped with a control program and an information program, does not stop the control program or delays the scanning operation of the control program even when the information program is executed in addition to the control program.
  • the present invention realizes program change such as addition, deletion, update (rewrite) or replacement of an information program without causing an unexpected operation of the control program.
  • FIG. 1 is a block diagram showing a hardware configuration example of a system including a control device according to the first embodiment.
  • the program distribution device 101, the control device 109, one or more management user computers 151M and one or more general user computers 151G are connected to the information network 108. Further, the control device 109 and one or more I / O modules 119 (an example of I / O ports) are connected to the control network 118.
  • the information network 108 is a communication network used in an information communication process (that is, a communication process different from the control information transmission) performed by the information program.
  • the control network 118 is a communication network used when transmitting control information performed by a control program.
  • the information network 108 and the control network 118 may be different types of networks, or may be the same type of network (for example, LAN (Local Area Network)). Further, at least a part of the information network 108 and at least a part of the control network 118 may be integrated.
  • the management user computer 151M is a computer operated by at least the management user.
  • the general user computer 151G is a computer operated by at least a general user.
  • Each computer functions as an input / output console for at least one of the program distribution device 101 and the control device 109.
  • each computer has an input device such as a keyboard and a pointing device and an output device such as a display device.
  • An "administrative user” is a user who writes a control program (for example, an engineer who has a deep knowledge of a control target such as an automatic machine or a production facility), and a "general user” is a user who writes an information program (for example, a control It is a general system engineer who does not have deep knowledge about the target).
  • the control device 109 may accept a description (including parameter group setting) of at least one of the control program and the information program from at least one of the management user computer 151M and the general user computer 151G, or the control device.
  • the program distribution apparatus 101 may accept the description.
  • the management user and the general user may be collectively referred to as “user”.
  • the user may be a different type of user such as a system administrator (for example, an administrator of a control system that is a system configured by the program distribution apparatus 101 and the control apparatus 109) instead of either an administrative user or a general user. Good.
  • One or more peripheral devices 120 are connected to one or more I / O modules 119.
  • the peripheral device 120 is at least one device such as a sensor and a drive.
  • the I / O module 119 functions as a bus slot into which the peripheral device 120 is detachably mounted as needed.
  • the control target device is connected to the I / O module 119 via the peripheral device 120 or not.
  • the control target device and the I / O module 119 may be any of 1: 1, 1: multi, multi: 1, and multi: multi.
  • some of the I / O modules 119 may be connected to the information network 108 in addition to the control network 118, that is, some of the I / O modules 119 are devices shared by the control program and the information program. May be
  • the program distribution device 101 manages control programs and information programs.
  • the program distribution device 101 includes an EPROM 201, a CPU 202, a main memory 203, a peripheral control device 205, a nonvolatile storage device 206, and a network interface (corresponding to the network I / F shown in the figure) 207.
  • the program distribution apparatus 101 is connected to the information network 108 via the network interface 207.
  • the program distribution device 101 provides a control program or an information program to the control device 109 via the information network 108 under the control of the peripheral control device 205.
  • the program distribution apparatus 101 provides a control program and an information program stored in advance in the non-volatile storage device 206 according to a request under the control of the CPU 202.
  • the peripheral control device 205 is connected to the EPROM 201, the CPU 202, and the main memory 203 via the bus 204.
  • the CPU 202 reads a management program stored in advance in the EPROM 201 onto the main memory 203 and executes the management program, and the management program manages the control program and the information program.
  • This management program sequentially provides at least one of the above-mentioned control program and information program in response to a request.
  • a program distribution unit 102 and an execution management data generation unit 103 are realized.
  • control device 109 includes an EPROM 208, a CPU 209, a main memory 210, a peripheral control device 212, an I / O control device 214, a nonvolatile storage device 215, and a network interface (corresponding to the network I / F shown in the figure) 213. .
  • the I / O control device 214 and the network I / F 213 are examples of the interface unit.
  • the EPROM 208, the main memory 210, and the non-volatile storage device 215 are examples of a storage unit.
  • the CPU 209 and the peripheral control device 212 are an example of a processor unit.
  • the control program and the information program provided from the program distribution device 101 operate while coexisting on the same platform.
  • the peripheral control device 212 is connected to the network I / F 213, the I / O control device 214, the non-volatile storage device 215, and the bus 211.
  • An EPROM 208, a CPU 209, and a main memory 210 are also connected to the bus 211.
  • the EPROM 208 stores a control program and an information program prepared in advance in the control device 109 in the initial state.
  • the CPU 209 includes a plurality of cores, and each core can be operated independently.
  • control program and one information program are installed in the control device 109, but a plurality of control programs and / or a plurality of information programs are installed by setting the resources that the control device 109 can use for each program. be able to.
  • the CPU 209 reads the control program and the information program stored in the EPROM 208 in advance into the main memory 210 and executes them, and controls the operations of these control program and the information program.
  • control program and information program are read and executed, they become the control program 114 and the information program 115 of FIG. 2 described later.
  • control program 114 and the information program 115 have different roles.
  • the control program 114 accesses the I / O module 119 of the control device 109 and controls the control target device. Further, the control program 114 may perform an operation based on the read result, and in order to control the control target device, the control program 114 may access the I / O control device 214 based on the operation result. The control program 114 may access the network I / F 213 to which the control target device is connected in order to control the control target device. That is, instead of or in addition to the I / O module 119, at least one of the I / O control device 214 and the network I / F 213 can also be an example of an “I / O port”. That is, the control program 114 accesses the I / O port to which the control target device is connected, in order to control the control target device (for transmitting control information of the control target device), in other words, Send an instruction to control the I / O port.
  • the information program 115 acquires information on the I / O control device 214 and the like, calculates the result, and sends the calculated result to another device or equipment connected to the control device 109 via the network I / F 213. Send.
  • the “other device or equipment” referred to in this paragraph is a device or equipment connected to the control device 109 but different from the control target device of the control program 114.
  • the control device 109 can have a shared area (not shown) that can be accessed by both the control program 114 and the information program 115.
  • This shared area may be secured in the main memory 210 and the non-volatile storage device 215.
  • the shared area may be, for example, a logical storage area such as a shared directory or a physical storage area specified by a physical address (for example, a memory address).
  • the control program 114 generates a task that reads and writes the value of data that may be shown to the information program 115 in the shared area, and the task is executed to cause the information program to read the value of the data in the shared area. Good to be able to access.
  • the “value of data that can be shown” is, in a broad sense, shared information that is information shared with one or more information programs 115.
  • the shared information include port information indicating the state of the I / O port (or including other types of information regarding the I / O port), control program information regarding internal variables of the control program, and the like.
  • the shared area may be provided by, for example, the task management unit 110 described later, or may be provided by at least one of the control program 114 and the information program 115 that access the same shared area.
  • the information program 115 can be prevented from directly accessing the I / O port to which the control target device of the control program 114 is connected, so that the safety is improved.
  • the information program 115 refers to the shared information in the shared area, instead of directly accessing the I / O port to which the control target device of the control program 114 is connected, and Alternatively, the state of the control program 114 can be known.
  • the information program 115 may receive information from equipment or devices that are connected via the network I / F 213 but are not control target devices of the control program 114.
  • the information program 115 can calculate the received information and the like, and can communicate with other devices or equipment via the network I / F 213.
  • the CPU 209 controls the peripheral control device 212 to control the download of the control program and the information program from the program distribution device 101 via the network I / F 213.
  • the CPU 209 controls the peripheral control device 212 to control the plurality of peripheral devices 120 via the I / O control device 214 and the plurality of I / O modules 119.
  • the peripheral device 120 is associated with the I / O module 119 at a ratio of 1: 1, and the CPU manages, for example, the I / O module 119 and a 1: 1 digital I / O register, and the I / O module 119 manages the I / O module 119 for each I / O module. It is possible to operate the / O module 119.
  • FIG. 2 is a block diagram showing a functional schematic configuration example of a system including the control device according to the first embodiment.
  • the program distribution device 101 includes a program management database (corresponding to the illustrated program management DB) 104, a program distribution unit 102, and an execution management generation unit 103.
  • the program management DB 104 is based on at least a part of the main memory 203 and the non-volatile storage device 206.
  • the program distribution unit 102 and the execution management generation unit 103 are realized by the CPU 202 executing the management program described above.
  • the program management database 104 manages the control program 105 and the information program 106.
  • the execution management generation unit 103 generates execution management data representing parameters when at least one of the control program 105 and the information program 106 is executed in the control device 109.
  • This execution management data is, for example, one or more parameters such as the priority of each task of the control program 105 and the information program 106, and the upper limit storage capacity that can be used for each control program 105 and the information program 106.
  • the program distribution unit 102 provides execution management data indicating a parameter value corresponding to the at least one program when providing the at least one program in response to the request.
  • the control device 109 may also be called a sequence control device, a motion control device, or a programmable logic controller (PLC).
  • PLC programmable logic controller
  • control-specific programming languages such as ladder logic (LD language), sequential function chart (SFC language), function block (FBD language), structured text (ST language), instruction list (IL language)
  • LD language ladder logic
  • SFC language sequential function chart
  • BFD language function block
  • ST language structured text
  • IL language instruction list
  • the control content is described. Further, in some cases, the description in the general-purpose programming language such as C language may be replaced with a part or all of the description in the ladder language or the like.
  • control program 105 (114) for controlling the control target connected to the control device 109 as described above uses a programming language peculiar to control represented by a ladder language.
  • the ladder can be displayed, which is effective for monitoring the state of the controlled object.
  • the information program 106 (115) is effective for such information processing in the control device 109 (for example, complicated arithmetic operation, information communication processing such as SCADA, MES, information transmission / reception with cloud system). .
  • Such information processing may be difficult to program in a control-specific language, and may be described using a programming language used in the information communication field such as so-called C language or Java (registered trademark) language. .
  • the program management database 104 manages a control program 105 having a function of executing the above-mentioned control contents, and an information program 106 having a function of executing the above-mentioned information processing.
  • the control device 109 includes a task management unit 110, a control program execution unit 111, an information program execution unit 112, an execution management table 113, and an I / O control unit 117.
  • the control program execution unit 111 is, for example, a runtime library and operates together with the control program 114 in response to a call from the control program 114.
  • the information program execution unit 112 is, for example, a so-called library and operates together with the information program 115 in response to a call from the information program 115.
  • the control program 114 corresponds to the control program 105 that has been distributed from the program distribution apparatus 101 to the control apparatus 109 (or one or more tasks generated by the execution of the control program 105), and the information program 115 is a program. It corresponds to the information program 106 (or one or more tasks generated by the execution of the information program 106) that has been distributed from the distribution apparatus 101 to the control apparatus 109.
  • the execution management table 113 stores the execution management data received together with the at least one program provided from the program distribution apparatus 101.
  • the task management unit 110 mainly has two functions, specifically, a program reception function and a program execution management function.
  • the program receiving function is a function of receiving at least one of the programs provided from the program distribution apparatus 101 in response to a request.
  • the program execution management function is a function of controlling the execution of the at least one program based on the execution management data stored in the execution management table 113 when executing the at least one program.
  • the I / O control unit 117 transfers the control information from the control program 114 to the destination of the control information.
  • control device 109 includes the main memory 210 having a storage area of a predetermined storage capacity used by each task of the control program 114 and the information program 115.
  • the execution management generation unit 103 uses, as the execution management data, at least the priority of each task of the control program 105 and the information program 106 and each task of the control program 105 and the information program 106.
  • Execution management data indicating at least one parameter value of the upper limit storage capacity of the possible main memory 210 is generated.
  • FIG. 3 shows a table configuration example of the execution management table 113 shown in FIG.
  • the execution management table 113 has an entry for each of the control program 114 and the information program 115. Each entry stores information such as a program name 301, a program type 302, a task priority 303, an execution cycle 304, a memory upper limit 305, a CPU core number 306, a utilization device 307, and an exclusive device 308.
  • a program name 301 a program name 301
  • a program type 302 a program type 302
  • an execution cycle 304 a memory upper limit 305
  • a CPU core number 306 a utilization device 307
  • exclusive device 308 an exclusive device
  • the program name 301 represents the name of the target program.
  • the program type 302 represents the type of program whether the target program is the control program 114 or the information program 115. It should be noted that even the first three characters of the program name 301 described above can identify whether it is the control program 114 or the information program 115.
  • CTL represents the control program 114
  • ICT represents the information program 115.
  • each of the control program 114 and the information program 115 may be represented by a program name.
  • the task priority 303 represents the priority of the task corresponding to the target program.
  • the priority can be set from “0 (priority: high)” to “20 (priority: low)”. That is, the smaller the value of the task priority 303, the higher the priority.
  • the execution cycle 304 represents the cycle in which the regular processing in the target program is executed.
  • the "execution cycle” is the scan time. According to the illustrated example, the scan time of CTL001 is 10 msec, and the scan time of CTL002 is 1 msec. Since the scan operation is an operation peculiar to the control program 114 of the control program 114 and the information program 115, the execution cycle 304 is a valid value for the control program 114 but an invalid value for the information program 115. is there.
  • the execution cycle 304 (scan time) may be a value specified by simulation with an engineering tool, or a scan time specified by actually executing the control program 114 in the control device 109.
  • the memory upper limit 305 represents the upper limit of the storage capacity that the target program can use in the storage area of the main memory 203.
  • the CPU core number 306 represents the number of the core assigned to the target program among the plurality of cores mounted on the CPU 209 of the control device 109.
  • the utilization device 307 is a utilization device that is a device that can use the target program, specifically, an I / O module 119 that can use the target program (a usable peripheral device 120 connected to the I / O module 119). ) Is represented.
  • the dedicated device 308 is a dedicated device that is a device dedicated to the target program among the one or more utilization devices (I / O modules 119) represented by the utilization device 307 corresponding to the target program (that is, the target program is another control program). 114 or the information program 115 and an I / O module 119) that cannot be shared.
  • CTL001 is a control program.
  • CTL001 is as follows, for example. That is, the task priority is set lower than CTL002.
  • the memory upper limit is 16 MB, and the CPU core number used is 0.
  • the utilization devices are DI1 and DO1 (digital input 1 and digital output 1 of the control device).
  • CTL001 is set to exclusively use DI1 and DO1 so that other programs do not use them.
  • the exclusive device the device set as the exclusive device 308
  • the control related to the exclusive devices DI1 and DO1 here
  • CTL002 is a control program in which the devices used are eth1, eth2, and serial 1, specifically, two control ports for Ethernet (registered trademark) and one control port for RS-232C. Further, since CTL002 has a higher real-time property than CTL001, the task priority is higher than CTL001.
  • CTL002 indicates a case where eth2 is a device used for motion control, for example. Since the motion control has high real-time property and other processes are prioritized, the highest priority is set among the four programs.
  • CTL002 monopolizes the CPU core of number 1.
  • CTL002 has a high priority not only in the priority defined in the task priority 303, but also from the viewpoint of monopolizing the core with the number 1 out of the plurality of cores included in the CPU 209. By making such a setting, the CTL002 can be set to a high priority state in the control program.
  • each program will be able to reserve and use memory indefinitely when actually performing calculations.
  • the information program may reserve an area that may be used by the control program but is not secured.
  • the control program or the OS goes down to stop the operation of the control program, or the OS starts the memory release function forcibly to interrupt the processing of the control program and complete the scan operation within the scan time. There are cases such as disappearance.
  • the value that can be used in the entire system be the value that excludes the part used by the OS etc. from the memory installed in the control device. This is to prevent the control or information program processing from affecting the area such as the OS.
  • the task priority is the priority when each program is executed. By setting the task priority for each program, it is possible to make the scheduler of the OS and the like recognize the priority of CPU allocation to the program.
  • resource allocation such as CPU allocation is performed in advance according to the rules of the OS scheduler. For example, scheduling is performed so that CPUs are equally assigned to a plurality of programs.
  • a processing start request for a second task having a task priority higher than that of the first program is issued due to a timer interrupt or the like during the processing execution (CPU allocation) of the first program
  • the processing of the second program is interrupted and the processing of the second program is started.
  • the processing of the first program is restarted.
  • the information program can be processed by the control device so that the control program is not affected even when the information program performs complicated calculations.
  • the scan time which is the execution cycle 304, is not set, but since the task priority of the information program is lower than that of the control program, the time when the CPU core is not used for the calculation of the control program (for example, The processing of the information program can be performed in the free time). As a result, the information program can be processed without affecting the processing of the control program.
  • the device used is eth1, and eth1 is not set for exclusive use. Therefore, the port of eth1 can be shared by ICT001 and ICT002.
  • ICT001 and ICT006 try to use eth1 at the same time, ICT001 with the higher task priority 303 uses eth1 first.
  • the ICT 006 having the higher task priority 303 can use the eth1. In this way, each program can perform processing according to the task priority.
  • FIG. 4 is a flowchart showing an example of a program download process in which the control device 109 downloads a desired program from the program distribution device 101.
  • a program to be downloaded is selected according to the user's operation using an operation screen (not shown) (step S401).
  • the program distribution unit 102 identifies the corresponding specific program in the program management database 104.
  • the execution management data is set for the above-mentioned specific program on the operation screen according to the user's operation (step S402).
  • This execution management data includes the task priority 303 as shown in FIG. 3, for example.
  • the execution management generation unit 103 uses, for example, the priority at which each task of each program is executed and each task's use as a parameter related to the operation mode of the specific program according to the input content of the user. At least one of the possible upper limit storage capacities in the main memory 210 can be set.
  • the program distribution apparatus 101 downloads the above-mentioned specific program and execution management data associated therewith to the control apparatus 109 in response to a request from the control apparatus 109 (step S403).
  • the task management unit 110 receives the downloaded specific program (corresponding to the program receiving function described above).
  • the task management unit 110 stores the control program 114 in the main memory 210 when the specific program is the control program (step S404).
  • the task management unit 110 adds the execution management data downloaded together with the specific program to the execution management table 113 (corresponding to the program execution management function described above) (step S405).
  • FIG. 5 is a flowchart showing an example of program execution processing. This program execution process represents the processing content when the above-mentioned specific program is executed in the control device 109.
  • the task management unit 110 reads execution management data corresponding to the predetermined program from the execution management table 113 when a new predetermined program is to be executed (step S501).
  • the execution management data corresponding to the predetermined program includes the priority when each task of the predetermined program managed by the priority 303 in the execution management table 113 is executed.
  • the task management unit 110 uses, for example, each task of the predetermined program (at least one of the control program 105 and the information program 106) as a parameter of the predetermined program based on the read execution management data.
  • each task of the predetermined program at least one of the control program 105 and the information program 106
  • the main memory 210 that can be used by each task is set or specified (step S502).
  • the task management unit 110 sets such a priority using a predetermined command. On the other hand, the task management unit 110 sets the upper limit storage capacity described above.
  • control program 114 and the information program 115 coexisting on the same platform operate on the platform according to the corresponding parameters.
  • the task management unit 110 controls the control program 114 and the information program 115 by controlling the control program execution unit 111 and the information program execution unit 112 based on the parameter values such as the task priority of each of the programs 114 and 115.
  • the execution of each of the programs 114 and 115 is controlled (step S503).
  • the information programs 115, ICT001 and ICT002 operate with predetermined resources. Further, the control programs 114, CTL001 and CTL002, operate with higher priority than ICT001 and ICT002 with predetermined resources.
  • control program 114 and the information program 115 are partially controlled by the control program 114 and the information program 115 while other programs are operating when the functions are changed such as addition, update, or deletion of tasks. 114 or the information program 115 can be changed.
  • the information program 115 operates even if the execution management table 113 is changed without requiring recompilation or redownload when the predetermined resources are secured and there is no influence on other programs. (Comparative examples that require recompilation and redownload will be described later).
  • the second embodiment will be described with reference to FIG. At that time, points different from those of the first embodiment will be mainly described, and description of points common to the first embodiment will be omitted or simplified.
  • the operation screen (not shown) described above is derived according to the upper limit storage capacity of the main memory 210 that can be used by each program described above.
  • the remaining resources for example, the remaining capacity of the main memory 210 that can be used by each program is displayed.
  • the execution management data indicating the parameter value including the remaining resource is added to the control apparatus 109 together with the selected program. To download.
  • the task management unit 110 receives the execution management data together with the selected program, and registers this execution management data in the execution management table 113.
  • control program execution unit 111 executes the control program 114, which is the selected program, with the remaining resources based on the execution management data as parameter values.
  • the information program execution unit 112 executes the selected information program 115, using the remaining resources based on the execution management data as parameter values.
  • the same effect as that of the first embodiment can be obtained, and further, the user in contact with the remaining resources of the main memory 210 that can use such tasks can obtain appropriate information.
  • the download setting can be performed based on the above, and the selected program described above can be prevented from affecting the existing program.
  • a hypervisor or the like may be used to separate from the OS layer.
  • FIGS. 6A and 6B there is an example shown in FIGS. 6A and 6B. That is, the information program is changed during the operation of the control program. Specifically, for example, as shown in FIG. 6A, the CPU core number 306 is common to CTL007 and ITL008. This means that the same core can be used for the execution of the information program ITL008 during the operation of the control program CTL007, that is, the processing of the CTL007 of the ITL008 is different even though the task priority 303 and the usage device 307 are different. It is possible to be affected.
  • the ITL008 is an information program, it is a program that can be changed during execution of the control program. After deleting the ITL008 included in the control device 109, the ITL009 is transferred to the control device 109. The transfer is performed by the program distribution device 101 or the like. Thereby, ITL008 can be changed to ITL009. [One example of the concept described above]
  • a control device that controls the operation of the hardware by accessing the I / O port of the control target device hardware that is physically connected (including not only directly but also indirectly through a network).
  • the communication for acquiring the information necessary for controlling the controlled device is part of the control by the control program (that is, the communication is described in the control program).
  • the communication is described in the control program.
  • the controlled device of the control device is generally an automatic machine or a production facility such as a machine tool, an automatic assembly device or an automatic transfer device, and therefore has high stability, that is, real-time property. This is because it is required.
  • control program it is possible to prepare an information program that is a program that describes information processing such as communication.
  • information program In order to give priority to the control program in order to maintain the real-time property, it is possible to execute the information program in a device different from the control device, but from the viewpoint of resource saving, both the control program and the information program are executed in the control device. It is conceivable to execute them on the same platform. In this case, it is required that the control program and the information program properly coexist in the control device.
  • Patent Documents 1 and 2 do not disclose or suggest a technique for proper coexistence of the control program and the information program, for the reasons already described.
  • a plurality of programs including one or more control programs 114 and one or more information programs 115 are executed on the same platform.
  • the “same platform” is the control device 109 according to the above description.
  • Each of the one or more control programs is a program that performs a scan operation for controlling the control target device for the control program.
  • each of the one or more information programs is a program that performs information processing that does not include a scan operation.
  • a plurality of parameter values defining the operation range of the program are set.
  • the control program 114 and the information program 115 are executed based on a plurality of parameter values for each of the control program 114 and the information program 115. It is possible to adjust a plurality of parameter values of the information program 115 so that the execution of any control program 114 is not adversely affected.
  • One or more shared areas are provided. The following can be said for each of the one or more shared regions.
  • the shared area is a storage area accessible by at least one control program 114 of the one or more control programs 114 and at least one information program 115 of the one or more information programs 115.
  • the storage area stores, for example, shared information including at least one of information regarding an I / O port accessed by the control program 114 and information regarding the control program 114 (for example, an internal variable).
  • the information program 115 that can access the shared area can perform information processing based on the shared information stored in the shared area. In other words, since the information program 115 is executed based on the shared information based on the execution result of the control program 114, it is expected that the execution of the information program 115 will not adversely affect the control program 114. Therefore, it can be expected to change the information program 115 without adversely affecting the control program 114.
  • the execution management table 113 including a plurality of parameter values defining the operation range is prepared for each of the plurality of programs 114 and 115.
  • the execution management table 113 including a plurality of parameter values defining the operation range is prepared for each of the plurality of programs 114 and 115.
  • the plurality of parameter values are Task priority 303 (an example of the priority of the program), Memory upper limit 305 (an example of one or more resource upper limits corresponding to one or more types of computational resources), A utilization device 307 and a dedicated device 308 (any I / O port of one or more I / O ports that can be used by the program is a dedicated I / O port for the program, and which I / O port is An example of a dedicated / shared device indicating whether the I / O port can be shared by two or more programs including the program), At least one of
  • program priority such as task priority 303
  • processing that gives priority to maintaining the real-time property required for the control program 114.
  • at least one calculation resource such as a CPU core, a memory area, and an I / O port may be a shared device, and specifically, the control program 114 and the information program 115 may share the same. Conceivable.
  • the information program 115 can be executed so as not to impair the real-time property of the control program 114.
  • the setting of exclusive / shared device may be a combination of two or more parameter values.
  • stable performance for example, real-time performance can be expected to be maintained.
  • shared device flexible processing can be expected while saving computing resources.
  • the setting range table 700 illustrated in FIG. 7 may be prepared. A setting method different from the examples described in FIGS. 6A and 6B will be described. Further, the CPU core, the memory upper limit, and the LAN port shown in FIGS. 8A and 8B are diagrams showing resources that can be used by the information program 115 corresponding to the values of the default value 703 and the setting value 704 of FIG. 7, respectively. That is, FIG. 8A shows a state in which the control program 114 monopolizes the CPU cores 1 to 4, but 3 to 4 have not been used yet, and 5 to 8 show a state in which the information program 115 monopolizes.
  • the control program 114 and the information program 115 can use a maximum of 128 MB each. Next, it is shown that the control program 114 occupies LAN1 and 2, the information program 115 occupies LAN4, and these programs share LAN3.
  • FIG. 8B shows resources corresponding to the setting value 704 shown in FIG. 7.
  • the setting range table 700 may be stored in the control device 109 from the computer used by the user (for example, the management user computer 151M) via the program distribution device 101 or not.
  • the setting range table 700 is a table that defines a range of parameter values related to the information program 115, and sets a plurality of parameter items (for example, the same parameter item as at least one of the parameter items 303 to 308 as illustrated in FIG. 3).
  • the set value 704 is a value set when the default value 703 is not used.
  • the value that is not input or set may be the value of the default value 703. Accordingly, when the user uses the information program 115, the user can execute the information program 115 without setting all or some of the items. As shown in FIG. 7, it may be displayed on the display means and input by the input means, or only the set value 704 may be set separately.
  • FIG. 8C shows a state in which the settings of FIG. 8A have been changed.
  • FIG. 8C shows a case where the control program 114 occupies the CPU cores 1 and 2, the information program 115 occupies the CPU cores 7 and 8, and the CPU cores 3 to 5 are shared.
  • the shared CPU core can be used when the calculation processing of the programs 114 and 115 is insufficient. Also, the usage amount can be changed according to the task priority.
  • the use of a broken line boundary for the shared CPU core is convenient because the difference from FIG. 8B is clearly shown to the user, but other expressions may be adopted as the expression of the difference.
  • the background color of each of the exclusive use and the shared use may be changed, or different hatching processing may be performed.
  • the memory setting is the same as in FIG.
  • the control program 114 exclusively occupies LAN1
  • the information program 115 exclusively occupies LAN3
  • the control programs 114 and the information program 115 share LAN2 and LAN4.
  • the attribute 701 indicates whether or not there is a possibility that the execution (operation) of any control program 114 may be adversely affected if the parameter value corresponding to the target parameter item in any information program 115 is changed. “A: Setting caution” means that there is a possibility of adverse effects. “B: freely settable” means that no adverse effect is produced. By showing the attribute 701, the user can easily know the items that are not adversely affected.
  • the settable range 702 represents a range of parameter values that can be set for the information program 115 for the target parameter item.
  • the parameter value can be adjusted within the range.
  • the settable range 702 may represent a value for each information program 115, but in the example of FIG. 7, for all parameter items, as a total of all information programs 115. Represents the value of.
  • the parameter item “number of CPU cores” can set which of the CPU cores 2 to 8 the information program 115 uses, but if no particular setting is made, the CPU is set to the default value 703. Use cores 4-8.
  • the settable range 702 corresponding to the “memory upper limit” is the upper limit range of the total memory amount for all the information programs 115.
  • the information program 115 can set from 16 to 256 MB, but when the setting value 704 is not set, 128 MB which is the value of the default value 703 is used, and the setting value 704 is set to 160 MB. In that case, 160 MB can be used. As a result, in the example shown in FIG. 8A, the information program 115 can fully utilize the memory, and thus the operation of the information program 115 can be made more stable.
  • the settable range 702 may be automatically set or changed for at least one parameter item.
  • the control program 114 can be set with reference to the resource of the device or the information that is exclusively or shared.
  • the task management unit 110 may automatically set or change the settable range 702 of the information program 115 based on the resources used by the control program 114. For example, when the control program 114 occupies LAN1 and LAN2 among LAN ports and shares LAN3, the settable range 702 of available LAN ports is LAN3, LAN4, and the settable range 702 of the dedicated LAN is LAN4. Good to do. In this case, if the information program 115 is set to exclusively use the LAN 3, the control program 114 cannot be used.
  • the attribute 701 indicates “setting caution”.
  • the settable range 702 of the available LAN port is set to LAN4 only
  • the settable range 702 of the dedicated LAN port is only LAN4. This means that an unavailable LAN port is automatically changed to a setting that cannot be used exclusively.
  • the parameter item "routing method” is adopted in the OS common implementation illustrated in FIG.
  • “Masquerade” means that the container 953 (an example of the execution environment) does not accept communication from outside the control device 909.
  • “Port forward” means that only communication to a certain port is received from the communication from outside the control device 909.
  • IP forward is an additional IP address dedicated to the information container 953B to a physical network I / F (for example, the network I / F 213 in FIG. 1), and communication that specifies the IP address is added to the information container 953B. It means to transfer to the information program 115 in.
  • the parameter item “available LAN port” indicates a LAN port that can be used by the information program 115
  • “proprietary LAN port” indicates a LAN port that the information program 115 exclusively uses. That is, the information program 115 shares the LAN ports 3 and 4 with the control program 114 by default, and is set to exclusively use the LAN port 4.
  • the parameter value "shared folder” represents the path to the shared folder, which is an example of the shared area. Since the default value 703 indicates that there is no sharing, there is no shared folder unless otherwise specified.
  • the default value 703 represents a default value corresponding to the target parameter item.
  • the parameter values “LAN3” and “LAN4” are set in the information program 115, and the parameter value of the dedicated LAN port is set to “LAN4”. That is, the LAN 3 is a shared device, and the LAN 4 is a device exclusively used by the information program 115.
  • the LAN port shows a state in which the control program occupies one port, the information program occupies one port, and the control program and the information program share two ports.
  • the sharing is a case where the communication program and the information program, which are not necessarily required to be real-time even if they are control programs, use LAN ports.
  • control program 114 when one program uses the shared LAN port and the other program uses it, it waits until the communication of one program ends, and the other program uses it. Since the control program 114 has a LAN port exclusively, it is effective when using real-time control communication. Sharing the LAN port between the control program 114 and the information program 115 is effective when performing non-real-time communication such as general Ethernet communication. When the information program 115 is outside the control device 109, for example, when communicating with the outside of the factory or the Internet, the control program 114 and the control device do not show the device connected to the control device 114 from the outside of the control device 109. Therefore, it is effective from the viewpoint of security.
  • the type for each of one or more types of computational resources (for example, CPU core, memory, LAN (an example of I / O port)), the type (respectively, The resource upper limit corresponding to the calculation resource of the parameter item) is based on the resource boundary (indicated by a thick line in FIG. 8) defined for the calculation resource of the type.
  • a boundary line is provided at an intermediate position for convenience.
  • the resource boundary is a boundary defined by the following (x) and (y).
  • the CPU is not limited to the number of cores, and it is possible to set the scheduling priority including the case of a single core. Further, when there are a plurality of CPU cores, it is possible to schedule the control program 115 to be executed at a predetermined scan time without changing the exclusive setting of the CPU cores. Can be used efficiently.
  • the gray band on the left side of the resource boundary means the total used resource that is the total of the resources used by all the control programs 114, and the white band on the left side of the resource boundary. Represents a surplus resource (difference between resource boundary and total used resource) for the control program 114. In other words, the gray band shows the actual usage status, and the white band shows the resources that are available but can be used.
  • the gray band on the right side of the resource boundary means the total used resource which is the total of the resources used by all the information programs 115, and the white band on the left side of the resource boundary is the information program.
  • a margin resource (difference between resource boundary and total used resource) for 115 is represented. By displaying this in real time or during debugging, it is possible to specify the amount of resources used and more efficiently execute the control program 114 or the information program 115 with the set value 704.
  • the task management unit 110 that controls the execution of the plurality of programs 114 and 115 dynamically changes the resource boundary of at least one type of computational resource of the one or more types of computational resources, as illustrated in FIG. 8.
  • the change is performed, for example, when a predetermined event for changing the resource boundary occurs (for example, when the task management unit 110 receives a resource boundary change request from the user).
  • a resource boundary change that reduces resources for the control program 114 is executed (see, for example, computing resource type “memory”).
  • the task management unit 110 executes the following (A) and (B). You can go. Due to the following (A) and (B), it is expected that the real-time property can be maintained even if the boundary for reducing the resources for the control program 114 is changed, in other words, even if the premise when the information program 115 is added is changed. (A) Stop at least one of the one or more information programs 115. (B) At least one of the following (b1) and (b2) is executed for at least one control program 114.
  • the shared device for example, at least one of the I / O ports assigned to the stopped information program 115 is changed to the dedicated device of the control program 114.
  • (B2) Relatively increase the task priority 303 of the control program (that is, at least one of increasing the task priority 303 of the control program and decreasing the task priority 303 of the stopped information program 115). Do).
  • the platform on which the control program 114 and the information program 115 coexist is the control device 109 as a physical computer, but as shown in FIG. 9, the same OS 952 is used as another example. Can be adopted. That is, the OSs of the control program 114 and the information program 115 are common. Also in this case, for each of the plurality of programs 114 and 115, the execution management table 113 including a plurality of parameter values defining the operation range of the program is set.
  • OS there are generally a dedicated OS (real-time OS) as an OS for control and a general-purpose OS as an OS for information processing.
  • control program is executed on a computer equipped with a dedicated OS, and a computer equipped with a general-purpose OS that receives information required for information system calculations from the computer equipped with the dedicated OS is being executed.
  • a control program is executed on the dedicated OS and the information program is executed on the general-purpose OS, so that the configuration similar to the present invention can be realized.
  • a virtual machine technology that emulates a set of computing resources (hardware as a set of physical computing resources) in a computer is usually adopted. .
  • the hypervisor generates a virtual machine having a dedicated OS as a guest OS for the control program, a virtual machine having a general-purpose OS as the guest OS for the information program, and the control program
  • the information program and the information program may be executed by different virtual machines having different OSs.
  • an OS having a real-time function (hereinafter, referred to as “real-time general-purpose OS” for convenience), which is a system of general-purpose OS but can provide the required real-time property. .
  • the real-time general-purpose OS has a scheduler, and an interrupt is generated in the scheduler. If there is a real-time task to be executed (a task corresponding to the control program 114), the scheduler transfers control to the real-time task according to the task priority 303, and if there is no real-time task to be executed, the scheduler issues a normal task (for example, the information program 115). Control is passed to the task corresponding to.
  • the normal task is not stopped unless the predetermined processing is completed for the normal task. For this reason, the start of the real-time task may be delayed, and as a result, the real-time property may be impaired.
  • the OS 952 as the same platform for the control program 114 and the information program 115, and adopting at least one of the above-mentioned devices in the environment, for example, at least one of the following, real time Sex is maintained.
  • the execution management table 113 described above is set. That is, the parameter values determined for the purpose of maintaining the real-time property are set for each of the control program 114 and the information program 115.
  • the resource boundaries are set as described above in order to avoid deterioration of real-time property while facilitating sharing of devices.
  • the parameter values 303 to 308 are determined in consideration of the fact that the normal task is not stopped until the predetermined process is completed for the normal task.
  • the resource boundary may be dynamically changed by the execution control program 957, which is an example of the host program, in consideration of the throughput as appropriate.
  • the execution control program 957 which is an example of the host program, in consideration of the throughput as appropriate.
  • the control device 909 of FIG. 9 is as follows, for example.
  • the OS 952 is executed on the calculation resource set 951 of the control device 909.
  • a container 953 conforming to container-type virtualization is adopted. That is, the program is set in the container 953 and executed on the OS 952 in units of the container 953.
  • the container 953 for example, there are two types of containers, a control container 953A and an information container 953B.
  • the control container 953A is a container in which the control program 114 is stored and executed.
  • the control program 114 may be executed, for example, on the software PLC system runtime 961.
  • the control program 114 may perform control communication.
  • the control system communication may be serial or parallel wired communication, or wireless communication.
  • the information container 953B is a container in which the information program 115 is stored and executed. At least one information program 115 can perform information communication.
  • a Web server program 956 and an execution control program 957 are both examples of host programs executed outside the container 953.
  • the execution control program 957 may be a container engine that creates or deletes the container 953.
  • the task management unit 110 described above may be realized by executing the Web server program 956 and the execution control program 957.
  • the web server program 956 is a program for functioning as a web server.
  • the Web server program 956 communicates with each of the management user computer 151M and general user computer 151G (client).
  • the web server program 956 is an example of a user interface program that receives setting of parameter values for a container in which at least one of the one or more information programs 115 is stored.
  • the execution control program 957 controls the execution of the container 953 (more precisely, the program in the container 953) based on a plurality of parameter values set for the program in the container 953.
  • a third embodiment will be described with reference to FIG. At that time, points different from those of the first embodiment will be mainly described, and description of points common to the first embodiment will be omitted or simplified. Further, in the following description, the “computing resource” is a physical resource, whereas the “resource” used or usable is the amount of used or usable resource (for example, the number of CPU cores). Or memory capacity).
  • FIG. 10 is a block diagram showing a functional schematic configuration of the control device according to the third embodiment.
  • the computing resource set 951 is a plurality of computing resources including the plurality of types of computing resources shown in FIG.
  • the computing resource set 951 includes, for example, one or more I / O ports (for example, I / O control device 214 or I / O control device 214 or I / O port) connected to one or more control target devices such as one or more peripheral devices 120 (see FIG. 1). O module 119) and one or more network ports (eg, network I / F 213) connected to the network 108 (see FIG. 1).
  • the task management unit 1010 and the used resource monitoring unit 1017 may be an example of functions realized by executing a program group that is one or more programs other than the one or more control programs 114 and the one or more information programs 115.
  • the task management unit 1010 sends at least one of the one or more target programs, which is one or more programs of the one or more control programs and the one or more information programs, from the program distribution apparatus 101 (see FIG. 1) to the network 108. And via the network I / F 213, the execution management data indicating the resource upper limit which is the resource usable by the target program for the calculation resource set 951 is changed at a timing different from the download timing.
  • Each of the one or more control programs 114 is a program that performs a scan operation that outputs control information of the peripheral device 120 (an example of a control target device) connected to the I / O port.
  • Each of the one or more information programs 115 is a program that performs information processing different from the scan operation.
  • the control program 114 is required to surely execute the process within the set time (real-time property). Therefore, the control program 114 may allocate a relatively large resource upper limit to the information program 115. In other words, it is conceivable that the information program 115 has a relatively small upper limit of resources to be allocated as compared with the control program 114. However, depending on what kind of information program 115 the control program 114 coexists with the control device 1009, the upper limit of resources used by the control program 114 or the information program 115 may be excessive or insufficient. Also, depending on the type of resource, it is not possible to know how much resource will be used unless the program actually runs.
  • the user may develop the program without considering how much the program to be developed uses the resource or how the resource is shared.
  • Information system developers who develop the information program 115 are rarely aware of the resources of the control target and the hardware to be controlled in the development for a general-purpose computer, so management of shared resources is important.
  • the execution management data of the target program is changed at a timing different from the download of the target program. Therefore, it is possible to appropriately change the execution management data. That is, it is possible to appropriately change the resource used not only when downloading the program but also in accordance with the resource required by the program installed in the control device. As a result, it contributes to increase the operational efficiency of the control device.
  • the used resource monitoring unit 1017 monitors, for each target program transferred by the network I / F 213, the resource used by the target program, and uses the monitoring result (data indicating the used resource specified for the program). It is stored in the resource management table 1013. As a result, the execution management data (resource upper limit) can be appropriately changed according to the actual resources used by the control program 114 and the information program 115.
  • the used resource management table 1013 may include data indicating used resources for each target program.
  • the used resource management table 1013 is stored in the storage unit (for example, the main memory 210) of the control device 1009. If a given program runs with fewer resources than originally planned to be used, the resources used by other programs can be increased by rewriting the execution management information to reduce the resources used. Can be made.
  • the resources used by the predetermined program can be appropriately changed, and the control device can be operated with more appropriate resources.
  • the resources to be used can be changed even after the execution of the given program, which allows flexible operation of the control device. realizable.
  • examples of changing the execution management data include a first example shown in FIG. 11 and a second example shown in FIG.
  • the first example is an example in which the execution management data is changed without permission from the management user (developing user of the control program 114).
  • the second example is an example in which the execution management data is changed when the permission from the management user is obtained (in other words, the execution management data cannot be changed without the permission from the management user. is there).
  • the first example is a flow common to the control program 114 and the information program 115.
  • the second example is a flow peculiar to the information program 115.
  • Which of the first example and the second example is adopted for the information program 115 may be determined in advance, or the environmental condition of the control device 1009 (for example, the number of control programs 114 and the number of information programs 115). ) May be determined by the task management unit 1010.
  • the task management unit 1010 determines whether or not to change the execution management data.
  • FIG. 11 is a diagram showing a first example of changing execution management data.
  • one target program is taken as an example.
  • the task management unit 1010 downloads the target program from the program distribution device 101 to the control device 1009 and stores it in the storage unit (step S1101).
  • the task management unit 1010 does not have the explicit, input, or setting (for example, accepting the setting of the resource upper limit via a user interface such as GUI (Graphical User Interface)) by the user for the execution management data of the target program.
  • the default execution management data of the target program is determined and the execution management data is stored in the execution management table 113 (step S1102). In this way, the execution management data is automatically set at the time of downloading.
  • a resource upper limit may be set for each of one or more types of resources in the execution management data of the target program.
  • the task management unit 1010 identifies preset first execution management data (an example of default execution management data), and is specified, input or set by the user. In this case, the second execution management data different from the first execution management data may be specified.
  • the task management unit 1010 functions as a Web server, for example. Specifically, for example, the task management unit 1010 accepts a change operation, which is an operation of changing the execution management data of the target program (for example, changing a parameter such as a resource upper limit), from the user computer 151 (step S1103). ), The execution management data is changed according to the received change operation (step S1104).
  • a change operation which is an operation of changing the execution management data of the target program (for example, changing a parameter such as a resource upper limit)
  • the execution management data is changed according to the received change operation (step S1104).
  • the execution management data of the target program is not downloaded together with the target program.
  • the execution management data of the target program is stored in the storage unit of the control device 1009, not in the program distribution device 101. That is, it is not necessary to prepare execution management data in the program distribution device 101 for each program that can be downloaded.
  • the program distribution device 101 is, for example, a program development environment, a program writer, or a program transfer device.
  • step S1102 a target program such as the information program 115 is required.
  • Execution management data is automatically generated and set according to the resource to be set. Therefore, convenience for the user is improved.
  • the task management unit 1010 permits setting of the execution management data determined in step S1102 (for example, use of two network ports and use of one serial device). May be issued to the management user computer 151M (see FIG. 12) and the execution management data may be set when the answer to the inquiry is permission.
  • the determination of the default execution management data in step S1102 may be performed as at least one of the following, for example. Whether the target program is the control program 114 or the information program can be determined from the metadata of the program, the storage source of the program, and the like.
  • the task management unit 1010 identifies the program characteristics (for example, the number of serial devices required) described in the source data or metadata of the control program 114, and the program concerned. Based on the characteristics, the execution management data (resource upper limit) of the control program 114 is determined. Regardless of the program characteristics of the control program 114, the resource upper limit common to all the control programs 114 may be set in the execution management data of the control program.
  • the task management unit 1010 identifies the program characteristics (for example, the number of required serial devices) described in the source data or metadata of the information program 115, and the program concerned Based on the characteristics, the execution management data (resource upper limit) of the information program 115 is determined. For example, when the task management unit 1010 identifies that two network ports are used, the task management unit 1010 sets two network ports in the execution management data as an example of a resource upper limit (parameter). Further, for example, when the task management unit 1010 specifies that a serial device is used, the task management unit 1010 sets at least one serial device in the execution management data as a dedicated or shared device.
  • the program characteristics for example, the number of required serial devices described in the source data or metadata of the information program 115
  • the program concerned Based on the characteristics, the execution management data (resource upper limit) of the information program 115 is determined. For example, when the task management unit 1010 identifies that two network ports are used, the task management unit 1010 sets two network ports in the execution management data as an example
  • a resource upper limit common to all the information programs 115 (for example, one unused CPU core and X% of the memory capacity usable by all the information programs 115) is set. It may be set in the execution management data of the information program.
  • FIG. 12 is a diagram showing a second example of changing the execution management data.
  • one target program is taken as an example.
  • steps S1101 to S1102 in FIG. 11 are performed (steps S1201 to S1202).
  • the task management unit 1010 receives an operation of changing the execution management data of the information program 115 from the general user computer 151G (step S1203). In that case, the task management unit 1010 issues an inquiry about permission to change the execution management data of the information program 115 to the management user computer 151M (step S1204). When permission is received from the management user computer 151M for the inquiry (step S1205), the task management unit 1010 changes the execution management data of the information program 115 according to the change operation received in step S1203 (step S1206). .
  • the inquiry issued in step S1204 includes, for example, the following information, and the information including the inquiry is displayed on the management user computer 151M. Therefore, the management user can easily determine whether or not the change according to the change operation received in step S1203 can be permitted.
  • Information indicating the content of the change operation received in step S1203 (which resource upper limit is changed to what resource upper limit).
  • Information indicating at least a portion related to the resource upper limit related to the change operation in the setting range table illustrated in FIG. 7 for example, if the resource upper limit of the change target is the parameter item “memory upper limit”, information 701 corresponding to the memory upper limit) ⁇ 704).
  • FIG. 13 is a schematic diagram showing an example of the meaning of the resource upper limit for each of the control program 114 and the information program 115.
  • the resource boundary is an example of a resource upper limit for the control program 114 and an example of a resource upper limit for the information program 115.
  • the resource upper limit for the control program 114 affects the resource upper limit for the information program 115
  • the resource upper limit for the information program 115 affects the resource upper limit for the control program 114.
  • a certain margin from the resource boundary may be the resource upper limit of the control program 114.
  • a fixed margin from the resource boundary may be the resource upper limit of the information program 115.
  • the meaning of the resource upper limit depends on whether the program is the control program 114 or the information program 115. Specifically, the resource upper limit for the information program 115 is stricter than the resource upper limit for the control program 114. The details will be described below.
  • the control program 114 or the task management unit 1010 changes the execution management data of the control program 114 according to the resource used by the control program 114. Specifically, for example, when the resource used by the control program 114 (for example, memory usage) exceeds the resource upper limit 1303B (see reference numeral 1301), the control program 114 or the task management unit 1010 voluntarily As indicated by arrow 1302, the resource upper limit of the control program 114 is extended from the resource upper limit 1303B to the resource upper limit 1303A. In this case, the resource upper limit of the resource of the type is reduced for the information program 115.
  • the resource upper limit 1303B see reference numeral 1301
  • the resource upper limit of the control program 114 is extended from the resource upper limit 1303B to the resource upper limit 1303A. In this case, the resource upper limit of the resource of the type is reduced for the information program 115.
  • the resources used by the control program 114 of this type can be identified from the above-mentioned used resource management table 1013, for example.
  • the control program 114 or the task management unit 1010 causes the resource after the reduction. It may be determined whether the upper limit is equal to or more than the resources used by the information program 115.
  • the control program 114 or the task management unit 1010 may execute the expansion of the resource upper limit for the control program 114.
  • the control program 114 or the task management unit 1010 may perform any of the following. -Wait until the result of the judgment becomes true (until the resource used by the information program 115 becomes less than the resource upper limit after reduction). The operation of the control program 114 is stopped, and the resource upper limit for the control program 114 is expanded.
  • the resource upper limit of the control program 114 is changed according to the actually used resource of the control program 114. That is, the resource upper limit of the control program 114 (as a result, the resource upper limit of the information program 115) can be flexibly changed. For this reason, the degree of freedom of development for general users (developing users of the information program 115) is improved. Specifically, for example, a general user can develop the information program 115 without strictly considering the resource upper limit of the control program 114. This is because the resource upper limit of the information program 115 is appropriately changed according to the resource used by the control program 114 according to the change of the resource upper limit of the control program 114.
  • execution management data (resource upper limit) can be changed when the management user's permission is obtained as illustrated in FIG. 12, in place of changing the resource upper limit of the information program 115, the resource of the control program 114. It may be applied to the case of changing the upper limit.
  • the resource upper limit for the information program 115 is stricter than the resource upper limit for the control program 114. For example, when the resource used by the information program 115 exceeds its resource upper limit (see reference numeral 1311), the operation of the information program 115 stops (reference numeral 1312).
  • the upper limit of resources that can be used by the information program 115 (for example, the upper limit of resources that can be used by the information program 115, which is determined based on the resource upper limit indicated by the changed execution management data of the control program 114) is set. For example, when the resource upper limit indicated by the execution management data determined in step S1102 or S1202 exceeds, the task management unit 1010 limits the execution of the information program 115.
  • the restriction on the execution of the information program 115 is to refuse the installation (or the download itself) of the downloaded information program 115.
  • the restriction of execution of the information program 115 means that the following (A) or (B) is performed (see reference numeral 1321): (A) The resource upper limit indicated by the execution management data determined for the information program 115 exceeds the upper limit of the resources usable by the information program 115, (B) (A) is permitted by the administrative user, Execution of the information program 115 is prohibited (see reference numeral 1322). Note that (A) is the execution management in which the upper limit of the resources usable by the information program 115, which is determined based on the resource upper limit indicated by the changed execution management data of the control program 114, is determined for the information program 115. It may be less than the resource upper limit indicated by the data.
  • the resources used by the control program 114 and the information program 115 may change depending on the operation.
  • the resource used by the control program 114 exceeds the resource upper limit, the resource upper limit is expanded, and when the resource used by the information program 115 exceeds the resource upper limit, the operation of the information program 115 stops (the expansion of the resource upper limit is managed.
  • the resource limit cannot be extended until the user permits it). If the resource upper limit of the control program 114 is excessively high (if excessive resources are allocated to the control program 114), the resource upper limit of the control program 114 is reduced, or information is sent in response to permission from the management user.
  • the task management unit 1010 extends the resource upper limit of the information program 115 without stopping the operation of the control program 114. For example, it is assumed that the resource upper limit of each of the control program 114 and the information program 115 is at a position corresponding to a certain margin from the resource boundary. The resource used by the control program 114 may exceed the resource upper limit, but it is prohibited to exceed the resource boundary. In this case, the task management unit 1010 can extend the resource upper limit of the information program 115 from the current resource upper limit to the resource boundary (that is, up to the maximum value in the range of used resources), as indicated by reference numeral 1331. Is. Since the resource boundary is the maximum value of the resources used by the control program 114, expanding the resource upper limit of the information program 115 does not affect the operation of the control program 114.
  • the resource upper limit may be synonymous with the resource boundary or may be variable within a certain range from the resource boundary. In the latter case, the resource upper limit for one of the control program 114 and the information program 115 can be changed without affecting the operation of the other program.
  • the present invention is not limited to the above-described embodiment, but includes various modifications.
  • the above-described embodiments have been described in detail in order to explain the present invention in an easy-to-understand manner, and are not necessarily limited to those having all the configurations described.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Programmable Controllers (AREA)
  • Massaging Devices (AREA)
  • Valve Device For Special Equipments (AREA)
  • Iron Core Of Rotating Electric Machines (AREA)
  • Stored Programmes (AREA)

Abstract

制御プログラム及び情報プログラムが共存するコントロール装置においてプログラムが使用可能なリソースであるリソース上限を示す実行管理データの適切な変更を可能とする。コントロール装置が、1以上の対象プログラム(1以上の制御プログラムと1以上の情報プログラムとのうちの1以上のプログラム)の少なくとも1つを、プログラム配布装置からネットワーク及び1以上のネットワークポート経由でダウンロードし、当該ダウンロードのタイミングと異なるタイミングで、コントロール装置の複数の計算リソースに関し当該対象プログラムが使用可能なリソースであるリソース上限を示す実行管理データを変更する。各制御プログラムは、I/Oポートに接続された制御対象装置の制御情報を出力するスキャン動作を行うプログラムである。各情報プログラムは、スキャン動作と異なる情報処理を行うプログラムである。

Description

コントロール装置
 本発明は、概して、コントロール装置に関する。
 特許文献1(特開2004-362327号公報)には、「プラントの監視制御設備における監視用パーソナルコンピュータと制御用プログラマブルロジックコントローラをネットワークで接続した分散型監視制御システムにおいて、監視用汎用パーソナルコンピュータに制御用汎用プログラマブルロジックコントローラの情報管理ファイルを設け、前記制御用汎用プログラマブルロジックコントローラに、この制御用汎用プログラマブルロジックコントローラの情報自動掃出ツールを設けて、前記汎用パーソナルコンピュータに入力された情報と前記汎用制御用プログラマブルロジックコントローラのプロセス情報を汎用ソフトウェアで統合管理することを特徴とする分散型監視制御システム。」が開示されている(請求項1参照)。
 特許文献2(特開2006-178818号公報)には、「リアルタイムOSと、メモリと、ラダー言語プログラムをモーション制御周期に同期させて実行する実行手段と、前記ラダー言語プログラムとC言語プログラムの両方が動作するマイクロプロセッサとを備えたモーションコントローラにおいて、エンジニアリングツールのプロジェクト設定ファイルに従ってロードされた前記C言語プログラムがタスク型プロジェクトであれば前記リアルタイムOSのタスクとして動作させ、前記C言語プログラムが関数型プロジェクトであれば他のタスクから関数としてコール可能な状態で前記メモリに格納することを特徴とするモーションコントローラ。」が開示されている(請求項1参照)。
特開2004-362327号公報 特開2006-178818号公報
 特許文献1には、「しかしながら、従来の分散型監視制御システム41は、オペレータズテーション50a~50n、ディジタル制御装置60a~60n、伝送路52a~52n、基幹伝送路42、伝送路61a~61n等が分散型監視制御システムメーカ毎の専用機器であり、高価かつ、他メーカー製品と互換性がないため、拡張性が劣り、また、近年のパソコン等汎用機器の性能向上に伴い、能力的にも専用機器を凌ぐものもあるにもかかわらず、汎用機器が使用されていない。」と記載されている(0004段落参照)。
 分散型監視制御システムメーカ毎の専用機器はプログラマブルロジックコントローラであり、このような装置構成とする背景には、プログラマブルロジックコントローラはI/Oユニット等の制御を行うものであり、工場内の生産や搬送等に用いられる装置に接続されるため、制御に遅延が生じると工場内の装置等の動作が不安定になったり、予期しない動作が生じたりする場合がある。そのため、従来のプログラマブルロジックコントローラは、複雑な処理をさせないようになっていた。特許文献1に開示される発明も同様に複雑な処理をさせないようにし、監視用汎用パーソナルコンピュータに制御用汎用プログラマブルロジックコントローラの情報管理ファイルを設けることで、プログラマブルロジックコントローラの制御に影響を与えないようにすることが開示されている。
 したがって、特許文献1は、プログラマブルロジックコントローラ内で、情報処理を行うことは考慮されていない。
 特許文献2の課題の欄には、「ラダー言語アプリケーションプログラムとC言語アプリケーションプログラムが異なるマイクロプロセッサ上で動作するため、ラダー言語アプリケーションからC言語アプリケーションプログラムを関数としてコールすることができないという問題もあった。」と記載されている。
 すなわち、特許文献2は、同一のマイクロプロセッサ上で、ラダー言語アプリケーションプログラムがC言語アプリケーションプログラムを関数としてコールすることを目的としている。
 特許文献2には、モーションコントローラとエンジニアリングツールとからなり、モーションコントローラにおいてラダー言語タスクとC言語タスクとが共存して動作し、エンジニアリングツールは、C言語のプログラムと設定ファイルとをモーションコントローラにダウンロードするシステムの発明が記載されている。
 また、モーションコントローラにラダー言語タスクとC言語タスクが共存し、ラダー言語タスクとC言語プログラムのタスクは、リアルタイムOS(Operating System)上で動作することが記載されている。
 C言語プログラムがタスク型プロジェクトであれば、リアルタイムOSのタスクとして動作し、関数型プロジェクトであれば他のタスクから関数としてコール可能な状態でモーションコントローラのメモリに格納される。
 すなわち、関数型プロジェクトであれば、他のタスク、例えばラダー言語タスクは、関数型プロジェクトのプロジェクト名称を引数として入力してC言語関数呼び出し用ファンクション・ブロックを実行する。
 つまり、ラダー言語タスクがC言語の関数型プロジェクトを呼び出し、モーションコントローラに接続された工作機械等を数値制御することとなる。
 C言語タスクは、タスク型プロジェクトのプロジェクト名称とタスクの起床や中断など操作の種別を引数として入力してタスク操作用APIをコールする。タスク操作用APIは、プロジェクト名称をタスク名称として扱いタスク操作の種別に対応したリアルタイムOSが提供する機能をコールして他のタスク型プロジェクトのタスク操作を間接的に実現することが記載されている。
 また、タスク型プロジェクトとしてロードされたC言語プログラムについては、ラダー言語プログラムの実行タイミングで、タスク型プロジェクトとしてロードされたC言語プログラムの実行制御が可能であることが記載されている。
 すなわち、タスク型プロジェクトとしてロードされたC言語プログラムは、モーション制御に同期した動作を行う用途、高度な数値計算のように処理に時間がかかるような用途に用いることができるとされている。
 つまり、モーションコントローラに接続された工作機械等を制御するためラダー言語プログラムの実行タイミングで、タスク型プロジェクトとしてロードされたC言語プログラムの実行制御を行うために利用されている。
 よって、関数型とタスク型のいずれの場合であっても、ラダー言語の一部をC言語として記述あるいはラダー言語プログラムの実行タイミングでC言語プログラムの実行制御をする。つまり、特許文献2に記載のC言語プログラムについては、モーションコントローラに接続された工作機械等を制御するために用いられる技術的思想が開示されている。
 したがって、特許文献2には、C言語プログラムを装置に接続された工作機械等のハードウェアを制御する以外の目的に利用することは考慮されていない。
 また、工作機械等を適切に制御することを維持するために、複数の計算リソースに関しプログラムが使用可能なリソースであるリソース上限を示す実行管理データを基にプログラムの実行を制御することが考えられるが、特許文献1及び2のいずれも、そのようなデータ及びそれの変更に関する技術を開示も示唆もしていない。
 本発明は以上の点を考慮してなされたもので、コントロール装置に搭載されたプログラムが使用可能なリソースであるリソース上限を示す実行管理データを適切に変更することが可能な技術を提供することを目的とする。
 かかる課題を解決するため、本発明の一例を挙げるならば、1以上の制御対象装置の動作を制御するコントロール装置は、当該1以上の制御対象装置の動作の制御に関わる複数種類の計算リソースを含む複数の計算リソースを備える。複数の計算リソースは、インターフェース部、記憶部及びプロセッサ部を含む。インターフェース部は、1以上の制御対象装置に接続された1以上のI/Oポートと、ネットワークに接続された1以上のネットワークポートとを含む。記憶部は、1以上のメモリを含む。プロセッサ部は、1以上のプロセッサを含む。プログラム群(1以上の制御プログラム及び1以上の情報プログラム以外の1以上のプログラム)が、1以上の対象プログラム(1以上の制御プログラムと1以上の情報プログラムとのうちの1以上のプログラム)の少なくとも1つを、プログラム配布装置からネットワーク及び1以上のネットワークポート経由でダウンロードする。当該ダウンロードのタイミングと異なるタイミングで、プログラム群が、複数の計算リソースに関し当該対象プログラムが使用可能なリソースであるリソース上限を示す実行管理データを変更する。
 1以上の制御プログラムの各々は、I/Oポートに接続された制御対象装置の制御情報を出力するスキャン動作を行うプログラムである。
 一方、1以上の情報プログラムの各々は、スキャン動作と異なる情報処理を行うプログラムである。
 本発明によれば、コントロール装置に搭載されたプログラムが使用可能なリソースであるリソース上限を示す実行管理データを適切に変更することが可能である。すなわち、コントロール装置に搭載された複数のプログラムは当該コントロール装置が有するハードウェアリソースを適切に変更することができる。
第1の実施の形態に係るコントロール装置を含むシステムのハードウェア構成例を示すブロック図である。 第1の実施の形態に係るコントロール装置を含むシステムの機能的な概略構成を示すブロック図である。 実行管理テーブルのテーブル構成例を示す図である。 プログラムダウンロード処理の流れの一例を示すフローチャートである。 プログラム実行処理の流れの一例を示すフローチャートである。 実行管理テーブルのテーブル構成例を示す図である。 実行管理テーブルのテーブル構成例を示す図である。 設定範囲テーブルのテーブル構成例を示す図である。 リソース境界とその変更の第1の例を模式的に示す図である。 リソース境界とその変更の第2の例を模式的に示す図である。 リソース境界とその変更の第3の例を模式的に示す図である。 制御プログラムと情報プログラムが共存するプラットフォームの別の一例を示す。 第3の実施の形態に係るコントロール装置の機能的な概略構成を示すブロック図である。 実行管理データの変更の第1の例を示す図である。 実行管理データの変更の第2の例を示す図である。 制御プログラム及び情報プログラムの各々にとってのリソース上限の意義の一例を示す模式図である。
 以下、図面について、本発明の実施の形態について説明する。
 特に必要なとき以外は同一又は同様な部分の説明を原則として繰り返さない。所定の図に記載された符号について他の図で説明をする場合であっても同一又は同様な部分の説明は省略する。
 以下の実施の形態では便宜上その必要があるときは、複数のセクション又は実施の形態に分割して説明するが、特に明示した場合を除き、それらはお互いに無関係なものではなく、一方は他方の一部又は全部の変形例、詳細、補足説明などの関係にある。
 以下の実施の形態において、要素の数など(個数、数値、量、範囲などを含む)に言及する場合、特に明示した場合及び原理的に明らかに特定の数に限定される場合などを除き、その特定の数に限定されるものではなく、特定の数以上でも以下でも良いものとする。
 以下の実施の形態において、「インターフェース部」は、1以上のインターフェースを含む。1以上のインターフェースは、1以上の同種のインターフェース装置であっても良いし2以上の異種のインターフェース装置であっても良い。
 以下の実施の形態において、「記憶部」は、1以上のメモリを含む。記憶部に関して少なくとも1つのメモリは、揮発性メモリで良い。記憶部は、主に、プロセッサ部による処理の際に使用される。記憶部は、メモリの他に、1以上の不揮発性の記憶装置(例えば、HDD(Hard Disk Drive)又はSSD(Solid State Drive))を含んでも良い。
 以下の実施の形態において、「プロセッサ部」は、1以上のプロセッサを含む。少なくとも1つのプロセッサは、典型的には、CPU(Central Processing Unit)のようなマイクロプロセッサであるが、GPU(Graphics Processing Unit)のような他種のプロセッサでも良い。1以上のプロセッサの各々は、シングルコアでも良いしマルチコアでも良い。プロセッサは、処理の一部又は全部を行うハードウェア回路を含んでも良い。
 以下の実施の形態において、「kkk部」(インターフェース部、記憶部及びプロセッサ部を除く)の表現にて機能を説明することがあるが、機能は、1以上のコンピュータプログラム(後述の制御プログラム及び情報プログラムを除く)がプロセッサ部によって実行されることで実現されても良いし、1以上のハードウェア回路(例えばFPGA(Field-Programmable Gate Array)又はASIC(Application Specific Integrated Circuit))によって実現されても良い。プログラムがプロセッサ部によって実行されることで機能が実現される場合、定められた処理が、適宜に記憶部及び/又はインターフェース部等を用いながら行われるため、機能はプロセッサ部の少なくとも一部とされても良い。機能を主語として説明された処理は、プロセッサ部あるいはそのプロセッサ部を有する装置が行う処理としても良い。プログラムは、プログラムソースからインストールされても良い。プログラムソースは、例えば、プログラム配布計算機又は計算機が読み取り可能な記録媒体(例えば非一時的な記録媒体)であっても良い。各機能の説明は一例であり、複数の機能が1つの機能にまとめられたり、1つの機能が複数の機能に分割されたりしても良い。
 また、以下の説明では、「xxxテーブル」といった表現にて、入力に対して出力が得られる情報を説明することがあるが、当該情報は、どのような構造のデータでも良いし、入力に対する出力を発生するニューラルネットワークのような学習モデルでも良い。従って、「xxxテーブル」を「xxx情報」と言うことができる。また、以下の説明において、各テーブルの構成は一例であり、1つのテーブルは、2以上のテーブルに分割されても良いし、2以上のテーブルの全部又は一部が1つのテーブルであっても良い。
 以下の実施の形態において、その構成要素(要素ステップ等も含む)は、特に明示した場合及び原理的に明らかに必須であると考えられる場合等を除き、必ずしも必須のものではないことは言うまでもない。
 コントロール装置は、シーケンス制御装置、モーション制御装置又はプログラマブル・ロジック・コントローラ(PLC)とも呼ばれている。コントロール装置において、ラダー・ロジック(LD言語)、シーケンシャル・ファンクション・チャート(SFC言語)、ファンクション・ブロック(FBD言語)、ストラクチャード・テキスト(ST言語)、インストラクション・リスト(IL言語)のような制御装置特有のプログラミング言語、あるいはC言語のような情報通信分野で使われる汎用的なプログラミング言語を用いて記述され、シーケンス制御やモーション制御に代表される制御処理を実行するプログラムを「制御プログラム」と呼ぶ。制御プログラムは、I/Oモジュール等を介して実際にモータ等を含む周辺機器を操作し、生産システム等を適切に動作させる必要がある。そのため、制御プログラムは、処理を設定された時間内に確実に実行すること(リアルタイム性)が求められる。
 制御プログラムは、制御内容が記述された命令によって制御対象装置(例えば、装置部品のようなハードウェアモジュール、1以上のハードウェアモジュールを備えた装置、又は、複数の装置を備えたシステム)を制御する。例えば、「I/Oモジュール等を介して実際にモータ等を含む周辺機器を操作し、生産システムを適切に動作させる」といった制御では、「生産システム」、又は、「生産システムを構成する少なくとも1つの装置」が、「制御対象装置」である。制御対象装置は、典型的には、コントロール装置におけるI/O制御装置(インターフェース部の一例)経由で接続された装置である。制御対象装置は、制御プログラムから直接的に(例えば、コントロール装置に接続されたI/Oモジュールや周辺機器を介さずに)制御されても良いし、制御プログラムから間接的に(例えば、コントロール装置に接続されたI/Oモジュールや周辺機器を介して)制御されても良い。
 制御対象装置を制御する言語は、ラダー言語等の制御特有のプログラミング言語に限らず、C言語等の汎用プログラミング言語で記述される場合もあるため、制御対象装置(典型的にはハードウェア)を制御するプログラムを「制御プログラム」と呼ぶ。
 ラダー言語等で記述された制御プログラムは、当該ラダー言語等の記述において指定された制御対象装置の状態を読み込み又は書き込み(取得又は更新)をする「スキャン動作」を行う。
 このスキャン動作は所定間隔で行う必要があり、この所定間隔を「スキャンタイム」と呼ぶ。スキャンタイムは、制御プログラムの演算時間に関するものであり、制御に関する演算周期又は制御に関する演算を繰り返し所定間隔で行うことから「サイクルタイム」とも呼ばれることもある。
 コントロール装置に接続される制御対象装置は、例えば、工場内の生産や搬送等に用いられる装置に接続されるため、スキャン動作が遅れると、工場内の装置等の動作が不安定になったり、予期しない動作が生じたりする場合がある。このため、所定のスキャンタイム内にスキャン動作を行う必要がある。
 スキャンタイムはコントロール装置が制御する制御対象装置の数や種類の増加に応じて長くなるが、スキャンタイム内で制御対象装置のスキャン動作をすることが重要である。
 コントロール装置に、I/O(Input/Output)ポートが内蔵又は接続される。I/Oポートは、I/Oモジュール又はI/Oユニット等が有する場合がある。以下、I/Oポートそれ自体、又は、I/Oポートを有する装置(I/Oモジュール又はI/Oユニット等)を、「I/Oポート」と総称する場合がある。
 I/Oポートは、制御対象装置、例えば、生産設備におけるベルトコンベア、リミットスイッチ、アクチュエータ(例えばモータ)に接続され、制御対象装置の動作に関する制御に使用されるものである。I/Oポートは、デジタル又はアナログのI/Oポートである。例えば、アナログI/Oポートは、コントロール装置の制御対象装置の電圧、電流、温度等の情報の読み書きに使用される。
 制御プログラムに基づいてコントロール装置のI/Oポートから送信される制御情報を有線又は無線で受信するインバータユニットやCNC(Computerized Numerical Control)はインバータやCNC自体がアクチュエータのモーション制御を行うため、リアルタイム性が求められる。
 また、制御対象装置の制御とは、制御対象装置が接続されている状態のI/Oポートの動作を制御することをいう。つまり、制御プログラムとは、制御対象装置が接続されたI/Oポートの制御を行うプログラム、言い換えれば、制御対象装置が接続されたI/Oポートに当該制御対象装置の制御情報を出力する(具体的には、例えば、当該制御情報の出力を含むスキャン動作を行う)プログラムである。
 このようなコントロール装置において、制御対象装置の制御に加えて、情報処理(例えば、複雑な算術演算やSCADA、MES、クラウドシステムとの情報の送受信のような情報通信処理)を行うことを検討する。このような情報処理は、上述の制御特有の言語でプログラミングすることが困難な場合があり、C言語又はJava(登録商標)言語などの情報処理分野で使われるプログラミング言語を用いて記述することがある。このような情報処理を実行するプログラムを「情報プログラム」と呼ぶ。
 制御プログラムと情報プログラムの違いの一例について説明する。
 上記したように制御プログラムは、コントロール装置のI/Oポートの制御に関係したプログラムであり、情報プログラムは、情報処理(例えば、上述のように、算術演算や、クラウドとの通信)を行うプログラムである。
 制御プログラムは、ラダーやST言語等で記述され、java(登録商標)やpython等に代表される汎用言語に比べてリアルタイム性が高い。情報プログラムは、java(登録商標)やpython等に代表される言語で記述され、ラダー等よりも情報処理に適している。
 C言語等のリアルタイム性が高く、ハードウェアの制御にも適しており、また、情報処理にも適した言語は制御プログラムと情報プログラムのいずれにも利用可能な場合がある。
 また、情報プログラムは、先に説明した制御プログラム以外のプログラム(但し、例えば、後述のタスク管理部110、制御プログラム実行部111、情報プログラム実行部112及びI/O制御部117を実現するための1以上のプログラムを除く)である。制御対象装置がI/Oポートを介してコントロール装置に接続されるが、情報プログラムは、制御対象装置に接続されるアナログやデジタルのI/Oポート(但し、情報プログラムとの共有が許容されているI/Oポートを除く)へアクセスしないプログラムである。別の言い方をすれば、制御プログラムは、制御対象装置に接続されるアナログやデジタルのI/Oポートに制御対象装置の制御情報を送信することを含むスキャン動作を行うプログラムであるが。一方、情報プログラムは、スキャン動作を含まない(スキャン動作とは異なる)情報処理を行うプログラム(つまり、スキャン動作を行うことがないプログラム)である。
 制御プログラムと情報プログラムを搭載する以下の実施の形態に係るコントロール装置は、制御プログラムの他に情報プログラムを実行しても、制御プログラムを停止させることなく、又は、制御プログラムのスキャン動作を遅らせたり、制御プログラムの予期しない動作をさせたりすることなく、情報プログラムの追加、削除、更新(書き換え)又は入れ替えといったプログラム変更を行うことを実現するものである。
[第1の実施の形態]
 第1の実施の形態について図1等を用いて説明する。
 図1は、第1の実施の形態に係るコントロール装置を含むシステムのハードウェア構成例を示すブロック図である。
 プログラム配布装置101、コントロール装置109、1以上の管理ユーザ計算機151M及び1以上の一般ユーザ計算機151Gが情報ネットワーク108に接続されている。また、コントロール装置109及び1以上のI/Oモジュール119(I/Oポートの一例)が制御ネットワーク118に接続されている。情報ネットワーク108は、情報プログラムが行う情報通信処理(つまり、制御情報の送信とは異なる通信処理)の際に使用される通信ネットワークである。制御ネットワーク118は、制御プログラムが行う制御情報送信の際に使用される通信ネットワークである。情報ネットワーク108及び制御ネットワーク118は、異種のネットワークでも良いし、同種のネットワーク(例えばいずれもLAN(Local Area Network))でも良い。また、情報ネットワーク108の少なくとも一部と制御ネットワーク118の少なくとも一部が一体であっても良い。
 管理ユーザ計算機151Mは、少なくとも管理ユーザが操作する計算機である。一般ユーザ計算機151Gは、少なくとも一般ユーザが操作する計算機である。いずれの計算機も、プログラム配布装置101及びコントロール装置109の少なくとも1つに対する入出力コンソールとして機能する。具体的には、例えば、いずれの計算機も、キーボード及びポインティングデバイスのような入力デバイスと、表示デバイスのような出力デバイスとを有する。「管理ユーザ」は、制御プログラムを記述するユーザ(例えば、自動機械や生産設備といった制御対象に関して深い知識を有する技術者)であり、「一般ユーザ」は、情報プログラムを記述するユーザ(例えば、制御対象に関して深い知識を持たない一般的なシステムエンジニア)である。コントロール装置109が、管理ユーザ計算機151M及び一般ユーザ計算機151Gのうちの少なくとも1つから制御プログラム及び情報プログラムの少なくとも1つについての記述(パラメータ群の設定を含む)を受け付けても良いし、コントロール装置109に代えて又は加えて、プログラム配布装置101が、当該記述を受け付けても良い。以下、管理ユーザ及び一般ユーザを「ユーザ」と総称することがある。ユーザは、管理ユーザ及び一般ユーザのいずれかに代えて、システム管理者(例えば、プログラム配布装置101とコントロール装置109で構成されたシステムであるコントロールシステムの管理者)といった別種のユーザであってもよい。
 1以上のI/Oモジュール119に1以上の周辺機器120が接続されている。周辺機器120は、センサ及びドライブなどの少なくとも1つの機器である。I/Oモジュール119は、周辺機器120が必要に応じて着脱可能に装着されるバススロットとして機能する。制御対象装置は、周辺機器120経由又は非経由でI/Oモジュール119に接続される。制御対象装置とI/Oモジュール119は、1:1、1:多、多:1及び多:多のいずれでも良い。また、一部のI/Oモジュール119は、制御ネットワーク118に加えて情報ネットワーク108に接続されても良い、すなわち、当該一部のI/Oモジュール119は、制御プログラムと情報プログラムに共有のデバイスであっても良い。
 プログラム配布装置101は、制御プログラム及び情報プログラムを管理している。プログラム配布装置101は、EPROM201、CPU202、メインメモリ203、周辺制御装置205、不揮発性記憶装置206及びネットワークインターフェース(図示のネットワークI/Fに相当)207を備える。プログラム配布装置101は、ネットワークインターフェース207を介して情報ネットワーク108に接続されている。
 プログラム配布装置101は、周辺制御装置205の制御によって情報ネットワーク108を経由してコントロール装置109に対して制御プログラムを提供したり情報プログラムを提供したりする。このプログラム配布装置101では、CPU202の制御によって、不揮発性記憶装置206に予め格納されている制御プログラム及び情報プログラムを要求に応じて提供する。
 周辺制御装置205は、バス204を介してEPROM201、CPU202及びメインメモリ203に接続されている。CPU202は、EPROM201に予め格納されている管理プログラムをメインメモリ203上に読み出して実行し、この管理プログラムによって上記制御プログラム及び情報プログラムを管理している。
 この管理プログラムは、要求に応じて逐次、上述した制御プログラム及び情報プログラムのうち少なくとも一方のプログラムを提供する。この管理プログラムがCPU202によって実行されることにより、後述するプログラム配布部102及び実行管理データ生成部103が実現される。
 一方、コントロール装置109は、EPROM208、CPU209、メインメモリ210、周辺制御装置212、I/O制御装置214、不揮発性記憶装置215及びネットワークインターフェース(図示のネットワークI/Fに相当)213を備えている。I/O制御装置214及びネットワークI/F213が、インターフェース部の一例である。EPROM208、メインメモリ210及び不揮発性記憶装置215が、記憶部の一例である。CPU209及び周辺制御装置212がプロセッサ部の一例である。コントロール装置109では、プログラム配布装置101から提供される制御プログラム及び情報プログラムが同一のプラットフォーム上で共存しつつ動作する。
 周辺制御装置212は、ネットワークI/F213、I/O制御装置214、不揮発性記憶装置215及びバス211に接続されている。このバス211には、その他にもEPROM208、CPU209及びメインメモリ210が接続されている。
 EPROM208には、初期状態で予めコントロール装置109に用意されている制御プログラム及び情報プログラムが格納されている。CPU209は、複数のコアを備えており、各コアを独立させて動作させることができる。
 コントロール装置109に搭載される制御プログラムと情報プログラムはそれぞれひとつずつだけでなく、コントロール装置109が使用できるリソースをプログラムごとに設定することにより、複数の制御プログラム及び/又は複数の情報プログラムを搭載することができる。
 CPU209は、EPROM208に予め格納されている制御プログラム及び情報プログラムをメインメモリ210に読み出して実行し、これら制御プログラム及び情報プログラムの動作を制御する。
 すなわち、これらの制御プログラム及び情報プログラムが読み出されて実行されると、後述する図2の制御プログラム114及び情報プログラム115となる。
 制御プログラム114と情報プログラム115は異なる役割を有する。
 制御プログラム114は、コントロール装置109のI/Oモジュール119にアクセスし、制御対象装置を制御する。また、制御プログラム114は、読み込んだ結果を基に演算を行い、制御対象装置の制御のために、当該演算結果に基づくアクセスを、I/O制御装置214に対して行っても良い。制御プログラム114は、制御対象装置の制御のために、当該制御対象装置が接続されたネットワークI/F213に対するアクセスを行っても良い。すなわち、I/Oモジュール119に代えて又は加えて、I/O制御装置214及びネットワークI/F213の少なくとも1つも、「I/Oポート」の一例となり得る。つまり、制御プログラム114は、制御対象装置の制御のために(制御対象装置の制御情報の送信のために)、当該制御対象装置が接続されたI/Oポートに対するアクセスを行う、言い換えると、当該I/Oポートを制御する命令を送信する。
 一方、情報プログラム115は、I/O制御装置214等の情報を取得し、演算し、演算した結果を、ネットワークI/F213を介して、コントロール装置109に接続されている他の装置又は設備に送信する。この段落で言う「他の装置又は設備」は、コントロール装置109に接続されているが制御プログラム114の制御対象装置とは異なる装置又は設備である。
 コントロール装置109は、制御プログラム114と情報プログラム115の両者がアクセスできる共有領域(図示しない)を有することができる。この共有領域は、メインメモリ210及び不揮発性記憶装置215に確保されて良い。共有領域は、例えば、共有ディレクトリといった論理的な記憶領域でもよいし、物理アドレス(例えばメモリアドレス)で指定された物理的な記憶領域でもよい。例えば、制御プログラム114が、情報プログラム115に見せてもよいデータの値を共有領域に読み書きするタスクを生成し、当該タスクが実行されることで、情報プログラムから、当該共有領域内のデータの値にアクセス可能になって良い。「見せてもよいデータの値」とは、広義には、1以上の情報プログラム115と共有する情報である共有情報である。共有情報は、例えば、I/Oポートの状態を示す(又は、I/Oポートに関して他種の情報を含んだ)ポート情報や、制御プログラムの内部変数等に関する制御プログラム情報が挙げられる。共有領域は、例えば、後述のタスク管理部110により設けられてもよいし、同一の共有領域にアクセスする制御プログラム114及び情報プログラム115の少なくとも1つにより設けられてもよい。
 このように、情報プログラム115が、制御プログラム114の制御対象装置が接続されたI/Oポートに直接アクセスすることを防止できるため安全性が向上する。言い換えれば、情報プログラム115が、制御プログラム114の制御対象装置が接続されたI/Oポートに直接アクセスすることに代えて、共有領域内の共有情報を参照することで、I/Oポートの状態、又は、制御プログラム114の状態を知ることができる。
 また、情報プログラム115は、ネットワークI/F213を介して接続されているが制御プログラム114の制御対象装置ではない設備又は装置から情報を受信しても良い。情報プログラム115は、この受信した情報等を演算し、ネットワークI/F213を介して他の装置又は設備と通信することができる。
 CPU209は、周辺制御装置212を制御してネットワークI/F213を介してプログラム配布装置101からの制御プログラム及び情報プログラムのダウンロードを制御する。
 CPU209は、周辺制御装置212を制御してI/O制御装置214及び複数のI/Oモジュール119を介して複数の周辺機器120を制御する。周辺機器120は、I/Oモジュール119に1:1で対応付けられており、CPUは、例えば、I/Oモジュール119と1:1のデジタルI/Oレジスタを管理し、レジスタ操作で逐一I/Oモジュール119の操作が可能となっている。
 図2は、第1の実施の形態に係るコントロール装置を含むシステムの機能的な概略構成例を示すブロック図である。
 プログラム配布装置101は、プログラム管理データベース(図示のプログラム管理DBに相当)104、プログラム配布部102及び実行管理生成部103を備えている。プログラム管理DB104は、メインメモリ203及び不揮発性記憶装置206の少なくとも一部に基づく。これらプログラム配布部102及び実行管理生成部103は、既述の管理プログラムがCPU202に実行されることにより実現される。
 プログラム管理データベース104は、制御プログラム105及び情報プログラム106を管理する。実行管理生成部103は、制御プログラム105及び情報プログラム106のうち少なくとも一方のプログラムがコントロール装置109において実行される際のパラメータを表す実行管理データを生成する。この実行管理データは、例えば、制御プログラム105及び情報プログラム106の各タスクの優先度、及び、制御プログラム105及び情報プログラム106ごとに使用可能な上限記憶容量のような1以上のパラメータである。
 プログラム配布部102は、要求に応じて上記少なくとも一方のプログラムを提供する際に併せて上記少なくとも一方のプログラムに対応するパラメータ値を示す実行管理データを提供する。
 コントロール装置109は、シーケンス制御装置、モーション制御装置、又はプログラマブル・ロジック・コントローラ(PLC)とも呼ばれることがある。ラダー・ロジック(LD言語)、シーケンシャル・ファンクション・チャート(SFC言語)、ファンクション・ブロック(FBD言語)、ストラクチャード・テキスト(ST言語)、インストラクション・リスト(IL言語)のような制御特有のプログラミング言語で制御内容が記述される。また、場合により、C言語等の汎用プログラミング言語での記述が、ラダー言語等での記述の一部又は全部に差し替えられても良い。
 このようなコントロール装置109に接続される制御対象を制御する制御プログラム105(114)は、ラダー言語を代表とする制御特有のプログラミング言語を用いることが有効である。ラダーの表示が可能であり、制御対象の状態の監視等に有効である。
 一方、情報プログラム106(115)は、このようなコントロール装置109における情報処理(例えば、複雑な算術演算や、SCADA、MES、クラウドシステムとの情報の送受信のような情報通信処理)に有効である。
 このような情報処理は、制御特有の言語でプログラミングすることが困難な場合があり、いわゆるC言語又はJava(登録商標)言語などの情報通信分野で使われるプログラミング言語を用いて記述する場合がある。
 プログラム管理データベース104は、上述した制御内容を実行する機能を有する制御プログラム105、及び、上述した情報処理を実行する機能を有する情報プログラム106を管理している。
 コントロール装置109は、タスク管理部110、制御プログラム実行部111、情報プログラム実行部112、実行管理テーブル113及びI/O制御部117を備えている。
 制御プログラム実行部111は、例えばランタイムライブラリであり、制御プログラム114からの呼び出しに応じて制御プログラム114とともに動作する。情報プログラム実行部112は、例えばいわゆるライブラリであり、情報プログラム115からの呼び出しに応じて情報プログラム115とともに動作する。
 なお、制御プログラム114は、プログラム配布装置101からコントロール装置109に配布済みの制御プログラム105(又は当該制御プログラム105の実行に伴い生成された1以上のタスク)に相当し、情報プログラム115は、プログラム配布装置101からコントロール装置109に配布済みの情報プログラム106(又は当該情報プログラム106の実行に伴い生成された1以上のタスク)に相当する。
 実行管理テーブル113は、プログラム配布装置101から提供された上記少なくとも一方のプログラムとともに受け取った上記実行管理データが保存される。
 一方、タスク管理部110は、主として2つの機能、具体的には、プログラム受信機能及びプログラム実行管理機能を有する。プログラム受信機能は、要求に応じてプログラム配布装置101から提供される上記少なくとも一方のプログラムを受信する機能である。一方、プログラム実行管理機能は、上記少なくとも一方のプログラムを実行する際に、実行管理テーブル113に保存された実行管理データに基づいて上記少なくとも一方のプログラムの実行を制御する機能である。
 I/O制御部117は、制御プログラム114からの制御情報を当該制御情報の送信先に転送する。
 上述したようにコントロール装置109は、制御プログラム114及び情報プログラム115の各タスクが使用する所定の記憶容量の記憶領域を有するメインメモリ210を備える。
 ここで、プログラム配布装置101では、実行管理生成部103が、実行管理データとして少なくとも、制御プログラム105及び情報プログラム106の各タスクの優先度、及び、制御プログラム105及び情報プログラム106の各タスクによって使用可能なメインメモリ210の上限記憶容量の少なくとも一方のパラメータ値を示す実行管理データを生成する。
 図3は、図2に示す実行管理テーブル113のテーブル構成例を示す。
 実行管理テーブル113は、制御プログラム114及び情報プログラム115の各々について、エントリを有する。各エントリは、例えば、プログラム名301、プログラム種別302、タスク優先度303、実行周期304、メモリ上限305、CPUコア番号306、利用デバイス307及び専有デバイス308といった情報を格納する。以下、1つのプログラムを例に取る(図3の説明において「対象プログラム」)。
 プログラム名301は、対象プログラムの名称を表している。プログラム種別302は、対象プログラムが制御プログラム114であるか情報プログラム115であるかというプログラムの種別を表している。なお、上述したプログラム名301の先頭3文字においても、制御プログラム114であるか情報プログラム115であるかを識別可能である。「CTL」は制御プログラム114を表しており、「ICT」は情報プログラム115を表している。以下、制御プログラム114及び情報プログラム115の各々を、プログラム名で表現することがある。
 タスク優先度303は、対象プログラムに対応するタスクの優先度を表している。タスク優先度303では、例えば「0(優先度:高)」から「20(優先度:低)」までの間で優先度が設定可能である。つまり、タスク優先度303としての値が小さいほど優先度が高い。
 実行周期304は、対象プログラムにおける定常処理が実行される周期を表している。「実行周期」とはスキャンタイムである。図示の例によれば、CTL001のスキャンタイムが10msecであり、CTL002のスキャンタイムは1msecでる。スキャン動作は、制御プログラム114及び情報プログラム115のうちの制御プログラム114に特有の動作であるため、実行周期304は、制御プログラム114について有効な値であるが、情報プログラム115については無効な値である。実行周期304(スキャンタイム)は、エンジニアリングツールでシミュレーションによって特定された値、又は、実際にコントロール装置109にて制御プログラム114を実行することにより特定されたスキャンタイムであっても良い。
 メモリ上限305は、対象プログラムがメインメモリ203の記憶領域において使用可能な記憶容量の上限を表している。
 CPUコア番号306は、コントロール装置109のCPU209に搭載されている複数のコアのうちの対象プログラムに割り当てるコアの番号を表している。
 利用デバイス307は、対象プログラムが利用可能なデバイスである利用デバイス、具体的には、対象プログラムが利用可能なI/Oモジュール119(I/Oモジュール119に接続されている利用可能な周辺機器120)を表している。
 専有デバイス308は、対象プログラムに対応した利用デバイス307が表す1以上の利用デバイス(I/Oモジュール119)のうち対象プログラムに専有されるデバイスである専有デバイス(すなわち、対象プログラムが他の制御プログラム114又は情報プログラム115と共有不可のI/Oモジュール119)を表す。
 図示の例によれば、例えば、下記のことが言える。
 CTL001は、制御プログラムである。CTL001について、例えば次の通りである。すなわち、タスク優先度は、CTL002よりも低く設定されている。また、メモリ上限は16MBであり、使用するCPUコアの番号は0である。利用デバイスはDI1とDO1(コントロール装置のデジタル入力1とデジタル出力1)である。
 DI1とDO1を、他のプログラムが使用しないようにCTL001が専有して利用するように設定されている。コントロール装置において、専有デバイス(専有デバイス308として設定されたデバイス)が複数のプログラム間で共有されないため、専有デバイス(ここではDI1とDO1)に関係する制御が不安定になることを防止することができる。
 また、CTL002は、利用デバイスがeth1、eth2、シリアル1である制御プログラム、具体的には、Ethernet(登録商標)のポートを2つ、RS-232Cのポートを1つ利用する制御プログラムである。また、CTL001よりもCTL002の方がリアルタイム性が高いため、タスク優先度は、CTL001よりも高い。
 CTL002は、eth2が例えばモーション制御に利用されるデバイスである場合を示す。モーション制御はリアルタイム性が高く他の処理も優先されるため、4つのプログラムの中で最も優先度が高く設定されている。
 また、CTL002が使用するCPUコアの番号は1であり、CTL001とICT001とICT006の使用するCPUコアの番号が0であることから、CTL002は、番号が1のCPUコアを専有する。
 CTL002は、タスク優先度303に規定される優先度のみならず、CPU209が有する複数のコアのうち番号1のコアを専有する観点からも、優先度が高いことがわかる。このような設定を行うことで、CTL002が制御プログラムの中でも優先度を高い状態とすることができる。
 次に、メモリ上限305について説明する。
 メモリ上限が設定されない場合には、実際に演算を行う際に各プログラムが際限なくメモリを確保し使用することが可能となる。例えば、情報プログラムが使用できるメモリ上限が設定されない場合には、制御プログラムが使用する可能性があるが確保されていない領域を情報プログラムが確保する場合がある。しかし、例えば、大量にメモリを使用するプログラムを追加した場合、当該プログラムの追加に伴いシステム全体のメモリを使い切ってしまうような場合が起こりうる。このような場合、コントロール装置又はOSがダウンすることで制御プログラムの動作が停止したり、OSによる強制的なメモリ開放機能の発動により制御プログラムの処理が妨げられスキャンタイム内にスキャン動作を完了できなくなったりといったような場合がある。
 そこで、本実施の形態では、メモリ上限305の合計値をコントロール装置のシステム全体で利用できる値以下とすることでコントロール装置等のダウンを防止することができる。
 なお、システム全体で利用できる値は、コントロール装置に搭載されたメモリからOS等で使用された部分を除いた値であることが望ましい。OS等の領域に制御又は情報プログラムの処理が影響を与えないようにするためである。
 また、プログラムごとにメモリ上限305の値を設定することにより、もしあるプログラムに想定以上のメモリを使用してしまう不具合があった場合には、当該プログラムのみが停止し他のプログラムに影響を与える事を防止できる。
 次に、タスク優先度303について説明する。
 タスク優先度は、各プログラムが実行させる場合の優先度である。各プログラムにタスク優先度を設定することにより、OSのスケジューラ等にプログラムへのCPU割当ての優先順位を認識させることができる。
 複数のプログラムを、明示的にタスク優先度を設定せずに実行すると、あらかじめOSのスケジューラが有するルールにしたがってCPU割当てのようなリソース割り当てが行われる。例えば、複数のプログラムに平等にCPUの割当てが行われるようなスケジューリングが行われる。
 このようなスケジューリングは、制御プログラムのようなスキャンタイム内に確実に処理を終えることが重要であるプログラムの場合、他のプログラムの動作によってスキャンタイム内に処理を終えることができなくなるなど、制御プログラムの動作に影響を及ぼす場合がある。
 例えば、第1のプログラムの処理実行(CPU割当て)中に、タイマ割込み等により第1のプログラムよりも相対的にタスク優先度の高い第2のタスクの処理開始要求が発行されると、第1のプログラムの処理が中断されて第2のプログラムの処理が開始される。その後第2のプログラムがSleep等によりCPUの割当てを終了すると第1のプログラムの処理が再開される。
 また、例えば、第1のプログラムの処理実行(CPU割当て)中に、タイマ割込み等により第1のプログラムよりも相対的にタスク優先度の低い第3のタスクの処理開始要求が発行されると、第1のプログラムがSleep等によりCPUの割当てを終了するまで第3のプログラムの処理開始が待たされる。
 したがって、タスク優先度303を設定することで、より優先度の高いプログラムの処理を優先して行うことができる。
 これにより、ユーザがより重要性が高いと判断したプログラムを優先して処理させることができる。情報プログラムをコントロール装置で処理し、情報プログラムが複雑な計算を行う場合であっても、制御プログラムに影響を与えないようにすることができる。
 ICT001とICT002は、実行周期304であるスキャンタイムが設定されていないが、制御プログラムに比べて情報プログラムのタスク優先度が低いため、制御プログラムの計算にCPUコアを利用していない時間(例えば、空いている時間)に情報プログラムの処理を行うことができる。これにより、制御プログラムの処理に影響を与えることなく情報プログラムを処理することができる。
 ICT001とICT002は、利用デバイスがeth1であり、eth1は専有設定されていない。そのため、eth1のポートについては、ICT001とICT002が共有して利用可能である。
 ICT001とICT006がeth1を同時に使用しようとした場合には、タスク優先度303が高いICT001が先にeth1を使用する。ICT001がeth1の使用を終了した際に、タスク優先度303が高いICT006がeth1を使用することが可能となる。このように、プログラムそれぞれがタスク優先度に応じた処理が可能となる。
 図4は、コントロール装置109がプログラム配布装置101から所望のプログラムをダウンロードするプログラムダウンロード処理の一例を示すフローチャートである。
 まず、プログラム配布装置101では、図示しない操作画面を用いたユーザの操作に応じて、ダウンロードすべきプログラムが選択される(ステップS401)。これにより、プログラム配布部102は、対応する特定のプログラムをプログラム管理データベース104において特定する。
 次にプログラム配布装置101では、操作画面においてユーザの操作に応じて上記特定のプログラムについて実行管理データが設定される(ステップS402)。この実行管理データには、例えば図3に示すようにタスク優先度303が含められている。
 これにより、実行管理生成部103は、ユーザの入力内容に応じて上記特定のプログラムの動作態様に関するパラメータとして、例えば、各プログラムの各タスクが実行される際の優先度、及び、各タスクが使用可能なメインメモリ210内の上限記憶容量の少なくとも一方のパラメータを設定することができる。
 以下、一例として主として優先度を取り上げて説明する。以上までが、プログラム配布装置101における処理を表しており、これ以降はコントロール装置109における処理を表している。
 プログラム配布装置101は、コントロール装置109の要求に応じて、上記特定のプログラム及びこれに対応付けられた実行管理データをコントロール装置109にダウンロードする(ステップS403)。
 次にコントロール装置109では、タスク管理部110が、上記ダウンロードされた上記特定のプログラムを受信する(既述のプログラム受信機能に相当)。タスク管理部110は、受信が完了すると、上記特定のプログラムが制御プログラムである場合には制御プログラム114としてメインメモリ210に保存する(ステップS404)。
 次にコントロール装置109では、タスク管理部110が上記特定のプログラムとともにダウンロードした実行管理データを実行管理テーブル113に追記する(既述のプログラム実行管理機能に相当)(ステップS405)。
 図5は、プログラム実行処理の一例を示すフローチャートである。このプログラム実行処理は、コントロール装置109において上記特定のプログラムが実行される場合の処理内容を表している。
 タスク管理部110は、ある所定のプログラムを新たに実行しようとした際、実行管理テーブル113から当該所定のプログラムに対応する実行管理データを読み出す(ステップS501)。
 当該所定のプログラムに対応する実行管理データとしては、実行管理テーブル113における優先度303において管理している当該所定のプログラムの各タスクが実行される際における優先度を含む。
 次にタスク管理部110は、当該読み出された実行管理データに基づいて当該所定のプログラムのパラメータとして、例えば、当該所定のプログラム(制御プログラム105及び情報プログラム106の少なくとも一方のプログラム)の各タスクの優先度を設定したり、各タスクが使用可能なメインメモリ210の上限記憶容量を設定又は特定したりする(ステップS502)。
 タスク管理部110は、このような優先度を所定のコマンドを用いて設定する。一方、タスク管理部110は、上述した上限記憶容量を設定する。
 以上のような実施の形態によれば、同一プラットフォーム(つまりコントロール装置109)に共存する制御プログラム114及び情報プログラム115が当該プラットフォーム上でそれぞれ対応するパラメータに応じて動作するようになる。タスク管理部110が、制御プログラム114及び情報プログラム115を、当該プログラム114及び115の各々のタスク優先度などのパラメータ値を基に制御プログラム実行部111及び情報プログラム実行部112を制御することで、当該プログラム114及び115の各々の実行を制御する(ステップS503)。
 この場合は、情報プログラム115であるICT001とICT002が所定のリソースで動作する。また、制御プログラム114であるCTL001とCTL002が所定のリソースでICT001とICT002よりも高い優先度で動作する。
 実行管理テーブル113を適宜変更することによって、制御プログラム114及び情報プログラム115は、互いに、例えばタスクの追加、更新又は削除のような機能変更に際し、他のプログラムが動作したまま、一部の制御プログラム114又は情報プログラム115を変更することができる。
 また、情報プログラム115は、所定のリソースが確保された場合であって、他のプログラムとの影響がない場合には再コンパイルや再ダウンロードを必要とせず実行管理テーブル113を変更しても動作させることができる(再コンパイルや再ダウンロードが必要となる一比較例については後述する)。
 このため、制御プログラム114及び情報プログラム115の各タスクの追加、更新及び削除のいずれの機能的な変更も行い易くなるため、コントロール装置109は柔軟な機能変更を可能とする。
[第2の実施の形態]
 第2の実施の形態について図3等を用いて説明する。その際、第1の実施の形態と異なる点を中心として説明し、第1の実施の形態と共通する点については説明を省略又は簡略する。
 第2の実施の形態では、上述した操作画面(図示せず)に、図3に示す実行管理テーブル113に基づいて、上述した各プログラムが使用可能なメインメモリ210の上限記憶容量に応じて導き出される残りリソース、例えば、各プログラムが使用可能なメインメモリ210の残容量が表示される。
 プログラム配布装置101では、上述した操作画面において所定の操作に応じて、例えば残りリソースなどが選択されると、当該残りリソースを含むパラメータ値を示す実行管理データを、選択されたプログラムとともにコントロール装置109にダウンロードする。
 コントロール装置109では、タスク管理部110が、当該選択されたプログラムとともに上記実行管理データを受け取り、この実行管理データを実行管理テーブル113に登録する。
 当該選択されたプログラムが制御プログラム114であれば、制御プログラム実行部111が、上記実行管理データに基づく残りリソースをパラメータ値として、当該選択されたプログラムである制御プログラム114を実行する。
 一方、当該選択されたプログラムが情報プログラム115であれば、情報プログラム実行部112が、上記実行管理データに基づく残りリソースをパラメータ値として、当該選択されたプログラムである情報プログラム115を実行する。
 以上のような構成とすると、第1の実施の形態と同様な効果を得ることができるとともに、さらに、そのような各タスクが使用可能なメインメモリ210の残りリソースに接したユーザが適切な情報に基づいてダウンロード設定を行うことができるとともに、上述した選択されたプログラムが既存のプログラムに影響を与えないようにすることができる。
[幾つかの変形例]
 次に、変型例について説明する。上述した第1及び第2の実施の形態のうちの少なくとも1つでは、次のような変型例のうちの少なくとも1つを採用することができる。
 第1の変型例としては、例えばハイパバイザ等を利用してOS層から分けるようにしても良い。
 第2の変形例としては、各種プログラムの処理をシーケンシャルに行うことに代えて、処理結果に矛盾が生じない限り、処理の順序を入れ替え又は並行動作するように構成しても良い。
 第3の変形例としては、図6A及び図6Bに示す例がある。すなわち、制御プログラムの動作中に情報プログラムが変更される。具体的には、例えば、図6Aが示すように、CTL007とITL008についてCPUコア番号306が共通している。これは、制御プログラムであるCTL007の動作中に、情報プログラムであるITL008の実行のために同一コアが使用され得ること、つまり、タスク優先度303や利用デバイス307が違うもののCTL007の処理がITL008の影響を受け得ることを示している。
 ITL008は、情報プログラムであるため、制御プログラムの実行中に変更可能なプログラムである。コントロール装置109が有するITL008を削除した後に、ITL009をコントロール装置109に転送する。転送はプログラム配布装置101等により行われる。これにより、ITL008をITL009に変更することができる。
[上記説明の概念の一例]
 上記説明の概念の一例を説明するならば、次の通りである。物理的に(直接的だけでなく、ネットワークを通じて間接的に接続される場合も含む。)接続された制御対象装置ハードウェアのI/Oポートにアクセスすることによりハードウェアの動作を制御するコントロール装置であって、I/Oポートの情報を読み込み制御プログラムと情報プログラムがアクセス可能な共有領域に格納する格納手段と、制御プログラムは、I/Oポート又は格納されたI/Oポートの情報を取得し、I/Oポートに当該I/Oポートに接続された装置の制御情報を出力し、情報プログラムは、格納されたI/Oポートの情報を取得し、取得したI/Oポートの情報を演算することによって処理情報を特定することを特徴とするコントロール装置である。
[総括、及び、より具体的な実施の形態の一例]
 以下の説明は、これまでの説明の総括と、より具体的な実施の形態の一例とを含む。言い換えれば、以下の説明は、これまでの説明の重複部分と、これまでの説明に無い事項とのいずれを含んでもよい。
 制御対象装置の制御に必要な情報(例えば、センサによる測定値)を取得するための通信を制御プログラムによる制御の一部とすること(すなわち、通信について制御プログラムに記述されていること)が考えられるが、通信のような情報処理は制御プログラムによる制御とは分離しておくことが望ましいと考えられる。そのように考えられる1つの理由は、コントロール装置の制御対象装置は、一般に、工作機械、自動組み立て装置又は自動搬送装置のような自動機械や生産設備であるため、高い安定性、つまりリアルタイム性が求められるためである。
 そこで、制御プログラムに加えて、通信のような情報処理について記述されたプログラムである情報プログラムを用意しておくことが考えられる。リアルタイム性を維持するために制御プログラムを優先するべく、情報プログラムをコントロール装置とは別の装置で実行することが考えられるが、資源節約の観点から、制御プログラムと情報プログラムの両方をコントロール装置のような同一プラットフォーム上で実行することが考えられる。この場合、制御プログラムと情報プログラムがコントロール装置内に適切に共存することが求められる。
 しかし、上述した特許文献1及び2は、既に述べた理由から、制御プログラムと情報プログラムの適切な共存のための技術を開示も示唆もしていない。
 同一のプラットフォーム上で、1以上の制御プログラム114と1以上の情報プログラム115とを含んだ複数のプログラムが実行される。「同一のプラットフォーム」とは、上述の説明によればコントロール装置109である。
 1以上の制御プログラムの各々は、当該制御プログラムにとっての制御対象装置の制御のためのスキャン動作を行うプログラムである。一方、1以上の情報プログラムの各々は、スキャン動作を含まない情報処理を行うプログラムである。
 下記に例示する少なくとも1つによって、情報プログラムを柔軟に変更することが可能である。
・複数のプログラム114及び115の各々について、当該プログラムの動作の範囲を規定した複数のパラメータ値が設定される。制御プログラム114の実行と情報プログラム115の実行が、当該制御プログラム114と当該情報プログラム115の各々についての複数のパラメータ値に基づき行われる。情報プログラム115の複数のパラメータ値を、いずれの制御プログラム114の実行に悪影響が出ないよう調整可能である。
・1以上の共有領域が設けられる。1以上の共有領域の各々について、次のことが言える。すなわち、当該共有領域は、1以上の制御プログラム114の少なくとも1つの制御プログラム114と1以上の情報プログラム115の少なくとも1つの情報プログラム115がアクセス可能な記憶領域である。当該記憶領域には、例えば、当該制御プログラム114によりアクセスされるI/Oポートに関する情報と当該制御プログラム114に関する情報(例えば内部変数)とのうちの少なくとも一方を含んだ共有情報が格納される。当該共有領域に格納された共有情報を基に、当該共有領域にアクセス可能な情報プログラム115が、情報処理を行うことができる。言い換えれば、制御プログラム114の実行結果に基づく共有情報を基に情報プログラム115が実行されるため、情報プログラム115の実行が制御プログラム114に悪影響を与えないことが期待される。故に、制御プログラム114に悪影響を与えること無しに情報プログラム115を変更することが期待できる。
 例えば、複数のプログラム114及び115の各々について動作の範囲を規定した複数のパラメータ値を含む実行管理テーブル113が用意される。これにより、情報プログラム115の実行(動作)により制御プログラム114の実行に悪影響が出ることを防ぐことができる。当該複数のプログラム114及び115の各々について、複数のパラメータ値は、下記、
・タスク優先度303(当該プログラムの優先度の一例)、
・メモリ上限305(1種類以上の計算リソースに対応した1以上のリソース上限の一例)、
・利用デバイス307及び専有デバイス308(当該プログラムが利用可能な1以上のI/OポートのうちのいずれのI/Oポートが当該プログラムに専有のI/OポートでありいずれのI/Oポートが当該プログラムを含む2以上のプログラムで共有可能なI/Oポートであるかを表す専有/共有デバイスの一例)、
のうちの少なくとも1つを含む。
 タスク優先度303のようなプログラム優先度というパラメータ値があることで、制御プログラム114に求められるリアルタイム性の維持を優先した処理が可能である。例えば、計算リソースの節約の観点から、CPUコア、メモリ領域及びI/Oポートといった少なくとも1つの計算リソースを共有デバイスとすること、具体的には、制御プログラム114と情報プログラム115が共有することが考えられる。タスク優先度303の設定により、制御プログラム114と情報プログラム115が計算リソースを共有しても、制御プログラム114のリアルタイム性を損なわないよう情報プログラム115を実行することができる。
 メモリ上限305のようなリソース上限があることでも、制御プログラム114に求められるリアルタイム性の維持を優先した処理が可能である。例えば、情報プログラム115が再現なくメモリ量を使用した後で停止した場合にはメモリ量解放の処理が走ることになるが、この処理は、制御プログラム114よりも優先して行われることが考えられる。メモリ量を解放しないことには制御プログラム114が適切な処理を行うことができないことが考えられるためである。しかし、そうなると、制御プログラム114に求められるリアルタイム性が損なわれてしまう。このようなことを回避するために、リソース上限は有用である。
 制御プログラム114及び情報プログラム115の各々について、専有/共有デバイスという設定は、2以上のパラメータ値の組合せの設定であってよい。専有デバイスが設定されることで、安定した性能、例えば、リアルタイム性の維持が期待できる。共有デバイスが設定されることで、計算リソースを節約しつつ柔軟な処理が期待できる。
 例えば、図7に例示する設定範囲テーブル700が用意されてよい。図6Aと図6Bで説明した例とは異なる設定方法を示す。また、図8Aと図8Bに示されるCPUコア、メモリ上限、LANポートは、それぞれ図7のデフォルト値703と設定値704の値に対応する情報プログラム115が利用できるリソースを示す図である。すなわち、図8Aは制御プログラム114がCPUコア1から4を専有しているが、3から4は未だ利用しておらず、5から8は情報プログラム115が専有する状態を示す。
 またメモリは、制御プログラム114と情報プログラム115がそれぞれ最大128MB使用できる。次に、制御プログラム114がLAN1と2を情報プログラム115がLAN4を専有し、これらのプログラムがLAN3を共有することを示す。図8Bには、図7に示す設定値704の値に対応するリソースが示される。設定範囲テーブル700は、ユーザが使用する計算機(例えば、管理ユーザ計算機151M)からプログラム配布装置101経由又は非経由でコントロール装置109に格納されてよい。設定範囲テーブル700は、情報プログラム115に関するパラメータ値の範囲を定めたテーブルであり、複数のパラメータ項目(例えば、図3に例示したようなパラメータ項目303~308のうちの少なくとも1つと同じパラメータ項目を含んだ複数のパラメータ項目)の各々について、属性701、設定可能範囲702及びデフォルト値703といった情報を格納する。以下、1つのパラメータ項目を例に取る(図7の説明において「対象パラメータ項目」)。設定値704はデフォルト値703を用いない場合に設定される値である。設定値704の一部が入力または設定された場合に、入力又は設定されていない値はデフォルト値703の値を用いるとよい。これにより、ユーザは情報プログラム115を利用する際に、すべての項目または一部の項目を設定せずとも情報プログラム115を実行させることができる。図7に示すように表示手段に表示し、入力手段によって入力してもよいし、別途設定値704だけを設定してもよい。
 次に、図8Cについて説明する。図8Cは図8Aの設定を変更した状態を示す。図8Cには、CPUコア1と2を制御プログラム114が専有し、CPUコア7と8を情報プログラム115が専有し、CPUコア3から5を共有する場合が示されている。共有されるCPUコアは、それぞれのプログラム114と115の計算処理が足りない場合に利用することができる。また、タスク優先度に応じて使用量を変更することもできる。
 共有されるCPUコアは破線の境界線を用いると図8Bとの違いがユーザに明確に示され便利であるが、当該違いの表現として他の表現が採用されてもよい。例えば、専有、共有それぞれの背景色を変更する、または、それぞれ異なるハッチング処理を施す等が採用されてもよい。メモリの設定は、図8Bと同様のため説明を省略する。LANポートは、LAN1を制御プログラム114が専有し、LAN3を情報プログラム115が専有し、LAN2と4を制御プログラム114と情報プログラム115が共有する。
 属性701は、いずれかの情報プログラム115について対象パラメータ項目に対応したパラメータ値を変更するといずれかの制御プログラム114の実行(動作)へ悪影響が出る可能性があるか否かを表す。“A:設定注意”が、悪影響が出る可能性があることを意味する。“B:自由に設定可能”が、悪影響が出ないことを意味する。属性701を示すことにより、ユーザは悪影響が出ない項目を容易に知ることができる。
 設定可能範囲702は、対象パラメータ項目について情報プログラム115に関し設定可能なパラメータ値の範囲を表す。当該範囲内でパラメータ値を調整可能である。少なくとも1つのパラメータ項目について、設定可能範囲702は、個々の情報プログラム115についての値を表していてもよいが、図7の例では、いずれのパラメータ項目についても、全ての情報プログラム115の合計としての値を表す。例えば、パラメータ項目“CPUコア数”は、情報プログラム115がCPUコア2から8のうちどのコアを使用するかを設定できるが、特に設定しない場合には、デフォルト値703に記載されるようにCPUコア4-8を使用する。“メモリ上限”に対応した設定可能範囲702は、全ての情報プログラム115についてのメモリ量合計の上限の範囲である。図8Bに示す例では、情報プログラム115は、16から256MBまで設定可能であるが、設定値704が設定されていない場合はデフォルト値703の値である128MB使用し、設定値704を160MBと設定した場合には160MB使用することができる。これにより、図8Aに示す例では、情報プログラム115はメモリを十分に利用できるため、情報プログラム115の動作をより安定させることができる。
 なお、少なくとも1つのパラメータ項目について、設定可能範囲702が、自動で設定又は変更されてよい。自動で設定される際には、制御プログラム114がデバイスのリソースや専有または共有する情報を参考に設定することができる。例えば、タスク管理部110が、制御プログラム114の使用リソースを基に、情報プログラム115についての設定可能範囲702を自動で設定又は変更してよい。例えば、制御プログラム114がLANポートのうちLAN1とLAN2を専有し、LAN3を共有する場合には、利用可能LANポートの設定可能範囲702をLAN3,LAN4とし、専有LANの設定可能範囲702をLAN4とするとよい。この場合は、LAN3を情報プログラム115が専有するように設定すると、制御プログラム114が使用できなくなるため、属性701には設定注意と記載される。なお、利用可能LANポートの設定可能範囲702をLAN4のみに設定すると、専有LANポートの設定可能範囲702はLAN4のみとなる。これは、利用できないLANポートを自動的に専有できない設定に変更することを意味する。
 また、パラメータ項目“ルーティング方式”は、図9に例示するOS共通実装において採用される。例えば、後述の図9を参照していえば、“Masquerade”は、コンテナ953(実行環境の一例)がコントロール装置909の外から通信を受け付けないことを意味する。“Port forward”は、コントロール装置909の外からの通信のうち、あるポートに対する通信のみ受け付けることを意味する。“IP forward”は、物理的なネットワークI/F(例えば図1のネットワークI/F213)に、情報コンテナ953B専用のIPアドレスを追加で付与し、当該IPアドレスを指定した通信を、情報コンテナ953B内の情報プログラム115に転送することを意味する。
 また、パラメータ項目“利用可能LANポート”が情報プログラム115で利用できるLANポートを、“専有LANポート”が、情報プログラム115が専有するLANポートを示す。すなわち、情報プログラム115はデフォルトでLANポート3と4を制御プログラム114と共有し、LANポート4を専有する設定となる。
 また、パラメータ値“共有フォルダ”が、共有領域の一例である共有フォルダへのパスを表している。デフォルト値703には、共有なしであるため、特に設定がない限り共有フォルダがない状態となる。
 デフォルト値703は、対象パラメータ項目に対応したデフォルト値を表す。例えば、パラメータ項目“LANポート”に対応したデフォルト値によれば、情報プログラム115にパラメータ値“LAN3”と“LAN4”が、専有LANポートのパラメータ値に“LAN4”が設定される。つまり、LAN3は、共有デバイスであり、LAN4は情報プログラム115が専有するデバイスである。LANポートは図8Aに示されるように、制御プログラムが1ポート専有し、情報プログラムが1ポート専有し、制御プログラムと情報プログラムが2ポートを共用する状態を示す。ここでの共有とは、制御プログラムであっても必ずしもリアルタイム性が要求されない通信と情報プログラムそれぞれがLANポートを利用する場合である。
 例えば、一方のプログラムが共有LANポートを使用する際に、他方のプログラムが使用する場合には、一方のプログラムの通信が終わるまで待機し、他方のプログラムが使用する。制御プログラム114がLANポートを専有することで、リアルタイム制御通信を使用する場合に有効である。制御プログラム114と情報プログラム115がLANポートを共有することで、一般のEthernet通信等の非リアルタイム通信を行う場合に有効である。情報プログラム115がコントロール装置109の外部である、例えば工場の外やインターネット等との通信を行う際に、コントロール装置109の外部から制御プログラム114やコントロール装置に109に接続された装置を見せないようにすることができるため、セキュリティの観点から有効である。
 複数のプログラム114及び115の各々に関し、図8Aに例示するように、1種類以上の計算リソース(例えば、CPUコア、メモリ、LAN(I/Oポートの一例))の各々について、当該種類(それぞれのパラメータ項目)の計算リソースに対応したリソース上限は、当該種類の計算リソースについて定められたリソース境界(図8において太線で示す)に基づいている。LANを共有する場合は、便宜的に中間位置に境界線を設けて表現している。1種類以上の計算リソースの各々について、リソース境界は、下記(x)と(y)で定義される境界である。制御プログラム114は(x)以下のリソースで、情報プログラム115は(y)以下のリソースで実行されることにより、それぞれのプログラムに影響を与えずに実行可能となる。なお、CPUはコア数に限らず、単一コアの場合を含めてスケジューリングの優先度を設定することも可能である。また、CPUコアが複数の場合に、CPUコアの専有の設定を変更せずに制御プログラム115が所定のスキャンタイムで実行されるようにスケジューリングすることも可能であり、この場合は、複数のコアを効率よく使用することができる。
(x)当該種類の計算リソースのリソース上限であって、当該種類の計算リソースを全制御プログラム114が使用可能なリソースの合計。
(y)当該種類の計算リソースのリソース上限であって、当該種類の計算リソースを1以上の情報プログラムが使用可能なリソースの合計。
 このようなリソース境界により、リアルタイム性の維持が期待できる。なお、図8では、各種計算リソースについて、リソース境界より左側にある灰色帯は、全制御プログラム114が使用しているリソースの合計である総使用リソースを意味し、リソース境界より左側にある白色帯は、制御プログラム114に関しての余裕リソース(リソース境界と総使用リソースとの差分)を表す。つまり、灰色帯は実際の利用状態、白色帯は使用されていないが使用できるリソースを示す。一方、各種計算リソースについて、リソース境界より右側にある灰色帯は、全情報プログラム115が使用しているリソースの合計である総使用リソースを意味し、リソース境界より左側にある白色帯は、情報プログラム115に関しての余裕リソース(リソース境界と総使用リソースとの差分)を表す。これをリアルタイム表示やデバッグ時に表示することにより、リソースの使用量を特定し、設定値704によってより制御プログラム114または情報プログラム115を効率よく実行させることができる。
 複数のプログラム114及び115の実行を制御するタスク管理部110が、図8に例示するように、当該1種類以上の計算リソースの少なくとも1種類の計算リソースのリソース境界を動的に変更する。当該変更は、例えば、リソース境界変更のための所定のイベントが発生した場合に(例えば、ユーザからリソース境界の変更要求をタスク管理部110が受けた場合に)行われる。これにより、例えば、制御プログラム114に関して余裕リソースが十分ある種類の計算リソースについては、制御プログラム114にとってのリソースが減るリソース境界変更が実行される(例えば、計算リソース種類“メモリ”を参照)。このように、柔軟にリソース境界を変更することで、リアルタイム性を維持しつつ高スループットが期待できる。すなわち、リアルタイム性と高スループットの両立が期待できる。
 なお、少なくとも1種類の計算リソースについて、当該種類の計算リソースのリソース境界の変更が、制御プログラム114にとってのリソースが減る変更の場合、タスク管理部110が、下記の(A)及び(B)を行ってよい。下記の(A)及び(B)により、制御プログラム114にとってのリソースが減る境界変更、言い換えれば、情報プログラム115を追加したときの前提が変更されても、リアルタイム性の維持が期待できる。
(A)1以上の情報プログラム115の少なくとも1つを停止する。
(B)少なくとも1つの制御プログラム114について、下記(b1)及び(b2)のうちの少なくとも1つを実行する。
(b1)停止した情報プログラム115に割り当てられていた共有デバイス(例えばI/Oポートのうちの少なくとも1つ)を、当該制御プログラム114の専有デバイスに変更する。
(b2)当該制御プログラムのタスク優先度303を相対的に上げる(すなわち、当該制御プログラムのタスク優先度303を上げることと、停止した情報プログラム115のタスク優先度303を下げることの少なくとも1つを行う)。
 また、上述の説明では、制御プログラム114と情報プログラム115が共存するプラットフォームは、物理的なコンピュータとしてのコントロール装置109であるが、図9に例示するように、別の例として、同一のOS952を採用することができる。つまり、制御プログラム114と情報プログラム115のOSは共通している。ここでも、複数のプログラム114及び115の各々について、当該プログラムの動作の範囲を規定した複数のパラメータ値を含んだ実行管理テーブル113が設定される。
 制御に関しては、一般に、高いリアルタイム性が求められ、情報処理に関しては、一般に、高いスループットが求められる。そして、OSとしても、一般に、制御向けのOSとしての専用OS(リアルタイムOS)と、情報処理向けのOSとしての汎用OSとがある。
 一般に、制御プログラムは専用OSが搭載された計算機で実行され、また、専用OSが搭載された計算機から情報系の計算に必要な情報を受信した汎用OSが搭載された計算機が実行されている。ここで、仮に、昨今の汎用計算機分野の技術を考慮すると制御プログラムは専用OS上で実行され、情報プログラムは汎用OS上で実行されることで本願発明と類似する構成とすることができると考えられる。このため、同一の計算機に制御プログラムと情報プログラムを共存させる場合、通常、計算機における計算リソース集合(物理的な計算リソースの集合としてのハードウェア)をエミュレートする仮想マシン技術を採用することになる。具体的には、例えば、ハイパバイザが、制御プログラム用に、ゲストOSとして専用OSを搭載した仮想マシンを生成し、情報プログラム用に、ゲストOSとして汎用OSを搭載した仮想マシンを生成し、制御プログラムと情報プログラムが、OSが異なる別々の仮想マシンで実行されることが考えられる。
 しかし、仮想マシン技術では、仮想マシンにおけるゲストOSの他に、仮想マシンのベースとなるホストOSが存在する。結果として、管理対象が多く、管理が煩雑となることが考えられる。
 また、計算機に機器が接続されても、当該計算機における全ての制御プログラムや情報プログラムが容易に当該機器を認識できるわけではない。仮想マシン別に、ゲストOSを介して、当該機器を認識するための処理が必要となる。言い換えれば、制御プログラムと情報プログラムがデバイスを共有することが困難である。
 本願の発明者の考察によれば、汎用OSの系統ではあるものの必要とされるリアルタイム性を提供できるリアルタイム機能を持ったOS(以下、便宜上、「リアルタイム汎用OS」と呼ぶ)が提供されている。
 このため、リアルタイム汎用OSを、図9に例示するように、制御プログラム114及び情報プログラム115が共存するOS952として採用することが考えられる。
 しかし、制御プログラム114及び情報プログラム115がリアルタイム汎用OS上に共存するとなると、制御プログラム114のリアルタイム性の低下が懸念される。具体的には、例えば、リアルタイム汎用OSは、スケジューラを有し、当該スケジューラに割込みが発生するようになっている。スケジューラは、実行すべきリアルタイムタスク(制御プログラム114に対応したタスク)があれば、タスク優先度303に従い当該リアルタイムタスクへ制御を渡し、実行すべきリアルタイムタスクがなければ、通常タスク(例えば情報プログラム115に対応したタスク)へ制御を渡すようになっている。実行すべきリアルタイムタスクがあっても、通常タスクについて所定の処理まで終わらなければ、当該通常タスクは停止されない。このため、リアルタイムタスクの開始が遅れ、結果として、リアルタイム性が損なわれるおそれがある。
 そこで、制御プログラム114及び情報プログラム115の同一プラットフォームとしてOS952を採用し、且つ、当該環境において、上述した工夫のうちの少なくとも1つ、例えば、下記のうちの少なくとも1つを採用することにより、リアルタイム性が維持される。
・上述した実行管理テーブル113が設定される。すなわち、制御プログラム114及び情報プログラム115の各々についてリアルタイム性の維持を目的に決定されたパラメータ値が設定される。
・デバイスの共有化が容易になる代わりにリアルタイム性が低下することを避けるため、上述したようなリソース境界が設定される。
 パラメータ値の設置として、具体的には、例えば、図3に例示したパラメータ値303~308の組み合わせにより、制御プログラム114及び情報プログラム115が同一OS952上に共存しても、リアルタイム性の維持が図られる。例えば、通常タスクについて所定の処理まで終わらなければ当該通常タスクは停止されないことを考慮してパラメータ値303~308を決定することが行われる。
 また、適宜にスループットを考慮して、リソース境界が、例えば、ホストプログラムの一例である実行制御プログラム957により動的に変更されてよい。その際、リソース境界の変更が、制御プログラム114にとってのリソースが減る境界変更の場合、上述の(A)及び(B)が、例えば、実行制御プログラム957により行われてよい。
 図9のコントロール装置909については、例えば以下の通りである。
 コントロール装置909の計算リソース集合951上で、OS952が実行される。OS952上でのプログラム実行環境として、コンテナ型仮想化に従うコンテナ953が採用される。すなわち、プログラムが、コンテナ953に設定され、OS952上で、コンテナ953の単位で実行される。コンテナ953としては、例えば、制御コンテナ953Aと情報コンテナ953Bの2種類のコンテナがある。
 制御コンテナ953Aは、制御プログラム114が格納され実行されるコンテナである。制御プログラム114は、例えば、ソフトウェアPLC系ランタイム961上で実行されて良い。制御プログラム114は、制御系通信を行っても良い。なお、制御系通信はシリアル又はパラレルの有線通信であっても、無線通信であっても良い。
 情報コンテナ953Bは、情報プログラム115が格納され実行されるコンテナである。少なくとも1つの情報プログラム115は、情報系通信を行うことができる。
 コントロール装置909で実行されるプログラムとして、上述のプログラム114及び115に加えて、他のプログラム、例えば、Webサーバプログラム956及び実行制御プログラム957がある。Webサーバプログラム956及び実行制御プログラム957は、いずれも、コンテナ953の外で実行されるホストプログラムの一例である。実行制御プログラム957は、コンテナ953の生成又は削除等を行うコンテナエンジンでよい。Webサーバプログラム956及び実行制御プログラム957が実行されることで上述のタスク管理部110が実現されてよい。
 Webサーバプログラム956は、Webサーバとして機能するためのプログラムである。Webサーバプログラム956が、管理ユーザ計算機151M及び一般ユーザ計算機151Gの各々(クライアント)と通信する。Webサーバプログラム956が、1以上の情報プログラム115のうちの少なくとも1つが格納されるコンテナについて、パラメータ値の設定を受け付けるユーザインターフェースプログラムの一例である。
 実行制御プログラム957は、コンテナ953におけるプログラムに関して設定されている複数のパラメータ値を基に、コンテナ953(正確には、コンテナ953におけるプログラム)の実行を制御する。
[第3の実施の形態]
 第3の実施の形態について図10等を用いて説明する。その際、第1の実施の形態と異なる点を中心として説明し、第1の実施の形態と共通する点については説明を省略又は簡略する。また、以下の説明では、「計算リソース」は、物理的なリソースであるのに対し、使用される又は使用可能な「リソース」は、使用される又は使用可能なリソース量(例えば、CPUコア数やメモリ容量)を意味して良い。
 図10は、第3の実施の形態に係るコントロール装置の機能的な概略構成を示すブロック図である。
 計算リソース集合951は、図1に示した複数種類の計算リソースを含む複数の計算リソースである。計算リソース集合951は、例えば、1以上の周辺機器120(図1参照)のような1以上の制御対象装置に接続された1以上のI/Oポート(例えばI/O制御装置214やI/Oモジュール119)と、ネットワーク108(図1参照)に接続された1以上のネットワークポート(例えばネットワークI/F213)とを含む。
 タスク管理部1010及び使用リソース監視部1017は、1以上の制御プログラム114及び1以上の情報プログラム115以外の1以上のプログラムであるプログラム群が実行されることにより実現される機能の一例で良い。
 タスク管理部1010は、1以上の制御プログラムと1以上の情報プログラムとのうちの1以上のプログラムである1以上の対象プログラムの少なくとも1つを、プログラム配布装置101(図1参照)からネットワーク108及びネットワークI/F213経由でダウンロードするが、当該ダウンロードのタイミングと異なるタイミングで、計算リソース集合951に関し当該対象プログラムが使用可能なリソースであるリソース上限を示す実行管理データを変更する。なお、1以上の制御プログラム114の各々は、I/Oポートに接続された周辺機器120(制御対象装置の一例)の制御情報を出力するスキャン動作を行うプログラムである。1以上の情報プログラム115の各々は、スキャン動作と異なる情報処理を行うプログラムである。
 制御プログラム114は、上述したように、処理を設定された時間内に確実に実行すること(リアルタイム性)が求められる。このため、制御プログラム114は情報プログラム115に比較的大きなリソース上限を割り当てておくとよい。言い換えれば、情報プログラム115は制御プログラム114に比べて割り当てるリソース上限を比較的小さくしておくことが考えられる。しかし、制御プログラム114がどのような情報プログラム115とコントロール装置1009に共存するかによって、制御プログラム114又は情報プログラム115が使用するリソース上限に過不足が生じ得る。また、リソースの種類によっては、実際にプログラムが動作してみないとどの程度のリソースが使用されるかわからない。また、一般に、少なくともリソースの種類によっては、ユーザは、開発対象のプログラムがどの程度リソースを使用するか或いはどのようにリソースをシェアするかを考慮すること無く当該プログラムの開発を行う場合がある。情報プログラム115を開発する情報系の開発者は、汎用コンピュータ向けの開発において制御対象及び制御するハードウェアのリソースを意識することが少ないため共有するリソースの管理は重要である。
 そこで、本実施形態では、対象プログラムの実行管理データが当該対象プログラムのダウンロードと異なるタイミングで変更される。このため、当該実行管理データを適切に変更することが可能である。すなわち、コントロール装置に搭載されたプログラムが必要とするリソースに合わせて、プログラムのダウンロードの際に限らずに使用するリソースを適切に変更できる。ひいては、コントロール装置の運用効率を上昇させることに寄与する。
 使用リソース監視部1017は、ネットワークI/F213で転送された各対象プログラムについて、当該対象プログラムが使用しているリソースを監視し、監視結果(当該プログラムについて特定された使用リソースを示すデータ)を使用リソース管理テーブル1013に格納する。これにより、制御プログラム114や情報プログラム115の実際の使用リソースに応じて実行管理データ(リソース上限)を適切に変更することが可能である。なお、使用リソース管理テーブル1013は、対象プログラム毎に、使用リソースを示すデータを含んで良い。使用リソース管理テーブル1013は、コントロール装置1009の記憶部(例えば、メインメモリ210)に格納される。監視結果のうち、当初使用を予定したリソースよりも少ないリソースで所定のプログラムが動作する場合は、実行管理情報を書き換えることにより使用するリソースを小さくすることで、他のプログラムが使用できるリソースを増加させることができる。これにより、所定のプログラムが使用するリソースを適切に変更でき、コントロール装置がより適切なリソースで動作させることができる。また、所定のプログラムが当初の予定よりも多くのリソースが必要となる場合であっても、当該所定のプログラムの実行後であっても使用するリソースを変更できるため、コントロール装置の柔軟な運用を実現できる。
 本実施形態において、実行管理データの変更の例として、図11に示す第1の例と、図12に示す第2の例とがある。第1の例は、管理ユーザ(制御プログラム114の開発ユーザ)からの許可無しに実行管理データの変更が行われる例である。第2の例は、管理ユーザからの許可が得られた場合に実行管理データの変更が行われる例である(言い換えれば、管理ユーザからの許可無しに実行管理データの変更が不可能な例である)。第1の例は、制御プログラム114と情報プログラム115に共通の流れである。第2の例は、情報プログラム115に特有の流れである。情報プログラム115について第1の例と第2の例のどちらを採用するかは、予め決められていてもよいし、コントロール装置1009の環境状況(例えば、制御プログラム114の数と情報プログラム115の数)に応じてタスク管理部1010によって決められてもよい。以下、実行管理データの変更の例を説明する。
 図11は、実行管理データの変更の第1の例を示す図である。以下、図11の説明では、一つの対象プログラムを例に取る。
 タスク管理部1010が、プログラム配布装置101からコントロール装置1009へ対象プログラムをダウンロードし記憶部に格納する(ステップS1101)。
 タスク管理部1010が、当該対象プログラムの実行管理データについてユーザによる明示、入力または設定(例えば、GUI(Graphical User Interface)のようなユーザインターフェース経由でリソース上限の設定を受け付けること)が無いため、当該対象プログラムのデフォルトの実行管理データを決定し、当該実行管理データを実行管理テーブル113に格納する(ステップS1102)。このようにダウンロード時は自動で実行管理データが設定される。対象プログラムの実行管理データには、一種類以上のリソースの各々についてリソース上限が設定されて良い。なお、当該対象プログラムの実行管理データについて、タスク管理部1010が、予め設定された第一の実行管理データ(デフォルトの実行管理データの一例)を特定し、ユーザによる明示、入力または設定がされる場合には、当該第一の実行管理データとは異なる第二の実行管理データを特定して良い。
 タスク管理部1010が、例えばWebサーバとして機能する。具体的には、例えば、タスク管理部1010が、当該対象プログラムの実行管理データを変更する(例えば、リソース上限のようなパラメータを変更する)操作である変更操作をユーザ計算機151から受け付け(ステップS1103)、当該受け付けた変更操作に従い実行管理データを変更する(ステップS1104)。
 このように、本実施形態では、対象プログラムの実行管理データが当該対象プログラムと共にダウンロードされるわけではない。本実施形態では、対象プログラムについて、当該対象プログラムの実行管理データは、プログラム配布装置101にはなく、コントロール装置1009の記憶部に格納される。つまり、ダウンロードされ得るプログラム毎に実行管理データをプログラム配布装置101に用意しておく必要が無い。プログラム配布装置101は、例えばプログラム開発環境、プログラム書き込み器やプログラム転送装置である。
 また、情報プログラム115(及び制御プログラム114)の実行管理データを毎回一般ユーザ(及び管理ユーザ)が設定するのは煩雑であるが、ステップS1102によれば、情報プログラム115のような対象プログラムが必要とするリソースに応じて実行管理データが自動で生成され設定される。このため、ユーザにとっての利便性が向上する。なお、少なくとも情報プログラム115については、タスク管理部1010は、ステップS1102で決定した実行管理データ(例えば、2個のネットワークポートの使用、及び、1個のシリアルデバイスの使用)を設定することの許可の問合せを管理ユーザ計算機151M(図12参照)に出し、当該問合せに対する回答が許可の場合に当該実行管理データを設定しても良い。
 ステップS1102でのデフォルトの実行管理データの決定は、例えば次の少なくとも1つのように行われて良い。なお、対象プログラムが制御プログラム114と情報プログラムのどちらであるかは、プログラムのメタデータ、プログラムの格納元等から判別可能である。
・対象プログラムが制御プログラム114の場合、タスク管理部1010は、当該制御プログラム114のソースデータ又はメタデータに記述されているプログラム特性(例えば、必要とするシリアルデバイスの数)を特定し、当該プログラム特性を基に、当該制御プログラム114の実行管理データ(リソース上限)を決定する。当該制御プログラム114のプログラム特性に関わらず、全ての制御プログラム114に共通のリソース上限が当該制御プログラムの実行管理データに設定されてもよい。
・対象プログラムが情報プログラム115の場合、タスク管理部1010は、当該情報プログラム115のソースデータ又はメタデータに記述されているプログラム特性(例えば、必要とするシリアルデバイスの数)を特定し、当該プログラム特性を基に、当該情報プログラム115の実行管理データ(リソース上限)を決定する。例えば、タスク管理部1010は、ネットワークポートを2つ使用することを特定した場合、実行管理データに、2つのネットワークポートをリソース上限(パラメータ)の一例として設定する。また、例えば、タスク管理部1010は、シリアルデバイスを使用することを特定した場合、少なくとも1つのシリアルデバイスを専有又は共有のデバイスとして実行管理データに設定する。当該情報プログラム115のプログラム特性に関わらず、全ての情報プログラム115に共通のリソース上限(例えば、1つの未使用のCPUコア、及び、全ての情報プログラム115が使用可能なメモリ容量のX%)が当該情報プログラムの実行管理データに設定されてもよい。
 図12は、実行管理データの変更の第2の例を示す図である。以下、図12の説明では、一つの対象プログラムを例に取る。
 図11のステップS1101~S1102と同様の処理が行われる(ステップS1201~S1202)。
 その後、タスク管理部1010が、情報プログラム115の実行管理データの変更操作を一般ユーザ計算機151Gから受け付ける(ステップS1203)。その場合、タスク管理部1010が、当該情報プログラム115の実行管理データを変更することの許可の問合せを管理ユーザ計算機151Mに出す(ステップS1204)。当該問合せに対して許可を管理ユーザ計算機151Mから受け付けた場合(ステップS1205)、タスク管理部1010は、当該情報プログラム115の実行管理データを、ステップS1203で受け付けた変更操作に従い変更する(ステップS1206)。
 ステップS1204で出る問合せは、例えば、下記の情報を含み、当該問合せを含む情報が、管理ユーザ計算機151Mに表示される。このため、管理ユーザは、ステップS1203で受け付けられた変更操作に従う変更を許可して良いか否かを判断し易い。
・ステップS1203で受け付けた変更操作の内容(いずれのリソース上限をどのようなリソース上限に変更するか)を示す情報。
・図7に例示する設定範囲テーブルのうち少なくとも当該変更操作に関わるリソース上限に関する部分を示す情報(例えば、変更対象のリソース上限がパラメータ項目「メモリ上限」であれば、メモリ上限に対応した情報701~704)。
 一比較例としては、制御プログラム114の制御のリアルタイム性を維持するために、制御プログラム114が使用する可能性が高い全ての計算リソース(例えば、シリアルデバイス)を制御プログラム114の専有デバイスとすべく情報プログラム115に対しては使用不可の設定をしておくこと、言い換えれば、情報プログラム115が使用可能な計算リソースを過剰に制限しておくことが考えられる。そこで、本実施形態では、図12に例示のように、一般ユーザが、情報プログラム115のダウンロード後に適宜に当該情報プログラム115の実行管理データを変更することの意思を示すことができ、管理ユーザの許可が得られた場合(制御のリアルタイム性が維持される場合の一例)、当該情報プログラム115の実行管理データの変更が可能となる。
 図13は、制御プログラム114及び情報プログラム115の各々にとってのリソース上限の意義の一例を示す模式図である。
 図13の例によれば、リソース境界が、制御プログラム114にとってのリソース上限の一例でもあり、情報プログラム115にとってのリソース上限の一例でもある。図13の例によれば、制御プログラム114にとってのリソース上限が、情報プログラム115にとってのリソース上限に影響し、情報プログラム115にとってのリソース上限が、制御プログラム114にとってのリソース上限に影響する。しかし、この例に限らず、例えば、制御プログラム114については、リソース境界から一定のマージン分が当該制御プログラム114のリソース上限で良い。同様に、情報プログラム115については、リソース境界から一定のマージン分が当該情報プログラム115のリソース上限で良い。
 リソース上限の意義は、プログラムが制御プログラム114であるか情報プログラム115であるかによって異なる。具体的には、情報プログラム115にとってのリソース上限は、制御プログラム114にとってのリソース上限よりも厳格である。以下、詳述する。
 <制御プログラム114にとってのリソース上限について>
 ある種類のリソース(例えばメモリ使用量)について、制御プログラム114又はタスク管理部1010が、当該制御プログラム114が使用しているリソースに応じて当該制御プログラム114の実行管理データを変更する。具体的には、例えば、当該制御プログラム114の使用リソース(例えばメモリ使用量)がそのリソース上限1303Bを超えた場合(符号1301を参照)、当該制御プログラム114又はタスク管理部1010が、自発的に、矢印1302が示すように、当該制御プログラム114のリソース上限を、リソース上限1303Bからリソース上限1303Aに拡張する。この場合、情報プログラム115にとって当該種類のリソースのリソース上限は縮小する。なお、当該種類の制御プログラム114の使用リソースは、例えば、上述した使用リソース管理テーブル1013から特定可能である。また、当該種類のリソースについて、制御プログラム114のリソース上限を拡張し、結果として、情報プログラム115にとってのリソース上限が縮小される場合、当該制御プログラム114又はタスク管理部1010が、当該縮小後のリソース上限が当該情報プログラム115の使用リソース以上か否かを判断して良い。当該判断の結果が真の場合、当該制御プログラム114又はタスク管理部1010が、当該制御プログラム114にとってのリソース上限の拡張を実行して良い。当該判断の結果が偽の場合、当該制御プログラム114又はタスク管理部1010が、下記のいずれかを行って良い。
・当該判断の結果が真となるまで(当該情報プログラム115の使用リソースが縮小後のリソース上限未満となるまで)待つ。
・当該制御プログラム114の動作を停止し、当該制御プログラム114にとってのリソース上限の拡張を実行する。
 この例によれば、制御プログラム114の実際の使用リソースに応じて当該制御プログラム114のリソース上限が変更される。つまり、制御プログラム114のリソース上限(結果として、情報プログラム115のリソース上限)が柔軟に変更可能である。このため、一般ユーザ(情報プログラム115の開発ユーザ)の開発自由度が向上する。具体的には、例えば、一般ユーザは、制御プログラム114のリソース上限を厳密に考慮すること無しに情報プログラム115を開発できる。制御プログラム114の使用リソースに応じて適宜に情報プログラム115のリソース上限が制御プログラム114のリソース上限の変更に応じて変更されるためである。
 なお、図12に例示したように管理ユーザの許可が得られた場合に実行管理データ(リソース上限)の変更が可能なことは、情報プログラム115のリソース上限の変更に代えて制御プログラム114のリソース上限の変更のケースにも適用されて良い。
 <情報プログラム115にとってのリソース上限について>
 上述したように、情報プログラム115にとってのリソース上限は、制御プログラム114にとってのリソース上限よりも厳格である。例えば、情報プログラム115の使用リソースがそれのリソース上限を超える場合(符号1311を参照)、当該情報プログラム115の動作が停止する(符号1312)。
 情報プログラム115が使用可能なリソースの上限(例えば、制御プログラム114の変更後の実行管理データが示すリソース上限に基づき定まる、当該情報プログラム115が使用可能なリソースの上限)を、当該情報プログラム115について例えばステップS1102又はS1202で決定された実行管理データが示すリソース上限が超えている場合、タスク管理部1010が、当該情報プログラム115の実行を制限する。
 当該情報プログラム115の実行の制限とは、ダウンロードされた当該情報プログラム115のインストール(又はダウンロードそれ自体)を拒否することである。
 或いは、当該情報プログラム115の実行の制限とは、以下の(A)又は(B)がされるまで(符号1321を参照)、
(A)当該情報プログラム115について決定された実行管理データが示すリソース上限が、当該情報プログラム115が使用可能なリソースの上限を超えること、
(B)(A)が管理ユーザから許可がされること、
当該情報プログラム115の実行を禁止することである(符号1322を参照)。なお、(A)は、例えば、制御プログラム114の変更後の実行管理データが示すリソース上限に基づき定まる、当該情報プログラム115が使用可能なリソースの上限が、当該情報プログラム115について決定された実行管理データが示すリソース上限以下となることで良い。
 以上のように、制御プログラム114や情報プログラム115の使用リソースは、動作に伴い変わり得る。制御プログラム114の使用リソースがリソース上限を超えるときは当該リソース上限が拡張され、情報プログラム115の使用リソースがリソース上限を超えるときは当該情報プログラム115の動作が停止する(当該リソース上限の拡張が管理ユーザから許可されるまで当該リソース上限の拡張が不可である)。制御プログラム114のリソース上限が過剰に高ければ(制御プログラム114に過剰にリソースが割り当てられていれば)、制御プログラム114のリソース上限を縮小すること、又は、管理ユーザからの許可に応答して情報プログラム115のリソース上限を拡張することにより、制御プログラム114から過剰に割り当てられていたリソースが解放され、解放されたリソースの少なくとも一部が情報プログラム115に割り当てられる。このため、制御プログラム114や情報プログラム115のダウンロード後に実行管理データ(リソース上限)を変えることの意義は大きい。
 なお、タスク管理部1010は、情報プログラム115のリソース上限の拡張を、制御プログラム114の動作を停止すること無しに行う。例えば、制御プログラム114及び情報プログラム115のいずれについても、リソース上限は、リソース境界から一定のマージン分の位置にあるとする。そして、制御プログラム114の使用リソースは、そのリソース上限を超えても良いが、リソース境界を超えることは禁止されるものとする。この場合、タスク管理部1010は、符号1331に示すように、情報プログラム115のリソース上限を、現在のリソース上限からリソース境界まで(つまり使用リソースの範囲のうちの最大値まで)拡張することが可能である。リソース境界が制御プログラム114の使用リソースの最大値のため、情報プログラム115のリソース上限を拡張することは制御プログラム114の動作に影響しない。
 図13の例によれば、制御プログラム114及び情報プログラム115の少なくとも一方について、リソース上限は、リソース境界は同義でもよいし、リソース境界から一定の範囲で可変であっても良い。後者の場合は、制御プログラム114及び情報プログラム115の一方のプログラムについてのリソース上限を、他方のプログラムの動作に影響を与えること無しに変更することが可能である。
 以上、本発明者によってなされた発明を発明の実施の形態に基づき具体的に説明したが、本発明は前記発明の実施の形態に限定されるものではなく、その要旨を逸脱しない範囲で種々変更可能であることは言うまでもない。
 なお、本発明は上記した実施の形態に限定されるものではなく、様々な変形例が含まれる。例えば、上記した実施の形態は本発明を分かりやすく説明するために詳細に説明したものであり、必ずしも説明した全ての構成を備えるものに限定されるものではない。
 また、ある実施の形態の構成の一部を他の実施の形態の構成に置き換えることが可能であり、また、ある実施の形態の構成に他の実施の形態の構成を加えることも可能である。
 101……プログラム配布装置、102……プログラム配布部、103……実行管理生成部、104……プログラム管理データベース、105……制御プログラム、106……情報プログラム、109……コントロール装置、110……タスク管理部、113……実行管理テーブル、114……制御プログラム、115……情報プログラム

Claims (13)

  1.  1以上の制御対象装置の動作を制御するコントロール装置であって、
     前記1以上の制御対象装置の動作の制御に関わる複数種類の計算リソースを含む複数の計算リソースを備え、
     前記複数の計算リソースは、インターフェース部、記憶部及びプロセッサ部を含み、
     前記インターフェース部は、前記1以上の制御対象装置に接続された1以上のI/Oポートと、ネットワークに接続された1以上のネットワークポートとを含み、
     前記記憶部は、1以上のメモリを含み、
     前記プロセッサ部は、1以上のプロセッサを含み、
     プログラム群が、
      1以上の制御プログラムと1以上の情報プログラムとのうちの1以上のプログラムである1以上の対象プログラムの少なくとも1つを、プログラム配布装置から前記ネットワーク及び前記1以上のネットワークポート経由でダウンロードし、
      当該ダウンロードのタイミングと異なるタイミングで、前記複数の計算リソースに関し当該対象プログラムが使用可能なリソースであるリソース上限を示す実行管理データを変更し、
     前記プログラム群は、前記1以上の制御プログラム及び前記1以上の情報プログラム以外の1以上のプログラムであり、
     前記1以上の制御プログラムの各々は、前記I/Oポートに接続された制御対象装置の制御情報を出力するスキャン動作を行うプログラムであり、
     前記1以上の情報プログラムの各々は、前記スキャン動作と異なる情報処理を行うプログラムである、
    ことを特徴とするコントロール装置。
  2.  請求項1に記載のコントロール装置であって、
     前記1以上の対象プログラムの各々について、前記プログラム群が、当該対象プログラムの実行管理データについてユーザによる明示、入力または設定がなされない場合、デフォルトの実行管理データを決定する、
    ことを特徴とするコントロール装置。
  3.  請求項1に記載のコントロール装置であって、
     前記1以上の対象プログラムが制御プログラムと情報プログラムを含み、
     前記プログラム群が、当該制御プログラムの動作を継続し、または、停止することなく、当該情報プログラムの実行管理データを変更する、
    ことを特徴とするコントロール装置。
  4.  請求項1に記載のコントロール装置であって、
     前記1以上のネットワークポート経由でダウンロードされた各対象プログラムについて、前記プログラム群が、当該対象プログラムが使用しているリソースを監視する、
    ことを特徴とするコントロール装置。
  5.  請求項1に記載のコントロール装置であって、
     前記1以上の対象プログラムの少なくとも1つが制御プログラムであり、
     当該制御プログラム又は前記プログラム群が、当該制御プログラムが使用しているリソースに応じて当該制御プログラムの実行管理データを変更する、
    ことを特徴とするコントロール装置。
  6.  請求項1に記載のコントロール装置であって、
     前記1以上の対象プログラムが制御プログラムと情報プログラムの両方を含み、
     前記プログラム群が、当該情報プログラムが必要とするリソースに応じてユーザからの明示無しに当該情報プログラムの実行管理データを決定し、
     前記情報プログラムが使用可能なリソースの上限を、当該情報プログラムについて前記決定された実行管理データが示すリソース上限が超えている場合、前記プログラム群が、当該情報プログラムの実行を制限する、
    ことを特徴とするコントロール装置。
  7.  請求項6に記載のコントロール装置であって、
     前記情報プログラムの実行の制限とは、前記情報プログラムのダウンロード又はインストールを拒否することである、
    ことを特徴とするコントロール装置。
  8.  請求項6に記載のコントロール装置であって、
     前記情報プログラムの実行の制限とは、以下の(A)又は(B)がされるまで、前記情報プログラムの実行を禁止することである、
      (A)当該情報プログラムについて前記決定された実行管理データが示すリソース上限が、前記情報プログラムが使用可能なリソースの上限を超えること、
      (B)(A)が管理者から許可がされること、
    ことを特徴とするコントロール装置。
  9.  請求項1に記載のコントロール装置であって、
     前記1以上の対象プログラムの少なくとも1つが情報プログラムであり、
     前記プログラム群が、当該情報プログラムが必要とするリソースに応じてユーザからの明示無しに当該情報プログラムの実行管理データを決定する、
    ことを特徴とするコントロール装置。
  10.  請求項1に記載のコントロール装置であって、
     前記1以上の対象プログラムの少なくとも1つが情報プログラムである場合、前記プログラム群が、
      当該情報プログラムの実行管理データを変更することの許可の問合せをユーザに出し、
      当該問合せに対して許可を受け付けた場合、当該情報プログラムの実行管理データを変更する、
    ことを特徴とするコントロール装置。
  11.  請求項1に記載のコントロール装置であって、
     前記1以上の対象プログラムの各々について、当該対象プログラムの実行管理データは、前記プログラム配布装置にはなく、前記記憶部に格納される、
    ことを特徴とするコントロール装置。
  12.  請求項1に記載のコントロール装置であって、
     前記1以上の対象プログラムの各々について、前記プログラム群が、当該対象プログラムの実行管理データについて、予め設定された第一の実行管理データを特定し、ユーザによる明示、入力または設定がされる場合には、前記第一の実行管理データとは異なる第二の実行管理データを特定する、
    ことを特徴とするコントロール装置。
  13.  1以上の制御対象装置の動作を制御するコントロール方法であって、
     1以上の制御プログラムと1以上の情報プログラムとのうちの1以上のプログラムである1以上の対象プログラムの少なくとも1つを、プログラム配布装置から前記ネットワーク及び前記1以上のネットワークポート経由でダウンロードし、
     当該ダウンロードのタイミングと異なるタイミングで、複数の計算リソースに関し当該対象プログラムが使用可能なリソースであるリソース上限を示す実行管理データを変更し、
      前記複数の計算リソースは、前記1以上の制御対象装置の動作の制御に関わる複数種類の計算リソースを含み、
      前記複数の計算リソースは、インターフェース部、記憶部及びプロセッサ部を含み、
      前記インターフェース部は、前記1以上の制御対象装置に接続された1以上のI/Oポートと、ネットワークに接続された1以上のネットワークポートとを含み、
      前記記憶部は、1以上のメモリを含み、
      前記プロセッサ部は、1以上のプロセッサを含み、
      前記プログラム群は、前記1以上の制御プログラム及び前記1以上の情報プログラム以外の1以上のプログラムであり、
      前記1以上の制御プログラムの各々は、前記I/Oポートに接続された制御対象装置の制御情報を出力するスキャン動作を行うプログラムであり、
      前記1以上の情報プログラムの各々は、前記スキャン動作と異なる情報処理を行うプログラムである、
    ことを特徴とするコントロール方法。
PCT/JP2019/025695 2018-10-12 2019-06-27 コントロール装置 WO2020075351A1 (ja)

Priority Applications (4)

Application Number Priority Date Filing Date Title
US17/277,995 US20210373538A1 (en) 2018-10-12 2019-06-27 Control Apparatus
CN201980048530.4A CN112470088B (zh) 2018-10-12 2019-06-27 控制装置
KR1020217000345A KR102445194B1 (ko) 2018-10-12 2019-06-27 컨트롤 장치
EP19872111.0A EP3865959A4 (en) 2018-10-12 2019-06-27 Control device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018-193902 2018-10-12
JP2018193902A JP7141905B2 (ja) 2018-10-12 2018-10-12 コントロール装置及びコントロール方法

Publications (1)

Publication Number Publication Date
WO2020075351A1 true WO2020075351A1 (ja) 2020-04-16

Family

ID=70164234

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2019/025695 WO2020075351A1 (ja) 2018-10-12 2019-06-27 コントロール装置

Country Status (6)

Country Link
US (1) US20210373538A1 (ja)
EP (1) EP3865959A4 (ja)
JP (1) JP7141905B2 (ja)
KR (1) KR102445194B1 (ja)
CN (1) CN112470088B (ja)
WO (1) WO2020075351A1 (ja)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7413183B2 (ja) * 2020-07-31 2024-01-15 株式会社日立産機システム コントロールシステム
CN117616352A (zh) * 2021-07-09 2024-02-27 株式会社安川电机 生产系统、程序创建设备、生产方法和程序

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07230387A (ja) * 1994-02-18 1995-08-29 Hitachi Ltd 排他制御方法
JP2004362327A (ja) 2003-06-05 2004-12-24 Toshiba Plant Systems & Services Corp 分散型監視制御システム
JP2005309644A (ja) * 2004-04-20 2005-11-04 Hitachi Ltd リソース制御方法及びそのシステム
JP2006178818A (ja) 2004-12-24 2006-07-06 Yaskawa Electric Corp モーションコントローラとエンジニアリングツール並びにc言語実行システム
WO2018096717A1 (ja) * 2016-11-24 2018-05-31 株式会社日立産機システム コントロールシステム及びコントロール方法

Family Cites Families (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5153909A (en) * 1989-05-25 1992-10-06 At&T Bell Laboratories Resource control and data handling for central office based automatic call distributors
US20020016166A1 (en) * 2000-08-01 2002-02-07 Kazuyuki Uchida Download system
WO2004001575A1 (en) * 2002-06-24 2003-12-31 National Instruments Corporation Task based polymorphic graphical program function nodes
US7257580B2 (en) * 2004-02-24 2007-08-14 International Business Machines Corporation Method, system, and program for restricting modifications to allocations of computational resources
US7568198B2 (en) * 2006-01-10 2009-07-28 National Instruments Corporation Control of tasks in a programmable logic controller
US20090265707A1 (en) * 2008-04-21 2009-10-22 Microsoft Corporation Optimizing application performance on virtual machines automatically with end-user preferences
US8286198B2 (en) * 2008-06-06 2012-10-09 Apple Inc. Application programming interfaces for data parallel computing on multiple processors
US8676976B2 (en) * 2009-02-25 2014-03-18 International Business Machines Corporation Microprocessor with software control over allocation of shared resources among multiple virtual servers
JP5380478B2 (ja) * 2011-02-14 2014-01-08 株式会社日立産機システム 通信システム
KR101918734B1 (ko) * 2011-07-13 2019-02-08 한국전자통신연구원 모바일 방송 서비스를 위한 시스템 및 방법, 컨트롤러 및 컨트롤러의 구동 방법, 프로그램을 기록한 컴퓨터로 읽을 수 있는 매체
GB2524932A (en) * 2013-06-14 2015-10-07 Hitachi Ltd Storage management calculator, and storage management method
JP6488830B2 (ja) * 2015-03-31 2019-03-27 オムロン株式会社 制御装置
US10191771B2 (en) * 2015-09-18 2019-01-29 Huawei Technologies Co., Ltd. System and method for resource management
JP6733219B2 (ja) * 2016-03-03 2020-07-29 オムロン株式会社 管理装置、管理システム、管理方法および管理プログラム
US10387392B2 (en) * 2016-05-17 2019-08-20 Rockwell Automation Technologies, Inc. Method to automate historian configuration using controller based tag meta attribute
JP6879625B2 (ja) * 2016-12-27 2021-06-02 東芝インフラシステムズ株式会社 プログラマブルコントローラ、管理装置および制御システム
US10318354B1 (en) * 2017-05-22 2019-06-11 Datacore Software Corporation Methods and apparatus for command list processing in performing parallel IO operations
JP6946909B2 (ja) * 2017-09-29 2021-10-13 オムロン株式会社 制御システムおよび制御装置
JP7048638B2 (ja) * 2017-11-16 2022-04-05 株式会社日立産機システム コントロール装置
TWI641951B (zh) * 2017-11-20 2018-11-21 宏碁股份有限公司 動態分派工作及提供資源的方法、裝置及其系統
WO2019135703A1 (en) * 2018-01-08 2019-07-11 Telefonaktiebolaget Lm Ericsson (Publ) Process placement in a cloud environment based on automatically optimized placement policies and process execution profiles
JP6927089B2 (ja) * 2018-03-05 2021-08-25 オムロン株式会社 制御装置、システムプログラム、制御方法
US11036555B2 (en) * 2018-07-25 2021-06-15 Vmware, Inc. Virtual processor allocation with execution guarantee
EP3851591A3 (en) * 2019-12-28 2021-10-13 Kubota Corporation Working machine and program update system for working machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07230387A (ja) * 1994-02-18 1995-08-29 Hitachi Ltd 排他制御方法
JP2004362327A (ja) 2003-06-05 2004-12-24 Toshiba Plant Systems & Services Corp 分散型監視制御システム
JP2005309644A (ja) * 2004-04-20 2005-11-04 Hitachi Ltd リソース制御方法及びそのシステム
JP2006178818A (ja) 2004-12-24 2006-07-06 Yaskawa Electric Corp モーションコントローラとエンジニアリングツール並びにc言語実行システム
WO2018096717A1 (ja) * 2016-11-24 2018-05-31 株式会社日立産機システム コントロールシステム及びコントロール方法

Also Published As

Publication number Publication date
KR102445194B1 (ko) 2022-09-21
KR20210016617A (ko) 2021-02-16
CN112470088B (zh) 2023-09-12
JP2020061104A (ja) 2020-04-16
EP3865959A1 (en) 2021-08-18
US20210373538A1 (en) 2021-12-02
JP7141905B2 (ja) 2022-09-26
EP3865959A4 (en) 2022-06-29
CN112470088A (zh) 2021-03-09

Similar Documents

Publication Publication Date Title
JP7048638B2 (ja) コントロール装置
JP5291912B2 (ja) プロセス制御システムにおいて使用する機能ブロックの動作を修正変更するための方法及び動的モディファイア機能ブロック
US20170293502A1 (en) Control device, control method and program
WO2020075351A1 (ja) コントロール装置
US20220113709A1 (en) Runtime server for simultaneous execution of a plurality of runtime systems of an automation system
JP6857153B2 (ja) コントロール装置
JP7085305B2 (ja) コントロールシステム及びコントロール方法
JP7413169B2 (ja) コントロール装置
JP7240282B2 (ja) 産業用コントロール装置及びアクティベーション方法
JP6833649B2 (ja) プログラマブルコントローラ及びコントロールシステム
JP7413183B2 (ja) コントロールシステム
JP2009237947A (ja) プログラマブルコントローラ、プログラマブルコントローラ支援装置、及びプログラマブルコントローラシステム
CN106066638B (zh) 用于灵活的过程控制的方法和装置
JP2015207172A (ja) 制御装置
JP2018180592A (ja) 監視システム、デバイス及びエンジニアリングツール

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19872111

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 20217000345

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2019872111

Country of ref document: EP

Effective date: 20210512