Information processing device and program
By allocating idle time within the control cycle to manage processor load, the information processing device addresses high power consumption and heat issues in control devices, enabling reliable operation at elevated temperatures without performance loss.
Patent Information
- Application Number
- JP2021036616
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-08
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2041-03-08
AI Technical Summary
Control devices in FA technology face high power consumption and heat generation due to high processor load, leading to potential malfunctions when operated at temperatures higher than designed ambient limits, and reducing clock frequency to manage heat affects control performance.
An information processing device allocates idle time within the control cycle of a control device, allowing it to operate at higher temperatures by prioritizing high-priority tasks and selectively assigning low-priority tasks during processor idle periods, thereby reducing power consumption and heat generation without altering hardware.
The solution enables control devices to operate reliably at higher ambient temperatures without performance degradation and hardware changes, ensuring consistent control performance and reducing heat-related failures.
Smart Images

Figure 0007567566000001 
Figure 0007567566000002 
Figure 0007567566000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an information processing device and a program, and more particularly to an information processing device and a program for setting a control device. [Background technology]
[0002] Factory automation (FA) technology using control devices such as programmable controllers (PLCs) has become widespread in various manufacturing sites. With the recent development of information and communication technology (ICT), control devices in the FA field are now able to execute not only conventional sequence programs but also various application programs.
[0003] For example, JP 2020-61055 A (Patent Document 1) discloses that a processor of a control device executes a high priority program and a low priority program within a certain control period, and that the low priority program is executed during free time of the processor so as not to interfere with the execution of the high priority program. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2020-61055 A Summary of the Invention [Problem to be solved by the invention]
[0005] In the above-mentioned control device, the first program, which has a high priority, is repeatedly executed by the processor at a fixed period. Furthermore, in order not to impede the execution of the first program, the processor is made to execute the second program and the third program during the processor's free time during the control period. From the viewpoint of improving the calculation speed and performance, the processor performs calculations within the set control period up to the last possible time without exceeding the period. However, since the processor and peripheral circuits are in a high load state, the power consumption of the control device is large. The greater the power consumption of the control device, the greater the amount of heat generated by the control device.
[0006] The control device is designed so that it can be used at a certain ambient operating temperature. The device that is actually manufactured is evaluated to see if it can be used up to that ambient operating temperature. The design and evaluation are performed under harsh conditions for the control device, that is, under conditions where the processor performs calculations until just before the end of the control period (maximum load condition).
[0007] Due to the need for a small size and reduced manufacturing costs, the control device may not have sufficient heat dissipation capacity. For example, if the control device is operated under maximum load at an ambient temperature higher than the upper limit of the operating ambient temperature determined in the design and evaluation stages, the control device may malfunction, stop, or break down.
[0008] Some processors have a function that automatically reduces the clock frequency when the temperature is high. By reducing the clock frequency, the power consumption of the processor is reduced, and the amount of heat generated by the processor can be reduced. However, in control devices used in production sites such as PLCs, there is a problem that the control performance decreases when the clock frequency is reduced. This can cause the operation of the target (manufacturing equipment) controlled by the control device to change.
[0009] The environments in which control devices can be used are becoming more diverse. Therefore, there is a possibility that the control device will be used at temperatures higher than the assumed ambient temperature. For example, if the heat dissipation performance of the control device is to be improved by enlarging the case, a new design of the control device is required. In terms of size and manufacturing cost requirements, it is not easy to change the hardware.
[0010] An object of the present invention is to provide an information processing device and a program executed by the information processing device for setting a control device so that the control device can be used at higher ambient temperatures. [Means for solving the problem]
[0011] An information processing device according to an example of the present disclosure is an information processing device having a processor and for making settings related to a task executed by a control device that controls a control target, and includes an input unit that accepts a user input related to an operation mode of the control device, a setting unit that sets an operation condition of the control device according to the user input, and a transfer unit that transfers the operation condition of the control device set by the setting unit to the control device. The operation modes include a first mode and a second mode for operating the control device at a higher temperature than the operating temperature in the first mode. When the second mode is selected by the user input, the setting unit allocates free time of the processor within the control period of the task.
[0012] According to this disclosure, when the second mode is selected by the user, the information processing device allocates free time for the processor within a control period. During the free time, the processor does not perform calculations, so the amount of heat generated by the processor is reduced. Therefore, it becomes possible to operate the control device at a temperature higher than the ambient temperature in the first mode. The information processing device can set the control device so that the control device can operate at a temperature higher than the ambient temperature in the first mode.
[0013] In the above disclosure, when the second mode is selected by user input, the setting unit allocates execution time for a high-priority task, which has a high priority for execution by the processor, among the multiple tasks, within a first remaining time excluding free time from the control period.
[0014] According to the above disclosure, it is possible to secure free processor time within a control period without affecting the execution of high priority tasks, and therefore it is possible to operate the control device at high ambient temperatures, for example, without affecting the execution of tasks of high importance.
[0015] In the above disclosure, when the second mode is selected by a user input, the setting unit determines whether a low-priority task having a low execution priority among the multiple tasks can be assigned within a second remaining time obtained by subtracting the free time and the execution time of the high-priority task from the control period. If the low-priority task can be assigned within the second remaining time, the setting unit assigns the execution time of the low-priority task within the second remaining time. If the low-priority task cannot be assigned within the second remaining time, the setting unit assigns the second remaining time to the free time.
[0016] According to the above disclosure, by executing a high-priority task and a low-priority task within a control period, the control performance of the control object can be improved. If a low-priority task cannot be executed, the free time within the control period can be made longer. Therefore, the effect of suppressing the amount of heat generated by the processor can be improved.
[0017] In the above disclosure, when the second mode is selected by a user input, the setting unit allocates the maximum execution time of the high priority task based on the fluctuation of the execution time of the high priority task within the first remaining time.
[0018] According to the above disclosure, it is possible to ensure that a high priority task is executed while securing free time within a control period.
[0019] In the above disclosure, the setting unit allocates at least a portion of the free time immediately after the end of a high-priority task.
[0020] According to the above disclosure, by shortening the time during which the processor operates continuously, it is possible to prevent the temperature of the processor from increasing significantly without changing the control period.
[0021] In the above disclosure, when the first mode is selected by user input, the setting unit allocates multiple tasks so that no free time is reserved within the control period and the multiple tasks are executed within the control period in descending order of priority.
[0022] According to the above disclosure, by executing a high priority task and a low priority task within a control period, it is possible to improve the control performance for a controlled object.
[0023] According to an example of the present disclosure, a program for causing a computer to execute settings related to a task executed by a control device having a processor and controlling a control target, the program causing the computer to execute the steps of accepting a user input related to an operation mode of the control device, setting an operation condition of the control device according to the user input, and transferring the operation condition of the control device to the control device. The operation modes include a first mode and a second mode for operating the control device at a temperature higher than the operating temperature in the first mode. The setting step includes a step of allocating free time of the processor within a control period of the task when the second mode is selected by the user input.
[0024] According to this disclosure, the controller can be configured to allow the controller to be used at higher ambient temperatures. Effect of the Invention
[0025] According to the present disclosure, the controller may be configured to allow the controller to be used at higher ambient temperatures. [Brief description of the drawings]
[0026] [Figure 1] FIG. 4 is a schematic diagram showing an example of a program execution schedule in a default mode in the control device according to the present embodiment. [Diagram 2] 5 is a schematic diagram showing an example of a program execution schedule in an extended mode in the control device according to the present embodiment. FIG. [Diagram 3] FIG. 1 is a schematic diagram of a control system including a control device according to an embodiment. [Figure 4] FIG. 2 is a schematic diagram showing an example of a hardware configuration of a computing unit that constitutes the control device according to the present embodiment. [Diagram 5] 2 is a block diagram showing an example of a hardware configuration of a support device constituting the system according to the present embodiment. FIG. [Figure 6] FIG. 2 is a schematic diagram showing an example of a software configuration of a computing unit that configures the control device according to the present embodiment. [Figure 7] FIG. 13 is a diagram showing an example of a screen for setting an operation mode, provided by a display unit of the support device. [Figure 8] 4 is a flowchart showing an outline of an operation mode setting process of the control device according to the first embodiment. [Figure 9] 11 is a diagram illustrating the priority of time allocation within a control period in the default mode and the extended mode. FIG. [Figure 10] 10A and 10B are diagrams illustrating an example of a task process executed by a computing unit of a control device in a default mode. [Figure 11] 10A and 10B are diagrams illustrating an example of task processing executed by a computing unit of a control device in an extended mode. [Figure 12] 11 is a diagram illustrating another example of task processing executed by the arithmetic unit of the control device in the extended mode. FIG. [Figure 13] FIG. 11 is a diagram illustrating yet another example of task processing executed by the arithmetic unit of the control device in the extended mode. [Figure 14]It is a flowchart showing an outline of operation mode setting processing of a control device according to a second embodiment. [Figure 15] It is a flowchart for explaining processing related to control of processor idle time when a task is executed by a control device. [Figure 16] It is a diagram for explaining an example of task processing executed by an arithmetic unit of a control device according to a second embodiment in an extended mode.
Embodiments for Carrying Out the Invention
[0027] Hereinafter, embodiments according to the present invention will be described with reference to the drawings. In the following description, the same parts and components are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed descriptions thereof will not be repeated.
[0028] <A. Application Example> First, with reference to FIGS. 1 and 2, an example of a scene to which the present invention is applied will be described.
[0029] The control device according to the present embodiment is a computer for controlling an arbitrary control target and has one or more processors. The control device has two operation modes. The first operation mode is the default (standard) mode. The second operation mode is the extended mode.
[0030] FIG. 1 is a schematic diagram showing an example of a program execution schedule in the default mode in the control device according to the present embodiment. FIG. 2 is a schematic diagram showing an example of a program execution schedule in the extended mode in the control device according to the present embodiment.
[0031] As shown in FIG. 1, when the control device operates in the default mode, the control device executes a high-priority task 20 and a low-priority task 30 within a control cycle.
[0032] In this specification, a "task" is a basic unit that is the subject of control for allocating computing resources, and one or more programs to be executed are set for each task. In other words, when computing resources are allocated to any task and the task becomes ready to be executed, the execution of one or more programs set for the task is started or resumed.
[0033] The high priority task 20 is a task that should be executed within a control period. A program with the highest execution priority (hereinafter also simply referred to as "priority") that is repeatedly executed by the processor of the control device is set in the high priority task 20. The high priority task 20 may include, for example, an update process of input / output data, and a sequence calculation process that should be executed with the highest priority. A processing time for the high priority task 20 is allocated within the control period so that the high priority task 20 is always executed within the control period.
[0034] On the other hand, the low priority task 30 is a task that has a lower execution priority than the high priority task 20, and is executed, for example, when requested. A program that has a lower priority than a program set in the high priority task 20 is set in the low priority task 30.
[0035] The control device manages the execution timing of each program set in these tasks according to a scheduler program. The scheduler program manages the execution of the programs by allocating computing resources to each program at the appropriate timing and for the appropriate period.
[0036] In the default mode, the scheduler program causes the processor to execute the program set as the low priority task 30 during the time during the control period when the high priority task 20 is not being executed, so as not to interfere with the execution of the program set as the high priority task 20. The scheduler program allocates the execution time of the low priority task 30 within the control period so as not to exceed a preset control period. Therefore, in a certain control period, even when the high priority task 20 and the low priority task 30 are allocated, there may be still free time of the processor. In another control period, only the high priority task 20 may be allocated, and the remaining time may be free time of the processor.
[0037] 2, the extended mode is selected when the control device is operated at an ambient temperature (e.g., 60° C.) higher than the ambient temperature (e.g., 55° C. or lower) used by a standard control device. When the control device is operated in the extended mode, the scheduler program reserves a predetermined percentage of the control period for the processor's free time 40. The percentage of the free time 40 relative to the control period may be a value determined, for example, by the developer of the control device by carrying out temperature measurement tests while changing the free time using an actual device.
[0038] Next, the scheduler program allocates the processing time of the high priority task 20 to the remaining time (first remaining time) obtained by subtracting the free time 40 from the control cycle. The scheduler program then determines whether or not the low priority task 30 can be allocated to the second remaining time obtained by subtracting the free time 40 and the processing time of the high priority task 20 from the control cycle.
[0039] If the low-priority task 30 can be assigned during the second remaining time, then in that control cycle, the high-priority task 20 and the low-priority task 30 are assigned and executed. Further, in that control cycle, a free time 40 having a predetermined length is ensured. On the other hand, if the low-priority task 30 cannot be assigned during the second remaining time, then only the high-priority task 20 is executed in that control cycle. That is, the time other than the execution time of the high-priority task 20 becomes the free time 40 of the processor. Therefore, the actual free time of the processor becomes longer than the previously ensured time.
[0040] For example, in a state where the control device is operating in the default mode, it may happen that the maximum processing time of the high-priority task becomes long and free time cannot be ensured within the control cycle. In this state, when the ambient temperature of the control device rises, the control cycle has to be set longer. However, when the control cycle is made longer, the performance of the processing of the high-priority task deteriorates. That is, the control performance of the control device deteriorates.
[0041] According to the embodiment of the present disclosure, in the extended mode, the control device can always ensure a free time 40 having a length of a certain time or more within the control cycle. The processor stops the operation during the free time. Therefore, the power consumption of the processor can be reduced compared to the operation in the default mode. By reducing the power consumption of the processor, the heat generation amount of the processor can be suppressed. Thereby, in the extended mode, the control device can be operated even at a higher ambient temperature than in the default mode. In particular, according to the embodiment of the present disclosure, the control device can be operated even at a high ambient temperature without the need for hardware modification (for example, increasing the size of the housing) to enhance the heat dissipation of the control device.
[0042] <B. Configuration example> (B-1. System configuration) 3 is a schematic diagram of a control system including a control device according to an embodiment. The control device according to the present embodiment is provided in, for example, an FA production line 10, and controls a control target. The production line 10 includes control devices 1A, 1B, 1C, 1D, 1E, 1F, 1G, and 1H. The control devices 1A to 1H are realized by, for example, a PLC.
[0043] The control devices 1A to 1H are connected to a communication device 4. The control devices 1A to 1H can exchange data with one another via the communication device 4. The communication device 4 is a device for realizing the real-time performance required for communication in the industrial field, and is, for example, a switch conforming to IEEE 802.1.TSN. The control devices 1A, 1B, 1C, 1D, 1E, 1F, 1G, and 1H are time-synchronized with one another. For this purpose, the control devices 1A, 1B, 1C, 1D, 1E, 1F, 1G, and 1H are provided with a timer function.
[0044] In the production line 10 shown in Fig. 3, at least one of the control devices 1A-1H is a control device according to an embodiment. Hereinafter, the control device 1A will be described as a control device according to an embodiment. Note that all of the control devices 1A-1H may correspond to the control device according to this embodiment. Furthermore, Fig. 3 is not intended to limit the number of control devices included in the production line 10.
[0045] The control device 1A executes control processing for the field device 5 to be controlled. The control device 1A includes a plurality of functional units in which functions for executing the control processing are implemented. As shown in Fig. 1, the control device 1A includes an arithmetic unit 100A, functional units 201A, 201B, 201C, 201D, and an I / O unit 300A. The type of the field device 5 is not particularly limited, and may include, for example, a servo motor.
[0046] The functions implemented by each of the functional units 201A, 201B, 201C, and 201D are not particularly limited. For example, the functional units 201A, 201B, 201C, and 201D may include a communication unit. In the example shown in FIG. 1, the functional unit 201D is a communication unit and is connected to the communication device 4 via a network.
[0047] The AC-DC power supply 400A converts an AC voltage into a DC voltage and supplies the DC voltage as a power supply voltage to the control device 1A. The power supply voltage of the control device 1A is, for example, DC 24V.
[0048] The control device 1B includes a calculation unit 100B, a functional unit 202A, and an I / O unit 300B. The functional unit 202A is, for example, a communication unit, and is connected to a communication device 4 via a network. Similar to the control device 1A, an AC-DC power supply 400B supplies a power supply voltage (for example, DC 24V) to each functional unit of the control device 1B.
[0049] The support device 8 is a device that supports the preparations required for the control devices 1A-1H to control targets. Specifically, the support device 8 provides a setting environment for tasks executed by each of the control devices 1A-1H, a monitor screen showing the execution status of the tasks in the control devices 1A-1H, and the like.
[0050] (B-2. Hardware configuration of the computing unit) Fig. 4 is a schematic diagram showing an example of a hardware configuration of a computing unit 100A constituting a control device 1A according to the present embodiment. Referring to Fig. 4, the computing unit 100A includes a processor 101, a chipset 102, a main memory 104, a non-volatile memory 106, a system timer 108, a PLC system bus controller 120, a field network controller 140, and a USB connector 110. The chipset 102 and other components are respectively coupled to each other via various buses.
[0051] The processor 101 and the chipset 102 are typically configured according to a general-purpose computer architecture. That is, the processor 101 interprets and executes instruction codes sequentially supplied from the chipset 102 in accordance with an internal clock. The chipset 102 exchanges internal data with various components connected thereto, and generates instruction codes required for the processor 101. Furthermore, the chipset 102 has a function of caching data obtained as a result of the execution of arithmetic processing by the processor 101.
[0052] 4 illustrates one processor 101 for convenience of explanation, multiple processors 101 may be arranged, or multiple cores may be implemented in one processor 101. The performance and configuration of the processor 101 may be determined according to the required computing resources.
[0053] The arithmetic unit 100A has, as storage means, a main memory 104 and a non-volatile memory 106. The main memory 104 is a volatile storage area (RAM) and holds various programs to be executed by the processor 101 after the arithmetic unit 100A is powered on. The main memory 104 is also used as a working memory when the processor 101 executes the various programs. As such a main memory 104, a device such as a DRAM (Dynamic Random Access Memory) or an SRAM (Static Random Access Memory) is used.
[0054] The nonvolatile memory 106 holds data such as a real-time OS (Operating System), the system program of the control device 1A, user programs, and system setting parameters in a nonvolatile manner. These programs and data are copied to the main memory 104 as necessary so that the processor 101 can access them. As such a nonvolatile memory 106, a semiconductor memory such as a flash memory can be used. Alternatively, as the nonvolatile memory 106, a magnetic recording medium such as a hard disk drive can be used.
[0055] The system timer 108 generates an interrupt signal and provides it to the processor 101. Typically, the system timer 108 is configured to generate interrupt signals at a number of different cycles depending on the hardware specifications, but it can also be set to generate interrupt signals at any cycle using an OS (Operating System) or BIOS (Basic Input Output System). The interrupt signals generated by the system timer 108 are used to realize control operations for each control cycle.
[0056] The arithmetic unit 100A has, as communication circuits, a PLC system bus controller 120 and a field network controller 140. These communication circuits transmit output data such as an arbitrary command value, and receive input data such as a detection value obtained from an arbitrary sensor.
[0057] The PLC system bus controller 120 controls data exchange via a PLC system bus (not shown). More specifically, the PLC system bus controller 120 includes a DMA (Dynamic Memory Access) control circuit 122, a PLC system bus control circuit 124, and a buffer memory 126. The PLC system bus controller 120 is internally connected to the PLC system bus via a PLC system bus connector 130.
[0058] The buffer memory 126 functions as a transmission buffer for data (output data) output to other units via the PLC system bus, and as a reception buffer for data (input data) input from other units via the PLC system bus. The DMA control circuit 122 transfers output data from the main memory 104 to the buffer memory 126, and transfers input data from the buffer memory 126 to the main memory 104. The PLC system bus control circuit 124 performs a process of transmitting output data from the buffer memory 126 to other units connected to the PLC system bus, and a process of receiving input data and storing it in the buffer memory 126.
[0059] The field network controller 140 controls data exchange via a field network (not shown). That is, the field network controller 140 controls the transmission of output data and the reception of input data in accordance with the standard of the field network used. More specifically, the field network controller 140 includes a DMA control circuit 142, a field network control circuit 144, and a buffer memory 146.
[0060] The buffer memory 146 functions as a transmission buffer for data (output data) output to other devices via the field network, and as a reception buffer for data (input data) input from other devices via the field network. The DMA control circuit 142 transfers output data from the main memory 104 to the buffer memory 146, and transfers input data from the buffer memory 146 to the main memory 104. The field network control circuit 144 performs a process of transmitting output data from the buffer memory 146 to other devices connected to the field network, and a process of receiving input data and storing it in the buffer memory 146.
[0061] The USB connector 110 is an interface for connecting an external device to the arithmetic unit 100A. For example, the arithmetic unit 100A is connected to the support device 8 via the USB connector 110 and a USB cable. Programs executable by the processor 101 of the arithmetic unit 100A and the like are transferred from the support device 8 and taken into the control device 1A via the USB connector 110.
[0062] The temperature sensor 161 detects the internal temperature of the arithmetic unit 100A and outputs a temperature value. The temperature value is sent to the processor 101 via the chipset 102.
[0063] (B-3. Hardware configuration of support device) The support device 8 according to the present embodiment is realized, for example, by hardware (for example, a general-purpose personal computer) that complies with a general-purpose architecture executing a program.
[0064] Fig. 5 is a block diagram showing an example of a hardware configuration of a support device 8 constituting a system according to the present embodiment. Referring to Fig. 5, the support device 8 includes a processor 802 such as a CPU or an MPU, an optical drive 804, a main storage device 806, a secondary storage device 808, a USB controller 812, an input unit 816, and a display unit 818. These components are connected via a bus 820.
[0065] The processor 802 realizes various processes to be described later by reading out various programs stored in the secondary storage device 808, and expanding and executing them in the main storage device 806. The processor 802 corresponds to a setting unit that sets the operating conditions of the control device 1A according to user input.
[0066] The secondary storage device 808 is configured with, for example, an HDD or SSD. The secondary storage device 808 typically stores a development program 822, which is a tool for creating user programs and configuring settings related to tasks. The secondary storage device 808 may also store an OS and other necessary programs.
[0067] The support device 8 may have an optical drive 804. The optical drive 804 reads a computer-readable program stored in a recording medium 805 (for example, an optical recording medium such as a DVD (Digital Versatile Disc)) that non-transiently stores the program. The program read from the recording medium 805 may be installed in a secondary storage device 808 or the like.
[0068] Various programs executed by the support device 8 may be downloaded from a server device on the network and installed in the support device 8. Furthermore, the functions provided by the support device 8 may be realized by using some of the modules provided by the OS.
[0069] The USB controller 812 controls data exchange with the control device 1A via a USB connection. In this embodiment, the USB controller 812 realizes a transfer unit for transferring the operating conditions of the control device 1A to the control device 1A.
[0070] The input unit 816 is configured with a keyboard, a mouse, etc., and accepts user operations, user inputs, etc. In this embodiment, the input unit 816 is configured to accept user inputs related to the operation mode of the control device 1A.
[0071] The display unit 818 is composed of a display, various indicators, a printer, etc., and outputs the processing results from the processor 802, etc.
[0072] FIG. 5 shows an example of a configuration in which the necessary functions are provided by the processor 802 executing a program, but some or all of these provided functions may be implemented using a dedicated hardware circuit (e.g., ASIC or FPGA).
[0073] (B-4. Software configuration of the computing unit) Fig. 6 is a schematic diagram showing an example of the software configuration of the arithmetic unit 100A constituting the control device 1A according to the present embodiment. Fig. 6 shows an example of a software group for providing various functions according to the present embodiment. The instruction codes included in this software group are read at appropriate timing and executed by the processor 101 of the arithmetic unit 100A.
[0074] 6, the software executed by the arithmetic unit 100A includes a real-time OS 200, a system program 210, and a user program 234.
[0075] The real-time OS 200 is designed according to the computer architecture of the arithmetic unit 100A, and provides a basic execution environment for the processor 101 to execute the system program 210 and the user program 234. This real-time OS is typically provided by the manufacturer of the control device or a specialized software company.
[0076] The system program 210 is a software group for providing the functions of the control device 1 A. Specifically, the system program 210 includes a scheduler program 212, an IO processing program 214 (including an input processing program 216 and an output processing program 218), a sequence command execution unit 232, and a system service program 220.
[0077] The user program 234 is created according to the control purpose of the user. That is, it is a program that is arbitrarily created according to the control target to be controlled using the control device 1A. The user program 234 is generated, for example, in the support device 8. The user program 234 is transferred from the support device 8 to the arithmetic unit 100A and stored in the non-volatile memory 106 or the like.
[0078] The user programs 234 include an IEC (International Electrotechnical Commission) program 236 consisting of instruction codes such as sequence instructions and motion instructions, and an application program 238 expressing the procedure of a control application for controlling a driving device such as a servo motor.
[0079] The IEC program 236 includes a program consisting of one or more instructions written in accordance with the international standard IEC 61131-3 defined by the IEC.
[0080] The application program 238 includes one or more commands that define a desired trajectory. The application program 238 may be a program written in an interpreted language, such as robotics language or G language.
[0081] The sequence command executing unit 232 executes the IEC program 236 to output a command value. The sequence command executing unit 232 interprets a sequence command included in the IEC program 236 and executes a specified sequence operation (logical operation). Furthermore, the sequence command executing unit 232 calculates a command value according to a motion command included in the IEC program 236. A motion command defines the calculation of a command value over multiple control cycles by one command, and the sequence command executing unit 232 interprets such a motion command and updates the motion command value for each control cycle.
[0082] The system service program 220 collectively represents a group of programs for realizing various functions of the control device 1A other than the programs individually shown in Fig. 6. The system service program 220 may be, for example, a program for realizing a process of transmitting and receiving files and data to and from an external device (i.e., a program related to communication processing), a program for realizing anomaly monitoring processing and various analysis processing, etc.
[0083] In the computing unit 100A according to this embodiment, the programs included in the system service program 220 are differentiated into at least two priority levels. As an example, the system service program 220 includes a high priority service program 222 set as the high priority task 20, and a low priority service program 226 set as the low priority task 20. The high priority service program 222 is set to have a higher priority for execution than the low priority service program 226.
[0084] The high priority service program 222 includes an application program execution unit (not shown) that executes, for example, an application program 238 in an interpretive manner and outputs a command value for a control target (for example, a servo motor).
[0085] The scheduler program 212 causes the processor 101 to execute a program set for each task according to the priority set for each task. That is, the scheduler program 212 controls the start of processing in each execution cycle and the resumption of processing after processing is interrupted for the IO processing program 214, the system service program 220, etc.
[0086] Specifically, the scheduler program 212 includes a control function 2120 and a monitoring function 2122. The control function 2120 is responsible for control for allocating computing resources to each process. The monitoring function 2122 monitors the execution status of each program included in the system service program 220. The monitoring function 2122 grasps the execution status of each service based on notifications by a notification function program of a high priority service program 222 included in the system service program 220, etc.
[0087] The IO processing program 214 is responsible for updating the data (input data and output data) available in the computing unit 100A. The input processing program 216 of the IO processing program 214 rearranges the input data received by the PLC system bus controller 120 and / or the field network controller 140 into a format suitable for use by the processor 101 of the computing unit 100A.
[0088] The output processing program 218 rearranges the output data generated by the execution of the user program 234 into a format suitable for transfer to the PLC system bus controller 120 and / or the field network controller 140. When the PLC system bus controller 120 or the field network controller 140 requires a command from the processor 101 to perform a transmission, the output processing program 218 issues such a command.
[0089] In addition, instead of an implementation form in which processor 101 executes the program shown in FIG. 6 to realize the functions and processing described below, some or all of it may be implemented using hardwired circuits such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field-Programmable Gate Array).
[0090] FIG. 7 is a diagram showing an example of a screen for setting an operation mode provided by the display unit 818 of the support device 8. In the example of the setting screen shown in FIG. 7, a default mode and an extended mode are displayed on the screen.
[0091] The default mode is the operation mode of the control device 1A when the operating ambient temperature is the standard temperature (55° C. in this example). The extended mode is the operation mode of the control device 1A when the operating ambient temperature is higher than the operating ambient temperature in the default mode (for example, 60° C.).
[0092] When the user operates the input unit 816 of the support device, the cursor represented in the shape of an arrow in the screen moves up and down, and the display of the operation mode pointed by the arrow is reversed. When the user performs an operation for determination on the input unit 816, the input unit 816 receives the input of the operation mode by the user. <C. Setting of the Operation Mode of the Control Device> (C-1. Setting by a Tool) In the first embodiment, the support device 8 sets the free time within the control period.
[0093] FIG. 8 is a flowchart showing an outline of the operation mode setting process of the control device according to the first embodiment. By executing a program by the support device 8, the process shown in FIG. 8 is executed. Referring to FIG. 8, the setting process first includes a mode setting process (step S11) executed in the support device 8. Specifically, the operation mode is determined by the user operating the setting screen (refer to FIG. 7) of the support device 8. The input unit 816 receives the input of the operation mode by the user.
[0094] In step S12, the processor 802 of the support device 8 determines whether the operation mode accepted by the input unit 816 is the default mode or the extended mode. If it is the default mode, then in step S13, settings for control processing in the default mode are executed. On the other hand, if it is the extended mode, then in step S14, settings for control processing in the extended mode are executed.
[0095] In the setting process for the default mode and the extended mode (steps S13 and S14), the user sets the length of the control period, the allocation of high priority tasks, the allocation of low priority tasks, etc., using a user interface provided by the support device 8. The allocation of tasks within a control period differs between the default mode and the extended mode.
[0096] 9 is a diagram explaining the priority of time allocation within a control period in the default mode and the extended mode. In the default mode, high priority tasks (priority: high) are preferentially allocated within a control period, and low priority tasks (priority: medium to low) are allocated to the remaining time within the control period. On the other hand, in the extended mode, free time of the processor is allocated with the highest priority within a control period. Next, the processing time of the high priority task (priority: high) is allocated. If a low priority task can be allocated to the remaining time within the control period, the low priority task is allocated.
[0097] Returning to FIG. 8, in the case of the default mode setting, the user sets the allocation of high priority tasks, the allocation of low priority tasks, and the length of the control period. At this time, the processor 802 of the support device 8 does not reserve processor free time within the control period. Furthermore, the processor 802 enables multiple tasks to be allocated so that the tasks are executed within the control period in descending order of priority. Therefore, in the default mode, basically, processor free time does not occur within the control period. Or, even if processor free time occurs in the default mode, the free time is extremely short.
[0098] On the other hand, in the case of the extended mode setting, the processor 802 of the support device 8 reserves a certain percentage (for example, 10%) of the control period as processor free time. Then, the processor 802 accepts a user setting so that a high priority task is assigned within the remaining time (first remaining time) in the control period.
[0099] In addition, in the extended mode setting, the processor 802 calculates the exclusive processing (task) time taking into consideration the maximum fluctuation in the processing time of the high priority task. That is, the processor 802 calculates the maximum processing time of the high priority task and displays the calculation result on the display unit 818. The user determines the allocation and control period of the high priority task based on this calculation result. Since the ratio of the processor free time to the control period is constant, the processor free time is determined according to the length of the control period set by the user. Therefore, even if the execution time of the high priority task becomes long, the processor free time can be secured within the control period.
[0100] Furthermore, in the extended mode setting, the processor 802 determines whether a low priority task can be assigned within a second remaining time, which is the control period minus the free time and the execution time of the high priority task. If a low priority task can be assigned within the second remaining time, the processor 802 assigns the execution time of the low priority task within the second remaining time. On the other hand, if a low priority task cannot be assigned within the second remaining time, the processor 802 assigns the second remaining time to the processor free time. Therefore, if a low priority task cannot be assigned within the control period, the processor free time becomes longer than the time initially secured.
[0101] When the user finishes the settings in step S13 or step S14, the program and the settings are transferred from the support device 8 to the control device 1A (PLC) in step S15. In the extended mode, in addition to the contents transferred from the support device 8 to the control device 1A (PLC) in the default mode, information indicating that there is processor free time within the control period and information regarding the length of the free time are sent to the control device 1A.
[0102] When the arithmetic unit 100A receives information regarding the setting of the extended mode, the arithmetic unit 100A sets an interrupt request to the processor 101 based on the free time information contained in the information. This causes a circuit inside the arithmetic unit 100A (for example, the system timer 108) to generate an interrupt signal at the set timing and provide the interrupt signal to the processor 101. In the following explanation, the interrupt request sent to the processor 101 by the interrupt signal is referred to as an "IRQ (Interrupt ReQuest)".
[0103] 10 is a diagram for explaining an example of task processing executed by the arithmetic unit of the control device 1A in the default mode. In the default mode, an IRQ occurs at each set control period. The processor 101 of the arithmetic unit 100A starts processing in response to the IRQ and executes the high priority task 20 and the low priority task 30. In the default mode, tasks are executed until just before the end of the control period. Therefore, the calculation speed and control performance are improved.
[0104] 11 is a diagram for explaining an example of task processing executed by the arithmetic unit of the control device 1A in the extended mode. In the extended mode, an IRQ occurs at the start of a control cycle as well as at the start of an idle time. The processor 101 of the arithmetic unit 100A stops arithmetic processing in response to the IRQ within the control cycle. The time from when the processor 101 stops arithmetic processing to the start of the next control cycle corresponds to the idle time 40. After arithmetic processing is stopped, the next IRQ occurs at the start of the control cycle. In response to the IRQ, the processor 101 starts arithmetic processing (execution of the high priority task 20) in the next control cycle.
[0105] Fig. 12 is a diagram for explaining another example of task processing executed by the arithmetic unit of the control device 1A in the extended mode. As shown in Fig. 12, in addition to the start of the free time 40, the end of the free time 40 may be notified to the processor 101 by an IRQ. This allows the free time 40 to be placed in any period within the control cycle, as shown in Fig. 12. For example, as shown in Fig. 12, the free time 40 may be placed between the high priority task 20 and the low priority task 30 (in other words, immediately after the end of the high priority task 20). By shortening the time during which the processor 101 operates continuously, it is possible to prevent the temperature of the processor 101 from rising significantly without changing the control cycle.
[0106] Fig. 13 is a diagram for explaining yet another example of task processing executed by the arithmetic unit of the control device 1A in the extended mode. As shown in Fig. 13, a plurality of free periods 40 may be arranged within a control period. The start and end of each free period 40 is notified to the processor 101 by an IRQ. According to this example, the operation of the processor 101 can be stopped not only immediately after the end of the high-priority task 20, but also immediately after the end of the low-priority task 30. This shortens the time during which the processor 101 operates continuously, and thus prevents the temperature of the processor 101 from rising significantly without changing the control period.
[0107] When a high priority task can be divided into a plurality of tasks, free time may be allocated each time the divided tasks are completed.
[0108] (C-2. Setting by control device) In the second embodiment, when the extended mode is set, the arithmetic unit 100A of the control device 1A determines the free time within the control period based on the measurement value of the temperature sensor 161 (see FIG. 4).
[0109] FIG. 14 is a flow chart showing an outline of the operation mode setting process of the control device according to the second embodiment. For example, the processor 101 executes the scheduler program 212 of the control device 1A, thereby executing the process shown in FIG. 14. First, in step S21, the arithmetic unit 100A accepts input of the program and the setting contents. The user operates the support device 8 to determine the operation mode, and also to set the length of the control period, the allocation of high priority tasks, the allocation of low priority tasks, and the like. The program and the setting contents are transferred from the support device 8 to the control device 1A. The setting contents include information related to the operation mode.
[0110] In step S22, the processor 101 of the arithmetic unit 100A determines whether the operation mode set by the user is the default mode or the extended mode, based on the information transferred from the support device 8. If the operation mode is the default mode, in step S23, the processor 101 executes settings for control processing in the default mode. On the other hand, if the operation mode is the extended mode, in step S24, the processor 101 executes settings for control processing in the extended mode.
[0111] When operating in the default mode, the processor 101 does not reserve processor free time within a control period, and further allocates multiple tasks within a control period so that the tasks are executed within the control period in descending order of priority.
[0112] When operating in the extended mode, the processor 101 reserves a certain percentage (for example, 10%) of a control period as processor free time. Then, the processor 101 allocates a high priority task to the remaining time (first remaining time) in the control period. In this case, the processor 101 allocates the high priority task to the control period taking into consideration the maximum fluctuation in the processing time of the high priority task.
[0113] Furthermore, the processor 101 determines whether a low priority task can be assigned within a second remaining time obtained by subtracting the free time and the execution time of the high priority task from the control period. If a low priority task can be assigned within the second remaining time, the processor 101 assigns the execution time of the low priority task within the second remaining time. On the other hand, if a low priority task cannot be assigned within the second remaining time, the processor 101 assigns the second remaining time to the processor free time.
[0114] The task processing executed in the default mode and the task processing executed in the extended mode are basically the same as the processing described in the first embodiment, and therefore detailed description will not be repeated. In the second embodiment, when the extended mode is selected, the ratio of the processor free time to the control period changes according to the temperature measured by the temperature sensor 161 (i.e., the operating ambient temperature of the control device 1A). In this respect, the second embodiment differs from the first embodiment.
[0115] 15 is a flowchart for explaining a process related to control of processor free time during execution of a task by the control device 1A. In step S31, the processor 101 acquires a temperature value (temperature sensor value) from the temperature sensor 161. The processor 101 may acquire measured values from the temperature sensor 161 at predetermined intervals and calculate the average value of the measured values as the temperature value.
[0116] In step S32, the processor 101 obtains the ratio of the free time to the control period. The method of obtaining the free time from the temperature value is not particularly limited. For example, the processor 101 may use an arithmetic expression for obtaining the ratio of the free time to the control period from the temperature value.
[0117] The processor 101 can obtain the ratio of the free time to the control cycle from the arithmetic expression and the detection value of the temperature sensor 161, and determine the free time based on the ratio and the control cycle. Alternatively, the non-volatile memory 106 of the arithmetic unit 100A may store a table that associates temperatures with the ratio of the free time to the control cycle. The processor 101 can obtain the ratio of the free time to the control cycle from the table and the detection value of the temperature sensor 161, and determine the free time based on the ratio and the control cycle. In both the arithmetic expression and the table, the ratio of the free time to the control cycle is set to be larger as the temperature is higher.
[0118] In step S33, the processor 101 determines an available time in the control period. In step S34, the processor 101 sets information about the available time in the IRQ.
[0119] According to the above settings, the processor 101 executes processing. In the extended mode, the occurrence of an IRQ causes the processor 101 to stop calculations. Furthermore, the IRQ notifies the processor 101 of the start time of the next control cycle. In response to the IRQ, the processor 101 starts calculations and processing in that control cycle. The time during which the processor 101 stops calculations is the idle time.
[0120] FIG. 16 is a diagram for explaining an example of task processing executed by the arithmetic unit of the control device 1A according to the second embodiment in the extended mode. As shown in FIG. 16, in the extended mode, the processor 101 increases the free time 40 within the control period as the measured value of the temperature sensor 161 is higher. The measured value of the temperature sensor 161 represents the operating ambient temperature of the control device 1A. On the other hand, when the operating ambient temperature of the control device 1A decreases, the control device 1A shortens the free time 40. In this case, for example, the ratio of the free time to the control period is kept larger than the ratio set by the support device 8.
[0121] In the second embodiment, although the length of the free time within the control period changes according to the temperature, the length of the control period does not change. If the length of the control period changes during the operation of the system, the processing performance of high-priority tasks may change (increase or decrease). If the processing performance of high-priority tasks changes, it may affect the operation of the controlled object (for example, a manufacturing device). By not changing the length of the control period, it is possible to prevent the processing performance of high-priority tasks from changing.
[0122] FIG. 16 shows an example in which a high-priority task and a low-priority task are executed within one control period. However, when the temperature rises, only high-priority tasks may be executed within one control period, and the remaining time within the control period may be free time. Similar to the first embodiment, in the second embodiment, the allocation of free time within the control period is given the highest priority, and then the allocation of high-priority tasks is given priority. Therefore, it is possible to ensure free time of the processor within the control period. As a result, it is possible to suppress an increase in the heat generation amount of the processor, and thus suppress a large increase in the temperature of the processor.
[0123] Also, in the second embodiment, by means of an IRQ, the same arrangement of free time shown in FIGS. 12 and 13 can be adopted. The arrangement of the free time 40 within the control period is not particularly limited.
[0124] <D. Supplementary Note> The present embodiment as described above includes the following technical idea.
[0125] [Configuration 1] An information processing device (8) having a processor (101) and for making settings related to a task executed by a control device (1A) that controls a control target, an input unit (816) for receiving user input regarding an operation mode of the control device (1A); A setting unit (802) that sets operating conditions of the control device (1A) in accordance with the user input; a transfer unit (812) that transfers the operating conditions of the control device (1A) set by the setting unit (802) to the control device (1A), the operation modes include a first mode and a second mode for operating the control device (1A) at a temperature higher than an operating temperature in the first mode; When the second mode is selected by the user input, the setting unit (802) allocates free time (40) of the processor (101) within a control period of the task.
[0126] [Configuration 2] When the second mode is selected by the user input, the setting unit (802) allocates execution time of a high priority task (20) having a high priority for execution by the processor (101) among a plurality of tasks, within a first remaining time obtained by subtracting the free time (40) from the control period.
[0127] [Configuration 3] When the second mode is selected by the user input, the setting unit (802) determines whether or not a low-priority task (30) having a low execution priority among the plurality of tasks can be assigned within a second remaining time obtained by subtracting the free time (40) and the execution time of the high-priority task (20) from the control period, If the low priority task (30) can be allocated within the second remaining time, the setting unit (802) allocates execution time for the low priority task (30) within the second remaining time; 3. The information processing device (8) according to configuration 2, wherein, when the low priority task (30) cannot be allocated within the second remaining time, the setting unit (802) allocates the second remaining time to the free time (40).
[0128] [Configuration 4] The information processing device (8) according to configuration 2, wherein when the second mode is selected by the user input, the setting unit (802) allocates a maximum execution time of the high priority task (20) based on a fluctuation in the execution time of the high priority task (20) within the first remaining time.
[0129] [Configuration 5] The information processing device (8) according to any one of configurations 2 to 4, wherein the setting unit (802) allocates at least a part of the free time (40) immediately after the high priority task (20) is finished.
[0130] [Configuration 6] 6. The information processing device (8) according to any one of configurations 1 to 5, wherein, when the first mode is selected by the user input, the setting unit (802) allocates the plurality of tasks such that the free time (40) is not reserved within the control period and the plurality of tasks are executed within the control period in descending order of priority.
[0131] [Configuration 7] A program for causing a computer (8) to execute settings related to a task executed by a control device (1A) that has a processor (101) and controls a control target, The computer (8), A step (S11) of accepting a user input regarding an operation mode of the control device (1A); setting operating conditions of the control device (1A) according to the user input (S13, S14); and executing a step (S15) of transferring the operating conditions of the control device (1A) to the control device (1A); the operation modes include a first mode and a second mode for operating the control device (1A) at a temperature higher than an operating temperature in the first mode; The setting steps (S13, S14) are the program including a step (S14) of allocating free time (40) of the processor (101) within a control period of the task when the second mode is selected by the user input.
[0132] The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, not by the description of the embodiments described above, and is intended to include all modifications within the meaning and scope of the claims. [Explanation of symbols]
[0133] 1A to 1H Control device, 4 Communication device, 5 Field device, 8 Support device, 10 Production line, 20 High priority task, 30 Low priority task, 40 Free time, 100A, 100B Arithmetic unit, 101, 802 Processor, 102 Chip set, 104 Main memory, 106 Non-volatile memory, 108 System timer, 110 USB connector, 120 System bus controller, 122, 142 DMA control circuit, 124 System bus control circuit, 126, 146 Buffer memory, 130 System bus connector, 140 Field network controller, 144 Field network control circuit, 161 Temperature sensor, 200 Real-time OS, 201A to 201D, 202A Functional unit, 210 System program, 212 Scheduler program, 214 IO processing program, 216 Input processing program, 218 Output processing program, 220 System service program, 222 High priority service program, 226 low priority service program, 232 sequence command execution unit, 234 user program, 236 IEC program, 238 application program, 300A, 300B I / O unit, 400A, 400B AC-DC power supply, 804 optical drive, 805 recording medium, 806 main memory device, 808 secondary memory device, 812 USB controller, 816 input unit, 818 display unit, 820 bus, 822 development program, 2120 control function, 2122 monitoring function, S11 to S34 steps.
Claims
1. An information processing device having a processor and configured to perform settings related to a task executed by a control device that controls a control target, an input unit that accepts user input regarding an operation mode of the control device; A setting unit that sets operating conditions of the control device in accordance with the user input; a transfer unit that transfers the operating conditions of the control device set by the setting unit to the control device, the operating modes include a first mode and a second mode for operating the controller at a temperature higher than an operating temperature in the first mode; When the second mode is selected by the user input, the setting unit allocates free time of the processor within a control period of the task.
2. 2. The information processing device according to claim 1, wherein when the second mode is selected by the user input, the setting unit allocates execution time of a high-priority task having a high priority for execution by the processor among the plurality of tasks, within a first remaining time obtained by subtracting the free time from the control period.
3. When the second mode is selected by the user input, the setting unit determines whether or not a low-priority task having a low execution priority among the plurality of tasks can be assigned within a second remaining time obtained by subtracting the free time and the execution time of the high-priority task from the control period, When the low priority task can be allocated within the second remaining time, the setting unit allocates an execution time of the low priority task within the second remaining time; The information processing apparatus according to claim 2 , wherein, when the low priority task cannot be allocated within the second remaining time, the setting unit allocates the second remaining time to the free time.
4. 3 . The information processing device according to claim 2 , wherein when the second mode is selected by the user input, the setting unit allocates a maximum execution time of the high priority task based on a fluctuation in the execution time of the high priority task within the first remaining time.
5. The information processing apparatus according to claim 2 , wherein the setting unit allocates at least a part of the free time immediately after the high priority task ends.
6. 6. The information processing device according to claim 1, wherein when the first mode is selected by the user input, the setting unit allocates the plurality of tasks such that the free time is not reserved within the control period and the plurality of tasks are executed within the control period in descending order of priority.
7. A program for causing a computer to execute settings related to a task executed by a control device that has a processor and controls a control target, The computer includes: accepting user input regarding an operational mode of the controller; setting operating conditions of the controller in accordance with the user input; and transferring the operating conditions of the control device to the control device; the operating modes include a first mode and a second mode for operating the controller at a temperature higher than an operating temperature in the first mode; The setting step includes: a step of allocating free time of the processor within a control period of the task when the second mode is selected by the user input.
Citation Information
Patent Citations
Information processor
JP2002229663A
Electronic apparatus, and method for controlling processor speed
JP2005165470A
Control system, control device and control method
JP2020061055A
