WO2017203583A1 - プログラマブルロジックコントローラ - Google Patents

プログラマブルロジックコントローラ Download PDF

Info

Publication number
WO2017203583A1
WO2017203583A1 PCT/JP2016/065223 JP2016065223W WO2017203583A1 WO 2017203583 A1 WO2017203583 A1 WO 2017203583A1 JP 2016065223 W JP2016065223 W JP 2016065223W WO 2017203583 A1 WO2017203583 A1 WO 2017203583A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
unit
control
plc
storage unit
Prior art date
Application number
PCT/JP2016/065223
Other languages
English (en)
French (fr)
Inventor
鈴木 孝幸
悠 中西
Original Assignee
三菱電機株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to CN201680072237.8A priority Critical patent/CN109154803B/zh
Priority to KR1020187015887A priority patent/KR20180080301A/ko
Priority to PCT/JP2016/065223 priority patent/WO2017203583A1/ja
Priority to JP2018518831A priority patent/JP6529670B2/ja
Priority to KR1020207029798A priority patent/KR102219655B1/ko
Publication of WO2017203583A1 publication Critical patent/WO2017203583A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts

Definitions

  • the present invention relates to a programmable logic controller that controls equipment in the FA (Factory Automation) field.
  • FA equipment is generally realized by combining multiple control devices. Operations of a plurality of control devices constituting equipment in the FA field are controlled by a control system including a programmable logic controller (PLC).
  • PLC programmable logic controller
  • the programmable logic controller acquires data set in advance or all data related to the control device at a preset cycle at the timing when the command execution, the command from the peripheral device, or the set condition becomes true. Some have a function of storing according to time series.
  • Programmable logic controller that has a function to acquire preset data or all data at a set cycle and store it according to time series, and display the acquired data in a graph to confirm changes in data time series Has the function of
  • the programmable logic controller needs to acquire data at least every time the control program is repeatedly executed in order to acquire time-series changes of data without being insufficiently acquired.
  • the programmable logic controller acquires all the data every time the control program is executed, the total capacity of the acquired data becomes enormous and the data cannot be stored over a long period of time. Such a problem occurs.
  • the programmable logic controller acquires data set in advance in order to store long-term data, or when the interval for acquiring data is lengthened, insufficient data acquisition occurs, and There arises a problem that the change of the series cannot be confirmed.
  • Patent Document 1 In order to reduce the total capacity of data acquired by the programmable logic controller, a technique for acquiring data when a value changes is disclosed (see Patent Document 1).
  • Patent Document 1 can only confirm changes in the time series of acquired data, and in order to confirm the time series changes of all data, it is necessary to acquire all data.
  • the processing of the programmable logic controller has been speeded up, the time taken to execute the control program has been shortened, and the number of executions of the control program within a certain period has increased. Since all the data is acquired, there arises a problem that the total capacity of the acquired data becomes enormous.
  • the present invention has been made in view of the above, and an object thereof is to obtain a programmable logic controller capable of further reducing the capacity of data to be acquired.
  • the present invention includes an acquisition data setting unit that sets at least one of a plurality of data of a control device as acquisition data, and a storage unit that stores the acquisition data.
  • a programmable logic controller comprising a program storage unit for storing a control program for controlling the control device.
  • the programmable logic controller includes an input data receiving unit that receives data and a control unit. When the data received by the input data receiving unit is acquired data, and the value of the data received by the input data receiving unit has changed from the value most recently stored in the storage unit, the control unit receives the input data receiving unit. Is received at least once in the storage unit as acquired data.
  • the programmable logic controller according to the present invention has an effect that the data to be acquired can be further reduced in capacity.
  • the figure which shows the structure of the control system with which the programmable logic controller which concerns on Embodiment 1 is provided.
  • storage part in FIG.5 S1 The figure explaining the change history data memorize
  • storage part in FIG.5 S8 The flowchart which shows the operation
  • the figure which shows the intermediate acquisition data created in step S13 of FIG. The figure explaining the intermediate data reproduced according to the flowchart shown in FIG.
  • movement which the acquisition data setting part of the programmable logic controller which concerns on Embodiment 3 sets acquisition data
  • FIG. 1 is a diagram illustrating a configuration of a control system including the programmable logic controller according to the first embodiment.
  • FIG. 2 is a diagram showing an example of a control program generated by the computer of the control system shown in FIG.
  • the control system 1 constitutes equipment in the FA (Factory Automation) field, and is connected to a plurality of control devices 2X and 3Y installed in the facility and a plurality of control devices 2X and 3Y as shown in FIG.
  • Programmable Logic Controllers hereinafter simply referred to as PLC
  • PLC Programmable Logic Controllers
  • Control devices 2X and 3Y are switches, adjustment valves, electromagnetic valves, motors, or pumps installed in the equipment, and are drive devices that perform operations.
  • the control device 2X is a switch
  • the control device 3Y is a drive device other than the switch.
  • the control system 1 includes a plurality of control devices 2X and a plurality of control devices 3Y.
  • the control devices 2X are denoted by reference numerals 2X0, 2X1, 2X2, 2X3,... 2XF (F is a natural number), and a plurality of control devices 3Y are connected to each other.
  • control devices 2X are distinguished from each other by the reference numerals 3Y0, 3Y1, 3Y2, 3Y3,... 3YF. Further, in this specification, when the control devices 2X are not distinguished from each other, the control device 2X is denoted by reference numeral 2X, and when the control devices 3Y are not distinguished from each other, the control device 3Y is denoted by reference numeral 3Y.
  • the computer 6 is communicably connected to the PLC 5 via the network N.
  • the network N is a computer network that connects the computer 6 and the PLC 5 so that they can communicate with each other.
  • the network N is a LAN (Local Area Network) installed in the FA facility.
  • the computer 6 is connected to the control devices 2X0, 2X1, 2X2, 2X3... 2XF, 3Y0, 3Y1, 3Y2, 3Y3.
  • the computer 6 generates the control program SP shown in FIG. 2 executed by the PLC 5 and transmits it to the PLC 5.
  • the PLC 5 stores the control program SP received from the computer 6.
  • the PLC 5 controls the control devices 3Y0, 3Y1, 3Y2, 3Y3,... 3YF by executing the control program SP. That is, the control program SP is a computer program for controlling the control devices 3Y0, 3Y1, 3Y2, 3Y3,... 3YF connected to the PLC 5.
  • the computer 6 generates information indicating the number of times that the PLC 5 executes the control program SP, and transmits information indicating the number of times that the generated control program SP is executed to the PLC 5.
  • the PLC 5 stores information indicating the number of times of executing the control program SP.
  • control program SP is a ladder program described in a ladder (LD) language as shown in FIG.
  • the ladder language is a language defined by IEC (International Electrotechnical Commission) 61131-3 and JIS (Japanese Industrial Standards) B 3503: 2012.
  • the control program SP includes two parallel buses BL located at both left and right ends in FIG. 2 and a plurality of rungs L that connect the two buses BL to each other.
  • Each rung L includes a condition part LA provided on the left side in FIG. 2 and an operation part LB provided on the right side in FIG.
  • the condition unit LA is defined by data DX0, DX1, DX2, DX3,... DXF received by the PLC 5 from at least one of the control devices 2X0, 2X1, 2X2, 2X3,.
  • the operation unit LB defines control signals DY0, DY1, DY2, DY3,... DYF that the PLC 5 transmits to at least one of the control devices 3Y0, 3Y1, 3Y2, 3Y3,.
  • the data DX0, DX1, DX2, DX3... DXF received by the PLC 5 from the control devices 2X0, 2X1, 2X2, 2X3... 2XF is a signal indicating on / off of the switch, that is, “0”. This is a digital signal indicating “1”.
  • the top rung L indicates that the control signal DY0 transmitted to the control device 3Y0 is equal to the data DX0 received from the control device 2X0.
  • the center rung L indicates that the control signal DY1 transmitted to the control device 3Y1 is equal to the data DX2 received from the control device 2X2, and the control transmitted to the control device 3Y3. It shows that the signal DY3 is equal to the data DX2 received from the control device 2X2.
  • the bottom rung L indicates that the control signal DY2 transmitted to the control device 3Y2 is the reverse of the data DX3 received from the control device 2X3.
  • the rung L3 indicates that the control signal DY2 transmitted to the control device 3Y2 is “1” when the data DX3 received from the control device 2X3 is “0”, and the data DX3 received from the control device 2X3 is “ “1” indicates that the control signal DY2 transmitted to the control device 3Y2 is “0”.
  • control signals DY0, DY1, DY2, DY3... DYF are defined by the data DX0, DX1, DX2, DX3... DXF by the control program SP
  • the control signals DY0, DY1, DY2,. DY3... DYF is a signal indicating ON / OFF, that is, a digital signal indicating “0” or “1”.
  • the control program SP is a ladder program, but may be an SFC program described by a sequential function chart (SFC).
  • the SFC language is a language defined by IEC (International Electrotechnical Commission) 61131-3.
  • data DX0, DX1, DX2, DX3... DXF are not distinguished from each other, they are referred to as “data DX” and the control signals DY0, DY1, DY2, DY3. If not, it is referred to as “control signal DY”.
  • FIG. 3 is a diagram showing a hardware configuration of a computer connected to the programmable logic controller of the control system shown in FIG.
  • the computer 6 executes a computer program, and as shown in FIG. 3, a CPU (Central Processing Unit) 61, a RAM (Random Access Memory) 62, and a ROM (Read Only Memory). ) 63, a storage device 64 that is an external information storage device, an input device 65, a display device 66, and a communication interface 67.
  • the CPU 61, RAM 62, ROM 63, storage device 64, input device 65, display device 66, and communication interface 67 are connected to each other via the bus B6.
  • the CPU 61 executes programs stored in the ROM 63 and the storage device 64 while using the RAM 62 as a work area.
  • the program stored in the ROM 63 is BIOS (Basic Input / Output System) or UEFI (Unified Extensible Firmware Interface), but the program stored in the ROM 63 is not limited to BIOS or UEFI.
  • the program stored in the storage device 64 is an operating system program and an engineering tool program.
  • the program stored in the storage device 64 is not limited to the operating system program and the engineering tool program.
  • the storage device 64 is an SSD (Solid State Drive) or an HDD (Hard Disk Drive), but the storage device 64 is not limited to an SSD or an HDD.
  • the input device 65 receives an operation input from the user.
  • the input device 65 is a keyboard or a mouse, but is not limited to a keyboard or a mouse.
  • the display device 66 displays characters and images.
  • the display device 66 is a liquid crystal display device, but is not limited to a liquid crystal display device.
  • the communication interface 67 communicates with the PLC 5.
  • PLC5 is a programmable controller defined in JIS (Japanese Industrial Standards) B 3502: 2011. After being activated, the PLC 5 repeatedly executes the control program SP every preset period. The PLC 5 executes the control program SP a preset number of times. The number of times the control program SP is repeatedly executed is received from the computer 6. Each time the PLC 5 executes the control program SP, it receives data DX0, DX1, DX2, DX3,... DXF from the control devices 2X0, 2X1, 2X2, 2X3,. Each time the PLC 5 executes the control program SP, the PLC 5 acquires control signals DY0, DY1, DY2, DY3,...
  • the PLC 5 executes the plurality of rungs L of the control program SP in order from the top. In the first embodiment, when the PLC 5 executes the control program SP in order from the upper rung L (L1) and executes the last rung L, the PLC 5 returns to the first rung L (L1).
  • the PLC 5 repeatedly executes the first rung L (L1) after executing the last rung L (L1) in order, and then returns to the first rung L (L1) to repeat the control devices 2X0, 2X1, and 2X2. , 2X3... 2XF, 3Y0, 3Y1, 3Y2, 3Y3.
  • the execution of the last rung L by the PLC 5 executing the control program SP in order from the upper rung L (L1) is referred to as “one scan”.
  • the PLC 5 executes the control program SP, that is, at the end of each scan, that is, at the end of each scan, the data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3.
  • the timing of receiving the data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3... DYF is after the execution of the control program SP, that is, every scan. Last but not limited.
  • the PLC 5 stores one or more of data DX0, DX1, DX2, DX3... DXF and control signals DY0, DY1, DY2, DY3.
  • the PLC 5 receives the data DX0, DX1, DX2, DX3... DXF of the control device 2X that is a switch, but in addition to the switch, the link special relay, timer, long timer, link special Data of at least one of a register, a refresh data register, a special relay, a special register, a function input, a function output, and a function device may be received.
  • the PLC 5 includes an acquisition data setting unit 11 that sets the acquisition data AD, a storage unit 12 that stores the acquisition data AD, a program storage unit 13 that stores the control program SP, and an input data reception unit. 14, a control unit 15, an internal data reproduction unit 16, and an input / output unit 17.
  • the acquired data AD is data set to be acquired and stored by the PLC 5 among the data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3. .
  • the acquisition data setting unit 11 sets at least one of the plurality of data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3.
  • the acquired data setting unit 11 refers to the control program SP stored in the program storage unit 13 and sets the data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3. At least one of them is set in the acquired data AD.
  • the acquired data setting unit 11 uses the control program SP among the data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3.
  • the control signals DY0, DY1, DY2, DY3... DYF that can be generated are not set in the acquired data AD.
  • the acquired data setting unit 11 cannot generate data using the control program SP among the data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3.
  • DX0, DX1, DX2, DX3... DXF are set in the acquired data AD.
  • the acquisition data setting unit 11 can generate the data using the control program SP among the data X0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3. Restricted data DX0, DX1, DX2, DX3... DXF are set in the acquired data AD.
  • the program storage unit 13 stores information indicating the number of times the PLC 5 executes the control program SP in addition to the control program SP.
  • the number of times the PLC 5 executes the control program SP is a plurality of times.
  • the program storage unit 13 is connected to the control devices 2X0, 2X1, 2X2, 2X3... 2XF, 3Y0, 3Y1, 3Y2, 3Y3.
  • the input / output unit 17 controls the control devices 2X0, 2X1, 2X2, 2X3... 2XF, 3Y0, 3Y1, 3Y2, 3Y3.
  • the input / output unit 17 repeatedly executes the control program SP for each preset period, and generates control signals DY0, DY1, DY2, DY3,... DYF.
  • the input / output unit 17 transmits the generated control signals DY0, DY1, DY2, DY3,... DYF to the control devices 3Y0, 3Y1, 3Y2, 3Y3,.
  • the input data receiving unit 14 includes data DX0, DX1, DX2, DX3... DXF from all the control devices 2X0, 2X1, 2X2, 2X3. Control signals DY0, DY1, DY2, DY3,... DYF to be transmitted to 3Y3. Each time the input / output unit 17 executes the control program SP, the input data receiving unit 14 receives all the data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3. Receive. In the first embodiment, since the input / output unit 17 repeatedly executes the control program SP, the input data receiving unit 14 includes all the data DX0, DX1, DX2, DX3...
  • the input data receiving unit 14 includes all the data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1 after the input / output unit 17 completes the execution of the control program SP. , DY2, DY3... DYF.
  • the control unit 15 receives at least one time when the input data receiving unit 14 receives all the data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3. , The data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3... DYF received by the input data receiving unit 14 are stored in the storage unit 12.
  • the control unit 15 performs any one time when the input / output unit 17 repeatedly executes the control program SP a predetermined number of times, that is, the input data reception unit 14 performs all data DX0, DX1, DX2, DX3,...
  • the control unit 15 performs the data DX0, DX1, DX2, DX3 after the execution of the first control program SP of the plurality of times in which the input / output unit 17 repeatedly executes the control program SP.
  • ... DXF and control signals DY0, DY1, DY2, DY3... DYF are all stored in the storage unit 12.
  • the control unit 15 receives the data DX0, of which the input data receiving unit 14 receives all the data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3.
  • DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3... DYF are all stored in the storage unit 12 at other times except for at least one time.
  • the control unit 15 stores the acquired data AD in the storage unit 12 at least once. Further, the control unit 15 causes the storage unit 12 to store all the data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3.
  • control unit 15 stores the acquired data AD in the storage unit 12. It is a time other than the time to be memorized.
  • the control unit 15 stores the acquired data AD in the storage unit 12
  • the data DX0, DX1, DX2, DX3... DXF received by the input data receiving unit 14 is the acquired data AD
  • the input data receiving unit When the value of the data DX0, DX1, DX2, DX3... DXF received by 14 changes from the value most recently stored in the storage unit 12, the data DX0, DX1, DX2, received by the input data receiving unit 14 DX3... DXF is stored in the storage unit 12 as acquired data AD.
  • the control unit 15 receives the received data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2 after the first execution of the control program SP of the input / output unit 17 is completed.
  • DY3... DYF are all stored in the storage unit 12, so that the data DX0 from the value most recently stored in the storage unit 12 after the second and subsequent executions of the control program SP of the input / output unit 17 are completed.
  • DX1, DX2, DX3,... DXF the data DX0, DX1, DX2, DX3,.
  • the control unit 15 “scans” that the data DX0, DX1, DX2, DX3. It describes.
  • the internal data reproduction unit 16 controls the data DX0, DX1, DX2, DX3... DXF of each scan based on the acquired data AD stored in the storage unit 12 and the control program SP stored in the program storage unit 13. All of the signals DY0, DY1, DY2, DY3... DYF are reproduced.
  • the data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3... DYF for each scan are all the control devices 2X0, 2X1, 2X2, 2X3,. .. Internal data indicating the state of 2XF, 3Y0, 3Y1, 3Y2, 3Y3... 3YF.
  • FIG. 4 is a diagram showing a hardware configuration of the programmable logic controller of the control system shown in FIG.
  • the PLC 5 includes a CPU unit 21 that is communicably connected to the computer 6 via the network N, an input unit 22 that is connected to the control device 2X, and an output unit 23 that is connected to the control device 3Y.
  • the CPU unit 21 includes a communication interface 211 that is communicably connected to the computer 6, an MPU (Micro-Processing Unit) 212 that executes a computer program, and a memory 213 that stores a control program SP.
  • the CPU unit 21 includes a communication circuit 214 connected to the network N via a communication interface 211 and a bus interface 215.
  • the MPU 212, the memory 213, the communication circuit 214, and the bus interface 215 are connected via the internal bus B5.
  • the memory 213 includes a storage area capable of storing the control program SP and data.
  • the memory 213 is configured by a nonvolatile semiconductor memory or a volatile semiconductor memory.
  • RAM random access memory
  • ROM read only memory
  • flash memory flash memory
  • EPROM Erasable Programmable Read Only Memory
  • EEPROM Electrically Erasable Programmable Read Only Memory
  • the memory 213 may be configured by at least one of a magnetic disk, an optical disk, and a magneto-optical disk.
  • the communication circuit 214 is realized by a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a combination of two or more thereof.
  • the bus interface 215 is a bus bridge circuit that connects the internal bus B5 and the expansion bus B.
  • each of the input unit 22 and the output unit 23 includes input / output interfaces 35I and 35O connected to the control devices 2X and 3Y, and converters 36I and 36O connected to the input / output interfaces 35I and 35O.
  • the input unit 22 and the output unit 23 include MPUs 37I and 37O for storing computer programs, shared memories 31I and 31O, communication circuits 38I and 38O, and bus interfaces 39I and 39O connected to the expansion bus B, respectively.
  • the MPUs 37I and 37O, the shared memories 31I and 31O, and the communication circuits 38I and 38O are connected via internal buses B3I and B3O.
  • Converters 36I and 36O are also connected to MPUs 37I and 37O. Converters 36I and 36O are realized by digital I / O (Input / Output). The communication circuits 38I and 38O are connected to the bus interfaces 39I and 39O.
  • the shared memories 31I and 31O have a storage area capable of storing data.
  • the shared memories 31I and 31O are configured by a nonvolatile semiconductor memory or a volatile semiconductor memory.
  • a nonvolatile semiconductor memory or a volatile semiconductor memory a RAM, a ROM, a flash memory, an EPROM, or an EEPROM can be used.
  • the shared memories 31I and 31O may be configured by at least one of a magnetic disk, an optical disk, and a magneto-optical disk.
  • the communication circuits 38I and 38O are realized by a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC, an FPGA, or a combination of two or more thereof.
  • the MPU 37I of the input unit 22 stores the data DX received from the control device 2X in the shared memory 31I, and transmits it to the CPU unit 21 via the internal bus B3I, the communication circuit 38I, the bus interface 39I, and the expansion bus B. .
  • the MPU 37O of the output unit 23 receives the control signal DY from the CPU unit 21, stores the received control signal DY in the shared memory 31O, and transmits it to the control device 3Y via the converter 36O and the input / output interface 35O.
  • the functions of the input unit 22 and the output unit 23 are realized by the MPUs 37I and 370 executing computer programs.
  • the computer program is realized by software, firmware, or a combination of software and firmware.
  • the functions of the acquisition data setting unit 11, the control unit 15, and the internal data reproduction unit 16 of the PLC 5 are realized when the MPU 212 executes a computer program stored in the memory 213.
  • the function of the input / output unit 17 of the PLC 5 is realized by the MPU 212 executing the control program SP.
  • the computer program is realized by software, firmware, or a combination of software and firmware.
  • the functions of the program storage unit 13 and the storage unit 12 are realized by the memory 213.
  • the function of the input data receiving unit 14 is realized by the bus interface 215.
  • FIG. 5 is a flowchart showing an operation of acquiring acquisition data of the programmable logic controller of the control system shown in FIG.
  • FIG. 6 is a diagram illustrating all acquired data stored in the storage unit in step S1 of FIG.
  • FIG. 7 is a diagram illustrating the change history data stored in the storage unit in step S8 of FIG.
  • the input / output unit 17 of the PLC 5 When acquiring the acquisition data AD, the input / output unit 17 of the PLC 5 reads the control program SP from the program storage unit 13 after the control system 1 is activated, and executes the control program SP once.
  • the controller 15 of the PLC 5 receives the data DX0, DX1, received from the control devices 2X0, 2X1, 2X2, 2X3... 2XF after the input / output unit 17 executes the control program SP once, that is, after scanning once.
  • the control unit 15 of the PLC 5 causes the storage unit 12 to store all acquired data AAD shown in FIG.
  • the total acquired data AAD indicates the acquired data AD of “0th scan”.
  • the all acquired data AAD indicates all of the “0th scan” data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3.
  • the control unit 15 of the PLC 5 determines whether or not there is any abnormality in the control system 1 (step S2). In the first embodiment, the control unit 15 of the PLC 5 determines that there is an abnormality in the control system 1 when at least one of the data DX0, DX1, DX2, DX3... DXF is different from the normal value. However, the basis for determining whether there is no abnormality is not limited to at least one of the data DX0, DX1, DX2, DX3.
  • step S2 When the control unit 15 of the PLC 5 determines that there is an abnormality in the control system 1 (step S2: No), the data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, stored in the storage unit 12 are stored. DY2, DY3... DYF are all transmitted to the storage device 64, which is an external information storage device of the PLC 5 (step S3), the flowchart shown in FIG. 5 is ended, and the acquisition of the acquisition data AD is ended. .
  • the storage device 64 of the computer 6 stores all of the received data DX0, DX1, DX2, DX3... DXF and the control signals DY0, DY1, DY2, DY3.
  • the control unit 15 of the PLC 5 determines whether or not the control system 1 satisfies the set condition (step S4).
  • the setting condition is a condition for the user to end the acquisition of data DX0, DX1, DX2, DX3.
  • the setting conditions are generated by the user using the computer 6, transmitted to the PLC 5, and stored in the program storage unit 13 of the PLC 5.
  • the setting condition is that among the control devices 2X0, 2X1, 2X2, 2X3... 2XF, 3Y0, 3Y1, 3Y2, 3Y3...
  • step S4: Yes the flowchart shown in FIG. 5 is ended, and the acquisition of the acquisition data AD is ended.
  • step S4: No the control unit 15 of the PLC 5 determines that the setting condition is not met (step S4: No)
  • step S5 after the input / output unit 17 executes the next control program SP, the control unit 15 of the PLC 5 DX0, DX1, DX2, DX3... DXF are received, and control signals DY0, DY1, DY2, DY3... DYF are acquired (step S5).
  • the control unit 15 of the PLC 5 is set to the acquired data AD among the received data DX0, DX1, DX2, DX3...
  • step S6 the control unit 15 of the PLC 5 extracts data DX0, DX1, DX2, DX3,... DXF.
  • the control unit 15 of the PLC 5 extracts data DX0, DX1, DX2, DX3,... DXF extracted as set in the acquired data AD, which has changed from the value at the previous scan (step S7). .
  • the control part 15 of PLC5 memorize
  • the control unit 15 of the PLC 5 stores the value of the data DX0, DX1, DX2, DX3... DXF extracted as set in the acquired data AD in step S8, which has changed from the value at the previous scan.
  • the control unit 15 of the PLC 5 repeats steps S2 to S8 every time the control program SP is executed until the number of times the control program SP is repeated reaches the number of times that the control program SP stored in the program storage unit 13 is executed. And execute “Scan”.
  • the control unit 15 of the PLC 5 stores the change history data CHD shown in FIG. 7 in the storage unit 12 in step S8 during each scan.
  • the change history data CHD indicates the acquired data AD stored in the storage unit 12 and associates the data DX name whose value has changed, the changed value, and the changed scan. That is, in step S8, the control unit 15 stores the data DX name whose value has changed, the changed value, and the changed scan in the storage unit 12 in association with each other.
  • the change history data CHD changes the value of the data DX0 of the control device 2X0 to “1” at the second scan, and changes the value of the data DX1 of the control device 2X1 to “1” at the third scan. It shows that.
  • the change history data CHD changes the value of the data DX2 of the control device 2X2 to “0” at the third scan, changes the value of the data DX1 of the control device 2X1 to “0” at the fifth scan, and changes to the seventh scan. It shows that the value of the data DX0 of the control device 2X0 has changed to “0”.
  • FIG. 8 is a flowchart showing an operation in which the programmable logic controller of the control system shown in FIG. 1 reproduces intermediate data.
  • FIG. 9 is a diagram showing the midway acquisition data created in step S13 of FIG.
  • FIG. 10 is a diagram for explaining intermediate data reproduced according to the flowchart shown in FIG.
  • FIG. 11 is a flowchart showing an operation of reproducing internal data of the programmable logic controller of the control system shown in FIG.
  • FIG. 12 is a diagram for explaining the internal data reproduced by the internal data reproduction unit of the programmable logic controller of the control system shown in FIG.
  • the internal data IRD shown in FIG. 12 indicates data DX0, DX1, DX2, DX3... DXF and control signals DY0, DY1, DY2, DY3.
  • the internal reproduction data IRD indicates the states of all control devices 2X0, 2X1, 2X2, 2X3... 2XF, 3Y0, 3Y1, 3Y2, 3Y3.
  • Internal data IRD shown in FIG. 12 is generated by the internal data reproduction unit 16.
  • the internal data reproduction unit 16 first executes the processing of the flowchart shown in FIG. 8 to reproduce the intermediate data WD indicating the data DX at the time of all the scans of the control device 2X which is the switch shown in FIG.
  • the internal data reproducing unit 16 acquires all the acquired data AAD shown in FIG. Data AAD is held (step S10).
  • the internal data reproduction unit 16 retains all acquired data AAD until the flowchart of FIG. 8 ends.
  • the internal data reproduction unit 16 of the PLC 5 refers to the change history data CHD shown in FIG. 7 and determines whether there is data DX whose value has changed in the nth scan (step S12).
  • step S12 determines that there is data DX whose value has changed at the nth scan (step S12: Yes)
  • Step S13 The internal data reproduction unit 16 holds all the acquired data AAD-n halfway until the flowchart of FIG. 8 ends.
  • the value of each data DX since the value of each data DX may change every time step S11 to step S15 are repeated, the value of each data DX is shown as a blank.
  • the internal data reproduction unit 16 of the PLC 5 determines that there is no data DX whose value has changed at the nth scan (step S12: No), and after the change of the data DX at which all the acquired data AAD has changed at the nth scan After updating all the acquired data AAD-n on the way (step S13), the value of the data DX whose value has not changed at the nth scan of the all acquired data AAD-n is maintained (step S13). S14).
  • the internal data reproduction unit 16 of the PLC 5 repeats the steps S11 to S16 until the update of the values of the data DX of all the scans is completed.
  • step S13 the internal data reproduction unit 16 of the PLC 5 updates the halfway acquired data AAD-n generated when step S13 was executed last time with the changed value of the data DX changed at the nth scan, New halfway acquisition data AAD-n is generated and held. If the internal data reproduction unit 16 of the PLC 5 determines that the update of the data DX for all the scans has been completed (step S15: Yes), one total acquired data AAD and n intermediate total acquired data AAD-n Holding. On the way, all acquired data AAD-n indicates the value of the reproduced data DX of the “nth scan”.
  • the internal data reproduction unit 16 of the PLC 5 reproduces the value of the “DX scan” data DX.
  • the internal data reproduction unit 16 of the PLC 5 determines that the update of the data DX for all the scans has been completed (step S15: Yes)
  • the internal data reproduction unit 16 converts the data into one total acquired data AAD and n intermediate total acquired data AAD-n. Based on this, the intermediate data WD indicating the data DX for all the scans of the control device 2X shown in FIG. 10 is generated, the generated intermediate data WD is held, and the flowchart shown in FIG. 8 is ended.
  • the internal data reproduction unit 16 of the PLC 5 refers to the control program SP stored in the program storage unit 13 (step S21).
  • the internal data reproduction unit 16 of the PLC 5 reproduces the internal data IRD at the time of all the scans of the control device 3Y based on the control program SP and the intermediate data WD shown in FIG. 10 (step S22).
  • the internal data reproduction unit 16 of the PLC 5 combines the intermediate data WD and the reproduced values of the control signals DY for all the scans of the control device 3Y to generate the internal data IRD shown in FIG.
  • the control unit 15 of the PLC 5 transmits the internal data IRD reproduced by the internal data reproduction unit 16 to the computer 6 (step S23).
  • the control unit 15 of the PLC 5 deletes the internal data IRD reproduced by the internal data reproduction unit 16 (step S24).
  • the computer 6 stores the received internal data IRD in the storage unit 12 and displays it on the display device 66.
  • the internal data reproduction unit 16 of the PLC 5 ends the flowchart shown in FIG.
  • the internal data reproduction unit 16 of the PLC 5 acquires all acquired data AAD in step S10, refers to the change history data CHD in step S12, and refers to the control program SP in step S21, and is stored in the storage unit 12.
  • the internal data IRD is reproduced based on the acquired data AD and the control program SP stored in the program storage unit 13.
  • the control unit 15 stores in the storage unit 12 the value of the data DX that is set to the acquisition data AD by the acquisition data setting unit 11 and has changed from the value most recently stored in the storage unit 12. Therefore, it is not necessary to always store the values of all data DX. As a result, the PLC 5 according to the first embodiment can reduce the total capacity of the data DX stored in the storage unit 12, and can further reduce the capacity of the acquired data DX.
  • the control unit 15 stores the value of the data DX that has been set to the acquisition data AD by the acquisition data setting unit 11 and has changed from the value most recently stored in the storage unit 12. Therefore, if the value changes, the value of the data DX set in the acquired data AD can be acquired without causing insufficient acquisition. As a result, the PLC 5 according to the first embodiment can suppress insufficient acquisition of the data DX, and can confirm time-series changes of the accurate data DX and the control signal DY.
  • the PLC 5 according to the first embodiment reproduces internal data IRD indicating the states of the control devices 2X and 3Y based on the data DX stored in the storage unit 12 and the control program SP stored in the program storage unit 13.
  • An internal data reproduction unit 16 is provided.
  • the PLC 5 according to the first embodiment reproduces the control signal DY, which is data, based on the entire acquisition data AAD, which is the acquisition data AD stored by the internal data reproduction unit 16, the change history data CHD, and the control program SP. For this reason, the PLC 5 according to the first embodiment can confirm time-series changes in the accurate data DX and the control signal DY without acquiring the control signal DY.
  • the PLC 5 includes the internal data reproduction unit 16 that reproduces the internal data IRD, and the time series changes of the accurate data DX and the control signal DY can be obtained without acquiring the control signal DY. Therefore, it is possible to confirm time-series changes in the data DX and the control signal DY for a long period of time.
  • the control unit 15 may cause the storage unit 12 to store all of the data DX and the control signal DY. Therefore, even if the data DX whose value has changed is acquired, All data DX can be calculated based on AAD. As a result, the PLC 5 according to the first embodiment can confirm time-series changes in the accurate data DX and the control signal DY even if the acquired data DX is suppressed.
  • the acquisition data setting unit 11 refers to the control program SP and sets the data DX that cannot be generated using the control program SP in the acquisition data AD.
  • the PLC 5 obtains the data DX that cannot be generated without obtaining the control signal DY or using the control program SP, so that the time series changes of the accurate data DX and the control signal DY are confirmed. can do.
  • the PLC 5 transmits the data DX and the control signal DY stored in the storage unit 12 to the storage device 64 of the computer 6 when an abnormality occurs, so that the acquired data DX and the control signal DY are reliably transmitted. It can be stored in the storage device 64.
  • the PLC 5 according to the first embodiment is a so-called programmable logic controller, and is installed in a place where the programmable logic controller is generally difficult to extract data. For this reason, since PLC5 which concerns on Embodiment 1 can suppress the capacity
  • FIG. 13 is a flowchart showing an operation of reproducing internal data of the programmable logic controller according to the second embodiment.
  • the same parts as those in the first embodiment are denoted by the same reference numerals and description thereof is omitted.
  • the PLC 5 according to the second embodiment has the same configuration as the PLC 5 according to the first embodiment. Further, the PLC 5 according to the second embodiment performs the same operation as the PLC 5 according to the first embodiment except for the operation of reproducing the internal data IRD.
  • the internal data reproduction unit 16 of the PLC 5 is similar to the first embodiment in that the internal data reproduction unit 16 of the PLC 5 is a control program SP stored in the program storage unit 13. (Step S21).
  • the internal data reproduction unit 16 of the PLC 5 reproduces the internal data IRD at the time of all scans of the control device 3Y based on the control program SP and the intermediate data WD (step S22).
  • the internal data reproduction unit 16 of the PLC 5 generates the internal data IRD by combining the intermediate data WD and the reproduced values of the control signals DY at the time of all the scans of the control device 3Y.
  • the control unit 15 of the PLC 5 transmits the internal data IRD reproduced by the internal data reproduction unit 16 to the computer 6.
  • the control unit 15 of the PLC 5 transmits the internal data IRD reproduced by the internal data reproduction unit 16 to the computer 6 (step S23), deletes the internal data IRD (step S24), and then transmits the internal data IRD to the control device 3Y.
  • the indicated control signal DY is transmitted to operate the control device 3Y according to the control signal DY (step S25).
  • the control unit 15 of the PLC 5 transmits the control signal DY of the internal data IRD to the control device 3Y in the scan order, but transmits the control signal DY at the time of scanning designated by the computer 6 to the control device 3Y. May be.
  • the PLC 5 can cause the control device 3Y to perform an arbitrary operation designated by the user.
  • the PLC 5 controls the value of the data DX that is set to the acquired data AD by the acquired data setting unit 11 and has changed from the value most recently stored in the storage unit 12. Since the unit 15 stores in the storage unit 12, the total capacity of the data DX stored in the storage unit 12 can be reduced, and the acquired data DX can be further reduced in capacity.
  • the control device 3Y since the PLC 5 according to the second embodiment transmits the internal data IRD reproduced by the internal data reproduction unit 16 to the control device 3Y, the control device 3Y can be operated based on the internal data IRD.
  • FIG. 14 is a flowchart illustrating an operation in which the acquisition data setting unit of the programmable logic controller according to the third embodiment sets acquisition data.
  • the same parts as those in the first embodiment are denoted by the same reference numerals and description thereof is omitted.
  • the PLC 5 according to the third embodiment performs the same operation as the PLC 5 according to the first embodiment, except that the acquisition data setting unit 11 sets the acquisition data AD.
  • the acquisition data setting unit 11 of the PLC 5 determines whether or not the data DX is indicated in the condition part LA of the rung L in the n-th row (step S32).
  • step S32 determines that the data DX is not indicated in the condition part LA of the rung L of the n-th row (step S32: No)
  • step S34 determines that the data DX is indicated in the condition part LA of the rung L of the n-th row. If the acquired data setting unit 11 of the PLC 5 determines that the indicated data DX is already set to the acquired data AD (step S34: Yes), the process proceeds to step S33. When the acquired data setting unit 11 of the PLC 5 determines that the indicated data DX has not been set as the acquired data AD (step S34: No), the acquired data DX is set as the acquired data AD ( Step S35).
  • the acquisition data setting unit 11 of the PLC 5 determines whether or not the rung L confirmed in step S31 is the rung L of the last row (step S36). When the acquisition data setting unit 11 of the PLC 5 determines that the rung L confirmed in step S31 is not the rung L of the last row (step S36: No), the process proceeds to step S33, and the rung L confirmed in step S31 is the last rung L If it is determined that the rung is L (step S36: Yes), the flowchart shown in FIG. 14 is terminated. The acquisition data setting unit 11 of the PLC 5 repeats step S31 to step S36 until the confirmation of all the rungs L is completed.
  • the PLC 5 controls the value of the data DX that is set to the acquired data AD by the acquired data setting unit 11 and has changed from the value most recently stored in the storage unit 12. Since the unit 15 stores in the storage unit 12, the total capacity of the data DX stored in the storage unit 12 can be reduced, and the acquired data DX can be further reduced in capacity.
  • the acquisition data setting unit 11 sets the data DX indicated in the condition part LA of the control program SP to the acquisition data AD, the data DX0, DX1, DX2, DX3,. -It is not necessary to set all of DXF as acquired data AD. For this reason, PLC5 which concerns on Embodiment 3 suppresses acquiring data DX which are not shown by the condition part LA of control program SP among data DX0, DX1, DX2, DX3 ... DXF. Can do.
  • the PLC 5 according to the third embodiment can further suppress the total capacity of the data DX to be acquired, and even if the data DX to be acquired is suppressed, the lack of acquisition of the data DX can be suppressed, and the accurate data DX In addition, a time-series change of the control signal DY can be confirmed.
  • FIG. 15 is a diagram illustrating a configuration of a control system including the programmable logic controller according to the fourth embodiment.
  • the same parts as those of the first embodiment are denoted by the same reference numerals and description thereof is omitted.
  • the PLC 5-4 according to the fourth embodiment has the same configuration as the PLC 5 according to the first embodiment except that the internal data reproduction unit 16 is not provided. Further, the PLC 5-4 according to the fourth embodiment performs the same operation as the PLC 5 according to the first embodiment except that the internal data IRD is not reproduced.
  • the PLC 5-4 sets the acquired data AD by the acquired data setting unit 11 and changes the value of the data DX from the value most recently stored in the storage unit 12. Is stored in the storage unit 12, the total capacity of the data DX stored in the storage unit 12 can be reduced, and the acquired data DX can be further reduced in capacity.
  • the PLC 5-4 acquires the data DX that cannot be generated even when the acquisition program setting unit 11 uses the control program SP by referring to the control program SP stored in the program storage unit 13. Since the data AD is set, even if the control signal DY is not acquired, insufficient acquisition of the data DX can be suppressed, and accurate time-series changes of the data DX and the control signal DY can be confirmed.
  • FIG. 16 is a flowchart illustrating an operation in which the programmable logic controller according to the fifth embodiment reproduces intermediate data.
  • FIG. 17 is a flowchart showing an operation of reproducing internal data of a computer connected to the programmable logic controller shown in FIG.
  • the same parts as those in the first embodiment are denoted by the same reference numerals and description thereof is omitted.
  • the internal data reproduction unit 16 of the PLC 5 according to the fifth embodiment generates the halfway acquisition data AAD-n (step S13), and the data DX whose value has not changed at the nth scan of the halfway acquisition data AAD-n. (Step S14), the value DX of the “n-th scan” data DX is reproduced, and then the data DX reproduced in the “n-th scan”, that is, all acquired data AAD-n is transmitted to the computer 6. (Step S14a).
  • the internal data reproduction unit 16 of the PLC 5 according to the fifth embodiment transmits the reproduced data DX of the “nth scan” to the computer 6 (step S14a), and then reproduces the data DX of the “n ⁇ 1th scan”.
  • step S14b all acquired data AAD-n-1 is deleted (step S14b).
  • the internal data reproduction unit 16 of the PLC 5 determines whether or not the update of the data DX for all the scans has been completed (step S15).
  • the internal data reproduction unit 16 of the PLC 5 according to the fifth embodiment reproduces the value of the “nth scan” data DX and then transmits the “nth scan” reproduced data DX to the computer 6 (step S14a).
  • step S14a The internal data reproduction unit 16 of the PLC 5 according to the fifth embodiment transmits the data DX reproduced from the “nth scan” to the computer 6 (step S14a), and then the data DX reproduced from the “n ⁇ 1th scan”. Except for the deletion, the same processing as the PLC 5 of the first embodiment is executed.
  • the computer 6 that has received the reproduced data DX of the “nth scan” refers to the control program SP (step S21). Based on the control program SP and the intermediate data WD shown in FIG. 10, the computer 6 reproduces the internal data IRD at the time of all the scans of the control device 3Y, similarly to the PLC 5 of the first embodiment (step S22). .
  • the computer 6 stores the reproduced internal data IRD in the storage unit 12 and displays it on the display device 66. After executing step S22, the computer 6 ends the flowchart shown in FIG.
  • the PLC 5 controls the value of the data DX that has been set to the acquisition data AD by the acquisition data setting unit 11 and has changed from the value most recently stored in the storage unit 12. Since the unit 15 stores in the storage unit 12, the total capacity of the data DX stored in the storage unit 12 can be reduced, and the acquired data DX can be further reduced in capacity.
  • the PLC 5 transmits the data DX reproduced in the “nth scan”, that is, all the acquired data AAD-n to the computer 6, and the data DX reproduced in the “n ⁇ 1 scan”, that is, in the middle. Since all the acquired data AAD-n-1 is deleted, the total capacity of the data DX stored in the storage unit 12 can be reduced.
  • the PLCs 5 and 5-4 reproduce the data DX of the control device 2X and the control signal DY of the control device 3Y, but the data used in the PLCs 5 and 5-4 are also used. You may reproduce it without obtaining it. That is, the PLCs 5 and 5-4 can also reproduce data used internally. Note that the data used in the PLCs 5 and 5-4 are a counter for storing a value at which the instruction is executed, a variable for calculation, and 1-bit data used only inside.
  • the configuration described in the above embodiment shows an example of the contents of the present invention, and can be combined with another known technique, and can be combined with other configurations without departing from the gist of the present invention. It is also possible to omit or change the part.
  • PLC programmable logic controller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

PLC(5)は、制御機器(2X,3Y)のデータ(DX)及び制御信号(DY)のうちの少なくとも一つを取得データ(AD)に設定する取得データ設定部(11)と、取得データ(AD)を記憶する記憶部(12)とを備える。PLC(5)は、制御機器(3Y)を制御する制御プログラムを格納するプログラム記憶部(13)と、データ(DX)及び制御信号(DY)を受信する入力データ受信部(14)と、制御部(15)とを備える。制御部(15)は、入力データ受信部(14)が受信したデータ(DX)及び制御信号(DY)が取得データ(AD)であり、かつ、データ(DX)の値が記憶部(12)に最も最近記憶された値から変化した場合に、データ(DX)を取得データ(AD)として記憶部(12)に記憶させる。

Description

プログラマブルロジックコントローラ
 本発明は、FA(Factory Automation)分野の設備を制御するプログラマブルロジックコントローラに関する。
 FA分野の設備は、複数の制御機器を組み合わせて実現されることが一般的である。FA分野の設備を構成する複数の制御機器は、プログラマブルロジックコントローラ(PLC:Programmable Logic Controller)を備える制御システムにより動作が制御される。プログラマブルロジックコントローラは、命令実行、周辺装置からの指令、又は設定された条件が真となったタイミングで、制御機器に関するデータのうちあらかじめ設定したデータ、又は全データを、予め設定した周期で取得し、時系列にしたがって記憶する機能を有するものがある。あらかじめ設定したデータ、又は全データを、設定した周期で取得し、時系列にしたがって記憶する機能を有するプログラマブルロジックコントローラは、取得したデータをグラフで表示することで、データの時系列の変化を確認する機能を有する。
 プログラマブルロジックコントローラは、データの時系列の変化を取得不足なく取得するためには、少なくとも制御プログラムを繰り返し実行する毎にデータを取得する必要がある。
 しかし、プログラマブルロジックコントローラは、制御プログラムを実行する毎に全てのデータを取得した場合、取得したデータの合計容量が膨大になり、長期間にわたってデータが保存できないことに加え、データの取得に時間がかかるという問題が発生する。また、プログラマブルロジックコントローラは、長期間のデータを保存するために、あらかじめ設定したデータを取得した場合、又はデータを取得する間隔を長くした場合、データの取得不足が発生し、正確なデータの時系列の変化を確認できないという問題が発生する。
 プログラマブルロジックコントローラが取得するデータの合計容量を低減するために、値の変化時にデータを取得する技術が、開示されている(特許文献1参照)。
特開平11-85264号公報
 しかしながら、特許文献1に示された技術は、取得したデータの時系列の変化しか確認できず、全てのデータの時系列変化を確認するためには全てのデータを取得する必要がある。近年、プログラマブルロジックコントローラの処理が高速化して、制御プログラムの実行にかかる時間が短くなっており、一定期間内の制御プログラムの実行回数が増大しているため、特許文献1に示された技術は、全てのデータを取得することになるので、取得したデータの合計容量が膨大になってしまうという問題が発生する。
 本発明は、上記に鑑みてなされたものであって、取得するデータをさらに小容量化することができるプログラマブルロジックコントローラを得ることを目的とする。
 上述した課題を解決し、目的を達成するために、本発明は、制御機器の複数のデータのうちの少なくとも一つを取得データに設定する取得データ設定部と、取得データを記憶する記憶部と、制御機器を制御する制御プログラムを格納するプログラム記憶部とを備えるプログラマブルロジックコントローラである。プログラマブルロジックコントローラは、データを受信する入力データ受信部と、制御部とを備える。制御部は、入力データ受信部が受信したデータが取得データであり、かつ、入力データ受信部が受信したデータの値が記憶部に最も最近記憶された値から変化した場合に、入力データ受信部が受信したデータを取得データとして記憶部に少なくとも1回記憶させる。
 本発明に係るプログラマブルロジックコントローラは、取得するデータをさらに小容量化することができるという効果を奏する。
実施の形態1に係るプログラマブルロジックコントローラが備えられる制御システムの構成を示す図 図1に示す制御システムのコンピュータが生成する制御プログラムの一例を示す図 図1に示された制御システムのプログラマブルロジックコントローラに接続されたコンピュータのハードウェアの構成を示す図 図1に示された制御システムのプログラマブルロジックコントローラのハードウェアの構成を示す図 図1に示された制御システムのプログラマブルロジックコントローラの取得データを取得する動作を示すフローチャート 図5のステップS1において記憶部に記憶された全取得データを説明する図 図5のステップS8において記憶部に記憶された変化履歴データを説明する図 図1に示された制御システムのプログラマブルロジックコントローラが途中データを再現する動作を示すフローチャート 図8のステップS13において作成された途中取得データを示す図 図8に示すフローチャートにしたがって再現された途中データを説明する図 図1に示された制御システムのプログラマブルロジックコントローラの内部データを再現する動作を示すフローチャート 図1に示された制御システムのプログラマブルロジックコントローラの内部データ再現部により再現された内部データを説明する図 実施の形態2に係るプログラマブルロジックコントローラの内部データを再現する動作を示すフローチャート 実施の形態3に係るプログラマブルロジックコントローラの取得データ設定部が取得データを設定する動作を示すフローチャート 実施の形態4に係るプログラマブルロジックコントローラが備えられる制御システムの構成を示す図 実施の形態5に係るプログラマブルロジックコントローラが途中データを再現する動作を示すフローチャート 図16に示されたプログラマブルロジックコントローラに接続されたコンピュータの内部データを再現する動作を示すフローチャート
 以下に、本発明の実施の形態に係るプログラマブルロジックコントローラを図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。
実施の形態1.
 図1は、実施の形態1に係るプログラマブルロジックコントローラが備えられる制御システムの構成を示す図である。図2は、図1に示す制御システムのコンピュータが生成する制御プログラムの一例を示す図である。制御システム1は、FA(Factory Automation)分野の設備を構成するものであり、図1に示すように、設備に設置される複数の制御機器2X,3Yと、複数の制御機器2X,3Yに接続したプログラマブルロジックコントローラ(Programmable Logic Controllers:以下、単にPLCと記す)5と、PLC5に接続したコンピュータ6とを備える。
 制御機器2X,3Yは、設備に設置されるスイッチ、調整弁、電磁弁、モータ、又はポンプであり、動作を実施する駆動機器である。実施の形態1において、制御機器2Xは、スイッチであり、制御機器3Yは、スイッチ以外の駆動機器である。実施の形態1において、制御システム1は、制御機器2Xと制御機器3Yとをそれぞれ複数備える。本明細書は、複数の制御機器2X同士を区別する場合には、制御機器2Xを、符号2X0,2X1,2X2,2X3・・・2XF(Fは、自然数)で示し、複数の制御機器3Y同士を区別する場合には、制御機器3を、符号3Y0,3Y1,3Y2,3Y3・・・3YFで示す。また、本明細書は、制御機器2X同士を区別しない場合には、制御機器2Xを符号2Xで示し、制御機器3Y同士を区別しない場合には、制御機器3Yを符号3Yで示す。
 コンピュータ6は、ネットワークNを介して、PLC5に通信可能に接続している。ネットワークNは、コンピュータ6とPLC5とを相互に通信可能に接続するコンピュータネットワークである。実施の形態1において、ネットワークNは、FA設備に設置されるLAN(Local Area Network)である。
 コンピュータ6は、PLC5を介して、制御機器2X0,2X1,2X2,2X3・・・2XF,3Y0,3Y1,3Y2,3Y3・・・3YFに接続している。コンピュータ6は、PLC5で実行される図2に示す制御プログラムSPを生成して、PLC5に送信する。PLC5は、コンピュータ6から受信した制御プログラムSPを記憶する。PLC5が、制御プログラムSPを実行することにより、制御機器3Y0,3Y1,3Y2,3Y3・・・3YFを制御する。即ち、制御プログラムSPは、PLC5に接続された制御機器3Y0,3Y1,3Y2,3Y3・・・3YFを制御するためのコンピュータプログラムである。
 また、コンピュータ6は、PLC5が制御プログラムSPを実行する回数を示す情報を生成し、生成した制御プログラムSPを実行する回数を示す情報をPLC5に送信する。PLC5は、制御プログラムSPを実行する回数を示す情報を記憶する。
 実施の形態1において、制御プログラムSPは、図2に示すように、ラダー(Ladder:LD)言語で記述されたラダープログラムである。ラダー言語は、IEC(国際電機標準会議) 61131-3及びJIS(日本工業規格) B 3503:2012により規定された言語である。
 制御プログラムSPは、図2中の左右両端に位置する2本の平行な母線BLと、2本の母線BL同士を連結する複数のラングLとを備える。各ラングLは、図2中左側に設けられる条件部LAと、図2中右側に設けられる動作部LBとを備える。実施の形態1において、条件部LAは、PLC5が制御機器2X0,2X1,2X2,2X3・・・2XFのうち少なくとも一つから受信するデータDX0,DX1,DX2,DX3・・・DXFにより規定される。動作部LBは、PLC5が制御機器3Y0,3Y1,3Y2,3Y3・・・3YFのうち少なくとも一つに送信する制御信号DY0,DY1,DY2,DY3・・・DYFを規定する。
 実施の形態1において、PLC5が制御機器2X0,2X1,2X2,2X3・・・2XFから受信するデータDX0,DX1,DX2,DX3・・・DXFは、スイッチのオンオフを示す信号、即ち「0」か「1」を示すデジタル信号である。
 実施の形態1において、図2の一番上のラングL(符号L1で示す)は、制御機器3Y0に送信する制御信号DY0が、制御機器2X0から受信するデータDX0と等しいことを示している。図2の中央のラングL(符号L2で示す)は、制御機器3Y1に送信する制御信号DY1が、制御機器2X2から受信するデータDX2と等しいことを示しているとともに、制御機器3Y3に送信する制御信号DY3が、制御機器2X2から受信するデータDX2と等しいことを示している。図2の一番下のラングL(符号L3で示す)は、制御機器3Y2に送信する制御信号DY2が、制御機器2X3から受信するデータDX3の逆であることを示している。即ち、ラングL3は、制御機器2X3から受信するデータDX3が「0」であると制御機器3Y2に送信する制御信号DY2が「1」であることを示し、制御機器2X3から受信するデータDX3が「1」であると制御機器3Y2に送信する制御信号DY2が「0」であることを示している。
 実施の形態1において、制御プログラムSPにより制御信号DY0,DY1,DY2,DY3・・・DYFがデータDX0,DX1,DX2,DX3・・・DXFにより規定されるので、制御信号DY0,DY1,DY2,DY3・・・DYFは、オンオフを示す信号、即ち「0」か「1」を示すデジタル信号である。なお、実施の形態1において、制御プログラムSPは、ラダープログラムであるが、シーケンシャルファンクションチャート(Sequential Function Chart:SFC)で記述されたSFCプログラムでも良い。SFC言語は、IEC(国際電機標準会議) 61131-3により規定された言語である。また、本明細書は、データDX0,DX1,DX2,DX3・・・DXF同士を区別しない場合には、「データDX」と記し、制御信号DY0,DY1,DY2,DY3・・・DYF同士を区別しない場合には、「制御信号DY」と記す。
 次に、コンピュータ6の構成を図面に基づいて説明する。図3は、図1に示された制御システムのプログラマブルロジックコントローラに接続されたコンピュータのハードウェアの構成を示す図である。実施の形態1に係るコンピュータ6は、コンピュータプログラムを実行するものであって、図3に示すように、CPU(Central Processing Unit)61と、RAM(Random Access Memory)62と、ROM(Read Only Memory)63と、外部の情報記憶装置である記憶装置64と、入力装置65と、表示装置66と、通信インタフェース67と、を含む。CPU61、RAM62、ROM63、記憶装置64、入力装置65、表示装置66及び通信インタフェース67は、バスB6を介して相互に接続されている。
 CPU61は、RAM62を作業領域として使用しながら、ROM63及び記憶装置64に記憶されているプログラムを実行する。ROM63に記憶されているプログラムは、BIOS(Basic Input/Output System)又はUEFI(Unified Extensible Firmware Interface)であるが、ROM63に記憶されているプログラムは、BIOS又はUEFIに限定されない。実施の形態1において、記憶装置64に記憶されているプログラムは、オペレーティングシステムプログラム及びエンジニアリングツールプログラムであるが、記憶装置64に記憶されているプログラムは、オペレーティングシステムプログラム及びエンジニアリングツールプログラムに限定されない。実施の形態1において、記憶装置64は、SSD(Solid State Drive)又はHDD(Hard Disk Drive)であるが、記憶装置64は、SSD又はHDDに限定されない。
 入力装置65は、ユーザからの操作入力を受け付ける。実施の形態1において、入力装置65は、キーボード又はマウスであるが、キーボード又はマウスに限定されない。表示装置66は、文字及び画像を表示する。実施の形態1において、表示装置66は、液晶表示装置であるが、液晶表示装置に限定されない。通信インタフェース67は、PLC5と通信を行う。
 PLC5は、JIS(日本工業規格)B 3502:2011に規定されたプログラマブルコントローラである。PLC5は、起動された後、制御プログラムSPを予め設定された周期毎に繰り返し実行する。PLC5は、制御プログラムSPを予め設定された回数実行する。制御プログラムSPを繰り返し実行する回数は、コンピュータ6から受信する。PLC5は、制御プログラムSPを実行する毎に、制御機器2X0,2X1,2X2,2X3・・・2XFからのデータDX0,DX1,DX2,DX3・・・DXFを受信する。PLC5は、制御プログラムSPを実行する毎に、制御機器3Y0,3Y1,3Y2,3Y3・・・3YFに送信するデータである制御信号DY0,DY1,DY2,DY3・・・DYFを取得する。制御信号DY0,DY1,DY2,DY3・・・DYFを取得することは、データである制御信号DY0,DY1,DY2,DY3・・・DYFを受信することに相当する。実施の形態1において、PLC5は、制御プログラムSPの複数のラングLのうち上から順に実行する。実施の形態1において、PLC5は、制御プログラムSPを上のラングL(L1)から順に実行して最後のラングLを実行すると、最初のラングL(L1)に戻る。実施の形態1において、PLC5は、上のラングL(L1)から順に実行して最後のラングLを実行した後に最初のラングL(L1)に戻ることを繰り返して、制御機器2X0,2X1,2X2,2X3・・・2XF,3Y0,3Y1,3Y2,3Y3・・・3YFの制御を行う。なお、本明細書は、PLC5は、制御プログラムSPを上のラングL(L1)から順に実行して最後のラングLを実行することを「1スキャン」と呼ぶ。
 実施の形態1において、PLC5は、制御プログラムSPを実行した後、即ち毎スキャンの最後に、データDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとを受信するが、データDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとを受信するタイミングは、制御プログラムSPの実行後、即ち毎スキャンの最後に限定されない。PLC5は、データDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとのうちの一以上を記憶する。なお、実施の形態1において、PLC5は、スイッチである制御機器2XのデータDX0,DX1,DX2,DX3・・・DXFを受信するが、スイッチの他にリンク特殊リレー、タイマ、ロングタイマ、リンク特殊レジスタ、リフレッシュデータレジスタ、特殊リレー、特殊レジスタ、ファンクション入力、ファンクション出力、及びファンクションデバイスのうち少なくとも一つのデータを受信しても良い。
 PLC5は、図1に示すように、取得データADを設定する取得データ設定部11と、取得データADを記憶する記憶部12と、制御プログラムSPを格納するプログラム記憶部13と、入力データ受信部14と、制御部15と、内部データ再現部16と、入出力部17とを備える。取得データADは、データDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとのうちの、PLC5が取得し記憶することが設定されたデータである。
 取得データ設定部11は、複数のデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとのうちの少なくとも一つを取得データADに設定する。取得データ設定部11は、プログラム記憶部13が格納した制御プログラムSPを参照して、データDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとのうちの少なくとも一つを取得データADに設定する。
 実施の形態1において、取得データ設定部11は、データDX0,DX1,DX2,DX3・・・DXFと、制御信号DY0,DY1,DY2,DY3・・・DYFとのうちの、制御プログラムSPを用いて生成することができる制御信号DY0,DY1,DY2,DY3・・・DYFを取得データADに設定しない。取得データ設定部11は、データDX0,DX1,DX2,DX3・・・DXFと、制御信号DY0,DY1,DY2,DY3・・・DYFとのうちの制御プログラムSPを用いて生成することができないデータDX0,DX1,DX2,DX3・・・DXFを取得データADに設定する。即ち、取得データ設定部11は、データX0,DX1,DX2,DX3・・・DXFと、制御信号DY0,DY1,DY2,DY3・・・DYFとのうちの制御プログラムSPを用いて生成することが規制されているデータDX0,DX1,DX2,DX3・・・DXFを取得データADに設定する。
 プログラム記憶部13は、制御プログラムSPに加え、PLC5が制御プログラムSPを実行する回数を示す情報を格納する。実施の形態1において、PLC5が制御プログラムSPを実行する回数は、複数回である。プログラム記憶部13は、入出力部17を介して制御機器2X0,2X1,2X2,2X3・・・2XF,3Y0,3Y1,3Y2,3Y3・・・3YFに接続している。入出力部17は、制御プログラムSPにしたがって制御機器2X0,2X1,2X2,2X3・・・2XF,3Y0,3Y1,3Y2,3Y3・・・3YFを制御するものである。入出力部17は、制御プログラムSPを予め設定された周期毎に、予め設定された回数繰り返し実行して、制御信号DY0,DY1,DY2,DY3・・・DYFを生成する。入出力部17は、生成した制御信号DY0,DY1,DY2,DY3・・・DYFを制御機器3Y0,3Y1,3Y2,3Y3・・・3YFに送信する。
 入力データ受信部14は、全ての制御機器2X0,2X1,2X2,2X3・・・2XFからのデータDX0,DX1,DX2,DX3・・・DXFと入出力部17が制御機器3Y0,3Y1,3Y2,3Y3・・・3YFに送信する制御信号DY0,DY1,DY2,DY3・・・DYFとを受信する。入力データ受信部14は、入出力部17が制御プログラムSPを実行する毎に、全てのデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとを受信する。実施の形態1において、入出力部17が制御プログラムSPを繰り返し実行するので、入力データ受信部14は、全てのデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとを複数回受信する。また、実施の形態1において、入力データ受信部14は、入出力部17が制御プログラムSPの実行を完了した後に、全てのデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとを受信する。
 制御部15は、入力データ受信部14が複数回全てのデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとを受信するうちの少なくとも1回において、入力データ受信部14が受信したデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとの全てを記憶部12に記憶させる。実施の形態1において、制御部15は、入出力部17が制御プログラムSPを予め設定された回数繰り返し実行する際の任意の1回、即ち、入力データ受信部14が複数回全てのデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとを受信するうちの任意の1回において、データDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとの全てを記憶部12に記憶させる。また、実施の形態1において、制御部15は、入出力部17が制御プログラムSPを繰り返し実行する複数回のうちの最初の制御プログラムSPの実行が完了した後に、データDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとの全てを記憶部12に記憶させる。
 制御部15は、入力データ受信部14が複数回全てのデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとを受信するうちのデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとの全てを記憶部12に記憶させる少なくとも1回以外の他の回において、取得データADを記憶部12に記憶させる。即ち、制御部15は、取得データADを記憶部12に少なくとも1回記憶させる。また、制御部15がデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFの全てを記憶部12に記憶させる少なくとも1回は、入力データ受信部14が複数回全てのデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとを受信するうちの制御部15が取得データADを記憶部12に記憶させる回以外の回である。
 制御部15は、取得データADを記憶部12に記憶させる際には、入力データ受信部14が受信したデータDX0,DX1,DX2,DX3・・・DXFが取得データADであり、入力データ受信部14が受信したデータDX0,DX1,DX2,DX3・・・DXFの値が記憶部12に最も最近記憶された値から変化した場合に、入力データ受信部14が受信したデータDX0,DX1,DX2,DX3・・・DXFを取得データADとして記憶部12に記憶する。
 実施の形態1において、制御部15は、入出力部17の制御プログラムSPの最初の実行が完了した後に、受信したデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとの全てを記憶部12に記憶させるので、入出力部17の制御プログラムSPの2回目以降の実行が完了した後に、記憶部12に最も最近記憶させた値からデータDX0,DX1,DX2,DX3・・・DXFの値が変化した場合に、値が変化したデータDX0,DX1,DX2,DX3・・・DXFを記憶する。なお、本明細書は、入出力部17が制御プログラムSPを実行した後に、制御部15が、値が変化したデータDX0,DX1,DX2,DX3・・・DXFを記憶することを「スキャンする」と記載する。
 内部データ再現部16は、記憶部12に記憶された取得データADとプログラム記憶部13が格納した制御プログラムSPとに基づいて、各スキャンのデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとの全てを再現するものである。各スキャンのデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとの全ては、各スキャン時の全ての制御機器2X0,2X1,2X2,2X3・・・2XF,3Y0,3Y1,3Y2,3Y3・・・3YFの状態を示す内部データである。
 次に、実施の形態1に係るPLCの構成を図面に基づいて説明する。図4は、図1に示された制御システムのプログラマブルロジックコントローラのハードウェアの構成を示す図である。PLC5は、図4に示すように、ネットワークNを介してコンピュータ6に通信可能に接続したCPUユニット21と、制御機器2Xに接続した入力ユニット22と、制御機器3Yに接続した出力ユニット23とを備える。
 CPUユニット21は、図4に示すように、コンピュータ6と通信可能に接続する通信インタフェース211と、コンピュータプログラムを実行するMPU(Micro-Processing Unit)212と、制御プログラムSPを記憶するメモリ213とを備える。CPUユニット21は、ネットワークNと通信インタフェース211を介して接続した通信用回路214と、バスインタフェース215とを備える。MPU212とメモリ213と通信用回路214とバスインタフェース215とは、内部バスB5を介して接続している。
 メモリ213は、制御プログラムSP及びデータを記憶可能な記憶領域を備える。メモリ213は、不揮発性の半導体メモリ、又は揮発性の半導体メモリにより構成される。不揮発性の半導体メモリ、又は揮発性の半導体メモリとして、RAM、ROM、フラッシュメモリ、EPROM(Erasable Programmable Read Only Memory)、又は、EEPROM(Electrically Erasable Programmable Read Only Memory)を用いることができる。また、メモリ213は、磁気ディスク、光ディスク、及び光磁気ディスクのうちの少なくとも一つにより構成されても良い。
 通信用回路214は、単一回路、複合回路、プログラム化したプロセッサー、並列プログラム化したプロセッサー、ASIC(Application Specific Integrated Circuit)、FPGA(Field-Programmable Gate Array)又はこれらの二以上を組み合わせて実現される。バスインタフェース215は、内部バスB5と、拡張バスBとを連結するバスブリッジ回路である。
 入力ユニット22及び出力ユニット23は、構成が等しい。なお、以下、本明細書は、入力ユニット22の構成部分に符号「I」を付して説明し、出力ユニット23の構成部分に符号「O」を付して説明する。入力ユニット22及び出力ユニット23は、それぞれ、図4に示すように、制御機器2X,3Yに接続した入出力インタフェース35I,35Oと、入出力インタフェース35I,35Oに接続したコンバータ36I,36Oとを備える。入力ユニット22及び出力ユニット23は、それぞれ、コンピュータプログラムを記憶するMPU37I,37Oと、共有メモリ31I,31Oと、通信用回路38I,38Oと、拡張バスBに接続したバスインタフェース39I,39Oとを備える。MPU37I,37Oと共有メモリ31I,31Oと通信用回路38I,38Oとは、内部バスB3I,B3Oを介して接続している。
 コンバータ36I,36Oは、MPU37I,37Oにも接続している。コンバータ36I,36Oは、デジタルI/O(Input/Output)により実現される。通信用回路38I,38Oは、バスインタフェース39I,39Oと接続している。
 共有メモリ31I,31Oは、データを記憶可能な記憶領域を備える。共有メモリ31I,31Oは、不揮発性の半導体メモリ、又は揮発性の半導体メモリにより構成される。不揮発性の半導体メモリ、又は揮発性の半導体メモリとして、RAM、ROM、フラッシュメモリ、EPROM、又は、EEPROMを用いることができる。また、共有メモリ31I,31Oは、磁気ディスク、光ディスク、及び光磁気ディスクのうちの少なくとも一つにより構成されても良い。
 通信用回路38I,38Oは、単一回路、複合回路、プログラム化したプロセッサー、並列プログラム化したプロセッサー、ASIC、FPGA又はこれらの二以上を組み合わせて実現される。
 入力ユニット22のMPU37Iは、制御機器2Xから受信したデータDXを共有メモリ31Iに記憶するとともに、内部バスB3I、通信用回路38I、バスインタフェース39I及び拡張バスBを介して、CPUユニット21に送信する。出力ユニット23のMPU37Oは、CPUユニット21から制御信号DYを受信し、受信した制御信号DYを共有メモリ31Oに記憶するとともに、コンバータ36O及び入出力インタフェース35Oを介して制御機器3Yに送信する。入力ユニット22及び出力ユニット23の機能は、MPU37I,37Oがコンピュータプログラムを実行することにより実現される。コンピュータプログラムは、ソフトウェア、ファームウェア、又はソフトウェアとファームウェアとの組み合わせにより実現される。
 PLC5の取得データ設定部11、制御部15及び内部データ再現部16の機能は、MPU212がメモリ213に記憶されたコンピュータプログラムを実行することにより実現される。PLC5の入出力部17の機能は、MPU212が制御プログラムSPを実行することにより実現される。コンピュータプログラムは、ソフトウェア、ファームウェア、又はソフトウェアとファームウェアとの組み合わせにより実現される。プログラム記憶部13及び記憶部12の機能は、メモリ213により実現される。入力データ受信部14の機能は、バスインタフェース215により実現される。
 次に、実施の形態1に係る制御システム1のPLC5の取得データADを取得する動作を図面に基づいて説明する。図5は、図1に示された制御システムのプログラマブルロジックコントローラの取得データを取得する動作を示すフローチャートである。図6は、図5のステップS1において記憶部に記憶された全取得データを説明する図である。図7は、図5のステップS8において記憶部に記憶された変化履歴データを説明する図である。
 取得データADを取得する際には、PLC5の入出力部17は、制御システム1が起動された後に、プログラム記憶部13から制御プログラムSPを読み出して、制御プログラムSPを1回実行する。PLC5の制御部15は、入出力部17が制御プログラムSPを1回実行した後、即ち1回スキャンした後、制御機器2X0,2X1,2X2,2X3・・・2XFから受信したデータDX0,DX1,DX2,DX3・・・DXFと、制御機器3Y0,3Y1,3Y2,3Y3・・・3YFに送信する制御信号DY0,DY1,DY2,DY3・・・DYFとの全てを記憶部12に記憶させる(ステップS1)。なお、実施の形態1において、データDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとの全てを記憶部12に記憶させるスキャンを「0スキャン目」と記す。ステップS1において、PLC5の制御部15は、図6に示す全取得データAADを記憶部12に記憶させる。全取得データAADは、「0スキャン目」の取得データADを示すものである。全取得データAADは、「0スキャン目」のデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとの全てを示すものである。
 PLC5の制御部15は、制御システム1に異常がないか否かを判定する(ステップS2)。実施の形態1において、PLC5の制御部15は、データDX0,DX1,DX2,DX3・・・DXFのうち少なくとも一つが正常時の値と異なっていると、制御システム1に異常があると判定するが、異常がないか否かを判定する根拠は、データDX0,DX1,DX2,DX3・・・DXFのうち少なくとも一つに限定されない。
 PLC5の制御部15は、制御システム1に異常があると判定する(ステップS2:No)と、記憶部12に記憶したデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとの全てをPLC5の外部の情報記憶装置である記憶装置64に送信し(ステップS3)、図5に示すフローチャートを終了し、取得データADを取得することを終了する。コンピュータ6の記憶装置64は、受信したデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとの全てを記憶する。
 PLC5の制御部15は、制御システム1に異常がないと判定する(ステップS2:Yes)と、制御システム1が設定条件に該当しているか否かを判定する(ステップS4)。設定条件は、ユーザがコンピュータ6を介してPLC5にデータDX0,DX1,DX2,DX3・・・DXFの取得を終了させるための条件である。設定条件は、ユーザがコンピュータ6を用いて生成し、PLC5に送信され、PLC5のプログラム記憶部13に記憶される。実施の形態1において、設定条件は、制御システム1の非常停止スイッチが操作されることで制御機器2X0,2X1,2X2,2X3・・・2XF,3Y0,3Y1,3Y2,3Y3・・・3YFのうち少なくとも一つが停止されたこと、及び制御プログラムSPを繰り返した回数がプログラム記憶部13に記憶された制御プログラムSPを実行する回数に達したこととのうち少なくとも一方であるが、これらの少なくとも一方に限定されない。
 PLC5の制御部15は、設定条件に該当していると判定する(ステップS4:Yes)と、図5に示すフローチャートを終了し、取得データADを取得することを終了する。PLC5の制御部15は、設定条件に該当していないと判定する(ステップS4:No)と、入出力部17が次の回の制御プログラムSPを実行した後、PLC5の制御部15は、データDX0,DX1,DX2,DX3・・・DXFを受信し、制御信号DY0,DY1,DY2,DY3・・・DYFを取得する(ステップS5)。PLC5の制御部15は、受信したデータDX0,DX1,DX2,DX3・・・DXFと、取得した制御信号DY0,DY1,DY2,DY3・・・DYFとのうち取得データADに設定されているものを抽出する(ステップS6)。実施の形態1において、PLC5の制御部15は、データDX0,DX1,DX2,DX3・・・DXFを抽出する。
 PLC5の制御部15は、取得データADに設定されているものとして抽出したデータDX0,DX1,DX2,DX3・・・DXFのうち前回のスキャン時の値から変化したものを抽出する(ステップS7)。PLC5の制御部15は、抽出したものを記憶部12に記憶(ステップS8)し、即ち「1スキャン目」を実行して、ステップS2に戻る。PLC5の制御部15は、ステップS8において取得データADに設定されているものとして抽出したデータDX0,DX1,DX2,DX3・・・DXFのうち前回のスキャン時の値から変化したものの値を記憶することで、入力データ受信部14が受信したデータDX0,DX1,DX2,DX3・・・DXFの値が記憶部12に最も最近記憶された値から変化した場合に、データDXを取得データADとして記憶することとなる。PLC5の制御部15は、制御プログラムSPを繰り返した回数がプログラム記憶部13に記憶された制御プログラムSPを実行する回数に達するまで、制御プログラムSPを実行する毎に、ステップS2からステップS8を繰り返して「スキャン」を実行する。PLC5の制御部15は、各スキャン時のステップS8において、記憶部12に図7に示す変化履歴データCHDを記憶させる。変化履歴データCHDは、記憶部12に記憶された取得データADを示すものであり、値が変化したデータDX名と、変化した後の値と、変化したスキャンとを対応付けている。即ち制御部15は、ステップS8において、値が変化したデータDX名と、変化した後の値と、変化したスキャンとを対応付けて記憶部12に記憶させる。
 実施の形態1において、変化履歴データCHDは、2スキャン目に制御機器2X0のデータDX0の値が「1」に変化し、3スキャン目に制御機器2X1のデータDX1の値が「1」に変化したことを示している。変化履歴データCHDは、3スキャン目に制御機器2X2のデータDX2の値が「0」に変化し、5スキャン目に制御機器2X1のデータDX1の値が「0」に変化し、7スキャン目に制御機器2X0のデータDX0の値が「0」に変化したことを示している。
 次に、実施の形態1に係る制御システム1のPLC5の取得データADから内部データIRDを再現する動作を図面に基づいて説明する。図8は、図1に示された制御システムのプログラマブルロジックコントローラが途中データを再現する動作を示すフローチャートである。図9は、図8のステップS13において作成された途中取得データを示す図である。図10は、図8に示すフローチャートにしたがって再現された途中データを説明する図である。図11は、図1に示された制御システムのプログラマブルロジックコントローラの内部データを再現する動作を示すフローチャートである。図12は、図1に示された制御システムのプログラマブルロジックコントローラの内部データ再現部により再現された内部データを説明する図である。
 図12に示す内部データIRDは、全てのスキャン時のデータDX0,DX1,DX2,DX3・・・DXFと制御信号DY0,DY1,DY2,DY3・・・DYFとを示すものである。内部再現データIRDは、全てのスキャン時の全ての制御機器2X0,2X1,2X2,2X3・・・2XF,3Y0,3Y1,3Y2,3Y3・・・3YFの状態を示すものである。図12に示す内部データIRDは、内部データ再現部16により生成される。
 内部データ再現部16は、まず、図8に示すフローチャートの処理を実行して、図10に示すスイッチである制御機器2Xの全てのスキャン時のデータDXを示す途中データWDを再現する。内部データ再現部16は、PLC5がコンピュータ6から内部データIRDを作成する指令を受信すると、途中データWDを再現するために、図6に示す全取得データAADを記憶部12から取得し、全取得データAADを保持しておく(ステップS10)。内部データ再現部16は、全取得データAADを図8のフローチャートを終了するまで保持しておく。
 PLC5の内部データ再現部16は、n=1として、nスキャン目の全てのデータDXの再現を開始する(ステップS11)。PLC5の内部データ再現部16は、図7に示す変化履歴データCHDを参照して、nスキャン目に値が変化したデータDXがあるか否かを判定する(ステップS12)。PLC5の内部データ再現部16は、nスキャン目に値が変化したデータDXがあると判定する(ステップS12:Yes)と、変化履歴データCHDからnスキャン目に変化したデータDXの変化後の値を抜き出して、全取得データAADをnスキャン目に変化したデータDXの変化後の値で更新して、途中全取得データAAD-nを生成し、生成した途中全取得データAAD-nを保持しておく(ステップS13)。内部データ再現部16は、途中全取得データAAD-nを図8のフローチャートを終了するまで保持しておく。なお、図9は、各データDXの値がステップS11からステップS15を繰り返す毎に変化することがあるので、各データDXの値を空欄で示している。
 PLC5の内部データ再現部16は、nスキャン目に値が変化したデータDXがないと判定した(ステップS12:No)後、及び、全取得データAADをnスキャン目に変化したデータDXの変化後の値で更新して、途中全取得データAAD-nを生成した(ステップS13)後、途中全取得データAAD-nのnスキャン目に値が変化していないデータDXの値を維持する(ステップS14)。PLC5の内部データ再現部16は、全てのスキャンのデータDXの更新が完了したか否かを判定する(ステップS15)。PLC5の内部データ再現部16は、全てのスキャンのデータDXの更新が完了していないと判定する(ステップS15:No)と、n=n+1として(ステップS16)、ステップS11に戻る。
 PLC5の内部データ再現部16は、全てのスキャンのデータDXの値の更新が完了するまで、ステップS11からステップS16を繰り返す。PLC5の内部データ再現部16は、ステップS13において、ステップS13を前回実行した際に生成された途中全取得データAAD-nをnスキャン目に変化したデータDXの変化後の値で更新して、新たな途中全取得データAAD-nを生成し、保持する。PLC5の内部データ再現部16は、全てのスキャンのデータDXの更新が完了したと判定する(ステップS15:Yes)と、1つの全取得データAADと、n個の途中全取得データAAD-nとを保持している。途中全取得データAAD-nは、「nスキャン目」の再現したデータDXの値を示している。即ち、PLC5の内部データ再現部16は、「nスキャン目」のデータDXの値を再現する。PLC5の内部データ再現部16は、全てのスキャンのデータDXの更新が完了したと判定する(ステップS15:Yes)と、1つの全取得データAADとn個の途中全取得データAAD-nとに基づいて、図10に示す制御機器2Xの全てのスキャン時のデータDXを示す途中データWDを生成し、生成した途中データWDを保持して、図8に示すフローチャートを終了する。
 その後、PLC5の内部データ再現部16は、プログラム記憶部13に記憶された制御プログラムSPを参照する(ステップS21)。PLC5の内部データ再現部16は、制御プログラムSPと、図10に示す途中データWDとに基づいて、制御機器3Yの全てのスキャン時の内部データIRDを再現する(ステップS22)。PLC5の内部データ再現部16は、ステップS22において、途中データWDと再現した制御機器3Yの全てのスキャン時の制御信号DYの値とを組み合わせて、図12に示す内部データIRDを生成する。PLC5の制御部15は、内部データ再現部16が再現した内部データIRDをコンピュータ6に送信する(ステップS23)。PLC5の制御部15は、内部データ再現部16が再現した内部データIRDを削除する(ステップS24)。コンピュータ6は、受信した内部データIRDを記憶部12に記憶するとともに、表示装置66に表示する。PLC5の内部データ再現部16は、ステップS24を実行した後、図11に示すフローチャートを終了する。
 PLC5の内部データ再現部16は、ステップS10において全取得データAADを取得し、ステップS12において変化履歴データCHDを参照し、ステップS21において制御プログラムSPを参照することにより、記憶部12に記憶された取得データADとプログラム記憶部13が格納した制御プログラムSPとに基づいて内部データIRDを再現することとなる。
 実施の形態1に係るPLC5は、取得データ設定部11により取得データADに設定されて、記憶部12に最も最近記憶された値から変化したデータDXの値を制御部15が記憶部12に記憶させるので、全てのデータDXの値を常に記憶する必要が生じない。その結果、実施の形態1に係るPLC5は、記憶部12に記憶するデータDXの合計容量を低減でき、取得するデータDXをさらに小容量化することができる。
 また、実施の形態1に係るPLC5は、取得データ設定部11により取得データADに設定されて、記憶部12に最も最近記憶された値から変化したデータDXの値を制御部15が記憶部12に記憶させるので、値が変化すると、取得不足が発生することなく、取得データADに設定されたデータDXの値を取得することができる。その結果、実施の形態1に係るPLC5は、データDXの取得不足を抑制でき、正確なデータDX及び制御信号DYの時系列の変化を確認することができる。
 また、実施の形態1に係るPLC5は、記憶部12に記憶されたデータDXとプログラム記憶部13に格納した制御プログラムSPとに基づいて各制御機器2X,3Yの状態を示す内部データIRDを再現する内部データ再現部16を備える。実施の形態1に係るPLC5は、内部データ再現部16が記憶した取得データADである全取得データAAD及び変化履歴データCHDと制御プログラムSPとに基づいてデータである制御信号DYを再現する。このため、実施の形態1に係るPLC5は、制御信号DYを取得しなくても、正確なデータDX及び制御信号DYの時系列の変化を確認することができる。その結果、実施の形態1に係るPLC5は、内部データIRDを再現する内部データ再現部16を備えて、制御信号DYを取得しなくても、正確なデータDX及び制御信号DYの時系列の変化を確認することができるので、長期間分のデータDX及び制御信号DYの時系列の変化を確認することができる。
 また、実施の形態1に係るPLC5は、制御部15がデータDX及び制御信号DYの全てを記憶部12に記憶させることもあるので、値が変化したデータDXを取得しても、全取得データAADに基づいて、全てのデータDXを算出することができる。その結果、実施の形態1に係るPLC5は、取得するデータDXを抑制しても、正確なデータDX及び制御信号DYの時系列の変化を確認することができる。
 また、実施の形態1に係るPLC5は、取得データ設定部11が制御プログラムSPを参照して、制御プログラムSPを用いても生成することができないデータDXを取得データADに設定する。その結果、PLC5は、制御信号DYを取得しなくても、制御プログラムSPを用いても生成することができないデータDXを取得するので、正確なデータDX及び制御信号DYの時系列の変化を確認することができる。
 また、実施の形態1に係るPLC5は、異常が発生すると記憶部12に記憶したデータDX及び制御信号DYをコンピュータ6の記憶装置64に送信するので、取得したデータDX及び制御信号DYを確実に記憶装置64に記憶することができる。
 また、実施の形態1に係るPLC5は、所謂プロマブルロジックコントローラであり、プロマブルロジックコントローラが一般的にデータを取り出し難い場所に設置されるものである。このため、実施の形態1に係るPLC5は、取得するデータDXの容量を抑制することができるので、取得したデータDXを取り出す頻度を抑制することができ、データDXを取り出すために係る手間を抑制することができる。
実施の形態2.
 次に、本発明の実施の形態2に係るPLC5を図面に基づいて説明する。図13は、実施の形態2に係るプログラマブルロジックコントローラの内部データを再現する動作を示すフローチャートである。実施の形態2において、実施の形態1と同一部分には、同一符号を付して説明を省略する。
 実施の形態2に係るPLC5は、実施の形態1に係るPLC5と構成が等しい。また、実施の形態2に係るPLC5は、内部データIRDを再現する動作以外は、実施の形態1に係るPLC5と同じ動作を実行する。
 実施の形態2に係るPLC5の内部データ再現部16は、図13に示すように、実施の形態1と同様に、PLC5の内部データ再現部16は、プログラム記憶部13に記憶された制御プログラムSPを参照する(ステップS21)。PLC5の内部データ再現部16は、制御プログラムSPと、途中データWDとに基づいて、制御機器3Yの全てのスキャン時の内部データIRDを再現する(ステップS22)。PLC5の内部データ再現部16は、ステップS22において、途中データWDと再現した制御機器3Yの全てのスキャン時の制御信号DYの値とを組み合わせて、内部データIRDを生成する。PLC5の制御部15は、内部データ再現部16が再現した内部データIRDをコンピュータ6に送信する。
 PLC5の制御部15は、内部データ再現部16が再現した内部データIRDをコンピュータ6に送信し(ステップS23)、内部データIRDを削除した(ステップS24)後、各制御機器3Yに内部データIRDに示された制御信号DYを送信して、制御機器3Yを制御信号DYに応じて動作させる(ステップS25)。実施の形態1において、PLC5の制御部15は、スキャン順に内部データIRDの制御信号DYを制御機器3Yに送信するが、コンピュータ6から指定されたスキャン時の制御信号DYを制御機器3Yに送信しても良い。コンピュータ6から指定されたスキャン時の制御信号DYを制御機器3Yに送信する場合、PLC5は、ユーザが指定する任意の動作を制御機器3Yに行わせることができる。
 実施の形態2に係るPLC5は、実施の形態1と同様に、取得データ設定部11により取得データADに設定されて、記憶部12に最も最近記憶された値から変化したデータDXの値を制御部15が記憶部12に記憶させるので、記憶部12に記憶するデータDXの合計容量を低減でき、取得するデータDXをさらに小容量化することができる。
 また、実施の形態2に係るPLC5は、内部データ再現部16が再現した内部データIRDを制御機器3Yに送信するので、内部データIRDに基づいて制御機器3Yを動作させることができる。
実施の形態3.
 次に、本発明の実施の形態3に係るPLC5を図面に基づいて説明する。図14は、実施の形態3に係るプログラマブルロジックコントローラの取得データ設定部が取得データを設定する動作を示すフローチャートである。実施の形態3において、実施の形態1と同一部分には、同一符号を付して説明を省略する。
 実施の形態3に係るPLC5は、取得データ設定部11が取得データADを設定する動作以外、実施の形態1に係るPLC5と同じ動作を実行する。
 実施の形態3に係るPLC5の取得データ設定部11は、n=1として、プログラム記憶部13に記憶された制御プログラムSPのn行目のラングLの確認を行う(ステップS31)。PLC5の取得データ設定部11は、n行目のラングLの条件部LAにデータDXが示されているか否かを判定する(ステップS32)。PLC5の取得データ設定部11は、n行目のラングLの条件部LAにデータDXが示されていないと判定する(ステップS32:No)と、n=n+1として(ステップS33)、ステップS31に戻る。
 PLC5の取得データ設定部11は、n行目のラングLの条件部LAにデータDXが示されていると判定する(ステップS32:Yes)と、示されているデータDXが既に取得データADに設定されているか否かを判定する(ステップS34)。PLC5の取得データ設定部11は、示されているデータDXが既に取得データADに設定されていると判定する(ステップS34:Yes)と、ステップS33に進む。PLC5の取得データ設定部11は、示されているデータDXが既に取得データADに設定されていないと判定する(ステップS34:No)と、示されているデータDXを取得データADに設定する(ステップS35)。PLC5の取得データ設定部11は、ステップS31で確認したラングLが最終行のラングLであるか否かを判定する(ステップS36)。PLC5の取得データ設定部11は、ステップS31で確認したラングLが最終行のラングLでないと判定する(ステップS36:No)と、ステップS33に進み、ステップS31で確認したラングLが最終行のラングLであると判定する(ステップS36:Yes)と、図14に示されたフローチャートを終了する。PLC5の取得データ設定部11は、全てのラングLの確認が完了するまで、ステップS31からステップS36を繰り返す。
 実施の形態3に係るPLC5は、実施の形態1と同様に、取得データ設定部11により取得データADに設定されて、記憶部12に最も最近記憶された値から変化したデータDXの値を制御部15が記憶部12に記憶させるので、記憶部12に記憶するデータDXの合計容量を低減でき、取得するデータDXをさらに小容量化することができる。
 また、実施の形態3に係るPLC5は、取得データ設定部11が制御プログラムSPの条件部LAに示されているデータDXを取得データADに設定するので、データDX0,DX1,DX2,DX3・・・DXFの全てを取得データADに設定する必要が無くなる。このために、実施の形態3に係るPLC5は、データDX0,DX1,DX2,DX3・・・DXFのうちの制御プログラムSPの条件部LAに示されていないデータDXを取得することを抑制することができる。その結果、実施の形態3に係るPLC5は、取得するデータDXの合計容量を更に抑制することができ、取得するデータDXを抑制しても、データDXの取得不足を抑制でき、正確なデータDX及び制御信号DYの時系列の変化を確認することができる。
実施の形態4.
 次に、本発明の実施の形態4に係るPLC5-4を図面に基づいて説明する。図15は、実施の形態4に係るプログラマブルロジックコントローラが備えられる制御システムの構成を示す図である。図15において、実施の形態1と同一部分には、同一符号を付して説明を省略する。
 実施の形態4に係るPLC5-4は、図15に示すように、内部データ再現部16を備えない以外は、実施の形態1に係るPLC5と構成が等しい。また、実施の形態4に係るPLC5-4は、内部データIRDを再現しない以外は、実施の形態1に係るPLC5と同じ動作を実行する。
 実施の形態4に係るPLC5-4は、実施の形態1と同様に、取得データ設定部11により取得データADに設定されて、記憶部12に最も最近記憶された値から変化したデータDXの値を制御部15が記憶部12に記憶させるので、記憶部12に記憶するデータDXの合計容量を低減でき、取得するデータDXをさらに小容量化することができる。
 また、実施の形態4に係るPLC5-4は、取得データ設定部11がプログラム記憶部13が格納した制御プログラムSPを参照して、制御プログラムSPを用いても生成することができないデータDXを取得データADに設定するので、制御信号DYを取得しなくても、データDXの取得不足を抑制でき、正確なデータDX及び制御信号DYの時系列の変化を確認することができる。
実施の形態5.
 次に、本発明の実施の形態5に係るPLC5を図面に基づいて説明する。図16は、実施の形態5に係るプログラマブルロジックコントローラが途中データを再現する動作を示すフローチャートである。図17は、図16に示されたプログラマブルロジックコントローラに接続されたコンピュータの内部データを再現する動作を示すフローチャートである。実施の形態5において、実施の形態1と同一部分には、同一符号を付して説明を省略する。
 実施の形態5に係るPLC5の内部データ再現部16は、途中全取得データAAD-nを生成し(ステップS13)、途中全取得データAAD-nのnスキャン目に値が変化していないデータDXの値を維持して(ステップS14)、「nスキャン目」のデータDXの値を再現した後、「nスキャン目」の再現したデータDX即ち途中全取得データAAD-nをコンピュータ6に送信する(ステップS14a)。実施の形態5に係るPLC5の内部データ再現部16は、「nスキャン目」の再現したデータDXをコンピュータ6に送信した(ステップS14a)後、「n-1スキャン目」の再現したデータDX即ち途中全取得データAAD-n-1を削除する(ステップS14b)。PLC5の内部データ再現部16は、全てのスキャンのデータDXの更新が完了したか否かを判定する(ステップS15)。実施の形態5に係るPLC5の内部データ再現部16は、「nスキャン目」のデータDXの値を再現した後、「nスキャン目」の再現したデータDXをコンピュータ6に送信する(ステップS14a)。実施の形態5に係るPLC5の内部データ再現部16は、「nスキャン目」の再現したデータDXをコンピュータ6に送信した(ステップS14a)後、「n-1スキャン目」の再現したデータDXを削除する以外、実施の形態1のPLC5と同様の処理を実行する。
 「nスキャン目」の再現したデータDXを受信したコンピュータ6は、制御プログラムSPを参照する(ステップS21)。コンピュータ6は、制御プログラムSPと、図10に示す途中データWDとに基づいて、実施の形態1のPLC5と同様に、制御機器3Yの全てのスキャン時の内部データIRDを再現する(ステップS22)。コンピュータ6は、再現した内部データIRDを記憶部12に記憶するとともに、表示装置66に表示する。コンピュータ6は、ステップS22を実行した後、図17に示すフローチャートを終了する。
 実施の形態5に係るPLC5は、実施の形態1と同様に、取得データ設定部11により取得データADに設定されて、記憶部12に最も最近記憶された値から変化したデータDXの値を制御部15が記憶部12に記憶させるので、記憶部12に記憶するデータDXの合計容量を低減でき、取得するデータDXをさらに小容量化することができる。
 また、実施の形態5に係るPLC5は、「nスキャン目」の再現したデータDX即ち途中全取得データAAD-nをコンピュータ6に送信し、「n-1スキャン目」の再現したデータDX即ち途中全取得データAAD-n-1を削除するので、記憶部12に記憶するデータDXの合計容量を低減することができる。
 なお、実施の形態1から実施の形態5において、PLC5,5-4は、制御機器2XのデータDX及び制御機器3Yの制御信号DYを再現したが、PLC5,5-4内部で使用するデータも取得せずに再現しても良い。即ち、PLC5,5-4は、内部で使用するデータも再現することができる。なお、PLC5,5-4内部で使用するデータは、命令が実行された値を格納するカウンタ、演算用の変数、及び内部のみで使用する1ビットのデータである。
 以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。
 2X,3Y 制御機器、5,5-4 PLC(プログラマブルロジックコントローラ)、11 取得データ設定部、12 記憶部、13 プログラム記憶部、14 入力データ受信部、15 制御部、16 内部データ再現部、DX データ、DY 制御信号(データ)、AD 取得データ、SP 制御プログラム、IRD 内部データ。

Claims (7)

  1.  制御機器の複数のデータのうちの少なくとも一つを取得データに設定する取得データ設定部と、
     前記取得データを記憶する記憶部と、
     前記制御機器を制御する制御プログラムを格納するプログラム記憶部と、
     前記データを受信する入力データ受信部と、
     前記入力データ受信部が受信した前記データが前記取得データであり、かつ、前記入力データ受信部が受信した前記データの値が前記記憶部に最も最近記憶された値から変化した場合に、前記入力データ受信部が受信した前記データを前記取得データとして前記記憶部に少なくとも1回記憶させる制御部と、
     を備えることを特徴とするプログラマブルロジックコントローラ。
  2.  前記記憶部に記憶された前記取得データと前記プログラム記憶部が格納した前記制御プログラムとに基づいて、全ての前記制御機器の状態を示す内部データを再現する内部データ再現部を備える
     ことを特徴とする請求項1に記載のプログラマブルロジックコントローラ。
  3.  前記入力データ受信部は、前記全ての前記データを複数回受信し、
     前記制御部は、前記入力データ受信部が複数回前記データを受信するうちの少なくとも1回において、前記データの全てを前記記憶部に記憶させる
     ことを特徴とする請求項1又は請求項2に記載のプログラマブルロジックコントローラ。
  4.  前記制御部が前記データの全てを前記記憶部に記憶させる前記少なくとも1回は、前記複数回のうちの前記制御部が前記データを前記取得データとして前記記憶部に記憶させる回以外の回である
     ことを特徴とする請求項3に記載のプログラマブルロジックコントローラ。
  5.  前記制御部は、前記内部データ再現部が再現した前記内部データを前記制御機器に出力する
     ことを特徴とする請求項1から請求項4のうちいずれか一項に記載のプログラマブルロジックコントローラ。
  6.  前記取得データ設定部は、前記プログラム記憶部が格納した前記制御プログラムを参照して、前記データのうちの少なくとも一つを前記取得データに設定する
     ことを特徴とする請求項1から請求項5のうちいずれか一項に記載のプログラマブルロジックコントローラ。
  7.  前記制御部は、異常が発生すると、前記記憶部に記憶した前記取得データを外部の情報記憶装置に送信する
     ことを特徴とする請求項1から請求項6のうちいずれか一項に記載のプログラマブルロジックコントローラ。
PCT/JP2016/065223 2016-05-23 2016-05-23 プログラマブルロジックコントローラ WO2017203583A1 (ja)

Priority Applications (5)

Application Number Priority Date Filing Date Title
CN201680072237.8A CN109154803B (zh) 2016-05-23 2016-05-23 可编程逻辑控制器
KR1020187015887A KR20180080301A (ko) 2016-05-23 2016-05-23 프로그래머블 로직 컨트롤러
PCT/JP2016/065223 WO2017203583A1 (ja) 2016-05-23 2016-05-23 プログラマブルロジックコントローラ
JP2018518831A JP6529670B2 (ja) 2016-05-23 2016-05-23 プログラマブルロジックコントローラ
KR1020207029798A KR102219655B1 (ko) 2016-05-23 2016-05-23 프로그래머블 로직 컨트롤러

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2016/065223 WO2017203583A1 (ja) 2016-05-23 2016-05-23 プログラマブルロジックコントローラ

Publications (1)

Publication Number Publication Date
WO2017203583A1 true WO2017203583A1 (ja) 2017-11-30

Family

ID=60411166

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2016/065223 WO2017203583A1 (ja) 2016-05-23 2016-05-23 プログラマブルロジックコントローラ

Country Status (4)

Country Link
JP (1) JP6529670B2 (ja)
KR (2) KR20180080301A (ja)
CN (1) CN109154803B (ja)
WO (1) WO2017203583A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114174939A (zh) * 2019-07-26 2022-03-11 三菱电机株式会社 可编程逻辑控制器、设定工具及程序

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61202207A (ja) * 1985-03-06 1986-09-08 Hitachi Ltd シ−ケンス制御装置
JPH02253305A (ja) * 1989-03-27 1990-10-12 Fanuc Ltd Pcの信号トレース方式
JPH0764476A (ja) * 1993-08-27 1995-03-10 Koyo Electron Ind Co Ltd プログラマブルコントローラ
JP2653346B2 (ja) * 1993-12-13 1997-09-17 オムロン株式会社 プログラマブル・コントローラ
JP2014081700A (ja) * 2012-10-15 2014-05-08 Fuji Electric Co Ltd プログラマブルコントローラ、プログラマブルコントローラのデータバックアップ方法、プログラマブルコントローラの起動方法
JP5649748B1 (ja) * 2013-04-12 2015-01-07 三菱電機株式会社 プログラマブルコントローラの周辺装置およびデバッグ支援プログラム

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4292666A (en) * 1978-04-12 1981-09-29 Modicon Div. Gould Inc. Programmable controller
JP3852636B2 (ja) 1997-09-03 2006-12-06 豊和工業株式会社 状態データ収集方法及び制御装置
US6999439B2 (en) * 2002-01-31 2006-02-14 Mitsubishi Denki Kabushiki Kaisha Information transmission method, mobile communications system, base station and mobile station in which data size of identification data is reduced
JP2006309315A (ja) * 2005-04-26 2006-11-09 Mitsubishi Electric Corp データ記録装置ならびにデータ記録装置を備えた検査装置および制御装置
US7574417B1 (en) * 2006-09-28 2009-08-11 Rockwell Automation Technologies, Inc. Self configuration of embedded historians
CN100491546C (zh) * 2007-11-22 2009-05-27 武汉钢铁(集团)公司 罩式炉退火自适应控制方法
JP5005010B2 (ja) * 2009-09-03 2012-08-22 三菱電機株式会社 設備制御装置
CN202735791U (zh) * 2012-04-28 2013-02-13 浙江中烟工业有限责任公司 一种实时动态监控滤棒发送机与卷烟机的连接关系的连接控制系统
DE102013010366A1 (de) * 2013-06-21 2015-01-08 Deutsche Telekom Ag Verfahren und System zur Herstellung einer Ware mittels einer digitalen Fabrikator-Einheit
KR101551840B1 (ko) * 2014-02-28 2015-09-10 신성대학 산학협력단 Plc 시뮬레이터 장치
CN103941631B (zh) * 2014-04-21 2016-08-17 南京科远自动化集团股份有限公司 一种可编程序控制器运行中程序无扰动重构的方法
CN104503407B (zh) * 2014-12-20 2017-06-06 北京首钢自动化信息技术有限公司 一种工业生产过程中数据采集回放系统和方法
JP2016224600A (ja) * 2015-05-28 2016-12-28 富士電機株式会社 制御装置、記憶装置、および、再現装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61202207A (ja) * 1985-03-06 1986-09-08 Hitachi Ltd シ−ケンス制御装置
JPH02253305A (ja) * 1989-03-27 1990-10-12 Fanuc Ltd Pcの信号トレース方式
JPH0764476A (ja) * 1993-08-27 1995-03-10 Koyo Electron Ind Co Ltd プログラマブルコントローラ
JP2653346B2 (ja) * 1993-12-13 1997-09-17 オムロン株式会社 プログラマブル・コントローラ
JP2014081700A (ja) * 2012-10-15 2014-05-08 Fuji Electric Co Ltd プログラマブルコントローラ、プログラマブルコントローラのデータバックアップ方法、プログラマブルコントローラの起動方法
JP5649748B1 (ja) * 2013-04-12 2015-01-07 三菱電機株式会社 プログラマブルコントローラの周辺装置およびデバッグ支援プログラム

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114174939A (zh) * 2019-07-26 2022-03-11 三菱电机株式会社 可编程逻辑控制器、设定工具及程序
DE112019007572T5 (de) 2019-07-26 2022-04-28 Mitsubishi Electric Corporation Speicherprogrammierbare Steuerung, Einstellwerkzeug und Programm
CN114174939B (zh) * 2019-07-26 2024-01-12 三菱电机株式会社 可编程逻辑控制器、设定工具及记录介质

Also Published As

Publication number Publication date
JPWO2017203583A1 (ja) 2018-07-12
CN109154803A (zh) 2019-01-04
KR20200121919A (ko) 2020-10-26
KR102219655B1 (ko) 2021-02-24
CN109154803B (zh) 2022-04-08
JP6529670B2 (ja) 2019-06-12
KR20180080301A (ko) 2018-07-11

Similar Documents

Publication Publication Date Title
EP3042254B1 (en) Systems and methods for virtualizing a programmable logic controller
US9753447B2 (en) Control unit, output control method and program
US10606246B2 (en) Control device and control method with various command values in a shared memory providing access to various program execution and command value operation parts in each control cycle
US11334550B2 (en) Controller, control method, and control program for SQL statement generation in a factory automation database
US11281650B2 (en) Control system, controller, and control method
US20190095246A1 (en) Support device and non-transitory storage medium
WO2017203583A1 (ja) プログラマブルロジックコントローラ
US11287793B2 (en) Control device, control method for control device, information processing program, and recording medium
US10146200B2 (en) Apparatus and method for updating operating system in programmable logic controller
US10042335B2 (en) Embedded emulation modules in industrial control devices
WO2020071435A1 (ja) 開発支援プログラム、開発支援装置、および開発支援方法
EP4036670A1 (en) Control device
JP2010079355A (ja) 複数plc間の協調制御システム
US20180059649A1 (en) Simulator linkage device, control method of simulator linkage device, information processing program and recording medium
CN110209105A (zh) 数据的处理方法、控制系统及控制装置
KR20220005537A (ko) 제어 장치
EP3521950A1 (en) Control unit, data refreshing method, data refreshing program
US11640153B2 (en) Control system, support device, and recording medium
KR20180121998A (ko) 디지털 아날로그 변환 장치, 제어 장치, 및 제어 시스템
KR20170111109A (ko) 고정주기 운전 plc 시스템의 출력 동기화 방법
JPH06161518A (ja) プログラムコントローラ
JP3813756B2 (ja) プログラマブルコントローラ
KR910002318B1 (ko) 파이프라인 구조를 가지는 하드웨어 로직 해석회로
JP2016206890A (ja) プラント制御システムおよびプラント制御方法
JPH07104664A (ja) プログラマブルコントローラ

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2018518831

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20187015887

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16903065

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16903065

Country of ref document: EP

Kind code of ref document: A1