WO2020089977A1 - プログラマブルロジックコントローラ、プログラマブルロジックコントローラシステムおよびデータ解析方法 - Google Patents

プログラマブルロジックコントローラ、プログラマブルロジックコントローラシステムおよびデータ解析方法 Download PDF

Info

Publication number
WO2020089977A1
WO2020089977A1 PCT/JP2018/040153 JP2018040153W WO2020089977A1 WO 2020089977 A1 WO2020089977 A1 WO 2020089977A1 JP 2018040153 W JP2018040153 W JP 2018040153W WO 2020089977 A1 WO2020089977 A1 WO 2020089977A1
Authority
WO
WIPO (PCT)
Prior art keywords
unit
function
data
programmable logic
logic controller
Prior art date
Application number
PCT/JP2018/040153
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 JP2019517450A priority Critical patent/JP6664547B1/ja
Priority to PCT/JP2018/040153 priority patent/WO2020089977A1/ja
Priority to CN201880098991.8A priority patent/CN112997123B/zh
Publication of WO2020089977A1 publication Critical patent/WO2020089977A1/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, a programmable logic controller system, and a data analysis method for analyzing state data indicating the state of a controlled device.
  • PLC Programmable Logic Controller
  • the PLC may obtain state data indicating the operating state of the controlled device, which is such a device, from the controlled device and analyze the state data.
  • the PLC can obtain the data analysis result without data analysis by the information system connected to the PLC, and can immediately feed back the data analysis result to the control of the controlled device. it can.
  • Patent Document 1 discloses performing data analysis by fast Fourier transform (FFT) in a PLC to which an analog signal from a controlled device is input.
  • FFT fast Fourier transform
  • PLC analyzes state data by executing a data analysis program in the CPU (Central Processing Unit) unit of PLC.
  • CPU Central Processing Unit
  • the present invention has been made in view of the above, and an object thereof is to obtain a programmable logic controller capable of executing data analysis by arbitrarily replacing the functions of data obtained from a controlled device.
  • the programmable logic controller according to the present invention controls the controlled device.
  • the programmable logic controller according to the present invention has a data acquisition unit that acquires status data indicating the operating status of the controlled device and a plurality of functions that are executed in the status data analysis process in advance, and is provided with a selection instruction from the outside.
  • a function selection unit that selects a function to be executed from a plurality of functions based on the function, and an analysis processing unit that performs a state data analysis process using the function selected by the function selection unit.
  • the programmable logic controller according to the present invention has an effect that data can be analyzed by arbitrarily replacing the functions of the data obtained from the controlled device.
  • the figure which shows the PLC system concerning Embodiment 1 of this invention The figure which shows the function structure of the data analysis system which the PLC system shown in FIG. 1 has.
  • the flowchart which shows the 1st example of the operation procedure by the PLC system shown in FIG. The flowchart which shows the 2nd example of the operation procedure by the PLC system shown in FIG.
  • a programmable logic controller, a programmable logic controller system, and a data analysis method according to an embodiment of the present invention will be described below in detail with reference to the drawings.
  • the present invention is not limited to this embodiment.
  • FIG. 1 is a diagram showing a PLC system 1 according to a first embodiment of the present invention.
  • the PLC system 1 includes a PLC 10 that controls the controlled device 2 and a display 15 that displays the state of the controlled device 2.
  • the display 15 displays the information from the controlled device 2 acquired by the PLC 10 and the result of data analysis.
  • the PLC system 1 has an engineering tool 16 that is a tool for creating a control program and a data analysis program executed by the PLC 10.
  • the engineering tool 16 is a computer in which an engineering tool program that supports the creation of a control program and a data analysis program is installed.
  • the PLC 10 has various units such as a power supply unit 11, a CPU unit 12, an analog input / output unit 13, and an input / output unit 14, and a base unit that electrically connects the various units. In FIG. 1, the illustration of the base unit is omitted.
  • the power supply unit 11 supplies power to each unit of the PLC 10.
  • the CPU unit 12 controls the controlled device 2 by executing the control program.
  • the CPU unit 12 and the display unit 15 are communicably connected to each other via a USB (Universal Serial Bus) cable.
  • the CPU unit 12 and the engineering tool 16 are communicably connected to each other via a LAN (Local Area Network) network.
  • LAN Local Area Network
  • Various state quantities such as vibration, flow rate, pressure and temperature indicating the operating state of the controlled device 2 are converted into current values or voltage values by various sensors and input to the analog input / output unit 13.
  • the analog input / output unit 13 takes in various analog signals.
  • the analog input / output unit 13 also outputs various analog signals.
  • the vibration sensor 3 is attached to a drive unit such as a servo motor included in the controlled device 2 to detect vibration.
  • the vibration sensor 3 outputs a signal indicating the vibration detection result to the analog input / output unit 13.
  • the input / output unit 14 takes in a bit signal from the external device 4 such as a sensor or a switch connected to the controlled device 2.
  • the input / output unit 14 also outputs a bit signal to the external device 4.
  • FIG. 2 is a diagram showing a functional configuration of the data analysis system 5 included in the PLC system 1 shown in FIG.
  • the data analysis system 5 includes a data acquisition unit 21 that acquires status data indicating the operating status of the controlled device 2, an analysis processing unit 22 that performs status data analysis processing, and a plurality of functions that are executed in the analysis processing in advance. It has a function selection unit 23 that selects a function to be executed from a plurality of functions, a display unit 24 that displays a result of the analysis process, and an input unit 25 that inputs information.
  • the function selection unit 23 selects a function based on a selection instruction from the outside of the PLC 10.
  • the operating state is the state of the constituent elements of the controlled device 2 or the state of the substance in the controlled device 2 during the operation of the controlled device 2, and it is assumed that the quantification is possible.
  • the state is an electrical state, a mechanical state, a thermodynamic state, or a hydrodynamic state.
  • the state data is data that quantifies the operating state.
  • the state data includes data extracted from the inside of the controlled device 2 and data obtained by detection by a sensor provided outside the controlled device 2.
  • the data acquisition unit 21 sends the acquired state data to the analysis processing unit 22.
  • the analysis processing unit 22 performs a state data analysis process using the function selected by the function selection unit 23 from among various functions for data analysis, and outputs the result of the analysis process to the display unit 24.
  • the input unit 25 outputs the input information regarding the display of the display unit 24 to the display unit 24.
  • the display unit 24 switches the display according to the information from the input unit 25.
  • the input unit 25 also accepts designation of a function executed in the analysis process.
  • the input unit 25 outputs information indicating the designated function to the function selecting unit 23.
  • the function selection unit 23 selects a function according to the information indicating the designated function.
  • the function of the data acquisition unit 21 is realized by using the configuration of the analog input / output unit 13.
  • the function of the analysis processing unit 22 and the function of the function selecting unit 23 are realized by using the configuration of the CPU unit 12.
  • the functions of the display unit 24 and the input unit 25 are realized by using the configuration of the display unit 15.
  • FIG. 3 is a diagram showing an example of a data analysis program executed by the CPU unit 12 included in the PLC system 1 shown in FIG.
  • the data analysis program 6 shown in FIG. 3 is a sequence program in which a functional block 31 is combined with a sequence circuit symbol and described.
  • the function block 31 is a circuit block that is divided into parts for each function.
  • the program of the function block 31 is described using the ST (Structured Text) language.
  • FIG. 3 various functions of a digital filter function block 31A for digital filter processing, an envelope function block 31B for smoothing a waveform, and an FFT analysis function block 31C for FFT analysis of a waveform.
  • Block 31 is shown. Further, each function block 31 is connected to a contact function unit 32 that switches between valid and invalid of the function block 31, and an output program unit 33 that outputs an analysis result by the function block 31.
  • the user of the PLC system 1 operates the engineering tool 16 to apply a functional block to a part of the control program to create the data analysis program 6.
  • Various functional blocks 31 for data analysis are prepared in the engineering tool 16 in advance.
  • the user can easily create the data analysis program 6 by adding the functional blocks 31 prepared in advance to the data analysis program 6.
  • the data analysis program 6 is a ladder program written in the ladder language.
  • the data analysis program 6 may be a program written in a language other than the ladder language, a program written in the structured ladder language, or a program written in the function block diagram language.
  • the data analysis program 6, which is a sequence program, has the advantage that it is easy to visually confirm the flow of processing by displaying it on the engineering tool 16. Therefore, the user can easily create the data analysis program 6 while confirming the processing procedure for the analysis processing that requires processing such as pre-processing or post-processing.
  • the PLC system 1 does not need to create a new data analysis program 6 separately from the existing data analysis program 6 when performing analysis processing with a new function, but the function block 31 is added to the existing data analysis program 6. A new function can be easily realized by adding.
  • FIG. 4 is a diagram showing a configuration example of the data analysis system 5 shown in FIG.
  • the analog input / output unit 13 has an AD (Analog-to-Digital) converter 40 provided for each terminal to which an analog signal is input.
  • AD Analog-to-Digital
  • the vibration data is data indicating the result of vibration detection by the vibration sensor 3.
  • the PLC system 1 can analyze the state data other than the vibration data, such as the current value data for driving the servo motor, as in the case of the vibration data.
  • the AD converter 40 connected to the terminal to which the signal from the vibration sensor 3 is input converts the vibration data in the analog format into the vibration data in the digital format.
  • FIG. 4 illustration of the terminals is omitted.
  • the analog input / output unit 13 outputs the vibration data in digital format to the CPU unit 12.
  • the analog input / output unit 13 has a function of the data acquisition unit 21 shown in FIG.
  • the CPU unit 12 has a bus interface (Interface: I / F) 41 for communication via the base unit. Further, the CPU unit 12 is for selecting the functions executed in the analysis processing, and the digital filter section 42, the envelope section 43, the FFT section 44, and the averaging section 45, which are various functional sections that perform the analysis processing of the state data. And distributors 46, 47, 48, 49 of.
  • the digital filter unit 42, the envelope unit 43, the FFT unit 44, and the averaging unit 45 are functional units configuring the analysis processing unit 22 illustrated in FIG. 2, and are realized by executing the data analysis program in the CPU unit 12.
  • the digital filter unit 42 corresponds to the digital filter function block 31A shown in FIG.
  • the digital filter unit 42 performs a digital filter operation on the vibration data to make the waveform of the vibration data a predetermined waveform.
  • the envelope section 43 corresponds to the envelope function block 31B shown in FIG.
  • the envelope section 43 calculates the envelope of the waveform of the vibration data and outputs the calculation result.
  • the FFT unit 44 corresponds to the FFT analysis function block 31C shown in FIG.
  • the FFT unit 44 performs FFT analysis on the vibration data and outputs the analysis result.
  • the averaging unit 45 performs the averaging process of the vibration data and outputs the processing result.
  • the distributors 46, 47, 48, 49 are functional units that constitute the function selection unit 23 shown in FIG. 2, and are realized by executing the data analysis program in the CPU unit 12.
  • a signal from the bus I / F 41 is input to the distributor 46.
  • the distributor 46 outputs the input vibration data to the digital filter unit 42 when the output to the digital filter unit 42 is set to be necessary.
  • the distributor 46 outputs the input vibration data to the following distributor 47 when the output to the digital filter unit 42 is set to be no.
  • the distributor 46 corresponds to the contact function unit 32 connected to the digital filter function block 31A in the contact function unit 32 shown in FIG.
  • Vibration data from the FFT unit 44 and vibration data from the distributor 48 are input to the distributor 49.
  • the distributor 49 the necessity of outputting the state data to the averaging unit 45 is set.
  • the distributor 49 outputs the input vibration data to the averaging unit 45.
  • the distributor 49 outputs the input vibration data to the subsequent distributor 50 when the output to the averaging unit 45 is set to NO.
  • the distributor 50 outputs the input vibration data to the display conversion unit 52 when the output to the data storage unit 51 is denied and the output to the display conversion unit 52 is set to be necessary.
  • the display conversion unit 52 converts the format of the vibration data into a format that can be displayed on the display device 15.
  • the display conversion unit 52 outputs the vibration data whose style is converted to the display device 15.
  • the input unit 25 sends information to the distributor 46 for setting the output to the digital filter unit 42 as necessary.
  • the function selection unit 23 selects the digital filter function according to the information from the input unit 25.
  • the input unit 25 sends information to the distributor 47 for setting the output to the envelope unit 43 as required.
  • the function selection unit 23 selects the envelope function according to the information from the input unit 25.
  • the input unit 25 sends information to the distributor 48 for setting the output to the FFT unit 44 as necessary.
  • the function selection unit 23 selects the FFT analysis function according to the information from the input unit 25.
  • the input unit 25 sends information to the distributor 48 for setting the output to the averaging unit 45 as necessary.
  • the function selection unit 23 selects the arithmetic mean function according to the information from the input unit 25.
  • the PLC system 1 can analyze the state data by appropriately combining the respective functions by appropriately combining the distributors 46, 47, 48, 49 with the necessity of output to the respective functional units for the analysis processing. it can.
  • the input unit 25 receives an instruction for storing the state data and an instruction for displaying the state data.
  • the input unit 25 sends information to the distributor 50 for setting that output to the data storage unit 51 is necessary.
  • the CPU unit 12 stores the vibration data in the data storage unit 51.
  • the input unit 25 sends information to the distributor 50 for setting that output to the display conversion unit 52 is necessary.
  • the CPU unit 12 performs the conversion of the vibration data by the display conversion unit 52 and the transmission of the vibration data to the display unit 15.
  • the CPU unit 12 may function as the data acquisition unit 21 shown in FIG. In this case, the vibration data in analog form is directly input to the CPU unit 12.
  • the AD converter 40 may be provided in the CPU unit 12.
  • the CPU unit 12 may include various functional units configuring the analysis processing unit 22 in addition to the digital filter unit 42, the envelope unit 43, the FFT unit 44, and the averaging unit 45.
  • a function unit for determining upper and lower limit waveforms for determining whether the specified waveform is within the range of the determination waveform, or an effective value that is a root mean square of the specified waveform is displayed.
  • a functional unit for calculating may be included.
  • the analysis processing unit 22 may exclude any of the digital filter unit 42, the envelope unit 43, the FFT unit 44, and the averaging unit 45.
  • the CPU unit 12 can execute a data analysis process desired by the user by adding a functional block to the data analysis program.
  • FIG. 5 is a block diagram showing a hardware configuration of the CPU unit 12 included in the PLC system 1 shown in FIG.
  • the CPU unit 12 is a connection interface between the CPU 61 that executes various processes, a memory 62 such as a RAM (Random Access Memory) including a data storage area and a ROM (Read Only Memory) that is a non-volatile memory, and the display 15.
  • the communication I / F 63 is provided.
  • the CPU unit 12 includes an external storage device 64 that stores a data analysis program and various types of information, and a bus I / F 65 that is a connection interface with the base unit.
  • the data analysis program may be stored in the memory 62.
  • the CPU 61 executes a data analysis program.
  • the functions of the analysis processing unit 22 and the function selection unit 23 shown in FIG. 2 and the functions of the display conversion unit 52 shown in FIG. 4 are realized by using the CPU 61.
  • the external storage device 64 is an HDD (Hard Disk Drive) or an SSD (Solid State Drive).
  • the function of the data storage unit 51 shown in FIG. 4 is realized by using the external storage device 64.
  • the data analysis program is loaded into the memory 62.
  • the CPU 61 expands the data analysis program in the memory 62 and executes the analysis process.
  • FIG. 6 is a block diagram showing a hardware configuration of the analog input / output unit 13 included in the PLC system 1 shown in FIG.
  • the analog input / output unit 13 includes a CPU 66 that executes various processes, a memory 67 such as a RAM and a ROM that includes a data storage area, an input / output I / F 68 that is an interface for inputting and outputting signals, and input / output.
  • An external storage device 69 that stores a program for processing associated with the above, and a bus I / F 70 that is a connection interface with the base unit.
  • the CPU 66 executes a program for processing associated with input / output.
  • the processing associated with the input / output includes conversion of the input analog signal into a digital signal and conversion of the digital signal into an analog signal for output.
  • the input / output I / F 68 has the above-mentioned terminal to which the signal from the vibration sensor 3 is input.
  • the function of the data acquisition unit 21 shown in FIG. 2 is realized by using the input / output I / F 68.
  • the function of the AD converter 40 shown in FIG. 4 is realized by using the CPU 66.
  • FIG. 7 is a block diagram showing a hardware configuration of the display unit 15 included in the PLC system 1 shown in FIG.
  • the display unit 15 has a CPU 71 that executes various processes, a memory 72 such as a RAM including a data storage area and a ROM that is a non-volatile memory, and a display 73 that displays information on various screens.
  • the display unit 15 includes an external storage device 74 that stores programs for various displays and various information, a communication I / F 75 that is a connection interface with the CPU unit 12, and an input device 76 that receives an input operation.
  • the CPU 71 executes programs for various displays.
  • the display 73 is a liquid crystal display or an organic electroluminescence display.
  • the input device 76 is a touch panel provided on the display 73.
  • the display unit 24 shown in FIGS. 2 and 4 is realized by using the display 73.
  • the input unit 25 shown in FIGS. 2 and 4 is realized by using the input device 76.
  • FIG. 8 is a diagram showing a first example of a screen 80 displayed on the display 15 included in the PLC system 1 shown in FIG.
  • the screen 80 includes a waveform display unit 81 that displays a waveform of state data that is a result of analysis processing by the analysis processing unit 22, a function designation unit 82 that receives an input operation for designating a function, A display adjustment unit 83 for adjusting the displayed waveform.
  • the function designation unit 82 is a part of the input unit 25 that is responsible for receiving designation of a function.
  • the function designating section 82 is provided with a plurality of switches for designating functions. Each switch is an operation unit that receives an operation for specifying and an operation for canceling the specification for each of the plurality of functions.
  • the switch displayed as “digital filter waveform” is a switch that receives the designation of the digital filter function.
  • the switch displayed as "envelope waveform” is a switch that receives designation of the envelope function.
  • the switch displayed as “FFT analysis waveform” is a switch that receives the designation of the FFT analysis function.
  • the function designation unit 82 receives the designation of the corresponding function by pressing these switches.
  • the waveform display unit 81 displays the waveform of the state data that has undergone the analysis process by the function designated by the function designation unit 82.
  • the distributor 49 shown in FIG. 4 is set to output to the FFT unit 44 according to the information from the display 15.
  • the contact function unit 32 connected to the FFT analysis function block 31C shown in FIG. 3 becomes effective.
  • the function selection unit 23 selects the FFT analysis function.
  • each switch of the function designating section 82 releases the designation of the function by depressing it again from the state where the function is designated by the depression.
  • the switch displayed as “raw waveform” in the function designation section 82 is a switch for displaying state data that has not undergone analysis processing, that is, for not designating all functions. By depressing such a switch, designation of all functions is canceled.
  • the distributors 46, 47, 48, 49 shown in FIG. 4 are set so that the output to each functional unit is not allowed.
  • Each contact function unit 32 shown in FIG. 3 becomes invalid.
  • the function selection unit 23 deselects all the functions.
  • the waveform display unit 81 displays the waveform of the state data that has not been analyzed.
  • the PLC system 1 easily switches between selection and deselection for each function described in the data analysis program as the function block 31 by operating each switch of the function designating unit 82 to perform analysis processing. be able to.
  • the CPU 71 shown in FIG. 7 may read the name of each functional block 31 included in the data analysis program 6 from the CPU unit 12 and display the read name on each switch of the function designating section 82. Thereby, the PLC system 1 can automatically associate each functional unit of the analysis processing unit 22 with each switch of the function designating unit 82.
  • the column displayed as “FFT setting” receives an operation for adjusting the FFT analysis parameter in the FFT unit 44 shown in FIG.
  • the column displayed as “frequency range” accepts an operation for adjusting the frequency range of the state data handled by the analysis processing unit 22.
  • the column labeled “Frequency Resolution” accepts an operation for adjusting the frequency resolution of the state data handled by the analysis processing unit 22.
  • the column labeled “Sampling Points” accepts an operation for adjusting the sampling points of the state data handled by the analysis processing unit 22.
  • the communication I / F 75 shown in FIG. 7 sends the information input to the display adjustment unit 83 to the CPU unit 12.
  • the FFT unit 44 adjusts the parameters on the basis of the information sent from the display device 15 regarding the parameter adjustment of the FFT analysis.
  • the CPU 61 shown in FIG. 5 performs a process for adjusting the characteristic of the state data based on the information sent from the display device 15 regarding the adjustment of the characteristic of the state data such as the frequency range, the frequency resolution and the number of sampling points.
  • the CPU 61 instructs the analog input / output unit 13 to change the sampling interval for obtaining the state data, based on the information about the adjustment of the sampling points.
  • the CPU 61 may adjust the number of sampling points by appropriately thinning out the state data acquired from the analog input / output unit 13.
  • the save instruction unit 84 receives an instruction for saving the state data in the data storage unit 51.
  • the switch displayed as “valid” is a switch that receives a save instruction.
  • the distributor 50 shown in FIG. 4 is set to output to the data storage unit 51 according to the information from the display unit 15.
  • the CPU unit 12 saves the state data in the data storage unit 51.
  • the switch displayed as "invalid” is a switch that accepts cancellation of the save instruction.
  • the distributor 50 shown in FIG. 4 is set to not output to the data storage unit 51 according to the information from the display unit 15. As a result, the CPU unit 12 does not store the state data in the data storage unit 51.
  • the past data instruction unit 85 receives an instruction for displaying past state data read from the data storage unit 51.
  • the switch displayed as “select” in the past data instruction section 85 is pressed, a list of past state data names stored in the data storage section 51 is displayed on the screen 80. The status data to be read is selected from the name list.
  • the switch indicating “display” is pressed in the past data instruction unit 85, the CPU 71 shown in FIG. 7 causes the CPU 71 shown in FIG. 7 to select the state selected from the past state data stored in the data storage unit 51. Read the data.
  • the waveform display unit 81 displays the waveform of the read state data.
  • the waveform display unit 81 erases the display of the waveform for the past state data.
  • the state data output from the data storage unit 51 is sent to the display unit 15 after being converted by the display conversion unit 52 shown in FIG. Note that, in FIG. 4, a path from the data storage unit 51 to the display conversion unit 52 for the state data is not shown.
  • the repeat instruction unit 86 receives an instruction to repeat the analysis process.
  • the PLC system 1 executes the process from the first step to the last step of the data analysis program, and after finishing one scan. The operation of continuing the scan from the beginning again is repeated. In this way, the PLC system 1 repeatedly executes the data analysis program to repeat the acquisition of state data and the analysis of state data. Thereby, the PLC system 1 can continuously analyze the state data.
  • FIG. 9 is a flowchart showing a first example of an operation procedure by the PLC system 1 shown in FIG.
  • the PLC system 1 determines whether or not there is an operation for designating a function in the function designating section 82 shown in FIG.
  • the PLC system 1 returns the procedure to step S1.
  • step S1 If there is an operation to specify a function (step S1, Yes), the PLC system 1 acquires the state data by the analog input / output unit 13 in step S2. In step S3, the PLC system 1 causes the CPU unit 12 to perform the analysis process of the state data by the function selected by the operation in step S1. In step S4, the PLC system 1 displays the analysis result of the analysis processing in step S3 on the display unit 15. As a result, the PLC system 1 ends the operation shown in FIG.
  • the PLC system 1 executes the data analysis program by using the operation on the function designation unit 82 as a trigger. By executing the data analysis program, the PLC system 1 acquires the state data and analyzes the state data by the selected function.
  • FIG. 10 is a flowchart showing a second example of the operation procedure by the PLC system 1 shown in FIG.
  • the second example is an example of an operation procedure when the repeat instruction unit 86 shown in FIG. 8 is instructed to repeat the analysis process.
  • step S11 the PLC system 1 continuously executes the analysis process by repeatedly executing the data analysis program.
  • step S12 the PLC system 1 determines whether or not there is an operation for designating a function in the function designating unit 82 while continuously executing the analysis processing in step S11. When there is no operation to specify the function (No in step S12), the PLC system 1 returns the procedure to step S11.
  • step S12 If there is an operation for designating a function (Yes at step S12), the PLC system 1 executes the processing up to the last step of the data analysis program, and then performs the analysis processing according to the operation on the function designating unit 82. Change the function selection of.
  • step S13 the PLC system 1 starts the next scan of the data analysis program to execute the analysis processing by the changed function. As a result, the PLC system 1 ends the operation shown in FIG.
  • the PLC system 1 may collect two or more functions designated by the user from the functions prepared in the engineering tool 16 into one and select them as one function.
  • FIG. 11 is a diagram showing a second example of a screen 80 displayed on the display 15 included in the PLC system 1 shown in FIG.
  • the screen 80 according to the second example is provided with a user-created function designation unit 87 in addition to the units provided in the first example shown in FIG.
  • the user-created function designation unit 87 receives the designation of a function created by the user combining two or more functions into one.
  • the user uses the engineering tool 16 to perform an operation to put together two or more functions.
  • FIG. 12 is a diagram showing an example of a screen displayed on the engineering tool 16 included in the PLC system 1 shown in FIG.
  • the engineering tool 16 displays a dialog 90 that accepts an operation to put together two or more functions by operating a screen for creating a data analysis program.
  • the dialog 90 is a screen for creating a new functional block in which two or more functions are combined.
  • a list of functional blocks prepared in the engineering tool 16 and a check box for each functional block are displayed.
  • the engineering tool 16 accepts an operation for designating a function included in a new function in the dialog 90.
  • the dialog 90 is provided with an input field for setting a name for a new function.
  • the user when creating a new function that combines the FFT analysis function and the digital filter function into one, the user selects the “FFT analysis” check box and the “digital filter” check box. Put a check. The user also writes an arbitrary name in the name input field. Further, by pressing the switch displayed as “OK” in the dialog 90, the PLC system 1 has a new function in which the FFT analysis function and the digital filter function are combined into one data analysis program. Set to.
  • the engineering tool 16 may accept an operation for combining two or more functions other than the dialog 90.
  • the character string “user created function block” in the user created function designating section 87 shown in FIG. 11 is replaced with the name set in the dialog 90. ..
  • the user can select a function created by combining two or more functions into one by operating the user-created function designating unit 87, and cause the PLC system 1 to perform an analysis process.
  • the PLC system 1 can perform analysis processing on state data other than vibration data in the same manner as in the case of vibration data.
  • the PLC system 1 may perform analysis processing of state data such as current data or voltage data.
  • the PLC 10 can analyze the state data by arbitrarily exchanging the functions by performing the state data analysis process using the function selected by the function selecting unit 23.
  • the PLC system 1 can analyze the state data by combining arbitrary functions by accepting the designation of the function on the display 15 that displays the analysis result of the state data.
  • the PLC 10 and the PLC system 1 have the effect that the data obtained from the controlled device 2 can be subjected to data analysis by arbitrarily replacing the functions.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

プログラマブルロジックコントローラ(10)は、被制御機器(2)を制御する。プログラマブルロジックコントローラ(10)は、被制御機器(2)の動作状態を示す状態データを取得するデータ取得部と、状態データの解析処理にて実行される機能を予め複数有し、外部からの選択指示に基づき複数の機能の中から実行される機能を選択する機能選択部と、機能選択部によって選択された機能を用いて状態データの解析処理を行う解析処理部と、を備える。

Description

プログラマブルロジックコントローラ、プログラマブルロジックコントローラシステムおよびデータ解析方法
 本発明は、被制御機器の状態を示す状態データを解析するプログラマブルロジックコントローラ、プログラマブルロジックコントローラシステムおよびデータ解析方法に関する。
 プログラマブルロジックコントローラ(Programmable Logic Controller:PLC)は、生産装置または設備装置といった機器を制御する。また、PLCは、かかる機器である被制御機器の動作状態を示す状態データを被制御機器から取得して、状態データの解析を行うことがある。この場合、PLCは、PLCに接続された情報システムによるデータ解析が行われなくてもデータ解析の結果を得ることができ、かつ被制御機器の制御にデータ解析の結果を即座にフィードバックすることができる。
 特許文献1には、被制御機器からのアナログ信号が入力されるPLCにおいて、高速フーリエ変換(Fast Fourier Transform:FFT)によるデータ解析を行うことが開示されている。
特開2006-209387号公報
 PLCは、PLCが有するCPU(Central Processing Unit)ユニットにおいてデータ解析プログラムを実行することによって、状態データを解析する。従来技術にかかる上記の特許文献1のPLCでは、機能をFFT解析以外の機能に入れ換えてデータ解析を行いたい場合に、データ解析プログラムを作成し直す必要がある。そのため、従来技術では、機能を任意に入れ換えてデータ解析を行うことが困難であった。
 本発明は、上記に鑑みてなされたものであって、被制御機器から得られるデータについて、機能を任意に入れ換えてデータ解析を実行可能とするプログラマブルロジックコントローラを得ることを目的とする。
 上述した課題を解決し、目的を達成するために、本発明にかかるプログラマブルロジックコントローラは、被制御機器を制御する。本発明にかかるプログラマブルロジックコントローラは、被制御機器の動作状態を示す状態データを取得するデータ取得部と、状態データの解析処理にて実行される機能を予め複数有し、外部からの選択指示に基づき複数の機能の中から実行される機能を選択する機能選択部と、機能選択部によって選択された機能を用いて状態データの解析処理を行う解析処理部と、を備える。
 本発明にかかるプログラマブルロジックコントローラは、被制御機器から得られるデータについて、機能を任意に入れ換えてデータ解析を実行できるという効果を奏する。
本発明の実施の形態1にかかるPLCシステムを示す図 図1に示すPLCシステムが有するデータ解析システムの機能構成を示す図 図1に示すPLCシステムが有するCPUユニットによって実行されるデータ解析プログラムの一例を示す図 図2に示すデータ解析システムの構成例を示す図 図1に示すPLCシステムが有するCPUユニットのハードウェア構成を示すブロック図 図1に示すPLCシステムが有するアナログ入出力ユニットのハードウェア構成を示すブロック図 図1に示すPLCシステムが有する表示器のハードウェア構成を示すブロック図 図1に示すPLCシステムが有する表示器において表示される画面の第1の例を示す図 図1に示すPLCシステムによる動作手順の第1の例を示すフローチャート 図1に示すPLCシステムによる動作手順の第2の例を示すフローチャート 図1に示すPLCシステムが有する表示器において表示される画面の第2の例を示す図 図1に示すPLCシステムが有するエンジニアリングツールにおいて表示される画面の一例を示す図
 以下に、本発明の実施の形態にかかるプログラマブルロジックコントローラ、プログラマブルロジックコントローラシステムおよびデータ解析方法を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。
実施の形態1.
 図1は、本発明の実施の形態1にかかるPLCシステム1を示す図である。PLCシステム1は、被制御機器2を制御するPLC10と、被制御機器2の状態を表示する表示器15とを有する。表示器15は、PLC10によって取得された被制御機器2からの情報と、データ解析の結果とを表示する。PLCシステム1は、PLC10が実行する制御プログラムおよびデータ解析プログラムを作成するツールであるエンジニアリングツール16を有する。エンジニアリングツール16は、制御プログラムおよびデータ解析プログラムの作成を支援するエンジニアリングツールプログラムがインストールされたコンピュータである。
 PLC10は、電源ユニット11、CPUユニット12、アナログ入出力ユニット13および入出力ユニット14といった各種ユニットと、各種ユニットを電気的に接続するベースユニットとを有する。図1では、ベースユニットの図示を省略している。電源ユニット11は、PLC10の各ユニットへ電源を供給する。CPUユニット12は、制御プログラムの実行によって、被制御機器2を制御する。CPUユニット12と表示器15とは、USB(Universal Serial Bus)ケーブルにより互いに通信可能に接続される。CPUユニット12とエンジニアリングツール16とは、LAN(Local Area Network)ネットワークを介して互いに通信可能に接続される。
 被制御機器2の動作状態を示す振動、流量、圧力および温度の各種状態量が、各種センサにて電流値あるいは電圧値に変換されて、アナログ入出力ユニット13へ入力される。アナログ入出力ユニット13は、各種アナログ信号の取り込みを行う。また、アナログ入出力ユニット13は、各種アナログ信号を出力する。各種センサのうち、振動センサ3は、被制御機器2が有するサーボモータといった駆動部に取り付けられて、振動を検出する。振動センサ3は、振動の検出結果を示す信号をアナログ入出力ユニット13へ出力する。
 入出力ユニット14は、被制御機器2に接続されたセンサまたはスイッチといった外部機器4からのビット信号を取り込む。また、入出力ユニット14は、外部機器4へビット信号を出力する。
 図2は、図1に示すPLCシステム1が有するデータ解析システム5の機能構成を示す図である。データ解析システム5は、被制御機器2の動作状態を示す状態データを取得するデータ取得部21と、状態データの解析処理を行う解析処理部22と、解析処理にて実行される機能を予め複数有し、複数の機能の中から実行される機能を選択する機能選択部23と、解析処理の結果を表示する表示部24と、情報が入力される入力部25とを備える。機能選択部23は、PLC10の外部からの選択指示に基づいて機能を選択する。
 動作状態とは、被制御機器2の動作時における被制御機器2の構成要素の状態あるいは被制御機器2内の物質の状態であって、定量が可能であるものとする。状態とは、電気的な状態、機械的な状態、熱力学的な状態あるいは流体力学的な状態である。状態データは、動作状態を定量したデータである。状態データには、被制御機器2の内部から取り出されるデータと、被制御機器2の外部に設けられたセンサでの検出によって得られるデータとが含まれる。
 データ取得部21は、取得された状態データを解析処理部22へ送る。解析処理部22は、データ解析のための各種機能の中から機能選択部23によって選択された機能を用いて状態データの解析処理を行い、解析処理の結果を表示部24へ出力する。
 入力部25は、表示部24の表示に関して入力された情報を表示部24へ出力する。表示部24は、入力部25からの情報にしたがって、表示の切り換えなどを行う。また、入力部25は、解析処理にて実行される機能の指定を受け付ける。入力部25は、指定された機能を示す情報を機能選択部23へ出力する。機能選択部23は、指定された機能を示す情報にしたがって機能を選択する。
 データ取得部21の機能は、アナログ入出力ユニット13が有する構成を用いて実現される。解析処理部22の機能と機能選択部23の機能とは、CPUユニット12が有する構成を用いて実現される。表示部24および入力部25の機能は、表示器15が有する構成を用いて実現される。
 図3は、図1に示すPLCシステム1が有するCPUユニット12によって実行されるデータ解析プログラムの一例を示す図である。図3に示すデータ解析プログラム6は、シーケンス回路記号に機能ブロック31が組み合わせられて記述されているシーケンスプログラムである。機能ブロック31は、機能ごとに部品化された回路ブロックである。機能ブロック31のプログラムは、ST(Structured Text)言語を用いて記述される。
 図3には、デジタルフィルタ処理のためのデジタルフィルタ機能ブロック31Aと、波形を滑らかにする処理のためのエンベロープ機能ブロック31Bと、波形のFFT解析のためのFFT解析機能ブロック31Cとの各種の機能ブロック31が示されている。また、各機能ブロック31には、機能ブロック31の有効と無効とを切り替える接点機能部32と、機能ブロック31による解析結果を出力する出力プログラム部33とが繋がれる。
 PLCシステム1のユーザは、エンジニアリングツール16の操作によって、制御プログラムの一部に機能ブロックを適用して、データ解析プログラム6を作成する。エンジニアリングツール16には、データ解析のための各種の機能ブロック31があらかじめ準備されている。ユーザは、あらかじめ準備された機能ブロック31をデータ解析プログラム6に追加していくことによって、データ解析プログラム6を容易に作成することができる。実施の形態1では、データ解析プログラム6は、ラダー言語で記述されたラダープログラムである。データ解析プログラム6は、ラダー言語以外の言語で記述されたプログラムであっても良く、構造化ラダー言語で記述されたプログラム、あるいはファンクションブロックダイアグラム言語で記述されたプログラムであっても良い。
 シーケンスプログラムであるデータ解析プログラム6は、エンジニアリングツール16での表示によって処理の流れを視覚によって確認し易いという利点がある。このため、ユーザは、前処理あるいは後処理といった処理を要する解析処理について、処理手順を確認しながらデータ解析プログラム6を容易に作成することが可能となる。また、PLCシステム1は、新たな機能による解析処理を行う場合に、既存のデータ解析プログラム6とは別に新たなデータ解析プログラム6を作成しなくても、既存のデータ解析プログラム6に機能ブロック31を追加することによって、新たな機能を容易に実現することができる。
 図4は、図2に示すデータ解析システム5の構成例を示す図である。アナログ入出力ユニット13は、アナログ信号が入力される端子ごとに設けられたAD(Analog-to-Digital)変換器40を有する。なお、ここでは、PLCシステム1が、状態データの1つである振動データについて解析を行う場合を例として説明する。振動データは、振動センサ3による振動の検出結果を示すデータとする。PLCシステム1は、サーボモータを駆動する電流値のデータといった、振動データ以外の状態データについても、振動データの場合と同様に解析を行い得る。
 振動センサ3からの信号が入力される端子に接続されているAD変換器40は、アナログ形式の振動データを、デジタル形式の振動データへ変換する。図4では、端子の図示を省略している。アナログ入出力ユニット13は、デジタル形式の振動データをCPUユニット12へ出力する。アナログ入出力ユニット13は、図2に示すデータ取得部21の機能を担う。
 CPUユニット12は、ベースユニットを介した通信のためのバスインタフェース(Interface:I/F)41を有する。また、CPUユニット12は、状態データの解析処理を行う各種機能部であるデジタルフィルタ部42、エンベロープ部43、FFT部44および加算平均部45と、解析処理にて実行される機能を選択するための分配器46,47,48,49とを有する。デジタルフィルタ部42、エンベロープ部43、FFT部44および加算平均部45は、図2に示す解析処理部22を構成する機能部であって、CPUユニット12におけるデータ解析プログラムの実行によって実現される。
 デジタルフィルタ部42は、図3に示すデジタルフィルタ機能ブロック31Aに相当する。デジタルフィルタ部42は、振動データの波形をあらかじめ指定された波形にするデジタルフィルタ演算を振動データへ施す。エンベロープ部43は、図3に示すエンベロープ機能ブロック31Bに相当する。エンベロープ部43は、振動データの波形の包絡線を算出して、算出結果を出力する。FFT部44は、図3に示すFFT解析機能ブロック31Cに相当する。FFT部44は、振動データのFFT解析を行い、解析結果を出力する。加算平均部45は、振動データの加算平均処理を行い、処理結果を出力する。
 分配器46,47,48,49は、図2に示す機能選択部23を構成する機能部であって、CPUユニット12におけるデータ解析プログラムの実行によって実現される。分配器46には、バスI/F41からの信号が入力される。分配器46には、デジタルフィルタ部42への状態データの出力の要否が設定される。分配器46は、デジタルフィルタ部42への出力が要と設定されている場合、入力された振動データをデジタルフィルタ部42へ出力する。分配器46は、デジタルフィルタ部42への出力が否と設定されている場合、入力された振動データを後続の分配器47へ出力する。分配器46は、図3に示す接点機能部32のうちデジタルフィルタ機能ブロック31Aに繋がれている接点機能部32に相当する。
 分配器47には、デジタルフィルタ部42からの振動データと分配器46からの振動データとが入力される。分配器47には、エンベロープ部43への状態データの出力の要否が設定される。分配器47は、エンベロープ部43への出力が要と設定されている場合、入力された振動データをエンベロープ部43へ出力する。分配器47は、エンベロープ部43への出力が否と設定されている場合、入力された振動データを後続の分配器48へ出力する。分配器47は、図3に示す接点機能部32のうちエンベロープ機能ブロック31Bに繋がれている接点機能部32に相当する。
 分配器48には、エンベロープ部43からの振動データと分配器47からの振動データとが入力される。分配器48には、FFT部44への状態データの出力の要否が設定される。分配器48は、FFT部44への出力が要と設定されている場合、入力された振動データをFFT部44へ出力する。分配器48は、FFT部44への出力が否と設定されている場合、入力された振動データを後続の分配器49へ出力する。分配器48は、図3に示す接点機能部32のうちFFT解析機能ブロック31Cに繋がれている接点機能部32に相当する。
 分配器49には、FFT部44からの振動データと分配器48からの振動データとが入力される。分配器49には、加算平均部45への状態データの出力の要否が設定される。分配器49は、加算平均部45への出力が要と設定されている場合、入力された振動データを加算平均部45へ出力する。分配器49は、加算平均部45への出力が否と設定されている場合、入力された振動データを後続の分配器50へ出力する。
 分配器50には、加算平均部45からの振動データと分配器49からの振動データとが入力される。分配器49には、データ格納部51への状態データの出力の要否と、表示変換部52への状態データの出力の要否とが設定される。分配器50は、データ格納部51への出力が要、かつ表示変換部52への出力が否と設定されている場合、入力された振動データをデータ格納部51へ出力する。データ格納部51は、分配器50から入力された振動データを記憶する。データ格納部51は、CSV(Comma-Separated Values)形式あるいはその他の形式の振動データを格納する。なお、CPUユニット12は、分配器50から出力された状態データを一時的に記憶するメモリを有しても良い。データ格納部51への出力が否、または表示変換部52への出力が否と設定されている場合に、CPUユニット12は、かかるメモリに振動データを上書き保存しても良い。図4では、かかるメモリの図示を省略している。
 一方、分配器50は、データ格納部51への出力が否、かつ表示変換部52への出力が要と設定されている場合、入力された振動データを表示変換部52へ出力する。表示変換部52は、振動データの様式を、表示器15において表示可能な様式へ変換する。表示変換部52は、様式が変換された振動データを表示器15へ出力する。
 表示器15は、表示部24と入力部25とを有する。表示部24は、CPUユニット12から入力された振動データを基に、振動データの波形を表示する。入力部25は、解析処理にて実行される機能の指定を受け付けると、状態データの出力の要否を設定するための情報を各分配器46,47,48,49,50へ送る。
 デジタルフィルタ機能の指定があった場合、入力部25は、デジタルフィルタ部42への出力を要と設定するための情報を分配器46へ送る。これにより、機能選択部23は、入力部25からの情報にしたがってデジタルフィルタ機能を選択する。エンベロープ機能の指定があった場合、入力部25は、エンベロープ部43への出力を要と設定するための情報を分配器47へ送る。これにより、機能選択部23は、入力部25からの情報にしたがってエンベロープ機能を選択する。
 FFT解析機能の指定があった場合、入力部25は、FFT部44への出力を要と設定するための情報を分配器48へ送る。これにより、機能選択部23は、入力部25からの情報にしたがってFFT解析機能を選択する。加算平均機能の指定があった場合、入力部25は、加算平均部45への出力を要と設定するための情報を分配器48へ送る。これにより、機能選択部23は、入力部25からの情報にしたがって加算平均機能を選択する。PLCシステム1は、分配器46,47,48,49について、解析処理のための各機能部への出力の要否が適宜組み合わせられることによって、各機能を適宜組み合わせて状態データを解析することができる。
 入力部25は、状態データの格納についての指示と、状態データの表示についての指示とを受け付ける。入力部25は、振動データの格納の指示が入力された場合、データ格納部51への出力を要と設定するための情報を分配器50へ送る。これにより、CPUユニット12は、データ格納部51へ振動データを格納する。また、入力部25は、振動データの表示の指示が入力された場合、表示変換部52への出力を要と設定するための情報を分配器50へ送る。これにより、CPUユニット12は、表示変換部52による振動データの変換と、表示器15への振動データの送信とを行う。
 なお、CPUユニット12は、図2に示すデータ取得部21の機能を担うこととしても良い。この場合、アナログ形式の振動データは、CPUユニット12へ直接入力される。AD変換器40は、CPUユニット12に設けられても良い。
 CPUユニット12は、デジタルフィルタ部42、エンベロープ部43、FFT部44および加算平均部45以外にも、解析処理部22を構成する種々の機能部を備えても良い。解析処理部22には、指定された波形が判定波形の範囲内であるか否かを判定する上下限波形判定のための機能部、または、指定された波形の二乗平均平方根である実効値を算出する機能部が含まれても良い。また、解析処理部22は、デジタルフィルタ部42、エンベロープ部43、FFT部44および加算平均部45のいずれかが除かれても良い。CPUユニット12は、データ解析プログラムに機能ブロックが追加されることによって、ユーザが所望するデータ解析処理を実行することができる。
 図4に示すCPUユニット12の各機能部は、データ解析プログラムがハードウェアで実行されることによって実現される。図5は、図1に示すPLCシステム1が有するCPUユニット12のハードウェア構成を示すブロック図である。
 CPUユニット12は、各種処理を実行するCPU61と、データ格納領域を含むRAM(Random Access Memory)および不揮発性メモリであるROM(Read Only Memory)といったメモリ62と、表示器15との接続インタフェースである通信I/F63とを備える。CPUユニット12は、データ解析プログラムと各種情報とを記憶する外部記憶装置64と、ベースユニットとの接続インタフェースであるバスI/F65とを備える。データ解析プログラムは、メモリ62に記憶されても良い。
 CPU61は、データ解析プログラムを実行する。図2に示す解析処理部22および機能選択部23の機能と図4に示す表示変換部52の機能とは、CPU61を使用して実現される。外部記憶装置64は、HDD(Hard Disk Drive)あるいはSSD(Solid State Drive)である。図4に示すデータ格納部51の機能は、外部記憶装置64を使用して実現される。データ解析プログラムは、メモリ62にロードされる。CPU61は、メモリ62にデータ解析プログラムを展開して解析処理を実行する。
 図6は、図1に示すPLCシステム1が有するアナログ入出力ユニット13のハードウェア構成を示すブロック図である。アナログ入出力ユニット13は、各種処理を実行するCPU66と、データ格納領域を含むRAMおよびROMといったメモリ67と、信号の入力と信号の出力のためのインタフェースである入出力I/F68と、入出力に伴う処理のためのプログラムを記憶する外部記憶装置69と、ベースユニットとの接続インタフェースであるバスI/F70とを備える。CPU66は、入出力に伴う処理のためのプログラムを実行する。入出力に伴う処理には、入力されたアナログ信号からデジタル信号への変換と、デジタル信号から出力のためのアナログ信号への変換とが含まれる。入出力I/F68は、振動センサ3からの信号が入力される上記の端子を有する。図2に示すデータ取得部21の機能は、入出力I/F68を使用して実現される。図4に示すAD変換器40の機能は、CPU66を使用して実現される。
 図7は、図1に示すPLCシステム1が有する表示器15のハードウェア構成を示すブロック図である。表示器15は、各種処理を実行するCPU71と、データ格納領域を含むRAMおよび不揮発性メモリであるROMといったメモリ72と、各種画面にて情報を表示するディスプレイ73とを有する。表示器15は、各種表示のためのプログラムと各種情報とを記憶する外部記憶装置74と、CPUユニット12との接続インタフェースである通信I/F75と、入力操作を受け付ける入力デバイス76とを有する。CPU71は、各種表示のためのプログラムを実行する。ディスプレイ73は、液晶ディスプレイあるいは有機エレクトロルミネッセンスディスプレイである。入力デバイス76は、ディスプレイ73に備えられたタッチパネルである。図2および図4に示す表示部24は、ディスプレイ73を使用して実現される。図2および図4に示す入力部25は、入力デバイス76を使用して実現される。
 次に、表示器15によるデータ解析の結果の表示と機能の指定について説明する。図8は、図1に示すPLCシステム1が有する表示器15において表示される画面80の第1の例を示す図である。
 第1の例にかかる画面80は、解析処理部22による解析処理の結果である状態データの波形を表示する波形表示部81と、機能の指定のための入力操作を受け付ける機能指定部82と、表示される波形を調整するための表示調整部83とを有する。機能指定部82は、入力部25のうち、機能の指定の受け付けを担う部分である。
 機能指定部82には、機能を指定するための複数のスイッチが設けられている。各スイッチは、複数の機能の各々について指定のための操作と指定の解除のための操作とを受け付ける操作部である。機能指定部82のうち、「デジタルフィルタ波形」と表示されているスイッチは、デジタルフィルタ機能の指定を受け付けるスイッチである。「エンベロープ波形」と表示されているスイッチは、エンベロープ機能の指定を受け付けるスイッチである。「FFT解析波形」と表示されているスイッチは、FFT解析機能の指定を受け付けるスイッチである。機能指定部82は、これらのスイッチが押下されることにより、該当する機能の指定を受け付ける。波形表示部81は、機能指定部82にて指定された機能による解析処理を経た状態データの波形を表示する。
 「FFT解析波形」と表示されているスイッチが押下された場合、図4に示す分配器49は、表示器15からの情報にしたがって、FFT部44への出力が要と設定される。図3に示すFFT解析機能ブロック31Cに繋がれている接点機能部32が有効となる。これにより、機能選択部23は、FFT解析機能を選択する。また、機能指定部82の各スイッチは、押下によって機能を指定している状態から、再度押下されることによって、機能の指定を解除する。
 機能指定部82のうち、「生波形」と表示されているスイッチは、解析処理を経ていない状態データの表示、すなわち全ての機能を選択しないことを指定するためのスイッチである。かかるスイッチが押下されることにより、全ての機能の指定が解除される。図4に示す分配器46,47,48,49は、各機能部への出力が否と設定される。図3に示す各接点機能部32が無効となる。これにより、機能選択部23は、全ての機能を非選択とする。この場合、波形表示部81は、解析処理を経ていない状態データの波形を表示する。
 このように、PLCシステム1は、機能指定部82の各スイッチの操作によって、データ解析プログラムに機能ブロック31として記述されている各機能について、選択と選択解除とを容易に切り替えて解析処理を行うことができる。
 図7に示すCPU71は、データ解析プログラム6に含まれる各機能ブロック31の名称をCPUユニット12から読み出し、読み出された名称を機能指定部82の各スイッチに表示させることとしても良い。これにより、PLCシステム1は、解析処理部22の各機能部と機能指定部82の各スイッチとの対応付けを自動的に行うことができる。
 表示調整部83のうち、「FFT設定」と表示されている欄は、図4に示すFFT部44におけるFFT解析のパラメータを調整するための操作を受け付ける。「周波数レンジ」と表示されている欄は、解析処理部22において扱われる状態データの周波数レンジを調整するための操作を受け付ける。「周波数分解能」と表示されている欄は、解析処理部22において扱われる状態データの周波数分解能を調整するための操作を受け付ける。「サンプリング点数」と表示されている欄は、解析処理部22において扱われる状態データのサンプリング点数を調整するための操作を受け付ける。これにより、PLCシステム1は、表示調整部83への入力によって、解析処理のための各種パラメータを容易に調整することができる。
 図7に示す通信I/F75は、表示調整部83に入力された情報をCPUユニット12へ送る。FFT部44は、FFT解析のパラメータ調整について表示器15から送られた情報に基づいて、パラメータを調整する。また、図5に示すCPU61は、周波数レンジ、周波数分解能およびサンプリング点数といった状態データの特性の調整について表示器15から送られた情報に基づいて、状態データの特性の調整のための処理を行う。例を挙げると、CPU61は、サンプリング点数の調整についての情報に基づいて、状態データを得るためのサンプリングの間隔の変更をアナログ入出力ユニット13に指示する。このほか、CPU61は、アナログ入出力ユニット13から取得した状態データを適宜間引くことによって、サンプリング点数を調整しても良い。
 画面80において、保存指示部84は、データ格納部51への状態データの保存についての指示を受け付ける。保存指示部84において、「有効」と表示されているスイッチは、保存の指示を受け付けるスイッチである。「有効」と表示されているスイッチが押下された場合、図4に示す分配器50は、表示器15からの情報にしたがって、データ格納部51への出力が要と設定される。これにより、CPUユニット12は、状態データをデータ格納部51へ保存する。また、「無効」と表示されているスイッチは、保存指示の解除を受け付けるスイッチである。「無効」と表示されているスイッチが押下された場合、図4に示す分配器50は、表示器15からの情報にしたがって、データ格納部51への出力が否と設定される。これにより、CPUユニット12は、データ格納部51への状態データの格納を行わない。
 画面80において、過去データ指示部85は、データ格納部51から読み出された過去の状態データの表示についての指示を受け付ける。過去データ指示部85において「選択」と表示されているスイッチが押下されると、データ格納部51に格納されている過去の状態データの名称一覧が画面80に表示される。かかる名称一覧から、読み出される状態データが選択される。過去データ指示部85において、「表示」と表示されているスイッチが押下されると、図7に示すCPU71は、データ格納部51に格納されている過去の状態データの中から、選択された状態データを読み出す。波形表示部81は、読み出された状態データの波形を表示する。また、過去データ指示部85において「非表示」と表示されているスイッチが押下されると、波形表示部81は、過去の状態データについての波形の表示を消す。データ格納部51から出力された状態データは、図4に示す表示変換部52での変換を経て表示器15へ送られる。なお、図4では、当該状態データについてデータ格納部51から表示変換部52への経路については図示を省略している。
 画面80において、リピート指示部86は、解析処理の繰り返しの指示を受け付ける。リピート指示部86において、「リピート」と表示されたスイッチが押下された場合、PLCシステム1は、データ解析プログラムの最初のステップから最後のステップまでの処理を実行する1回のスキャンを終えた後に再び最初からのスキャンを続けるという動作を繰り返す。このようにして、PLCシステム1は、データ解析プログラムを繰り返し実行して、状態データの取得と状態データの解析とを繰り返す。これにより、PLCシステム1は、状態データの解析を継続して行うことができる。
 図9は、図1に示すPLCシステム1による動作手順の第1の例を示すフローチャートである。ステップS1では、PLCシステム1は、図8に示す機能指定部82において機能を指定する操作があったか否かを判断する。機能を指定する操作がない場合(ステップS1,No)、PLCシステム1は、手順をステップS1に戻す。
 機能を指定する操作があった場合(ステップS1,Yes)、ステップS2において、PLCシステム1は、アナログ入出力ユニット13によって状態データを取得する。ステップS3において、PLCシステム1は、ステップS1での操作によって選択された機能による状態データの解析処理を、CPUユニット12によって実行する。ステップS4において、PLCシステム1は、ステップS3での解析処理による解析結果を、表示器15によって表示する。これにより、PLCシステム1は、図9に示す動作を終了する。
 このように、第1の例にかかる動作手順によると、PLCシステム1は、機能指定部82への操作をトリガとしてデータ解析プログラムを実行する。PLCシステム1は、データ解析プログラムの実行によって、状態データの取得と、選択された機能による状態データの解析処理とを行う。
 図10は、図1に示すPLCシステム1による動作手順の第2の例を示すフローチャートである。第2の例は、図8に示すリピート指示部86への操作によって解析処理の繰り返しが指示されている場合における動作手順の例とする。ステップS11では、PLCシステム1は、データ解析プログラムを繰り返し実行することによって、解析処理を継続して実行する。
 ステップS12では、PLCシステム1は、ステップS11にて解析処理を継続して実行している間に、機能指定部82において機能を指定する操作があったか否かを判断する。機能を指定する操作がない場合(ステップS12,No)、PLCシステム1は、手順をステップS11に戻す。
 機能を指定する操作があった場合(ステップS12,Yes)、PLCシステム1は、データ解析プログラムの最後のステップまでの処理を実行した後に、機能指定部82への操作にしたがって、解析処理のための機能の選択を変更する。ステップS13において、PLCシステム1は、データ解析プログラムの次のスキャンを開始することによって、変更された機能による解析処理を実行する。これにより、PLCシステム1は、図10に示す動作を終了する。
 PLCシステム1は、エンジニアリングツール16に用意されている機能の中からユーザによって指定された2以上の機能を1つに纏めて、1つの機能として選択できるようにしても良い。図11は、図1に示すPLCシステム1が有する表示器15において表示される画面80の第2の例を示す図である。
 第2の例にかかる画面80には、図8に示す第1の例において設けられている各部に加えて、ユーザ作成機能指定部87が設けられている。ユーザ作成機能指定部87は、2以上の機能がユーザにより1つに纏められることによって作成された機能の指定を受け付ける。ユーザは、2以上の機能を纏めるための操作をエンジニアリングツール16において行う。
 図12は、図1に示すPLCシステム1が有するエンジニアリングツール16において表示される画面の一例を示す図である。エンジニアリングツール16は、データ解析プログラムの作成のための画面への操作によって、2以上の機能を纏めるための操作を受け付けるダイアログ90を表示する。ダイアログ90は、2以上の機能が纏められた新たな機能ブロックを作成するための画面である。ダイアログ90には、エンジニアリングツール16において用意されている機能ブロックの一覧と、機能ブロックごとのチェックボックスとが表示される。エンジニアリングツール16は、新たな機能に含められる機能を指定するための操作をダイアログ90において受け付ける。また、ダイアログ90には、新たな機能に名称を設定するための入力欄が設けられている。
 例を挙げると、FFT解析の機能とデジタルフィルタの機能とを1つに纏めた新たな機能を作成する場合、ユーザは、「FFT解析」のチェックボックスと、「デジタルフィルタ」のチェックボックスとにチェックを入れる。また、ユーザは、名称の入力欄に任意の名称を書き込む。さらに、ダイアログ90のうち「OK」と表示されたスイッチが押下されることによって、PLCシステム1は、FFT解析の機能とデジタルフィルタの機能とが1つに纏められた新たな機能をデータ解析プログラムに設定する。なお、エンジニアリングツール16は、2以上の機能を纏めるための操作をダイアログ90以外において受け付けることとしても良い。
 新たな機能を含むデータ解析プログラムがCPUユニット12に読み込まれると、図11に示すユーザ作成機能指定部87における「ユーザ作成機能ブロック」の文字列は、ダイアログ90にて設定された名称に置き換えられる。これにより、ユーザは、2以上の機能を1つに纏めることによって作成された機能をユーザ作成機能指定部87への操作によって選択して、PLCシステム1による解析処理を行わせることができる。
 PLCシステム1は、振動データ以外の状態データについても、振動データの場合と同様に解析処理を行うことができる。PLCシステム1は、電流データまたは電圧データといった状態データの解析処理を行っても良い。
 実施の形態1によると、PLC10は、機能選択部23によって選択された機能を用いて状態データの解析処理を行うことで、機能を任意に入れ換えて状態データを解析することができる。PLCシステム1は、状態データの解析結果を表示する表示器15にて機能の指定を受け付けることによって、任意の機能を組み合わせて状態データを解析することができる。これにより、PLC10およびPLCシステム1は、被制御機器2から得られるデータについて、機能を任意に入れ換えてデータ解析を実行することができるという効果を奏する。
 以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。
 1 PLCシステム、2 被制御機器、3 振動センサ、4 外部機器、5 データ解析システム、6 データ解析プログラム、10 PLC、11 電源ユニット、12 CPUユニット、13 アナログ入出力ユニット、14 入出力ユニット、15 表示器、16 エンジニアリングツール、21 データ取得部、22 解析処理部、23 機能選択部、24 表示部、25 入力部、31 機能ブロック、31A デジタルフィルタ機能ブロック、31B エンベロープ機能ブロック、31C FFT解析機能ブロック、32 接点機能部、33 出力プログラム部、40 AD変換器、41,65,70 バスI/F、42 デジタルフィルタ部、43 エンベロープ部、44 FFT部、45 加算平均部、46,47,48,49,50 分配器、51 データ格納部、52 表示変換部、61,66,71 CPU、62,67,72 メモリ、63,75 通信I/F、64,69,74 外部記憶装置、68 入出力I/F、73 ディスプレイ、76 入力デバイス、80 画面、81 波形表示部、82 機能指定部、83 表示調整部、84 保存指示部、85 過去データ指示部、86 リピート指示部、87 ユーザ作成機能指定部、90 ダイアログ。

Claims (5)

  1.  被制御機器を制御するプログラマブルロジックコントローラであって、
     前記被制御機器の動作状態を示す状態データを取得するデータ取得部と、
     前記状態データの解析処理にて実行される機能を予め複数有し、外部からの選択指示に基づき複数の機能の中から実行される機能を選択する機能選択部と、
     前記機能選択部によって選択された機能を用いて前記状態データの解析処理を行う解析処理部と、
     を備えることを特徴とするプログラマブルロジックコントローラ。
  2.  被制御機器を制御するプログラマブルロジックコントローラを有するプログラマブルロジックコントローラシステムであって、
     前記被制御機器の動作状態を示す状態データを取得するデータ取得部と、
     前記状態データの解析処理にて実行される機能を予め複数有し、外部からの選択指示に基づき複数の機能の中から実行される機能を選択する機能選択部と、
     前記機能選択部によって選択された機能を用いて前記状態データの解析処理を行う解析処理部と、
     前記解析処理の結果を表示する表示部と、
     を備えることを特徴とするプログラマブルロジックコントローラシステム。
  3.  前記表示部を有し、かつ前記解析処理にて実行される機能の指定を受け付ける表示器を備え、
     前記機能選択部は、前記表示器にて指定された機能を選択することを特徴とする請求項2に記載のプログラマブルロジックコントローラシステム。
  4.  前記表示部は、前記複数の機能の各々について指定のための操作と指定の解除のための操作とを受け付ける操作部を含むことを特徴とする請求項3に記載のプログラマブルロジックコントローラシステム。
  5.  プログラマブルロジックコントローラが実行するデータ解析方法であって、
     前記プログラマブルロジックコントローラによって制御される被制御機器の動作状態を示す状態データを取得する工程と、
     前記状態データの解析処理にて実行される機能を予め複数有し、外部からの選択指示に基づき複数の機能の中から実行される機能を選択する工程と、
     選択された機能を用いて前記状態データの解析処理を行う工程と、
     を含むことを特徴とするデータ解析方法。
PCT/JP2018/040153 2018-10-29 2018-10-29 プログラマブルロジックコントローラ、プログラマブルロジックコントローラシステムおよびデータ解析方法 WO2020089977A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2019517450A JP6664547B1 (ja) 2018-10-29 2018-10-29 プログラマブルロジックコントローラシステムおよびデータ解析方法
PCT/JP2018/040153 WO2020089977A1 (ja) 2018-10-29 2018-10-29 プログラマブルロジックコントローラ、プログラマブルロジックコントローラシステムおよびデータ解析方法
CN201880098991.8A CN112997123B (zh) 2018-10-29 2018-10-29 可编程逻辑控制器系统以及数据解析方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2018/040153 WO2020089977A1 (ja) 2018-10-29 2018-10-29 プログラマブルロジックコントローラ、プログラマブルロジックコントローラシステムおよびデータ解析方法

Publications (1)

Publication Number Publication Date
WO2020089977A1 true WO2020089977A1 (ja) 2020-05-07

Family

ID=70000316

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2018/040153 WO2020089977A1 (ja) 2018-10-29 2018-10-29 プログラマブルロジックコントローラ、プログラマブルロジックコントローラシステムおよびデータ解析方法

Country Status (3)

Country Link
JP (1) JP6664547B1 (ja)
CN (1) CN112997123B (ja)
WO (1) WO2020089977A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7086320B1 (ja) * 2021-09-28 2022-06-17 三菱電機株式会社 システム構築支援装置、システム構築支援装置の動作方法及びプログラム

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11252670A (ja) * 1998-03-05 1999-09-17 Omron Corp 遠方監視制御システム及びセンサ端末装置
JP2000242305A (ja) * 1999-02-24 2000-09-08 Honda Motor Co Ltd 解析プログラム作成装置
JP2002073154A (ja) * 2000-08-31 2002-03-12 Asahi Eng Co Ltd 設備機器診断システム
JP2006209387A (ja) * 2005-01-27 2006-08-10 Yaskawa Electric Corp プログラマブルコントローラ
WO2014136240A1 (ja) * 2013-03-07 2014-09-12 三菱電機株式会社 ラダープログラム表示プログラムおよびラダープログラム表示装置
JP2014238891A (ja) * 2007-05-31 2014-12-18 フィッシャー−ローズマウント システムズ,インコーポレイテッド プロセス制御システムに関連する情報にアクセスする機器および方法

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03273301A (ja) * 1990-03-22 1991-12-04 Yokogawa Electric Corp シーケンス制御装置
JP3655154B2 (ja) * 1999-12-17 2005-06-02 株式会社ノーリツ 給湯装置の故障診断支援装置
JP4253983B2 (ja) * 2000-02-10 2009-04-15 株式会社ノーリツ 給湯装置の故障診断支援装置
JP2005141347A (ja) * 2003-11-05 2005-06-02 Yaskawa Electric Corp ビット演算処理装置及びビット演算処理装置を制御するためのコンピュータプログラム
CN102789193A (zh) * 2011-05-18 2012-11-21 大连光洋科技工程有限公司 一种数控机床数控系统的运行方法
CN102789199B (zh) * 2011-05-18 2016-08-03 科德数控股份有限公司 数控系统中多次误差加权叠加的补偿系统
JP5937209B2 (ja) * 2012-07-03 2016-06-22 株式会社日立製作所 故障影響評価システム及び評価方法
JP2014052189A (ja) * 2012-09-04 2014-03-20 Keyence Corp プラグラマブルロジックコントローラ、その時刻補正システムおよびプログラマブルロジックコントローラ用の外部機器
US10303149B2 (en) * 2015-01-28 2019-05-28 Mitsubishi Electric Corporation Intelligent function unit and programmable logic controller system
CN105022335B (zh) * 2015-07-03 2017-07-11 北京科技大学 一种基于rs232通讯协议的plc上位机链接命令过滤方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11252670A (ja) * 1998-03-05 1999-09-17 Omron Corp 遠方監視制御システム及びセンサ端末装置
JP2000242305A (ja) * 1999-02-24 2000-09-08 Honda Motor Co Ltd 解析プログラム作成装置
JP2002073154A (ja) * 2000-08-31 2002-03-12 Asahi Eng Co Ltd 設備機器診断システム
JP2006209387A (ja) * 2005-01-27 2006-08-10 Yaskawa Electric Corp プログラマブルコントローラ
JP2014238891A (ja) * 2007-05-31 2014-12-18 フィッシャー−ローズマウント システムズ,インコーポレイテッド プロセス制御システムに関連する情報にアクセスする機器および方法
WO2014136240A1 (ja) * 2013-03-07 2014-09-12 三菱電機株式会社 ラダープログラム表示プログラムおよびラダープログラム表示装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7086320B1 (ja) * 2021-09-28 2022-06-17 三菱電機株式会社 システム構築支援装置、システム構築支援装置の動作方法及びプログラム

Also Published As

Publication number Publication date
JPWO2020089977A1 (ja) 2021-02-15
CN112997123B (zh) 2021-12-03
CN112997123A (zh) 2021-06-18
JP6664547B1 (ja) 2020-03-13

Similar Documents

Publication Publication Date Title
JP5649748B1 (ja) プログラマブルコントローラの周辺装置およびデバッグ支援プログラム
JP7043782B2 (ja) サーボモータ調整装置およびサーボモータ調整方法
WO2012056539A1 (ja) ロギング設定装置、ロギング設定方法および記録媒体
JP2007249312A (ja) フィールド機器管理装置およびフィールド機器管理方法
US8676359B2 (en) Field device management apparatus and computer program
US20120072777A1 (en) Debugging device, debugging method, and computer program for sequence program
WO2020089977A1 (ja) プログラマブルロジックコントローラ、プログラマブルロジックコントローラシステムおよびデータ解析方法
JP2007199030A (ja) 表示制御装置
US9547479B2 (en) Method for adapting GUI-based instrument components in a visual programming language
JP6994845B2 (ja) 作業シナリオ作成装置、作業支援システム、作業支援方法、および、作業シナリオ作成プログラム
JP5025956B2 (ja) 表示制御装置
US11227567B2 (en) Device state reproduction device, device state reproduction method, and storage medium
JP6275281B2 (ja) 情報取得表示プログラム、情報取得表示装置及び情報取得表示方法
US20180276180A1 (en) Electronic apparatus, electronic apparatus system, graphing method, and non-transitory computer-readable recording medium
JP5194384B2 (ja) デジタル信号処理装置
JP5983397B2 (ja) 分析機器制御装置及び分析機器制御装置用プログラム
JP2007199019A (ja) 表示制御装置
US20220334938A1 (en) User interface and method to configure sourcing and measurement timing
JP5115794B2 (ja) 測定装置
KR20040051235A (ko) 항공기 비행 시험 데이터 분석 시스템
JP5650261B2 (ja) 計測制御装置
JP2014163931A (ja) 計測制御装置
JP6653284B2 (ja) 電気化学特性測定システム
JP2001141751A (ja) デ−タ処理装置
JP2014063044A (ja) パラメータ編集装置、パラメータ編集方法及びプログラム

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2019517450

Country of ref document: JP

Kind code of ref document: A

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

Ref document number: 18938526

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18938526

Country of ref document: EP

Kind code of ref document: A1