发明名称 CPU of PLC, system program for PLC, and recording medium storing system program for PLC
摘要 The system program includes, as an execution control process of the control program, an owner-side start process that starts execution of an owner-side control program; a copy process in which, when execution of the owner-side control program ends, a global variable that is rewritten by the owner-side control program is copied from a global variable area to a synchronous buffer corresponding to the global variable; and a referrer-side start process that starts execution of a referrer-side control program.
申请公布号 US9618924(B2) 申请公布日期 2017.04.11
申请号 US201314017904 申请日期 2013.09.04
申请人 OMRON CORPORATION 发明人 Nishiyama Yoshihide;Eguchi Shigeyuki;Hamasaki Osamu;Kojima Tatsuya
分类号 G06F3/00;G05B19/05;G06F9/54;G06F9/52 主分类号 G06F3/00
代理机构 Greenblum & Bernstein, P.L.C. 代理人 Greenblum & Bernstein, P.L.C.
主权项 1. A CPU of a programmable logic controller (PLC) controlling a control target, comprising: a microprocessor; a memory; and a communication circuit, wherein the CPU of the PLC is configured to control the control target by repeating transmission of output data, reception of input data, and execution of a plurality of control programs that uses the input data to generate the output data, the memory stores the plurality of control programs, a system program that controls the execution of the plurality of control programs, and attribute data of a variable that is used by the plurality of control programs, the microprocessor is configured to execute the system program and the plurality of control programs that are stored in the memory, the communication circuit is configured to transmit the output data and receives the input data, the attribute data include, when the variable is a global variable that is referenced by the plurality of the control programs, information specifying one owner-side control program that rewrites the variable and information specifying at least one referrer-side control program that only references the variable, the system program is configured to cause the microprocessor to execute, as an execution preparation process of the plurality of control programs, a process in which a global variable area storing the global variable is generated in the memory; anda process in which, with respect to each referrer-side control program and for each global variable that is referenced by the referrer-side control program, a synchronous buffer is generated in the memory as a reference destination in place of the global variable area when the referrer-side control program references the global variable, the system program is configured to cause the microprocessor to execute, as an execution control process of the plurality of control programs, an owner-side start process that starts execution of the owner-side control program;a copy process in which, when execution of the owner-side control program ends, the global variable that is rewritten by the owner-side control program is copied from the global variable area to the synchronous buffer corresponding to the global variable; anda referrer-side start process that starts execution of the referrer-side control program, wherein the plurality of control programs in the PLC are able to reference the global variable for which consistency is ensured, without a need of a control program of the plurality of control programs performing processing to ensure consistency of the global variable and without blocking concurrent execution of the plurality of control programs.
地址 Kyoto JP