Controller unit and power supply operation method of general operating system

By designing a real-time operating system and a general-purpose operating system execution unit in the programmable controller, and using the power operating circuit to start or stop the general-purpose operating system when needed, the problem of high power consumption when equipped with a general-purpose operating system is solved and power reduction is achieved. and improvement of equipment stability.

CN117651941BActive Publication Date: 2024-10-22MITSUBISHI ELECTRIC CORP
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202180100110.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-10
Publication Date
2024-10-22
Estimated Expiration
2041-09-10

AI Technical Summary

Technical Problem

When existing programmable controllers are equipped with general-purpose operating systems, they consume large amounts of power and are difficult to reduce.

Method used

A controller unit is designed, which includes a real-time operating system execution unit and a general operating system execution unit. It receives power status indication data through the receiving unit and uses the power operating circuit to start or stop the general operating system when needed, thereby reducing power consumption.

Benefits of technology

It effectively reduces the power consumption of programmable controllers equipped with general-purpose operating systems, improves equipment stability and product life, and reduces development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117651941B_ABST
    Figure CN117651941B_ABST
Patent Text Reader

Abstract

A controller unit (120) constituting a programmable controller includes: a real-time OS execution unit (51) including a first processor for executing a real-time OS; and a general-purpose OS execution unit (52) including a second processor for executing a general-purpose OS. The real-time OS execution unit (51) further includes: a receiving circuit (5111, 5121) for receiving a device value for indicating a change in a power state including starting and stopping the general-purpose OS; and a power operation circuit (516) for starting the general-purpose OS. When the receiving circuit (5111, 5121) receives a device value for starting the general-purpose OS, the general-purpose OS is started using the power operation circuit (516). When the receiving circuit (5111, 5121) receives a device value for stopping the general-purpose OS, the general-purpose OS execution unit (52) stops the general-purpose OS.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a controller unit and a power supply operation method of a universal operating system. Background Art

[0002] In the field of FA (Factory Automation), a programmable controller is often used as a control device for controlling equipment. Such a programmable controller realizes coordinated control of many equipments by executing applications on a real-time operating system, for example.

[0003] With the increasing demand for data collection and data analysis in recent years, a programmable controller equipped with a general-purpose operating system is required to perform general information processing. Therefore, a control device capable of executing both a real-time operating system and a general-purpose operating system has been proposed (for example, refer to Patent Document 1).

[0004] Patent Document 1 describes a control device having a structure in which a distributed control CPU (Central Processing

[0005] The distributed control CPU regularly measures the operating state of the information processing CPU and determines whether to request the information processing CPU to execute a task according to the measured operating state. In this way, the load of information processing can be dispersed.

[0006] Patent Document 1: Japanese Patent No. 6808090 Summary of the invention

[0007] A programmable controller generally operates continuously for a long time. Therefore, in the control device described in Patent Document 1, the power consumption of the information processing CPU in charge of the general-purpose OS increases. Therefore, there is room for reducing the power consumption of a programmable controller equipped with a general-purpose operating system.

[0008] The present invention has been made in view of the above-mentioned circumstances, and an object of the present invention is to reduce the power consumption of a programmable controller equipped with a general-purpose operating system.

[0009] In order to achieve the above-mentioned purpose, the controller unit of the present invention constitutes a programmable controller, which has: a real-time operating system execution unit, which has a first processor for executing a real-time operating system; and a general operating system execution unit, which has a second processor for executing a general operating system, and the real-time operating system execution unit also has: a receiving unit, which receives indication data for indicating changes in power supply status including starting and stopping the general operating system; and a power operation circuit, which starts the general operating system, and when the receiving unit receives indication data for starting the general operating system, the general operating system is started using the power operation circuit, and when the receiving unit receives indication data for stopping the general operating system, the general operating system execution unit stops the general operating system.

[0010] Effects of the Invention

[0011] According to the present invention, it is possible to reduce the power consumption of a programmable controller equipped with a general-purpose operating system. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 This is a diagram showing the configuration of a control system according to the first embodiment.

[0013] Figure 2 This is a diagram showing the hardware configuration of the controller unit according to the first embodiment.

[0014] Figure 3 This is a diagram showing the functional configuration of the controller unit according to the first embodiment.

[0015] Figure 4 This is a diagram for explaining device values ​​involved in Implementation Example 1.

[0016] Figure 5 This is a diagram showing the configuration of a power supply operation circuit according to the first embodiment.

[0017] Figure 6 This is a diagram showing the flow of operating the power supply of the universal OS according to the first embodiment.

[0018] Figure 7 This is a diagram showing the structure of a PLC according to the second embodiment. DETAILED DESCRIPTION

[0019] Hereinafter, a programmable controller according to an embodiment of the present invention will be described in detail with reference to the drawings.

[0020] Implementation Method 1

[0021] The PLC (Programmable Logic Controller) 100 involved in this embodiment has a controller unit 120 that starts and stops a universal OS according to an instruction from the outside. The controller unit 120 starts the universal OS in response to a request from an external device that needs to process information through the universal OS, and stops the universal OS when the information processing is completed. The overview of the PLC 100 and the controller unit 120 are described in sequence below.

[0022] PLC 100 Figure 1 As shown, together with the switch 103 and the semiconductor manufacturing device 104, a control system 10 is constituted. The control system 10 is equivalent to a part of the FA system installed in the factory. The control system 10 is connected to the cloud server 30 via a network 300 represented by the Internet. In addition, the control system 10 is connected to an external system 20 which is equivalent to a part of the FA system like the control system 10 via an industrial network 200 in the factory.

[0023] The PLC 100 of the control system 10 is a control device for controlling an instrument. Specifically, the PLC 100 controls a semiconductor manufacturing device 104 in accordance with an input including a state of a switch 103, thereby operating a production line of semiconductor products. The PLC 100 is a building block type programmable controller composed of a plurality of modules. In detail, the PLC 100 is constructed by loading a power module 110, a controller unit 120, an input module 130, an input module 140, an output module 150 and a network module 160 on a base module 170. The power module 110 supplies power to other modules. The controller unit 120 is equivalent to a CPU (Central Processing Unit) module that controls other modules and determines the actions of the PLC 100. The input module 130 is input with a signal indicating the state of the switch 103. The input module 140 is input with a signal from the semiconductor manufacturing device 104. The output module 150 outputs a signal to the semiconductor manufacturing device 104. The network module 160 is used to communicate via the industrial network 200.

[0024] The power module 110 is as follows Figure 1 As shown by the bold arrows in FIG. 1 , power is supplied to other modules via the power lines in the base module 170. Figure 1As shown by the dotted line in , there is a PLC bus 171 as a signal line for communication between modules. The controller unit 120 obtains data indicating the state of the switch 103 from the input module 130 via the basic module 170, and obtains data output from the semiconductor manufacturing device 104 from the input module 140. In addition, the controller unit 120 sends a control instruction for the semiconductor manufacturing device 104 to the output module 150 via the basic module 170, thereby controlling the semiconductor manufacturing device 104. In addition, the controller unit 120 cooperates with the device of the external system 20 via the basic module 170 and the network module 160. In addition, the controller unit 120 has the following function, that is, it is connected to the network 300 directly for communication without going through the basic module 170.

[0025] The external system 20 includes: a PLC 21, which is composed of a plurality of modules like the PLC 100 of the control system 10; a network connection input module 22, which is connected to an instrument not shown in the figure and inputs a signal from the instrument; and a network connection output module 23, which is connected to an instrument not shown in the figure and outputs a signal to the instrument. The PLC 21, the network connection input module 22, and the network connection output module 23 are all connected to the industrial network 200 and communicate with the network module 160 of the PLC 100. The PLC 21 realizes coordinated control of a large number of instruments by cooperating with the PLC 100. The network connection input module 22 and the network connection output module 23 are devices that perform the same functions as the input module 140 and the output module 150 of the PLC 100 via the industrial network 200. The PLC 100 can perform control based on the signal input to the network connection input module 22, and can also control the instrument connected to the network connection output module 23.

[0026] exist Figure 2 2 shows an overview of the hardware structure of the controller unit 120 as a computer. The controller unit 120 includes, as its hardware structure, a real-time OS execution unit 51 having a first processor 411 and a first main storage unit 412; a universal OS execution unit 52 having a second processor 421 and a second main storage unit 422; an auxiliary storage unit 43; an input unit 44; an output unit 45; and a communication unit 46. The first main storage unit 412, the second main storage unit 422, the auxiliary storage unit 43, the input unit 44, the output unit 45, and the communication unit 46 are connected to the first processor 411 and the second processor 421 via an internal bus 47.

[0027] The first processor 411 and the second processor 421 each include a CPU (Central Processing Unit) or an MPU (Micro Processing Unit) as an integrated circuit. The first processor 411 executes a program 431 stored in the auxiliary storage unit 43, thereby realizing various functions of the real-time OS execution unit 51 and performing the processing described later. The program 431 includes a real-time OS as software and a ladder diagram program for controlling the instrument. The real-time OS is an OS used for real-time processing. In the real-time OS, in order to ensure the real-time nature of the operation processing, the upper limit of the time from the issuance of the command for executing the operation processing to the completion of the operation processing is predefined.

[0028] In addition, the second processor 421 executes the program 432 stored in the auxiliary storage unit 43, thereby realizing various functions of the general-purpose OS execution unit 52 and executing the processing described later. The program 432 includes a general-purpose OS as software and application software executed on the general-purpose OS. The general-purpose OS is an OS used for general information processing. In the general-purpose OS, the upper limit of the execution time of the calculation processing guaranteed in the real-time OS is not guaranteed. In the control system 10, the information processing performed by the general-purpose OS and the application software on the general-purpose OS is not necessarily always required in the control system 10. The situations in which the above-mentioned information processing is required are limited to, for example, the analysis of information when an abnormality occurs and the collection and analysis of data after a certain period of operation.

[0029] The first main storage unit 412 and the second main storage unit 422 each include a RAM (Random Access Memory). The program 431 is loaded from the auxiliary storage unit 43 into the first main storage unit 412. The first main storage unit 412 is used as a work area of ​​the first processor 411. In addition, the program 432 is loaded from the auxiliary storage unit 43 into the second main storage unit 422. The second main storage unit 422 is used as a work area of ​​the second processor 421.

[0030] The auxiliary storage unit 43 includes a nonvolatile memory represented by an EEPROM (Electrically Erasable Programmable Read-Only Memory) and an HDD (Hard Disk Drive). The auxiliary storage unit 43 stores various data used in the processing of the first processor 411 and the second processor 421 in addition to the programs 431 and 432. The auxiliary storage unit 43 supplies the data to be used by the first processor 411 to the first processor 411 according to the instruction of the first processor 411, and stores the data supplied from the first processor 411. In addition, the auxiliary storage unit 43 supplies the data to be used by the second processor 421 to the second processor 421 according to the instruction of the second processor 421, and stores the data supplied from the second processor 421.

[0031] In addition, Figure 2 In the embodiment, a single auxiliary storage unit 43 is provided, but an auxiliary storage unit 43 used by the real-time OS execution unit 51 and an auxiliary storage unit 43 used by the general-purpose OS execution unit 52 may be provided separately. The auxiliary storage unit 43 provided separately may be included in the real-time OS execution unit 51 and the general-purpose OS execution unit 52, respectively. In addition, the real-time OS execution unit 51 and the general-purpose OS execution unit 52 may be installed on different substrates or on a single substrate. The real-time OS execution unit 51 is equivalent to an example of a real-time operating system execution unit having a first processor that executes a real-time OS in the controller unit 120. The general-purpose OS execution unit 52 is equivalent to an example of a general-purpose operating system execution unit having a second processor that executes a general-purpose OS in the controller unit 120.

[0032] The input unit 44 includes input devices represented by input keys and pointing devices. The input unit 44 obtains information input by a user of the PLC 100 and notifies the first processor 411 and the second processor 421 of the obtained information. The information obtained by the input unit 44 includes, for example, parameters that determine the operation of the PLC 100.

[0033] The output unit 45 includes output devices represented by LED (Light Emitting Diode), LCD (Liquid Crystal Display) and speakers. The output unit 45 presents various information to the user according to the instructions of the first processor 411 and the second processor 421.

[0034] The communication unit 46 includes a network interface circuit for transmitting and receiving Ethernet frames with an external device and a communication interface circuit for transmitting and receiving data via the PLC bus 171 in the base module 170. The communication unit 46 receives a signal from the outside and outputs the data indicated by the signal to the first processor 411 and the second processor 421. In addition, the communication unit 46 transmits a signal indicating the data output from the first processor 411 and the second processor 421 to the external device.

[0035] The above hardware structure works in coordination, so that the controller unit 120 has the function of independently executing the real-time OS and the general-purpose OS. Figure 3 As shown, the controller unit 120 has a real-time OS execution unit 51 for executing a real-time OS, a general-purpose OS execution unit 52 for executing a general-purpose OS, and an inter-OS communication unit 53 for communicating between OSes. Figure 2 Corresponding to the internal bus 47.

[0036] The real-time OS execution unit 51 includes: a PLC bus communication I / F (Interface) 511 for communicating via the PLC bus 171; a network communication I / F 512 for communicating via the network 300; a dedicated protocol communication unit 513 for communicating via the network 300 and the industrial network 200 using a predetermined dedicated protocol; a device value management unit 514 for storing and managing device values ​​indicating the contents of the power state change instructions for the general-purpose OS; a control unit 515 for controlling the structural elements of the real-time OS execution unit 51; and a power operation circuit 516 for starting the general-purpose OS. The device value managed by the device value management unit 514 is equivalent to an example of instruction data for indicating the change of the power state including the start and stop of the general-purpose OS. The device value management unit 514 is equivalent to an example of a storage unit for storing instruction data.

[0037] The PLC bus communication I / F 511 and the network communication I / F 512 each correspond to the communication unit 46. The PLC bus communication I / F 511 includes a receiving circuit 5111 for receiving data from a module other than the controller unit 120 via the PLC bus 171 and a transmitting circuit 5112 for transmitting data to the module. In addition, the network communication I / F 512 includes a receiving circuit 5121 for receiving data via the network 300 and a transmitting circuit 5122 for transmitting data. Each of the receiving circuits 5111 and 5121 corresponds to an example of a receiving unit for receiving instruction data in the controller unit 120.

[0038] The dedicated protocol communication unit 513 is mainly implemented by the first processor 411. The dedicated protocol communication unit 513 communicates with the cloud server 30 on the network 300 through the network communication I / F 512 by a dedicated protocol. In addition, the dedicated protocol communication unit 513 communicates with the external system 20 on the industrial network 200 through the PLC bus communication I / F 511 and the network module 160 by a dedicated protocol.

[0039] The device value management unit 514 is mainly implemented by the cooperation of the first processor 411 and the auxiliary storage unit 43. The device value management unit 514 has a storage area 5141, and the storage area 5141 includes a plurality of areas for storing device values. Figure 4 As shown in the example, there are an area for input device values ​​and an area for output device values, each of which has a name and a purpose of use set in advance. The area for input device values ​​includes an area in which an instruction related to the power state of the universal OS is input. For example, an input value related to the startup instruction of the universal OS is stored in an area identified as "X0" from other areas. For example, the input value indicates that an instruction is input when it is "1", and indicates that no instruction is input when it is "0".

[0040] The startup of the universal OS includes: transition from a power OFF state in which the universal OS execution unit 52 consumes no power at all to a power ON state in which power is consumed but the universal OS functions can be performed; recovery from a standby state in which power consumption is suppressed by storing information in the second main storage unit 422 as needed; and restart in which the power is temporarily changed from the ON state to the OFF state and then converted back to the ON state.

[0041] In addition, the input value related to the shutdown instruction of the universal OS is stored in the area "X1", and the input value related to the standby instruction of the universal OS is stored in the area "X2". Shutdown refers to the transition from the power ON state to the power OFF state, and the standby instruction refers to the instruction to transition from the power ON state to the standby state. These shutdown instructions and standby instructions are equivalent to an example of instructions to stop the universal OS.

[0042] In addition, in the area of ​​the output device value, the notification content for the device outside the controller unit 120 regarding the power state of the universal OS is stored. For example, in the area "Y0", an output value indicating whether the universal OS is being restarted is stored. For example, when the output value is "1", it indicates that the universal OS is being restarted, and when it is "0", it indicates that it is not being restarted. In addition, in the area "Y2", an output value indicating whether the current power state of the universal OS is power ON, power OFF, or standby is stored.

[0043] These device values ​​stored in the storage area 5141 are synchronized with data in a device outside the controller unit 120, or are the subject of reading and writing by the external device. Here, the relationship between the external device and the device values ​​in the controller unit 120 is described.

[0044] The other modules installed together with the controller unit 120 in the basic module 170 each access the device value in the storage area 5141 via the PLC bus 171 and the PLC bus communication I / F 511. By the access as described above, the device value is synchronized between the modules, and the device value in the storage area 5141 becomes the object of reading and writing by other modules. For example, in the pre-set parameter setting for the PLC 100, when the device value of "X0" is assigned to the input of the switch 103 for the input module 130 and synchronized, the input to the switch 103 is immediately reflected to the value of "X0". If the switch 103 is, for example, an emergency stop switch of a production line, a startup instruction for the general OS is input while the production line is stopped. Similarly, when the device value of "Y1" is assigned to the output from the output module 150 to the semiconductor manufacturing device 104 and synchronized, the device value of "Y1" is immediately reflected to the output to the semiconductor manufacturing device 104. For example, when the cause analysis of the emergency stop by the general-purpose OS is completed and the production line is restarted, the shutdown completion of the general-purpose OS and the control command to the semiconductor manufacturing apparatus 104 are notified.

[0045] In addition, the device of the external system 20 communicates with the network module 160 via the industrial network 200 according to a predetermined dedicated protocol, and accesses the device value in the storage area 5141 via the network module 160, the PLC bus communication I / F 511, and the dedicated protocol communication unit 513. Through the access described above, the device value is synchronized between the controller unit 120 and the external system 20, and the device value in the storage area 5141 becomes the object of reading and writing by the device of the external system 20. For example, in the pre-parameter setting by the user of the PLC 100, the values ​​of the PLC 21, the network connection input module 22, and the network connection output module 23 are allocated to the device value of the storage area 5141. In addition, the change of the value by the control program executed by the PLC 21 or the input value to the network connection input module 22 is reflected in the input device value of the storage area 5141. In addition, the output device value of the storage area 5141 is reflected in the value used by the PLC 21 or the output value from the network connection output module 23.

[0046] Each module of the PLC 100 and each device of the external system 20 refers to the output device value of the storage area 5141 to grasp the power state of the general-purpose OS in the controller unit 120, and when information processing is required by the general-purpose OS when the general-purpose OS is in the stopped state, the input device value indicating the start instruction of the general-purpose OS is written to the storage area 5141. Furthermore, when the required information processing is completed, each module of the PLC 100 and each device of the external system 20 writes the input device value indicating the stop instruction of the general-purpose OS to the storage area 5141.

[0047] Furthermore, the device values ​​in the storage area 5141 may be accessed by the cloud server 30 via the network 300, the network communication I / F 512, and the dedicated protocol communication unit 513. The cloud server 30 may periodically collect the device values ​​and manage the history thereof.

[0048] Back to Figure 3 , the control unit 515 is mainly implemented by the first processor 411. The control unit 515 controls the PLC bus communication I / F 511, the network communication I / F 512, the dedicated protocol communication unit 513 and the device value management unit 514, and uses the device value to operate the production line. For example, the control unit 515 determines the device value representing the control instruction for the semiconductor manufacturing device 104 based on the device value representing the input value of the switch 103. In addition, the control unit 515 monitors the device values ​​of "X0" and "X3", and when the startup instruction for the universal OS is input, the universal OS is started using the power supply operation circuit 516. In addition, the control unit 515 can also monitor the device values ​​of "X1" and "X2", and when the stop instruction for the universal OS is input, the content of the stop instruction is notified to the power supply management unit 521 of the universal OS execution unit 52 via the inter-OS communication unit 53.

[0049] The power supply operation circuit 516 is as follows Figure 5 As shown, the power supply ON switch 5161 inputs a startup instruction of the universal OS to the universal OS execution unit 52, and the reset switch 5162 inputs a restart instruction of the universal OS to the universal OS execution unit 52. Each of these switches switches between the ON state and the OFF state in accordance with the signal output from the control unit 515. When the universal OS is in the power OFF state or the standby state, the power supply operation circuit 516 turns on the power supply ON switch 5161 by turning it ON, thereby inputting power to the universal OS execution unit 52 and starting the universal OS.

[0050] Back to Figure 3The general OS execution unit 52 has: a power management unit 521, which stops the general OS; a device value access unit 522, which accesses the device value of the device value management unit 514 via the inter-OS communication unit 53; a network communication I / F 523, which is used to communicate via the network 300; and an information processing program 524, which runs on the general OS.

[0051] The power management unit 521 is mainly implemented by the second processor 421. The power management unit 521 may be equivalent to a part of the functions of the general-purpose OS, or may be equivalent to the application software on the general-purpose OS. If the power management unit 521 is notified from the real-time OS execution unit 51 via the inter-OS communication unit 53 that a stop instruction of the general-purpose OS has been input, the general-purpose OS is stopped. In detail, the power management unit 521 executes a command instructing the general-purpose OS to shut down or switch to standby mode. In addition, the power management unit 521 may monitor the device value of the storage area 5141 via the device value access unit 522 to confirm whether there is a stop instruction.

[0052] In addition, the power management unit 521 periodically notifies the control unit 515 of the power state of the universal OS via the inter-OS communication unit 53. Furthermore, the power management unit 521 updates the output device value of the storage area 5141 to a value indicating the power state of the universal OS via the device value access unit 522. For example, the power management unit 521 updates the above-mentioned output device value to a value corresponding to "power ON" when the universal OS is started, and updates the above-mentioned output device value to a value corresponding to "power OFF" at the same time as the command for stopping the universal OS is generated, and then stops the universal OS. By updating in the above manner, the device value shows the power state of the universal OS in real time. The control unit 515 can grasp the power state of the universal OS by at least one of confirming the device value indicating the power state of the universal OS and direct notification from the power management unit 521.

[0053] The device value access unit 522 is mainly implemented by the second processor 421. The device value access unit 522 may be equivalent to a part of the function of the general-purpose OS, or may be equivalent to the application software on the general-purpose OS. The network communication I / F 523 corresponds to the communication unit 46. The information processing program 524 is an application software running on the general-purpose OS generated by the user of the PLC 100 based on the source code described in, for example, a general-purpose programming language. By executing the information processing program 524, the general-purpose OS execution unit 52 refers to the device value of the storage area 5141 via the device value access unit 522, and temporarily performs the required information processing in the control system 10. The information processing is, for example, data collection and analysis of the collected data, and is performed for the purpose of finding the cause of the abnormality or analyzing the status of the control system 10 when the abnormality occurs.

[0054] Next, refer to Figure 6 A series of procedures for operating the power supply of the universal OS in the control system 10 will be described. Figure 6 The external device 60 shown corresponds to another module installed in the base module 170 together with the controller unit 120 , or a device of the external system 20 .

[0055] The external device 60 determines whether the startup condition of the universal OS is satisfied (step S1). For example, the external device 60 determines whether an event including an abnormality is detected, and the event is pre-set to be analyzed by the universal OS. If it is determined that the startup condition is not satisfied (step S1; No), the external device 60 repeats the determination of step S1.

[0056] On the other hand, when it is determined that the startup condition is satisfied (step S1; Yes), the external device 60 writes the startup instruction of the universal OS to the storage area 5141 managed by the real-time OS execution unit 51 (step S2). Here, the external device 60 writes the startup instruction and the information related to the startup condition. The information related to the startup condition is, for example, information indicating the content of the abnormality that has occurred.

[0057] Next, the real-time OS execution unit 51 detects the written startup instruction and starts the universal OS using the power operation circuit 516 (step S3). As a result, the universal OS execution unit 52 is in a state where it can perform its functions. After the universal OS is started, the universal OS execution unit 52 executes the information processing program 524 on the universal OS (step S4). Specifically, the universal OS execution unit 52 that executes the information processing program 524 collects device values ​​representing information related to the startup conditions from the storage area 5141 through the device value access unit 522. The universal OS execution unit 52 analyzes the collected information and uploads the analysis results to the cloud server 30 from the network communication I / F 523.

[0058] Next, the universal OS execution unit 52 notifies the real-time OS execution unit 51 of the completion of the information processing (step S5). Specifically, the universal OS execution unit 52 writes the device value indicating that the analysis of the information has been completed to the storage area 5141. The external device 60 refers to the storage area 5141 (step S6) and determines whether the stop condition of the universal OS is met (step S7). For example, for the external device 60, the stop condition is met when the analysis of sufficient information is completed. When it is determined that the stop condition is not met (step S7; No), the external device 60 repeats the determination of step S7. Here, the external device 60 can also cooperate with the universal OS being started to perform another information analysis through the information processing program 524 on the universal OS.

[0059] When it is determined that the stop condition is satisfied (step S7; Yes), the external device 60 writes the device value indicating the stop instruction of the universal OS to the storage area 5141 of the real-time OS execution unit 51 (step S8). The universal OS execution unit 52 monitors the storage area 5141, and when the written stop instruction is obtained (step S9), it executes a shutdown command for the universal OS and stops the universal OS (step S10).

[0060] As described above, according to the controller unit 120 involved in this embodiment, when the real-time OS execution unit 51 receives the device value as the instruction data for starting the universal OS through the PLC bus communication I / F 511 or the network communication I / F 512, the universal OS is started using the power operation circuit 516, and when the universal OS execution unit 52 receives the instruction data for stopping the universal OS, the universal OS is stopped. Thus, the universal OS can be started only when necessary. Therefore, the power consumption of the PLC 100 equipped with the universal OS can be reduced. In addition, the real-time OS execution unit 51 is equivalent to an example of a startup unit that starts the universal OS.

[0061] In addition, the software structure of the general-purpose OS is more complicated than that of the real-time OS, so if the general-purpose OS is operated for a long time like the real-time OS, the operation of the PLC 100 is likely to become unstable and may end abnormally. In contrast, according to the controller unit 120 involved in this embodiment, the operation time of the general-purpose OS can be shortened to stabilize the operation of the PLC 100. In addition, by stopping the general-purpose OS, the frequency of rewriting processing for the second main storage unit 422 is reduced, and the product life of the controller unit 120 can be extended.

[0062] In addition, the power state of the universal OS is operated using the device value managed by the real-time OS execution unit 51. For example, the universal OS execution unit 52 monitors the storage area 5141 of the real-time OS execution unit 51, and stops the universal OS when the device value for stopping the universal OS is stored in the storage area 5141. The synchronization or writing and reading of device values ​​are functions that have been implemented in a general PLC 100. Therefore, when adding the function of information processing by the universal OS to the PLC 100, there is no need to set a new circuit for operating the power supply of the universal OS between the universal OS and the external device. Therefore, the development cost can be suppressed.

[0063] Specifically, with respect to a PLC 100 that is not equipped with a general-purpose OS, if the CPU module is replaced with a controller unit 120 and the device value is set, the function of the general-purpose OS can be utilized from other modules. For example, when the device value representing the power operation for the general-purpose OS is synchronized with the data input to other modules of the PLC 100 or the data output from other modules, the general-purpose OS can be easily utilized in conjunction with the input and output of other modules. In this case, the receiving circuit 5111 of the PLC bus communication I / F 511 is equivalent to an example of a receiving unit that receives received data, which is input data input to other controller units constituting the programmable controller or output data output from other controller units, and the first processor 411 updates the device value stored in the device value management unit 514 so that it becomes the same as the above-mentioned received data.

[0064] Furthermore, if the PLC 100 sets the data shared with the PLC 21 connected via the industrial network 200 as the device value for the power supply operation for the general-purpose OS, the general-purpose OS can be easily utilized in conjunction with the operation of the PLC 21. Specifically, the device value related to the power supply of the general-purpose OS is stored in a storage area called a link device that can be mutually accessed by the modules of the PLCs connected via the industrial network 200, and the general-purpose OS can be easily utilized via the industrial network 200 by using a refresh function that synchronizes the device value in real time.

[0065] In addition, the power state of the universal OS can be notified to the external device using the device value. The device value is equivalent to an example of power state data indicating the current power state of the universal OS. In addition, the transmission circuits 5112 and 5122 are equivalent to an example of a transmission unit that reads the power state data from the storage unit and transmits it to the external device.

[0066] Implementation method 2.

[0067] Next, the second embodiment will be described with a focus on the differences from the first embodiment. In addition, the same reference numerals are used for the same or equivalent structures as those in the first embodiment. In the first embodiment, an example is described in which the controller unit 120 carrying the universal OS is equivalent to the CPU module of the PLC 100, but a mode in which the controller unit 120 is equivalent to the network module 160 is also conceivable.

[0068] like Figure 7 As shown in FIG. 1 , the PLC 100 includes a CPU module 120a that does not have a general-purpose OS installed therein, and a controller unit 120 that functions as a network module and has a general-purpose OS installed therein. Figure 2 , 3However, the network communication I / F 512 of the real-time OS execution unit 51 communicates with the device of the external system 20 via the industrial network 200 , and communicates with the cloud server 30 via the network 300 .

[0069] As described above, when the controller unit 120 corresponds to a module in charge of the network function of the PLC 100 , the power supply operation of the universal OS can also be performed from an external device.

[0070] As mentioned above, although embodiment of this invention was described, this invention is not limited to the said embodiment.

[0071] For example, the example in which the module equipped with the general-purpose OS is a CPU module or a network module is described, but it is not limited to this. For example, the input module or the output module may also be equipped with the general-purpose OS. In addition, the controller unit 120 may also be an expansion module whose main purpose is to add the functions of the general-purpose OS.

[0072] In addition, although the PLC 100 is described as an example of a modular control device, the present invention is not limited thereto. The PLC 100 may be a control device in which each module is integrally included in a single housing. The controller unit 120 may be configured as a part of the integrated control device described above.

[0073] Furthermore, although the example in which semiconductor products are manufactured by the FA system has been described, the present invention is not limited thereto and the FA system may be, for example, another production system, an inspection system, a processing system, or another system.

[0074] The present invention can realize various embodiments and variations without departing from the broad spirit and scope of the present invention. In addition, the above-mentioned embodiments are used to illustrate the present invention and do not limit the scope of the present invention. That is, the scope of the present invention is not shown by the embodiments, but by the claims. Moreover, various variations implemented within the scope of the claims and the scope of the meaning of the invention equivalent thereto are deemed to fall within the scope of the present invention.

[0075] Industrial Applicability

[0076] The present invention is applicable to a control device equipped with a general-purpose OS.

[0077] Description of the label

[0078] 10 control system, 100, 21 PLC, 103 switch, 104 semiconductor manufacturing equipment, 110 power module, 120 controller unit, 120a CPU module, 130, 140 input module, 150 output module, 160 network module, 170 basic module, 171 PLC bus, 20 external system, 22 network connection input module, 23 network connection output module, 200 industrial network, 30 cloud server, 300 network, 411 first processor, 412 first main storage unit, 421 second processor, 422 second main storage unit, 43 auxiliary storage unit, 431, 432 program, 44 input unit, 45 output unit, 46 communication unit, 47 internal bus, 51 real-time OS Execution unit, 511 PLC bus communication I / F, 5111, 5121 receiving circuit, 5112, 5122 sending circuit, 512 network communication I / F, 513 dedicated protocol communication unit, 514 device value management unit, 5141 storage area, 515 control unit, 516 power operation circuit, 5161 power ON switch, 5162 reset switch, 52 general OS execution unit, 521 power management unit, 522 device value access unit, 523 network communication I / F, 524 information processing program, 53 inter-OS communication unit, 60 external device.

Claims

1. A controller unit, which constitutes a programmable controller, The controller unit has: A real-time operating system execution unit having a first processor for executing the real-time operating system; and A general-purpose operating system execution unit having a second processor for executing a general-purpose operating system, The real-time operating system execution unit also has: a receiving unit for receiving indication data for indicating a change in a power state including activation and deactivation of the general-purpose operating system; and A power operation circuit, which starts the general operating system, When the receiving unit receives the instruction data for starting the general operating system, the general operating system is started using the power operation circuit. The general-purpose operating system execution unit stops the general-purpose operating system when the instruction data for stopping the general-purpose operating system is received by the receiving unit.

2. The controller unit according to claim 1, in, The real-time operating system execution unit further comprises a storage unit, which stores the indication data received by the receiving unit. The general-purpose operating system execution unit monitors the storage unit, and stops the general-purpose operating system when the instruction data for stopping the general-purpose operating system is stored in the storage unit.

3. The controller unit according to claim 2, in, The receiving unit receives reception data, which is input data input to other controller units constituting the programmable controller or output data output from the other controller units. The first processor updates the instruction data stored in the storage unit so as to be identical to the received data.

4. The controller unit according to claim 2, in, The instruction data stored in the storage unit is data shared by the programmable controller and other programmable controllers connected via a network.

5. The controller unit according to claim 4, in, The receiving unit receives the indication data via the network using a predetermined protocol.

6. A controller unit according to any one of claims 2 to 5, in, The general operating system execution unit stores power state data indicating the current power state of the general operating system in the storage unit, The RTOS execution unit further includes a transmission unit that reads the power state data from the storage unit and transmits the data to an external device.

7. A power supply operation method for a general-purpose operating system, which is a power supply operation method for a general-purpose operating system in a controller unit constituting a programmable controller, The power operation method of the general operating system includes the following processing: A receiving unit of a real-time operating system execution unit having a first processor for executing the real-time operating system receives instruction data for instructing a change in a power state including activation and deactivation of the general-purpose operating system, When the receiving unit receives the instruction data for starting the general operating system, the real-time operating system execution unit starts the general operating system using the power operation circuit. When the instruction data for stopping the general-purpose operating system is received by the receiving unit, the general-purpose operating system execution unit including the second processor for executing the general-purpose operating system stops the general-purpose operating system.

Citation Information

Patent Citations

  • Information processing device and control method

    CN106909211A

  • Control device, control method and program

    CN107273180A

  • Control system and power supply unit

    CN111971887A

  • Automatic power controller for personal computer

    JP1999039066A

  • Programmable controller and power supply method

    JP6833142B1