CN1834833A - Programmable controller system - Google Patents

Programmable controller system Download PDF

Info

Publication number
CN1834833A
CN1834833A CN 200610059131 CN200610059131A CN1834833A CN 1834833 A CN1834833 A CN 1834833A CN 200610059131 CN200610059131 CN 200610059131 CN 200610059131 A CN200610059131 A CN 200610059131A CN 1834833 A CN1834833 A CN 1834833A
Authority
CN
China
Prior art keywords
output
remote control
input
data
mistiming
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN 200610059131
Other languages
Chinese (zh)
Other versions
CN100442178C (en
Inventor
上野真太郎
泉谷作
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
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 Omron Corp filed Critical Omron Corp
Publication of CN1834833A publication Critical patent/CN1834833A/en
Application granted granted Critical
Publication of CN100442178C publication Critical patent/CN100442178C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A programmable controller system includes a programmable controller apparatus, a remote input and output apparatus connected to the programmable controller apparatus via a field bus and a monitoring apparatus configured to be located on a communication path between the programmable controller apparatus and the remote input and output apparatus and to monitor a communication data therebetween. The monitoring apparatus includes a rewritable tag for prescribing a condition for issuing a transmission request command with respect to an external equipment deterioration diagnosis and a command issuing part issues a transmission request command required for the external equipment deterioration diagnosis with reference to the tag. A preferable data logging operation is carried out properly without any PLC operation.

Description

Programable controller system
Technical field
The present invention relates to programable controller system, the deterioration diagnostic result by the external unit that will carry out at remote control input-output unit end is by communication notifications Programmable Logic Controller device end, thereby can be in the ladder diagram mode directly with reference to the deterioration diagnostic result.
Background technology
The applicant the application's prerequisite appear programable controller system (below, be called the PLC system), deterioration diagnostic result by the external unit that will carry out at remote control input-output unit end is by communication notifications Programmable Logic Controller device end, thereby can be with reference to deterioration diagnostic result (for example, patent documentation 1).
According to such PLC system, such as described above, do not need the message communicating that is used for being taken into the deterioration diagnosis associated data of remote control input-output unit end is handled the user program of the PLC end of packing into, can obtain to alleviate the work of following user program establishment, and eliminate the various effects of the user program of the user program of such maintenance usefulness and original control usefulness being carried out simultaneously the delay of the cycling time of causing.
; the diagnosis of the deterioration of this external unit asks one or more the input and output terminal that constitutes the remote control input-output unit to (for example; OUT1 and NI1; IN1 and IN2;) the specified signal edge (rising edge or negative edge) of each right terminal and the mistiming at the specified signal edge (rising edge or negative edge) of another terminal; generate the deterioration characteristic quantity (at terminal to being that 1 situation is inferior according to one or more mistiming data of such acquisition; also can with the mistiming itself as the deterioration characteristic quantity); deterioration judging with this deterioration characteristic quantity and regulation compares with threshold value (TH) simultaneously, thus diagnosis even prediction and the deterioration of these terminals to relevant external unit.Have again,, also can constitute by upper limit threshold (THH) and lower threshold (THL) as threshold value (TH).
If in the appurtenant machine of PLC system, possess such deterioration diagnostic function, for example, by forming and being connected of external unit, external unit is applied startup by OUT1, simultaneously be taken into sensor input from the action completing place of external unit by IN1, thereby can obtain the actuation time of this external unit, by should actuation time and the deterioration diagnosis of regulation compare with threshold value, can carry out the deterioration diagnosis of the timeliness of this external unit (can be specific actuator, or comprise a series of actuating mechanism of specific actuator).
[patent documentation 1] (Japan) spy opens 2003-295914
For the deterioration diagnostic function with such external unit imports the PLC system, before importing, need suitably set the value of deterioration judging with threshold value (TH or THH, THL).For this reason, need on one side PLC device and remote control input-output unit to be turned round practically, on one side the processing of variable (the remote control input-output unit self is obtained variable) of the right mistiming data of relevant corresponding each terminal of accumulative total.Because of Be Controlled object-based device and even system's difference, this login (logging) is handled to be needed to continue 1~2 month sometimes.
In the past, the login specific program by the mistiming data that generate in packing into the remote control input-output unit in the user program of the PLC device that constitutes this PLC system itself are sent to the PLC device end and carry out adding up carried out this login process.
The ladder diagram of the user program of the login special use that expression one example is such is shown in Figure 10.This program be the specified signal edge (rising edge) of response regulation terminal (IN2) obtain the 1st terminal to the mistiming (T1) between the specified signal edge of (OUT1 and IN1) and the 2nd terminal to the mistiming (T2) between the specified signal edge of (IN1 and IN2), it is accumulated at program in the input and output storer in the PLC device.
In the drawings, be that those skilled in the art are known as MOV, SEND, the INC of operational code, so omit the explanation of its implication content.In addition, in the rectangle frame that surrounds these operational codes, in fact there are a plurality of command code strings that are used to realize each necessary function.
Therefore, a plurality of if the remote control input-output unit exists, and on separately, have a plurality of deterioration diagnosis objects, and then need each deterioration diagnosis object, program shown in Figure 10 is recorded and narrated in user program, need carry out very big work.In addition, because of appending the program that is used for such login process, the amount of user program integral body also increases, and it is some different that the cycle period of PLC device end has the cycling time during also with system applies, and the reliability of the mistiming data that obtain under such state not necessarily is guaranteed.
Summary of the invention
The present invention is conceived to the problems referred to above and the invention finished, its objective is, work when alleviating the threshold value decision when for example the importing of the PLC system that has possessed this external unit deterioration diagnostic function, the high data of reliability are collected in same running when assurance system simultaneously imports and during system applies.
For other purposes of the present invention and action effect, by the following argumentation of reference instructions, so long as those skilled in the art just can easily understand.
Programable controller system of the present invention is connected the Programmable Logic Controller device by fieldbus with the remote control input-output unit with communication mode, simultaneously on the communication path that connects between with Programmable Logic Controller device and remote control input-output unit, being provided with not to have the seedbed monitors the communication data that flows between them device.
In the Programmable Logic Controller device, be provided with at least: input part, efferent, input and output storer, program storage, input and output updating component, deterioration diagnostic markers control assembly and program execution department spare.
Input part is used to be taken into the signal from external unit, and efferent is used for outside apparatus output signal.
In the input and output storer, be provided with at least: input field, storage and the suitable input data of signal of reading in from the input part of Programmable Logic Controller device; The output area, storage with will be from the suitable output data of signal of the efferent of Programmable Logic Controller device output; The remote control input field, storage and the suitable input data of signal that are taken into from the remote control input-output unit; The remote control output area, storage with will be from the suitable remote control output data of signal of remote control input-output unit output; And deterioration diagnostic markers that can reference in user command.Here, the reason of ' at least ' is to recognize that other data fields, parameter region etc. are to exist usually.In the input and output storer, store the user program that the control criterion that will require is used the user command record.
The input and output updating component, execution is carried out the exchange of data by internal bus between the I/O area of the input and output portion of Programmable Logic Controller device and input and output storer input and output are upgraded and are handled, and the remote control input and output of carrying out the exchange of data by fieldbus between the remote control I/O area of remote control input-output unit and input and output storer are upgraded and handled.
Control is connected/turn-offed to deterioration diagnostic markers control assembly by fieldbus, according to the deterioration diagnostic result by remote control input-output unit notice, with the deterioration diagnostic markers.
Program execution department spare, with reference to the content of input and output storer on one side carry out the user program that be stored in program storage on one side, simultaneously according to its execution result, the output area of input and output storer and the content of remote control output area are rewritten.
Work by these input and output updating component and program execution department spare, in PLC device and remote control input-output unit, by guaranteeing with the user program specified action, and deterioration diagnostic markers control assembly works, and can come the deterioration diagnostic routine of reqirement of compilation on user program with reference to the deterioration diagnostic markers.
In the remote control input-output unit, be provided with input part, efferent, input and output updating component, time difference measurements parts, mistiming register, deterioration deagnostic package, diagnostic result notice parts on the other hand.
Input part is used to be taken into the signal from external unit, and efferent is used for outside apparatus output signal.
The input and output updating component, input data that will be suitable with the signal that is taken into from input part send to the Programmable Logic Controller device by fieldbus, simultaneously from efferent output and the suitable signal of output data that receives by fieldbus from the Programmable Logic Controller device.Work by this input and output updating component, carry out the exchange of input/output signal via input part and efferent and external unit, thereby can carry out the control of external unit.
The time difference measurements parts are measured the mistiming at the specified signal edge of the specified signal edge of a terminal of a pair of of the regulation that constitutes input part or efferent or each terminal centering more than two pairs and another terminal.Mistiming register more than one or two is stored the right mistiming of each terminal that the time difference measurements parts obtain once respectively.The deterioration deagnostic package by will comparing according to deterioration characteristic quantity and the defined threshold that the mistiming more than one or two of storing in these mistiming registers generates, is diagnosed the deterioration of the external unit that relates to these terminals.Work by these time difference measurements parts and deterioration deagnostic package,, generate the deterioration diagnostic result relevant with external unit at remote control input-output unit end.
Diagnostic result notice parts are by the deterioration diagnostic result of fieldbus to Programmable Logic Controller device notice deterioration deagnostic package.Thus, the deterioration diagnostic result that generates at remote control input-output unit end is not subjected to the interference of user program, automatically notifies the Programmable Logic Controller device end.
In the device that can not have seedbed supervision mobile communication data between Programmable Logic Controller device and remote control input-output unit, be provided with and send request command distribution parts, data integrating block, cumulative data output block.
Send request command distribution parts, monitor the communication data that between Programmable Logic Controller device and remote control input-output unit, flows by no seedbed, the signal condition of the input part of supervision remote control input-output unit or the regulation terminal of efferent, detected response the in prescribed direction edge to this signal condition, thereby by the message communicating that this fieldbus is supported, distribution is used for the transmission request command of request transmission time difference or deterioration characteristic quantity to the remote control input-output unit.
The data integrating block receive as being returned mistiming or the deterioration characteristic quantity of sending out for what send request command from the response of remote control input-output unit, and accumulative total is stored in the storer of regulation.
The cumulative data output block responds and will output to the outside by a series of data that data integrating block accumulative total is stored in the storer of regulation thereby be used for read operation to regulation.
And, in the remote control input-output unit, be provided with and send the request command processing element, response is by the transmission request command of the regulation of message communicating arrival, the deterioration characteristic quantity that will generate according to the mistiming of once being stored in the mistiming register or mistiming in response, the device that order is sent unit returns to be sent out.
Sending request command distribution parts, data integrating block, cumulative data output block and transmission request command processing element by these works, in the device that can not have seedbed supervision mobile communication data between Programmable Logic Controller device and remote control input-output unit, can not be subjected to the interference of user program, collect and be accumulated at the threshold value that is used for the deterioration diagnosis and generate upward data necessary, can read these data as required.
According to such structure, the work when alleviating the threshold value decision when for example the importing of the PLC system that has possessed this external unit deterioration diagnostic function, same running when assurance system simultaneously imports and during system applies can be collected the high data of reliability.
In the present invention, on the communication path between Programmable Logic Controller device and the remote control input-output unit, can not have the seedbed monitors the communication data that flows between them device and can be arranged yet with Programmable Logic Controller device and remote control input-output unit branch, but and be the passive monitoring arrangement of monitor communication data.
In the present invention, on the communication path between Programmable Logic Controller device and the remote control input-output unit, can not have the seedbed monitors the communication data that flows between them device and can be positioned at the Programmable Logic Controller device yet, be by and the remote control input-output unit between the main computer unit of fieldbus implements communication.For example, by obtain the communication data that has passed through main computer unit inside from shared memory, can realize the function same with passive monitor.
In preferred implementation of the present invention, also can adopt following structure.Promptly, in this embodiment, the time difference measurements parts measurement that comprises in the remote control input-output unit be contained in efferent the 1st terminal the specified signal edge and be contained in mistiming (T1) at specified signal edge of the 1st terminal of input part, and be contained in input part the 1st terminal the specified signal edge and be contained in mistiming (T2) at specified signal edge of the 2nd terminal of input part.
The plural mistiming register that is contained in the remote control input-output unit is made of the 2nd mistiming register of being stored the 1st mistiming register once the mistiming (T1) and the mistiming (T2) is stored once.
Be contained in deterioration deagnostic package in the remote control input-output unit by will be according to being stored in the mistiming (T1) in the 1st mistiming register and being stored in deterioration characteristic quantity (T1 * T2) compare, diagnosis and the deterioration of these terminals that the mistiming (T2) in the 2nd mistiming register generates to relevant external unit with defined threshold.
In the device that can not have seedbed supervision mobile communication data between Programmable Logic Controller device and remote control input-output unit, possessed order distribution parts, data integrating block and command process parts with following structure.
Promptly, order distribution parts, monitor the communication data that between Programmable Logic Controller device and remote control input-output unit, flows by no seedbed, the signal condition of the 1st terminal of the input part of supervision remote control input-output unit, the prescribed direction edge that responds this signal condition is detected, thereby the message communicating of supporting by this fieldbus, distribution is used for request transmission time poor (T1, T2) or deterioration characteristic quantity (the transmission request command of T1 * T2) to the remote control input-output unit.
The data integrating block receives as (T1 * T2) and accumulative total are stored in the storer of regulation for sending mistiming (T1, T2) that returning from the response of remote control input-output unit of request command send out or deterioration characteristic quantity.
The cumulative data output block, the read operation of response regulation and outside output is stored in a succession of data in the storer of regulation by data integrating block accumulative total.
And, in the remote control input-output unit, be provided with the command process parts, the transmission request command of the regulation that response is arrived by message communicating, (T1 * T2) returns the device that is dealt into order distribution unit in response with the deterioration characteristic quantity of having stored the mistiming once (T1, T2) in the mistiming register or generate based on the mistiming.
According to such structure, relevant with external unit as diagnosis object, by the application of packing into, to be contained in the 1st terminal of efferent, be contained in the 1st terminal of input part, and be contained in that order sequential ground produces the specified signal edge on the 2nd terminal of input part, thereby the mistiming (T1) become with from this device is provided starting order to practically the starting the corresponding value of required time, mistiming (T2) is corresponding with the required time that starting begins till the release, so (value of T1 * T2) becomes the degradation both sides' of the degradation of representing actuator and external unit value to the deterioration characteristic quantity, can correctly grasp degradation.
In preferred implementation of the present invention, also can followingly constitute: in the remote control input-output unit, relevant with an external unit deterioration diagnosis, but the timing of regulation necessity begins the overwrite flags of condition and timing termination condition for the mistiming of asking one or more to each mistiming that need ask setting, by the content with reference to this mark, the time difference measurements parts are measured each necessary mistiming in an external unit deterioration diagnosis.
According to such structure,, in the remote control input-output unit, can suitably carry out the deterioration diagnostic action of requirement by suitably setting the content of this mark.
In preferred implementation of the present invention, also can followingly constitute: on the communication path between Programmable Logic Controller device and remote control input-output unit, can not have in the seedbed monitors the communication data that flows between them the device, relevant with an external unit deterioration diagnosis, but each deterioration diagnosis to be set in order being given for and will to be sent the overwrite flags of the condition of request command transmission, by content with reference to this mark, order distribution parts distribution necessary transmission request command in an external unit deterioration diagnosis.
According to such structure, by suitably setting the content of this mark, on the communication path between Programmable Logic Controller device and remote control input-output unit, can not have in the seedbed monitors the communication data that flows between them the device, can suitably carry out the data entry action of requirement.
In addition, programable controller system of the present invention, for Programmable Logic Controller device and remote control input-output unit by fieldbus with the system that communication mode is connected, be the system of having added threshold setting supportive device with following function.That is, in this threshold setting supportive device, have: data collection unit, the data collection function of in the user program of Programmable Logic Controller device, not packing into, and collect and interior mistiming or the suitable data of deterioration characteristic quantity that produce of remote control input-output unit; Threshold value decision parts according to the mistiming or the suitable data of deterioration characteristic quantity of collecting with data collection unit, use the method decision deterioration diagnosis threshold value of statistics; And the threshold setting parts, will determine the deterioration diagnosis of parts decision to use threshold setting in the remote control input-output unit by threshold value.In the Programmable Logic Controller device that constitutes this system, be provided with at least: input part, efferent, input and output storer, program storage, input and output updating component, deterioration diagnostic markers control assembly and program execution department spare.Input part is used to read in the signal from external unit, and efferent is used for outside apparatus output signal.In the input and output storer, have at least: input field, storage and the suitable input data of signal of reading in from the input part of Programmable Logic Controller device; The output area, storage with will be from the suitable output data of signal of the efferent of Programmable Logic Controller device output; The remote control input field, storage and the suitable input data of signal that are taken into from the remote control input-output unit; The remote control output area, storage with will be from the suitable remote control output data of signal of remote control input-output unit output; And deterioration diagnostic markers that can reference in user command.Here, the reason of ' at least ' is to recognize that other data fields, parameter region etc. are to exist usually.In the input and output storer, store the user program that the control criterion that will require is used the user command record.The input and output updating component, execution is carried out the exchange of data by internal bus between the I/O area of the input and output portion of Programmable Logic Controller device and input and output storer input and output are upgraded and are handled, and the remote control input and output of carrying out the exchange of data by fieldbus between the remote control I/O area of remote control input-output unit and input and output storer are upgraded and handled.Control is connected/turn-offed to deterioration diagnostic markers control assembly by fieldbus, according to the deterioration diagnostic result by remote control input-output unit notice, with the deterioration diagnostic markers.Program execution department spare, with reference to the content of input and output storer on one side carry out the user program that be stored in program storage on one side, simultaneously according to its execution result, the output area of input and output storer and the content of remote control output area are rewritten.Work by these input and output updating component and program execution department spare, in PLC device and remote control input-output unit, by guaranteeing by the user program specified action, and deterioration diagnostic markers control assembly is worked, can on user program, come the deterioration diagnostic routine of reqirement of compilation with reference to the deterioration diagnostic markers.On the other hand, in the remote control input-output unit, be provided with: input part, efferent, input and output updating component, time difference measurements parts, mistiming register, deterioration deagnostic package and diagnostic result notice parts.Input part is used to be taken into the signal from external unit, and efferent is used for outside apparatus output signal.The input and output updating component, input data that will be suitable with the signal that is taken into from input part send to the Programmable Logic Controller device by fieldbus, simultaneously from efferent output and the suitable signal of output data that receives by fieldbus from the Programmable Logic Controller device.By this input and output updating component is worked, carry out the exchange of input/output signal via input part and efferent and external unit, can carry out the control of external unit.The time difference measurements parts are measured the mistiming at the specified signal edge of the specified signal edge of a terminal of a pair of of the regulation that constitutes input part or efferent or each terminal centering more than two pairs and another terminal.Mistiming register more than one or two is stored the right mistiming of each terminal that the time difference measurements parts obtain once respectively.The deterioration deagnostic package by will comparing according to deterioration characteristic quantity and the defined threshold that the mistiming more than one or two of storing in these mistiming registers generates, is diagnosed the deterioration of the external unit that relates to these terminals.By these time difference measurements parts and deterioration deagnostic package are worked,, generate the deterioration diagnostic result relevant with external unit at remote control input-output unit end.Diagnostic result notice parts are by the deterioration diagnostic result of fieldbus to Programmable Logic Controller device notice deterioration deagnostic package.Thus, automatically notify the deterioration diagnostic result of remote control input-output unit end generation, and be not subjected to the interference of user program the Programmable Logic Controller device end.
According to such structure, in this threshold setting supportive device, comprise: data collection unit, the data collection function of in the user program of Programmable Logic Controller device, not packing into, and collect and interior mistiming or the suitable data of deterioration characteristic quantity that produce of remote control input-output unit; Threshold value decision parts according to the mistiming or the suitable data of deterioration characteristic quantity of collecting with data collection unit, use the method decision deterioration diagnosis threshold value of statistics; And threshold setting parts, to determine the deterioration diagnosis of parts decision to use threshold setting in the remote control input-output unit by threshold value, work in the time of can alleviating the threshold value decision when for example the importing of the PLC system that has possessed this external unit deterioration diagnostic function, and can decision threshold, rather than such in the past accumulative total of waiting for lot of data by login process, finish the required time in the threshold value decision so can cut down, and same running when importing by the assurance system and during system applies, can collect the high data of reliability.
In the present invention, threshold value decision parts also can comprise: the 1st arithmetic unit, ask mean value by a succession of data of data collection unit sampling; The 2nd arithmetic unit, the mean value of a succession of data of obtaining according to the 1st arithmetic unit and the data of each sampling are asked the standard deviation of a succession of sampled data; And the 3rd arithmetic unit, the mean value of obtaining according to the 1st arithmetic unit, the standard deviation that the 2nd arithmetic unit is obtained and the Z-factor of regulation are asked deterioration diagnosis threshold value.
According to such structure, additional standard deviation and Z-factor carry out the threshold value decision, so the threshold value that is determined can be distinguished deterioration state and non-deterioration state clearly, therefore can improve the reliability of deterioration diagnostic result.
In preferred another embodiment of the present invention, threshold value decision parts also can comprise: the 1st arithmetic unit, ask mean value by a succession of data of data collection unit sampling; The 2nd arithmetic unit, the mean value of a succession of data of obtaining according to the 1st arithmetic unit and the data of each sampling are asked the standard deviation of a succession of sampled data; And the 3rd arithmetic unit, the mean value of obtaining according to the 1st arithmetic unit, the standard deviation that the 2nd arithmetic unit is obtained and the Z-factor of regulation are asked deterioration diagnosis threshold value.
In addition, in preferred another embodiment of the present invention, also can be that the threshold setting supportive device is positioned on the path of the communication data that the Programmable Logic Controller device is connected with the remote control input-output unit, become the device that not to have seedbed monitor communication data, and data collection unit comprises: send request command distribution parts, monitor the communication data that between Programmable Logic Controller device and remote control input-output unit, flows by no seedbed, the signal condition of the input part of supervision remote control input-output unit or the regulation terminal of efferent, the prescribed direction edge that responds this signal condition is detected, by the message communicating that this fieldbus is supported, distribution is used for the transmission request of request transmission time difference or deterioration characteristic quantity to the remote control input-output unit; And data integrating block, reception and conduct are returned mistiming or the suitable data of deterioration characteristic quantity sent out for the response from the remote control input-output unit that sends request command and are also added up to be stored in the storer of regulation, the threshold setting parts comprise sets request command distribution parts, this parts distribution determines threshold value to the request of remote control input-output unit the deterioration diagnosis setting request command of threshold setting in the remote control input-output unit of parts decision, the remote control input-output unit comprises: return and send out the request command processing element, the transmission request command of the regulation that response arrives by message communicating returns the deterioration characteristic quantity having stored the mistiming once in the mistiming register or generated based on the mistiming in response and to send out to the device of order distribution unit; And set the request command processing element, response is used threshold data by the transmission request command of the regulation of message communicating arrival according to the deterioration diagnosis that is attached in this order, carries out the deterioration diagnosis and handles with the setting of threshold value.
According to the present invention, the work when alleviating the threshold value decision when for example the importing of the PLC system that has possessed this external unit deterioration diagnostic function, same running when assurance system simultaneously imports and during system applies can be collected the high data of reliability.
Description of drawings
Fig. 1 is the structural drawing of PLC of the present invention system.
Fig. 2 is the block scheme of the structure of expression details of CPU element and PLC system.
Fig. 3 is the block scheme of the inner structure of expression appurtenant machine.
Fig. 4 is the key diagram of the deterioration diagnosis concrete example of external unit.
Fig. 5 (a), Fig. 5 (b) are the key diagrams of the time mark setting content (the 1st embodiment) of appurtenant machine.
Fig. 6 (a), Fig. 6 (b) are the key diagrams of the login content (the 1st embodiment) to passive monitor.
Fig. 7 is the key diagram that constitutes the time difference measurements example of the signal variation between right terminal.
Fig. 8 (a), Fig. 8 (b) are the key diagrams to appurtenant machine setting content (the 2nd embodiment).
Fig. 9 is the key diagram of the login setting content (the 2nd embodiment) to passive monitor.
Figure 10 is the ladder diagram that expression one example is used for the user program of difference data readout time (T1, T2).
Figure 11 is the histogram that the delay of the actuation time that is accompanied by the life-span deterioration is described.
Figure 12 is the key diagram of expression to the setting content of passive monitor.
Figure 13 is the expression contact is taken into relation regularly to, regulation edge and T1 a oscillogram.
Figure 14 is the key diagram that the content of frame is set in expression.
Figure 15 is the key diagram of the picture image of expression message.
Figure 16 (a), Figure 16 (b) are the key diagram of expression to the setting content of appurtenant machine.
Figure 17 is the process flow diagram (its 1) of expression threshold calculations step.
Figure 18 is the process flow diagram (its 2) of expression threshold calculations step.
Figure 19 (a), Figure 19 (b) are the key diagrams of another example of the calculation procedure of expression standard deviation.
Embodiment
Below, explain preferred embodiment of the present invention with reference to accompanying drawing.The structure of PLC of the present invention system is shown in Fig. 1.
As shown in the drawing, this PLC system is connected by fieldbus PLC device 1 and many appurtenant machines (remote control input-output unit) 2 with communication mode, on the communication path that connects between PLC device 1 and the appurtenant machine 2, be provided with simultaneously as can there not being the seedbed monitors the communication data that flows between them passive monitor 4.
In this example, PLC device 1 comprises PLC10 and main computer unit 11.As shown in Figure 2, PLC device 10 comprises: to the whole central controlled CPU element 101 of PLC; And have and be used to get as from the input part of the signal of external unit or be used for the efferent of outside apparatus output signal and many I/O unit 102,102 that work ...
As shown in Figure 2, CPU element 101 comprises: CPU101a, to the action centralized control of CPU integral body; Program storage 101b is used to store the user program that the control criterion that will require is used the user command record; Parameter storage 101C, required various parameters such as storage computing; I/O storer 101d has at least: the input field of the input data that storage is suitable with the signal that is taken into from the input part of Programmable Logic Controller device, storage with will be from the signal that the efferent of Programmable Logic Controller device is exported can reference the output area of suitable output data and the user command deterioration diagnostic markers (F); Stored the system program storer 101e that upgrades suitable system program such as processing or command execution processing with input and output described later; And the working storage 101f that uses of the workspace during as various computing.
Have, in the drawings, the additional unit that label 101g arranged is the I/O interface unit that system bus 101 and CPU element 101 are linked again.
CPU101a is by carrying out the various system programs of storage in system program storer 101, can realize at least as the input and output updating component function, as the function of program execution department spare, as the function of deterioration diagnostic markers control assembly.
As known to those skilled in the art, this PLC periodically carries out input and output renewal processing and program execution processing and system service processing.And, at this example, except these are handled, also carry out deterioration diagnostic markers control and treatment.
Here, input and output upgrade to be handled and to be comprised: the body end input and output of carrying out the exchange of data by system bus 100 between the I/O area of the storer 101d of the I/O unit 102 of the input and output portion that constitutes PLC device 1 and I/O are upgraded and are handled; And the remote control input and output renewal processing of between the remote control I/O area of appurtenant machine 2 and I/O storer 101d, carrying out the exchange of data by fieldbus 3.
In addition, program is carried out and handled is to carry out the user program that is stored among the user program memory 101b on one side with reference to the content of I/O storer 101d on one side, simultaneously according to this execution result, the processing that the content of the output area of I/O storer 101d and remote control output area is rewritten.
And deterioration diagnostic markers control and treatment is by fieldbus, according to the deterioration diagnostic result by remote control input-output unit notice, the deterioration diagnostic markers (F) in the I/O storer 101d is connected/turn-offed the processing of control.As described above, this deterioration diagnostic markers (F) is made as can reference in user command, by with this deterioration diagnostic markers (F) as the starting conditions and the suitable ladder diagram of packing into, the user can at random realize the interlock process that the warning constantly of external unit deterioration is handled, is used to safeguard etc.
The interior details of main computer unit 11 is diagram not, but have with CPU element 101 and also periodically carry out the input and output renewal synchronously, simultaneously by non-synchronously communicating with appurtenant machine 2, and carry out input and output between the appurtenant machine 2 and upgrade the function of handling, so in order to realize such processing, and have microprocessor alone.Therefore, if this microprocessor is carried out suitable firmware, then except communication process, can also realize processing alone.That is,,, can realize the function same with passive monitor 4 by being taken into appointed data in send receiving as processing alone.
Secondly, the block scheme of the inner structure of expression appurtenant machine 2 is shown in Fig. 3.That is, appurtenant machine 2 comprises: be connected to fieldbus 3, carry out the transmitter/receiver circuit 21 of the transmission reception of data; Be connected to the MPU22 of this transmitter/receiver circuit 21; Be connected to the output circuit 25 of output device; And the input circuit 24 that is connected to input equipment.And, comprise external non-volatile memory 23 and timer (internal clocking) 26 etc.
And transmitter/receiver circuit 21 has: receive from main computer unit 11 and send and the frame that flows of bus 3 at the scene, head is partly resolved judge whether that final only reception is issued the frame of oneself and is transferred to the function of MPU22 in order to issue oneself frame; And will output to the function on the fieldbus 3 from the transmit frame (for example, being used for sending the frame of IN data) that MPU22 provides to main computer unit 11.
The processing that canned data puts rules into practice the data division of the frame of the reception that provides from transmitter/receiver circuit 21 of MPU22 basis, as basic function, according to the OUT data in the data division, output circuit 25 is sent the control signal that is used for the OUT terminal connection/shutoff (ON/OFF) of regulation.In addition, have, obtain the turn-on/off state of input terminal, this information that obtains is generated the frame that main computer unit 11 is sent as the IN data, and be transferred to the function of transmitter/receiver circuit 21 by input circuit 24.
, be connected to the driving of appurtenant machine 2 external units, as known, following carrying out.Promptly, the result that user program in the CPU element 101 that will be installed in PLC10 is carried out periodically, under the situation consistent with defined terms, main computer unit 11 notices are all connected the OUT terminal of appurtenant machine 2, and main computer unit 11 sends the frame (OUT data) of regulation to the appurtenant machine 2 of correspondence according to communication cycle.Appurtenant machine 2 is connected the OUT terminal that is connected to external unit according to the frame (OUT data) that receives.Thus, the output device (for example, relay, solenoid valve, driving cylinder, solenoid etc.) of formation external unit is driven.
In addition, be taken into signal from the external unit that is connected to appurtenant machine 2, as known, following carrying out.That is, when the input equipment that constitutes external unit (for example, limiting switch, optoelectronic switch, proximity switch etc.) connection, corresponding IN terminal is connected, and by input circuit 24, can obtain MPU22, so when the transmission of frame of oneself regularly arrives, send to main computer unit 11 as the IN data.So main computer unit 11 passes on the IN data that obtain when the renewal of PLC unit 10 is handled.
Like this, in appurtenant machine 2, possess: be used to be taken into input circuit (input part) 24 from the signal of external unit; Be used for output circuit (efferent) 25 to outside apparatus output signal; And input data that will be suitable with the signal that is taken into from input circuit 24 send to PLC device 1 by fieldbus 3, simultaneously from the input and output updating component of the output circuit 25 outputs signal suitable with the output data that receives by fieldbus 3 from PLC device 1.
Below, the deterioration diagnostic function of the external unit that relevant appurtenant machine 2 possesses is described.To open in the 2003-295914 communique disclosed function the spy identical in fact with the applicant basically for this deterioration diagnostic function.
Promptly, if with its conclusion, then in appurtenant machine 2, at least possess: the time difference measurements parts, the mistiming at the specified signal edge of the specified signal edge of each right terminal of the terminals a pair of or more than two pairs of the regulation that constitutes input circuit 24 or output circuit 25 and another terminal is measured; Mistiming register more than one or two (R1, R2) is stored the right mistiming of each terminal that the time difference measurements parts obtain respectively once; The deterioration deagnostic package is by comparing according to deterioration characteristic quantity and the defined threshold (TH) that the mistiming more than one or two that is stored in these mistiming registers (R1, R2) generates, to these terminals the deterioration of relevant external unit being diagnosed; And diagnostic result notice parts, notify the Programmable Logic Controller device with the deterioration diagnostic result of deterioration deagnostic package by fieldbus 3.
The key diagram of the deterioration diagnosis concrete example of external unit is shown in Fig. 4.As shown in the drawing, below hypothesis is right by the 1st terminal (IN1) formation the 1st terminal of the 1st terminal (OUT1) of the efferent in the appurtenant machine 2 and input part, similarly, it is right to suppose that the 2nd terminal (IN2) by the 1st terminal (IN1) of input part and input part constitutes the 2nd terminal.
At this moment, as shown in Figure 4, to arrive the solenoid valve 6 that the forced air that drives cylinder 7 opens and closes constituting to be connected with on the right terminal (OUT1) of the 1st terminal, and on another terminal (IN1), be connected with and be used to measure the sensor 8 that the action that drives cylinder 7 begins.And constituting on the right terminal (IN1) of the 2nd terminal, be connected with and be used to measure the sensor that the action that drives cylinder 7 begins, on another terminal (IN2), be connected with the sensor 9 that is used to measure the release that drives cylinder 7.
On the other hand, in appurtenant machine 2, as shown in Figure 5, be set with the rewritable time mark of setting content with regulation.This time mark can be set each plane No. of appurtenant machine 2, shows the time mark of relevant No. 2 machines, No. 3 machines in the drawings.
When below the appurtenant machine 2 shown in hypothesis Fig. 4 is No. 2 machines, the setting content regulation of time mark is as follows: pick up counting by the connection edge with terminal (OUT1), shutoff edge with terminal (IN1) finishes timing simultaneously, can obtain the mistiming (T1), and pick up counting by shutoff edge with terminal (IN1), connection edge with terminal (IN2) finishes timing simultaneously, can obtain the mistiming (T2).
At appurtenant machine 2, setting content according to above-mentioned time mark, effect by above-mentioned ' time difference measurements parts ', carry out the measurement of corresponding time difference (T1, T2), to the once storage of mistiming register (R1, R2), and the effect by ' deterioration deagnostic package ', carry out that ((T1 * T2) and the size of defined threshold (TH) are relatively for the generation of T1 * T2), deterioration characteristic quantity from the reading of mistiming register (R1, R2), deterioration characteristic quantity, thus, carry out the deterioration diagnosis of the external unit relevant with terminal (OUT1, IN1, IN2).
Particularly, as this example, the setting-up time mark, pick up counting with the connection edge of regulation with terminal (OUT1), shutoff edge end timing with terminal (IN1) simultaneously obtains the mistiming (T1), and regulation picks up counting by the shutoff edge with terminal (IN1), and finish timing with the connection edge of terminal (IN2) and obtain the mistiming (T2), then the mistiming (T1) becomes the symbol of the degradation of actuator, on the other hand, mistiming (T2) becomes the symbol of the degradation of Be Controlled object-based device or system self, (T1 * value T2) has reflected the degradation of the external unit integral body from actuator to the Be Controlled object-based device with sensitivity as their the long-pending deterioration characteristic quantity of obtaining, so compared by being worth, can diagnose the deterioration of external unit accurately with defined threshold.
Thus, the deterioration diagnostic result that obtains, effect by above-mentioned ' diagnostic result notice parts ', be sent to PLC device 1 end via main computer unit 11, then, the effect of ' deterioration diagnostic markers control assembly ' by above-mentioned PLC device 1 end suitably is reflected in the state of the deterioration diagnostic markers (F) in the I/O storer 101d.
Below, explain as the relevant deterioration of major part of the present invention and diagnose with the skill in the decision of threshold value.For the deterioration diagnostic function with such external unit imports the PLC system, before importing, need suitably set deterioration judging threshold value (TH or THH, THL).
For this reason, need on one side PLC device and remote control input-output unit to be turned round practically, on one side accumulative total and the processing (so-called login process) of each corresponding terminal to the measured value (measured value is obtained by remote control input-output unit itself and undertaken) of relevant mistiming data.This login process is different because of Be Controlled object-based device and even system, needs sometimes to continue 1~2 month.
In the past, this login process is by in the user program of the PLC device that constitutes this PLC system itself, the mistiming data that to generate in the remote control input-output unit of packing into are sent to the program of the login special use of PLC device end and accumulative total and carry out, so that if the remote control input-output unit exists is a plurality of, and there are a plurality of deterioration diagnosis objects respectively, then, program shown in Figure 10 must be recorded and narrated in user program, be needed a large amount of work each deterioration diagnosis object.
In addition, because of appending the program that is used for this login process, the amount of user program integral body also increases, and have some different the cycle length of the cycle length of PLC device end during also with system applies, not necessarily guarantees the reliability of the mistiming data that obtain in this state.
In addition, threshold value decision is in the past handled, after all confirming practically by the data that will obtain, with the maximal value that is no more than these data basically is that condition decides the judgement threshold value, so in order to ensure the reliability of judging with threshold value, must collect lot of data by long as far as possible login process, exist inevitably and finish the long shortcoming of threshold value decision required time.
Therefore, in the present embodiment, at first, the 1st, proposed for the solution countermeasure of undertaking the problem (the 1st problem) that the function that is used for login process produces because of user program, the 2nd, proposed after the data that will obtain are all confirmed practically, for because of with the maximal value that is no more than these data being the solution countermeasure that condition decides the problem (the 2nd problem) that judgement produces with threshold value.
[about countermeasure] to the 1st problem
As can there not being the seedbed monitors the communication data that flows between PLC device 1 and appurtenant machine 2 device, as shown in Figure 1, there are passive monitoring arrangement 4 and main computer unit 11.Therefore, in the present example, for these devices 4,11, ' sending request command distribution parts ' described later, ' data integrating block ' and ' cumulative data output block ' are set, on the other hand, for appurtenant machine 2, ' sending the request command processing element ' described later is set.
Promptly, ' sending request command distribution parts ' has following function: monitor the communication data that flows between PLC device 1 and appurtenant machine 2 by no seedbed, the signal condition of the input part of supervision appurtenant machine 2 or the regulation terminal of efferent, and to detected response the in prescribed direction edge of this signal condition, the message communicating of supporting by corresponding fieldbus 3,2 distribution are used for request transmission time poor (T1, T2) or deterioration characteristic quantity (the transmission request command of T1 * T2) to appurtenant machine.
' data integrating block ' has following function: receive as (T1 * T2) and accumulative total are stored in the storer of regulation to sending mistiming (T1, T2) that returning from the response of appurtenant machine 2 of request command send out or deterioration characteristic quantity.
' cumulative data output block ' has following function: output to the outside thereby the read operation of regulation is responded a succession of data that data integrating block accumulative total is stored in the storer of regulation.
On the other hand, ' send request command processing element ' has following function: the transmission request command of response regulation arrives by message communicating, with in the mistiming register (R1, R2) once the mistiming (T1, T2) of storage or the deterioration characteristic quantity that generates according to the mistiming (T1 * T2) returns in response and to the device 4,10 of order distribution unit and sends out.
Each parts (' sending request command distribution parts ', ' data integrating block ', ' cumulative data output block ') with these functions can be enclosed in the passive monitor 4 or as firmware and be enclosed in the main computer unit 11.
Passive monitor 4 is packed the regulation tool software into to personal computer basically and is constituted, and the spy that its content proposes the applicant opens in the 2000-216798 communique and at length discussed.
That is, in passive monitor 4, can not have the seedbed reception and send to the intrasystem frame of PLC, under situation about receiving,, can carry out interpretation the details of frame headers in the frame and data segment according to frame information by fieldbus 3.Then, according to frame information, in interpretation be under the situation of necessary frame in the result, supervision of content of frame or the login, obtain this frame.
The login setting content to passive monitor 4 (the 1st embodiment) that is used to make passive monitor carry out necessary operation is shown in Fig. 6.This figure (a) expression is taken into setting regularly, the setting of this figure (b) expression computing mark.In the present example, only obtain mistiming data (T1, T2) by appurtenant machine 2, the deterioration characteristic quantity (carry out in passive monitor 4 these sides by the computing of T1 * T2).
As shown in Figure 7, appurtenant machine 2 passes through with reference to front setting content shown in Figure 5, the mistiming (T2) at the connection edge of the mistiming (T1) at the shutoff edge of the connection edge of measurement terminal (OUT1) and terminal (IN1), the shutoff edge of terminal (IN1) and terminal (IN2), repeat it is stored in processing in the mistiming register (R1, R2).
Passive monitor 4 is by reference setting content shown in Figure 6, monitor the signal condition of terminal (IN2), connect edge when detected at each, to the appurtenant machine 2 of corresponding plane No. number (node), the transmission request command of the data that distribution and mistiming (T1) or mistiming (T2) are suitable.
When the transmission request command of passive monitor 4 distribution is received by the appurtenant machine 2 of corresponding plane No. number, read corresponding time difference data (T1 or T2) in this appurtenant machine 2 mistiming register (R1, R2) internally, and behind the additional thereon time stamp, as sending to passive monitor 4 for the response that sends request command.
When the response that appurtenant machine 2 sends is received by passive monitor 4, in passive monitor 4, obtain the mistiming data (T1 or T2) that are attached in the response, simultaneously its accumulative total is stored in the nonvolatile memory of regulation.And, passive monitor 4 is by the setting content with reference to the computing mark shown in Fig. 6 (b), when obtaining a pair of mistiming data (T1, T2), arithmetic expression is according to the rules carried out calculation process, thereby calculating deterioration characteristic quantity (T1 * T2=Y1), and it is related with mistiming data (T1, T2), be stored in the nonvolatile memory of regulation.
By repeating above action, in the nonvolatile memory of the hard disk of the personal computer that works as passive monitor 4 etc., each mistiming data (T1, T2) and deterioration characteristic quantity (T1 * T2=Y1) stored (data entry) by accumulative total constantly as paired relation.
After, the moment during logining through suitable data, when using the read operation that the keyboard of personal computer or mouse etc. stipulate, a succession of data of storing in the nonvolatile memory of the hard disk of personal computer etc. are displayed on the display of personal computer, or are printed by printer.According to this picture serial data that show or that printer prints goes out, can determine to be used for the threshold value of deterioration diagnosis.
The setting content to appurtenant machine 2 (the 2nd embodiment) that makes appurtenant machine 2 carry out necessary operation is shown in Fig. 8, and the setting content to passive monitor 4 (the 2nd embodiment) that makes passive monitor 4 carry out necessary operation is shown in Fig. 9.In these examples, not only by the measurement of 2 end execution time of appurtenant machine difference data (T1, T2), obtain, even also carry out (the computing of T1 * T2) of deterioration characteristic quantity according to them.
Appurtenant machine 2 is by reference setting content (time mark) shown in Figure 8, the mistiming (T2) at the connection edge of the mistiming (T1) at the shutoff edge of the connection edge of measurement terminal (OUT1) and terminal (IN1), the shutoff edge of terminal (IN1) and terminal (IN2), repeat it is stored in processing in the mistiming register (R1, R2).
In addition, appurtenant machine 2 is by reference setting content (computing mark) shown in Figure 8, when obtaining the mistiming (T1, T2), even also carry out (the computing of T1 * T2) of deterioration characteristic quantity according to them, additional computing mark (X1) is stored in the nonvolatile memory (register R3) of regulation on this operation result.
Passive monitor 4 is by reference setting content shown in Figure 9, monitor the signal condition of terminal (IN2), whenever connecting the edge when detected, to the appurtenant machine 2 of corresponding plane No. number (node), distribution and deterioration characteristic quantity (the transmission request command of suitable data of T1 * T2=X1).
When the transmission request command of passive monitor 4 distribution is received by the appurtenant machine 2 of corresponding plane No. number, read corresponding deterioration characteristic quantity (T1 * T2=X1) in this appurtenant machine 2 mistiming register (R3) internally, after having added time stamp thereon, as the response that sends request command is sent to passive monitor 4.
When the response that appurtenant machine 2 sends was received by passive monitor 4, in passive monitor 4, (T1 * T2=X1), add the mark (Y1) of regulation simultaneously thereon, accumulative total was stored in the nonvolatile memory of regulation to obtain the characteristic quantity that is attached in the response.
By repeating above action, in the nonvolatile memory of the hard disk of the personal computer that works as passive monitor 4 etc., accumulative total storage (data entry) has each constantly deterioration characteristic quantity (T1 * T2=Y1).
After, the moment during logining through suitable data, when using the read operation that the keyboard of personal computer or mouse etc. stipulate, a succession of data of storing in the nonvolatile memory of the hard disk of personal computer etc. are displayed on the display of personal computer, or are printed by printer.According to this picture serial data that show or that printer prints goes out, can determine to be used for the threshold value of deterioration diagnosis.
[about solution countermeasure] to the 2nd problem
As can there not being the seedbed monitors the communication data that flows between PLC device 1 and appurtenant machine 2 device, as shown in Figure 1, there are passive monitoring arrangement 4 and main computer unit 11.Therefore, in the present example, these devices 4,11 are worked as the threshold setting supportive device.And, in the threshold setting supportive device, ' data collection unit ' described later, ' threshold value decision parts ' and ' threshold setting parts ' are set, on the other hand,, ' sending the request command processing element ' described later is set for appurtenant machine 2.
That is, ' data collection unit ' has following function: the data collection function of in the user program of Programmable Logic Controller device, not packing into, collect and interior mistiming or the suitable data of deterioration characteristic quantity that produce of remote control input-output unit.
' threshold value decision parts ' have following function: according to the mistiming or the suitable data of deterioration characteristic quantity of collecting with data collection unit, use the method for statistical to decide deterioration diagnosis threshold value.
' threshold setting parts ' have following function: determine the deterioration diagnosis of parts decision to use threshold setting in the remote control input-output unit threshold value.
Each parts (' data collection unit ', ' threshold value decision parts ', ' threshold setting parts ') with these functions can be used as that firmware is enclosed in the passive monitor 4, in the main computer unit 11 or in the appurtenant machine 2.
The histogram that delay actuation time of the deterioration of following the life-span is described is shown in Figure 11.As shown in the drawing, externally equipment is because of life-span during the generation time deterioration, and the mistiming at signal edge increases between the terminal suitable with actuation time.Yet, can confirm that the distribution of the deviation of actuation time is almost constant at this moment.If utilize this distribution, even then adopt the statistical method to decide deterioration diagnosis threshold value, also can obtain suitable judgement threshold value, and just can determine judgement to use threshold value, so can shorten the required time of finishing the threshold value decision significantly with fewer logon data.More particularly, the mean value and the standard deviation that use statistical ground to measure can automatically be asked the threshold value that is used to detect the timeliness deterioration that the life-span causes.
The following describes embodiment based on above design.In appurtenant machine 2, as shown in figure 13, repeat with mistiming (T1) at the connection edge of the shutoff edge of terminal (OUT1) and terminal (IN1) as measuring actuation time, and it is stored in processing in the inner mistiming register (R1).
Expression is shown in Figure 12 to the key diagram of the setting content of passive monitor 4.As shown in the drawing, in this mark (Y1), regulation has operational data and data recording regularly.As operational data, include plane No. number (subordinate plane No.), time mark, Z-factor (A), stipulate classification, the value of number of times/time, the sampling number of different number of times/time.
Passive monitor 4 is by reference operational data and data recording timing shown in Figure 12, when processing is upgraded in input and output, supervision is from the arrival at the connection edge of the terminal (IN1) of 2 pairs of PLC devices of appurtenant machine, 1 transmission of corresponding plane No., arrive if connect the edge simultaneously, then appurtenant machine 2 distribution to this plane No. send request command.
The appurtenant machine 2 that has received this transmission request command reads out in the mistiming data (T1) of storage in the inner mistiming register (R1), added time stamp simultaneously after, it as the response to the transmission request command, is sent to passive monitor 4.
Passive monitor 4 receives the response from appurtenant machine 2, obtains the mistiming data (T1) of adding it on simultaneously, is stored in the nonvolatile memory of hard disk etc.
By only repeating to be set the sampling number or the sampling time of above action (distribution sends request command, receives response), in the storer of passive monitor 4, mistiming data (T1) are added up the store predetermined number.
Then, passive monitor 4 is carried out statistical computation according to formula 1, formula 2, formula 3, thus the threshold value (T) of decision deterioration diagnosis usefulness.
[formula 1]
Mean value
X ‾ = Σ i Xi / n
[formula 2]
Standard deviation
σ = Σ ( Xi - X ‾ ) 2 / ( n - 1 )
[formula 3]
Threshold value
T= X+σ×A
The image of<formula 1 〉
Then, the passive monitor 4 setting request command that will add the threshold value (T) that obtains is issued to the appurtenant machine 2 of corresponding plane No..Like this, from an example of the content frame of the setting request command of passive monitor 4 distribution among Figure 14 as representing.
Receiving appurtenant machine 2 these sides of setting request command, be set in the appurtenant machine 2 setting threshold value (T) additional in the request command.After, in appurtenant machine 2,, carry out and the corresponding relevant deterioration diagnostic process of external unit according to this preset threshold (T).In the present example, because the mistiming (T1) is remained untouched as the deterioration characteristic quantity, so the deterioration diagnostic process is relatively carried out by mistiming (T1) and threshold value (T) are carried out size.
Have again, in the above description,,, the setting request command that has added the threshold value (T) of this decision is sent to corresponding appurtenant machine 2 immediately in unconditional mode having determined by passive monitor 4 these sides under the situation of threshold value (T).But (T) is preceding at setting threshold, need situation with the reset in the appurtenant machine under, have pair control of appurtenant machine end to produce some dysgenic danger.Under such situation, as shown in figure 15, preferably on the picture of the personal computer that constitutes passive monitor 4,, before the setting of carrying out appurtenant machine 2, the operator is provided the chance of affirmation by configuration ' transmission ' button and ' cancellation ' button.
The example of appurtenant machine self having been given threshold value decision function is shown in Figure 16~Figure 18.In this example, shown in Figure 16 (a), Figure 16 (b),, set the condition and the computing parameter that start, stop to appurtenant machine 2.
Here, detected for time mark (T1) with the connection edge of waiting for terminal (OUT1), make the timing action launching, wait for that simultaneously the shutoff edge of terminal (IN1) is detected, and make the timing action stop to set.In addition, the value of deviation counting A is ' 4 ', and sampling number is ' 100 '.
The process flow diagram of expression threshold calculations step is shown in Figure 17 and Figure 18.The feature of this threshold calculations step is even also can be realized by the appurtenant machine 2 that does not have mass storage, when being carried out by computing machine, can reduce memory span as far as possible.
In the figure, when beginning to handle, in appurtenant machine 2 these sides, standby is from outside arrival computing startup command (step 1701).Under this state, when arriving, judge that in appurtenant machine 2 these sides computing startup command receive (step 1701 is a "Yes"), carry out initialization (step 1702) immediately from the computing startup command of certain node (for example, passive monitor 4, PLC device 1 etc.) distribution.
In initialization process (step 1702), carry out the resetting of zero of value of aggregate-value register (X) and the resetting of zero of sampling number pointer (N), carry out the flash of light processing of the LED of the display lamp that will constitute appurtenant machine 2 simultaneously.
Then, when the shutoff edge of terminal (IN1) is detected (step 1703 is a "Yes"), carry out read in (Xi=T1) of edge mistiming (T1) between the terminal suitable with actuation time, and the renewal of aggregate-value (X) processing (X=X+Xi) (step 1704), carry out the increment of sampling number counter (N) simultaneously and handle (N=N+1).
Above processing (step 1704) repeats, and reaches stipulated number (step 1705 is a "No") until the value of sampling number counter (N).During this period, in the time of till the value of sampling number counter (N) reaches stipulated number (step 1705 is a "Yes"), by with aggregate-value (X) divided by sampling number (N), ask the mean value (step 1706) of mistiming (T1) suitable with actuation time.
Transfer to Figure 18, begin to be used for the processing of the calculating of standard deviation (σ) and threshold value (T).That is, at first, carry out initialization process (step 1801), go forward side by side be about to mean value and each variable deviation square the resetting of zero of aggregate-value (X), and the resetting of zero of sampling number counter (N).
Then, when the shutoff edge of terminal (IN1) is detected (step 1703 is a "Yes"), repeat and terminal that actuation time is suitable between the renewal of square aggregate-value (X) of the deviation of reading in (Xi=T1) and the mean value of obtaining previously and each variable of edge mistiming (T1) handle (step 1803), till the value of sampling number counter (N) reaches stipulated number (step 1804 is a "No").
During this period, when the value of sampling number counter (N) reaches till the stipulated number (step 1804 is a "Yes"), by obtaining with the square root of aggregate-value (X) divided by sampling number (N-1) gained, ask standard deviation (σ), simultaneously, by mean value,, ask threshold value (T) (step 1806) with the long-pending addition of standard deviation (σ) and Z-factor (A) for mistiming (T).The threshold value of obtaining like this (T) is set in the appurtenant machine 2, supplies with the deterioration diagnostic process of external unit.
In above processing, handling (step 1704,1804) with accumulative total is that the center constitutes, so in the appurtenant machine 2 of the computing machine little as memory span, also calculated threshold (T) reliably.
The key diagram of another example of the calculation procedure of expression standard deviation is shown in Figure 19.In this example,, carry out reducing of memory span required in the computing by using the deformation type of the standard deviation shown in Figure 19 (a).
In Figure 19 (b), when beginning to handle, at first, carry out initialization process (step 1901), carry out each sampled value aggregate-value (X), sampled value square aggregate-value (Y) and the resetting of zero of sampling number counter (N).
Then, whenever the shutoff edge of terminal (IN1) detected (step 1902 is a "Yes"), read in and terminal that actuation time is suitable between the edge mistiming (T1), and ask its accumulative total (X=X+Xi) with and square accumulative total (Y=Y+Xi 2) (step 1903).
More than handle (step 1903) and repeat, reach stipulated number (step 1904 is a "No") until the value of sampling number counter (N).During this period, when the value of sampling number counter (N) reaches till the stipulated number (step 1904 is a "Yes"), by with aggregate-value (X) divided by sampling number (N), ask the mean value (step 1706) of mistiming (T1) suitable with actuation time.Simultaneously by obtain with square aggregate-value (Y) divided by the value of sampling number (N-1) gained with square the square root of aggregate-value (X) divided by the difference of the value of N (N-1) gained, ask standard deviation (σ).
Thus, same according to mean value, standard deviation (σ), the Z-factor (A) of the X that obtains with the process of front, ask deterioration to diagnose the threshold value (T) of usefulness, be set in this appurtenant machine 2.
Like this, according to above-mentioned several examples, based on standard deviation (σ), Z-factor (A), ask the threshold value (T) of deterioration diagnosis usefulness, even so with fewer sampled data as the basis, also can obtain the high judgement threshold value of reliability, can shorten the required time on threshold value obtains.
The possibility of utilizing on the industry of the present invention is according to the present invention, to possess the outside by alleviating The work of the threshold value decision aspect during for example the importing of the PLC system of equipment deterioration diagnosis function is protected simultaneously Card same running when system introducing and during system applies can be collected the high data of reliability.

Claims (9)

1. programable controller system, the Programmable Logic Controller device is connected with communication mode by fieldbus with the remote control input-output unit, on the communication path that connects between with Programmable Logic Controller device and remote control input-output unit, being provided with not to have the seedbed monitors the communication data that flows between them device, it is characterized in that:
In the Programmable Logic Controller device, also be provided with at least:
Input part is used to read in the signal from external unit;
Efferent is used for outside apparatus output signal;
The input and output storer has at least: input field, storage and the suitable input data of signal of reading in from the input part of Programmable Logic Controller device; The output area, storage with will be from the suitable output data of signal of the efferent of Programmable Logic Controller device output; The remote control input field, storage and the suitable input data of signal that are taken into from the remote control input-output unit; The remote control output area, storage with will be from the suitable remote control output data of signal of remote control input-output unit output; And deterioration diagnostic markers that can reference in user command;
Program storage is used to store the user program that the control criterion that will require is used the user command record;
The input and output updating component, execution is carried out the exchange of data by internal bus between the I/O area of the input and output portion of Programmable Logic Controller device and input and output storer input and output are upgraded and are handled, and the remote control input and output of carrying out the exchange of data by fieldbus between the remote control I/O area of remote control input-output unit and input and output storer are upgraded and handled;
Control is connected/turn-offed to deterioration diagnostic markers control assembly by fieldbus, according to the deterioration diagnostic result by remote control input-output unit notice, with the deterioration diagnostic markers; And
Program execution department spare, with reference to the content of input and output storer on one side carry out the user program that be stored in program storage on one side, simultaneously according to its execution result, the output area of input and output storer and the content of remote control output area are rewritten,
In the remote control input-output unit, be provided with:
Input part is used to be taken into the signal from external unit;
Efferent is used for outside apparatus output signal;
The input and output updating component, input data that will be suitable with the signal that is taken into from input part send to the Programmable Logic Controller device by fieldbus, simultaneously from efferent output and the suitable signal of output data that receives by fieldbus from the Programmable Logic Controller device;
The time difference measurements parts are measured the mistiming at the specified signal edge of the specified signal edge of a terminal of a pair of of the regulation that constitutes input part or efferent or each terminal centering more than two pairs and another terminal;
Mistiming register more than one or two is stored the right mistiming of each terminal that the time difference measurements parts obtain respectively once;
The deterioration deagnostic package by will comparing according to deterioration characteristic quantity and the defined threshold that the mistiming more than one or two of storing in these mistiming registers generates, is diagnosed the deterioration of the external unit that relates to these terminals; And
Diagnostic result notice parts, by the deterioration diagnostic result of fieldbus to Programmable Logic Controller device notice deterioration deagnostic package,
And the device that can not have seedbed supervision mobile communication data between Programmable Logic Controller device and remote control input-output unit is provided with:
Send request command distribution parts, monitor the communication data that between Programmable Logic Controller device and remote control input-output unit, flows by no seedbed, the signal condition of the input part of supervision remote control input-output unit or the regulation terminal of efferent, detected response the in prescribed direction edge to this signal condition, thereby by the message communicating that this fieldbus is supported, distribution is used for the transmission request command of request transmission time difference or deterioration characteristic quantity to the remote control input-output unit;
The data integrating block receive as being returned mistiming or the deterioration characteristic quantity of sending out for what send request command from the response of remote control input-output unit, and accumulative total is stored in the storer of regulation;
The cumulative data output block is used for that read operation to regulation responds and will outputs to the outside by a series of data that data integrating block accumulative total is stored in the storer of regulation,
And, in the remote control input-output unit, be provided with and send the request command processing element, response is by the transmission request command of the regulation of message communicating arrival, the deterioration characteristic quantity that generates with mistiming of once being stored in the mistiming register or according to the mistiming in response, the device that order is sent unit returns to be sent out.
2. programable controller system as claimed in claim 1, it is characterized in that, on the communication path between Programmable Logic Controller device and the remote control input-output unit, can not have the seedbed monitor that the device of the communication data that flows and Programmable Logic Controller device and remote control input-output unit branch are arranged between them, but and be the passive monitoring arrangement of monitor communication data.
3. programable controller system as claimed in claim 1, it is characterized in that, on the communication path between Programmable Logic Controller device and the remote control input-output unit, can not have the seedbed monitors the communication data that flows between them device and be positioned at the Programmable Logic Controller device, be by and the remote control input-output unit between the main computer unit of fieldbus implements communication.
4. as any one described programable controller system of claim 1~3, it is characterized in that,
The time difference measurements parts measurement that comprises in the remote control input-output unit be contained in efferent the 1st terminal the specified signal edge and be contained in mistiming (T1) at specified signal edge of the 1st terminal of input part, and be contained in input part the 1st terminal the specified signal edge and be contained in mistiming (T2) at specified signal edge of the 2nd terminal of input part
The plural mistiming register that is contained in the remote control input-output unit is made of the 2nd mistiming register of being stored the 1st mistiming register once the mistiming (T1) and the mistiming (T2) is stored once,
Be contained in deterioration deagnostic package in the remote control input-output unit by will be according to being stored in the mistiming (T1) in the 1st mistiming register and being stored in the deterioration characteristic quantity (T1 * T2) compare that the mistiming (T2) in the 2nd mistiming register generates with defined threshold, diagnosis and the deterioration of these terminals to relevant external unit
The device that can not have seedbed supervision mobile communication data between Programmable Logic Controller device and remote control input-output unit is provided with:
Order distribution parts, monitor the communication data that between Programmable Logic Controller device and remote control input-output unit, flows by no seedbed, the signal condition of the 1st terminal of the input part of supervision remote control input-output unit, detected response the in prescribed direction edge to this signal condition, thereby the message communicating of supporting by this fieldbus, distribution is used for request transmission time poor (T1, T2) or deterioration characteristic quantity (the transmission request command of T1 * T2) to the remote control input-output unit;
The data integrating block receives as (T1 * T2) and accumulative total are stored in the storer of regulation for sending mistiming (T1, T2) that returning from the response of remote control input-output unit of request command send out or deterioration characteristic quantity; And
The cumulative data output block is used for responding the read operation of regulation and outside output is stored in a succession of data of the storer of regulation by data integrating block accumulative total,
And, in the remote control input-output unit, be provided with the command process parts, the transmission request command of the regulation that response is arrived by message communicating, (T1 * T2) returns the device that is dealt into order distribution unit in response with the deterioration characteristic quantity of having stored the mistiming once (T1, T2) in the mistiming register or generate based on the mistiming.
5. as any one described programable controller system of claim 1~4, it is characterized in that, in the remote control input-output unit, relevant with an external unit deterioration diagnosis, but the timing of regulation necessity begins the overwrite flags of condition and timing termination condition for the mistiming of asking one or more to each mistiming that need ask setting, by the content with reference to this mark, the time difference measurements parts are measured each necessary mistiming in an external unit deterioration diagnosis.
6. as any one described programable controller system of claim 1~5, it is characterized in that, on the communication path between Programmable Logic Controller device and remote control input-output unit, can not have in the seedbed monitors the communication data that flows between them the device, relevant with an external unit deterioration diagnosis, but each deterioration diagnosis to be set in order being given for and will to be sent the overwrite flags of the condition of request command distribution, by content with reference to this mark, order distribution parts distribution necessary transmission request command in an external unit deterioration diagnosis.
7. programable controller system, the Programmable Logic Controller device is connected with communication mode by fieldbus with the remote control input-output unit, it is characterized in that,
In the Programmable Logic Controller device, also be provided with at least:
Input part is used to read in the signal from external unit;
Efferent is used for outside apparatus output signal;
The input and output storer has at least: input field, storage and the suitable input data of signal of reading in from the input part of Programmable Logic Controller device; The output area, storage with will be from the suitable output data of signal of the efferent of Programmable Logic Controller device output; The remote control input field, storage and the suitable input data of signal that are taken into from the remote control input-output unit; The remote control output area, storage with will be from the suitable remote control output data of signal of remote control input-output unit output; And deterioration diagnostic markers that can reference in user command;
Program storage is used to store the user program that the control criterion that will require is used the user command record;
The input and output updating component, execution is carried out the exchange of data by internal bus between the I/O area of the input and output portion of Programmable Logic Controller device and input and output storer input and output are upgraded and are handled, and the remote control input and output of carrying out the exchange of data by fieldbus between the remote control I/O area of remote control input-output unit and input and output storer are upgraded and handled;
Control is connected/turn-offed to deterioration diagnostic markers control assembly by fieldbus, according to the deterioration diagnostic result by remote control input-output unit notice, with the deterioration diagnostic markers; And
Program execution department spare, with reference to the content of input and output storer on one side carry out the user program that be stored in program storage on one side, simultaneously according to its execution result, the output area of input and output storer and the content of remote control output area are rewritten,
In the remote control input-output unit, be provided with:
Input part is used to be taken into the signal from external unit;
Efferent is used for outside apparatus output signal;
The input and output updating component, input data that will be suitable with the signal that is taken into from input part send to the Programmable Logic Controller device by fieldbus, simultaneously from efferent output and the suitable signal of output data that receives by fieldbus from the Programmable Logic Controller device;
The time difference measurements parts are measured the mistiming at the specified signal edge of the specified signal edge of a terminal of a pair of of the regulation that constitutes input part or efferent or each terminal centering more than two pairs and another terminal;
Mistiming register more than one or two is stored the right mistiming of each terminal that the time difference measurements parts obtain respectively once;
The deterioration deagnostic package by will comparing according to deterioration characteristic quantity and the defined threshold that the mistiming more than one or two of storing in these mistiming registers generates, is diagnosed the deterioration of the external unit that relates to these terminals; And
Diagnostic result notice parts, by the deterioration diagnostic result of fieldbus to Programmable Logic Controller device notice deterioration deagnostic package,
In described programable controller system, additional have the threshold setting supportive device, and this device has:
Data collection unit, the data collection function of in the user program of Programmable Logic Controller device, not packing into, and collect and interior mistiming or the suitable data of deterioration characteristic quantity that produce of remote control input-output unit;
Threshold value decision parts according to the mistiming or the suitable data of deterioration characteristic quantity of collecting with data collection unit, use the method decision deterioration diagnosis threshold value of statistics; And
The threshold setting parts will determine the deterioration diagnosis of parts decision to use threshold setting in the remote control input-output unit by threshold value.
8. programable controller system as claimed in claim 7 is characterized in that, threshold value decision parts comprise:
The 1st arithmetic unit is asked the mean value by a succession of data of data collection unit sampling;
The 2nd arithmetic unit, the mean value of a succession of data of obtaining according to the 1st arithmetic unit and the data of each sampling are asked the standard deviation of a succession of sampled data; And
The 3rd arithmetic unit according to mean value, the standard deviation that the 2nd arithmetic unit is obtained and the Z-factor of stipulating that the 1st arithmetic unit is obtained, is asked deterioration diagnosis threshold value.
9. programable controller system as claimed in claim 7, it is characterized in that the threshold setting supportive device is positioned on the path of the communication data that the Programmable Logic Controller device is connected with the remote control input-output unit, is used as the device that can not have seedbed monitor communication data, and
Data collection unit comprises:
Send request command distribution parts, monitor the communication data that between Programmable Logic Controller device and remote control input-output unit, flows by no seedbed, the signal condition of the input part of supervision remote control input-output unit or the regulation terminal of efferent, detected response the in prescribed direction edge to this signal condition, by the message communicating that this fieldbus is supported, distribution is used for the transmission request of request transmission time difference or deterioration characteristic quantity to the remote control input-output unit; And
Data integrating block, reception and conduct return mistiming or the suitable data of deterioration characteristic quantity sent out for the response from the remote control input-output unit that sends request command also to be added up to be stored in the storer of regulation,
The threshold setting parts comprise sets request command distribution parts, and this parts distribution determines the deterioration of parts decision to diagnose with the setting request command of threshold setting in the remote control input-output unit threshold value to the request of remote control input-output unit,
The remote control input-output unit comprises:
Return and send out a request command processing element, the transmission request command of the regulation that response arrives by message communicating returns the deterioration characteristic quantity having stored the mistiming once in the mistiming register or generated based on the mistiming in response and to send out to the device of order distribution unit; And
Set the request command processing element, response is used threshold data by the transmission request command of the regulation of message communicating arrival according to the deterioration diagnosis that is attached in this order, carries out the deterioration diagnosis and handles with the setting of threshold value.
CNB2006100591312A 2005-03-14 2006-03-14 Programmable controller system Active CN100442178C (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP072096/05 2005-03-14
JP072094/05 2005-03-14
JP2005072094A JP2006252486A (en) 2005-03-14 2005-03-14 Programmable controller system

Publications (2)

Publication Number Publication Date
CN1834833A true CN1834833A (en) 2006-09-20
CN100442178C CN100442178C (en) 2008-12-10

Family

ID=37002623

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100591312A Active CN100442178C (en) 2005-03-14 2006-03-14 Programmable controller system

Country Status (2)

Country Link
JP (1) JP2006252486A (en)
CN (1) CN100442178C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833298A (en) * 2009-03-12 2010-09-15 欧姆龙株式会社 I/O unit and industrial controller
CN103370906A (en) * 2011-02-14 2013-10-23 株式会社日立产机系统 Communication system
CN104756023A (en) * 2012-10-25 2015-07-01 三菱电机株式会社 System building assistance tool and system
CN105579920A (en) * 2013-09-24 2016-05-11 三菱电机株式会社 Programmable controller and control method for programmable controller
CN109976266A (en) * 2017-12-28 2019-07-05 欧姆龙株式会社 Control system and control device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3997879A (en) * 1975-12-24 1976-12-14 Allen-Bradley Company Fault processor for programmable controller with remote I/O interface racks
US4118792A (en) * 1977-04-25 1978-10-03 Allen-Bradley Company Malfunction detection system for a microprocessor based programmable controller
JPH11338518A (en) * 1998-05-27 1999-12-10 Omron Corp I/o device, input and output method, and control system using i/o device
JP3682838B2 (en) * 1999-01-26 2005-08-17 オムロン株式会社 Monitor and logging device
JP4338354B2 (en) * 2001-05-21 2009-10-07 オムロン株式会社 Slave
JP2003259022A (en) * 2002-03-04 2003-09-12 Sanyo Electric Co Ltd Monitor system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833298A (en) * 2009-03-12 2010-09-15 欧姆龙株式会社 I/O unit and industrial controller
CN101833298B (en) * 2009-03-12 2013-10-09 欧姆龙株式会社 I/O unit and industrial controller
CN103370906A (en) * 2011-02-14 2013-10-23 株式会社日立产机系统 Communication system
CN103370906B (en) * 2011-02-14 2016-08-10 株式会社日立产机系统 Communication system
CN104756023A (en) * 2012-10-25 2015-07-01 三菱电机株式会社 System building assistance tool and system
CN104756023B (en) * 2012-10-25 2017-04-26 三菱电机株式会社 System building assistance tool and system
CN105579920A (en) * 2013-09-24 2016-05-11 三菱电机株式会社 Programmable controller and control method for programmable controller
US10054926B2 (en) 2013-09-24 2018-08-21 Mitsubishi Electric Corporation Programmable controller and control method of programmable controller
CN109976266A (en) * 2017-12-28 2019-07-05 欧姆龙株式会社 Control system and control device
CN109976266B (en) * 2017-12-28 2022-05-03 欧姆龙株式会社 Control system and control device

Also Published As

Publication number Publication date
CN100442178C (en) 2008-12-10
JP2006252486A (en) 2006-09-21

Similar Documents

Publication Publication Date Title
CN1666329A (en) Method and device for dynamic sensor configuration and runtime execution
CN100342382C (en) Operation support system for power plant
CN1168024C (en) Process monitoring system for lithography lasers
CN1656599A (en) Method and apparatus for monitoring tool performance
CN1267867C (en) Data collection system
CN1834833A (en) Programmable controller system
CN1666203A (en) Method and apparatus for automatic sensor installation
WO2014136941A1 (en) Control system, control device, image processing device, and control method
CN1194381C (en) Semiconductor mfg. system and control method thereof
DK1688842T3 (en) Automated performance analysis and error correction
CN1230267A (en) Scheduling system and scheduling method for reentrant line processes
CN1848013A (en) Distributed control apparatus
CN1658106A (en) Machine management system and message server used for machine management
CN1916920A (en) System and method for testing and measuring percentage of coverage of function
CN1703657A (en) Process for determining competing cause event probability and/or system availability during the simultaneous occurrence of multiple events
US20110047424A1 (en) Integrated circuit including a programmable logic analyzer with enhanced analyzing and debugging capabilites and a method therefor
JP5371674B2 (en) Test equipment
JP2009282703A (en) Production instruction evaluation support system, method and program
CN1993949A (en) Information processing system, information processing apparatus, server apparatus, information processing method and program
JP7115823B2 (en) Production control system, production control program and production control method
JP2010039913A5 (en)
CN1690899A (en) Controller
CN1758236A (en) Management system and device based on embedded operation
KR102265461B1 (en) Abnormal Data Detection System in Manufacturing Process
US20100010763A1 (en) Method for detecting variance in semiconductor processes

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CI02 Correction of invention patent application

Correction item: Priority

Correct: 2005.03.14 JP 072096/05

False: Lack of priority second

Number: 38

Page: The title page

Volume: 22

COR Change of bibliographic data

Free format text: CORRECT: PRIORITY; FROM: MISSING THE SECOND ARTICLE OF PRIORITY TO: 2005.3.14 JP 072096/05

C14 Grant of patent or utility model
GR01 Patent grant