1. Field of the Invention
The present invention relates to a transmitter for processing an electric signal which is based on a process variable and outputting the result of the signal processing, as well as to a method for testing the transmitter. Particularly, the invention relates to a two wire process control transmitter which deals with pressure, temperature, flow rate, and the like, as well as to a method for testing the transmitter.
2. Description of the Prior Art
Basic functions of conventional transmitters are detecting a process variable and transmitting the detected process variable. In addition, some conventional transmitters are used for detecting a malfunction (see Patent Literature 1, for example), and others are used for temporarily changing a 4–20 mA standard range output into an abnormal value (see Patent Literature 2, for example).
One conventional transmitter will hereinafter be described with reference to
The embodiment in
The transmitter 5 is provided with an built-in display meter (LCD) 6. A communication terminal 7 is connected to the transmission line 2 and provided with a display unit 8 and a keyboard 9.
Further, the transmitter 5 detects a process variable such as static pressure, pressure differential, temperature, and flow rate by the use of sensors (not shown), further, the transmitter 5 converts the detected process variable into an electric signal, and processing the signal by the use of a microprocessor (not shown) to output 4–20 mA based on the electric signal to the transmission line 2.
The process variable becomes the 4–20 mA standard range output current and is applied to the load 3. In this way, the conventional example of
A detection processing means 200′ included in the transmitter 5 will hereinafter be described with reference to
The detection processing means 200′ is comprised of hardware and includes a sensor 101 and a microprocessor 102′. The microprocessor 102′ has a firmware processing unit 110′. The microprocessor 102′ is connected to the sensor 101 and a memory (non-volatile storage unit) 103. The firmware processing unit 110′ has an input processing unit 10, a diagnosis processing unit 11, and an output processing unit 12. Information generated by the firmware processing unit 110′ is processed by the microprocessor 102′.
Operation of the conventional example of
Firstly, the steps of the input processing unit 10 are performed. As a result, in the case where the transmitter 5 is comprised of a resonant sensor, for example, pressure/ambient temperature of the process is input as a frequency f, and predetermined signal processing is performed to generate a calculated value A. Thus, the calculated value A is based on the frequency f, and thus is based on the pressure/ambient temperature of the process.
Secondly, steps of the diagnosis processing unit 11 are performed. As a result, if the frequency f is within a predetermined range, the diagnosis processing unit 11 diagnoses that there has not been any failure in the detection processing unit (sensor 101—no failure), whereas if the frequency f is outside the predetermined range, the diagnosis processing unit 11 diagnoses that there has been a failure in the detection processing unit (sensor 101—failure). More specifically, when the frequency f is 0, for example, the diagnosis processing unit 11 diagnoses that the sensor 101 of the detection processing unit is malfunctioning.
Alternatively, if the calculated value A obtained by the signal processing of the frequency f is in a predetermined range, the diagnosis processing unit 11 diagnoses that the process variable is normal. On the other hand, if the calculated value A obtained by the signal processing of the frequency f is outside the predetermined range, the diagnosis processing unit 11 diagnoses that the process variable is abnormal.
Then, the diagnosis information is stored in the memory 103 serving as a storage unit.
Thirdly, the steps of the output processing unit 12 are performed. The output processing unit 12 refers to the memory 103, and where operation is normal, that is, the detection processing unit is not malfunctioning and the process is normal, a current in the range 4–20 mA corresponding to the calculated value A is output. The built-in display meter 6 displays the 4–20 mA standard range output. The display unit 8 of the communication terminal 7 also displays the 4–20 mA standard range output. The conventional example of
The memory 103 is checked and when there is a failure of the detection processing unit, the output current falls above or below the 4–20 mA range. As a result, the built-in display meter 6 displays an alarm. Further, the display unit 8 of the communication terminal 7 displays an alarm, too.
In the case where in checking the memory the process is malfunctioning though no failure is detected in the detection processing unit, the value of the 4–20 mA standard range output OUT is kept at the previous value.
[Patent Literature 1] Japanese Patent No. 3308119
[Patent Literature 2] JP-A-2002-175112
However, when conducting an on-the-spot inspection or the like in order to test for a failure in the detection processing unit of the transmitter integrated in a system, it is necessary to partially disable (disassemble) the transmitter in order to confirm behavior of the entire transmitter in the partially disabled state, and manpower and cost are undesirably incurred by such test.
More specifically, in order to temporarily change the values of the built-in display meter, the alarm, and other components in addition to changing the value of the 4–20 mA standard range output to abnormal values, it is necessary to actually disassemble the transmitter deliberately, thereby incurring manpower and money expenditure.
An object of the present invention is to solve the above-described problem and to provide a transmitter which can be easily tested for a failure in the detection processing unit thereof and thus reduce required manpower and cost, as well as a method for testing the transmitter.
The invention can be summarized as follows.
(1) A transmitter provided with a detection processing unit for measuring a process variable and processing an electric signal which is based on the process variable, comprising a test unit for generating an malfunctioning state of the detection processing unit for a test.
(2) A method for testing a transmitter provided with a detection processing unit for measuring a process variable and processing an electric signal which is based on the process variable, comprising: a step of executing a test using a communication terminal connected to the transmission line for transmitting an output from the detection processing unit; a step of testing for an malfunctioning state of the detection processing unit; and a step of terminating the test using the communication terminal.
The embodiments of the present invention are characterized by having a test unit. Hereinafter, a case wherein the test unit generates a malfunctioning state corresponding to a failure in a detection processing unit part other than the microprocessor and a case wherein the test unit generates a malfunctioning state corresponding to a failure in the detection processing unit microprocessor will be described in this order.
The present invention will be described in detail based on an embodiment of
The embodiment of
Referring to
A step to be performed by the switching unit 15 is inserted between steps to be performed by a diagnosis processing unit 11 and steps to be performed by the output processing unit 12. Accordingly, the switching unit 15 selects the diagnosis processing unit 11 in the case of a normal state and selects the test processing unit 16 in the case of conducting the test (malfunctioning state).
In the embodiment of
Hereinafter, conducting the test in the embodiment of
Further, in the steps to be performed by the output processing unit 12, the output current is set removed from the 4–20 mA range in the high side or low side, since the memory 103 stores the information that there is a failure in the detection processing unit.
More specifically, the value of the 4–20 mA standard range output OUT is set to 110% of the maximum, 21.6 mA DC, or more, or set to 5% less than the minimum, 3.2 mA DC, or less.
The selection between the higher and the lower voltage is made by a hard switch (not shown) or a transmitted setting signal (not shown). A built-in display meter 6 displays an alarm. A display unit 8 of a communication terminal 7 also displays an alarm.
Thus, when conducting the test, the output processing unit 12 performs operation identical with that performed when there is a failure in a sensor 101. Also, in the embodiment of
Therefore, with the embodiment of
Since the test is conducted by using the firmware processing unit in the embodiment of
Hereinafter, a test suitable for the embodiment of
Firstly, the test is executed using the communication terminal 7 in Step ST11. More specifically, a signal for starting the test is sent from the communication terminal 7 to the transmitter 5.
Secondly, the switching unit 15 selects the test processing unit 16 based on the signal from the communication terminal 7 to generate a detection processing unit failure state (malfunctioning state) for test in Step ST12.
Thirdly, the malfunctioning state test of the detection unit is executed in Step ST13. Operations of the control valves (not shown) and the like connected to the transmitter 5 are confirmed, and then an operation test of the entire system including the transmitter is executed.
Fourthly, the test is terminated by using the communication terminal 7 in Step ST14. More specifically, the communication terminal 7 sends a signal for terminating the test to the transmitter 5.
Fifthly, in Step ST15 the switching unit 15 selects the diagnosis processing unit 11 depending on the signal for test termination from the communication terminal 7 to terminate the detection processing unit failure state for testing.
With the above-described test method, it is possible to easily conduct the test. Also, it is possible to easily confirm failsafe operation of the entire system including the transmitter. Further, it is possible to conveniently test the behavior of the entire system in the case where the transmitter is in the malfunctioning state. Furthermore, it is possible to easily execute an abnormal output examination in the case of an on-the-spot inspection at time of installation of the system.
Though the test processing unit 16 is used for generating the detection processing unit failure state for testing in the foregoing embodiment, it is possible to achieve substantially the same effect when the test processing unit 16 is used for generating an abnormal setting state of the transmitter 5. In this case, it is possible to conveniently confirm the abnormal setting state during an on-the-spot inspection when installing the system in a customer's premises, for example.
Alternatively, it is possible to achieve substantially the same effect when the test processing unit 16 is used for generating a malfunctioning processing state of the transmitter 5. In this case, it is possible to conveniently confirm the malfunctioning processing state during an on-the-spot inspection when installing the system in a customer's premises, for example.
Hereinafter, this invention will be described in detail based on another embodiment shown in
The embodiment of
Referring to
A signal S1 is input from a sensor (not shown) to the signal processing unit 22. A signal S8 is transferred from the communication processing unit 21 to the signal processing unit 22. A signal S9 is transferred from the signal processing unit 22 to the communication processing unit 21.
The communication processing unit 21 inputs a test input S10 to generate a signal S11. The signal processing unit 22 generates a signal S12. A switching unit 25 selects either the signal S11 or S12 to use as the diagnosis signal S13.
The diagnosis signal S13 is transferred from the switching unit 25 to the watchdog timer 31. A reset signal S3 is transferred from the reset control circuit for abnormality 32 to the signal processing unit 22. A signal S4 is transferred from the signal processing unit 22 to the pulse width modulation circuit 33.
A judgment signal S7 is transferred from the watchdog timer 31 to the reset control circuit for abnormality 32. A failure signal S5 is transferred from the reset control circuit for abnormality 32 to the pulse width modulation circuit 33. A 4–20 mA standard range output S6 is output from the pulse width modulation circuit 33 to the transmission line 2.
Hereinafter, operation to be performed when the embodiment of
The signal processing unit 22 of the microprocessor 20 generates the signal S4, and the pulse width modulation circuit 33 generates the 4–20 mA standard range output S6. Thus, a process variable is detected by the sensor and then converted into the electric signal, and this electric signal is processed by the microprocessor 20 to be output to the transmission line 2 (not shown).
The signal processing unit 22 generates a periodic signal S12 at a predetermined timing, and then the signal S12 becomes the diagnosis signal S13, so that the watchdog timer 31 is reset by the diagnosis signal S13. Hence, the judgment signal S7, the reset signal S3, and the failure signal S5 are disabled.
The communication processing unit 21 communicates with a communication terminal 7 and the like (not shown) connected to the transmission line 2 (not shown) via the signal processing unit 22 and the pulse width modulation circuit 33.
Hereinafter, operation to be performed when in the embodiment of
The signal S12 and the diagnosis signal S13 are disabled; the watchdog timer 31 is saturated; and the judgment signal S7 and the rest signal S3 are enabled. The normal state of the microprocessor 20 can be recovered by the reset signal S3 in some cases.
When predetermined time has elapsed after the judgment signal s7 is enabled, the failure signal S5 is enabled, and the pulse width modulation circuit 33 causes the 4–20 mA standard range output current S6 to be beyond the 4–20 mA range on the high or low side. The selection between a high value and a low value is decided by a hard switch (not shown) or a set communication (not shown).
When the value of the 4–20 mA standard range output S6 is set beyond the 4–20 mA range on the high or low side, the clock pulse to the microprocessor 20 is stopped to halt the microprocessor 20 and to cause the built-in display meter 6 to light the “malfunctioning” message (not shown). At this time point, the communication between the communication processing unit 21 and the communication terminal 7 and the like is stopped, also.
Hereinafter, operation to be performed when the test is conducted in the embodiment of
Thus, the diagnosis signal S13 is disabled; the watchdog timer 31 is saturated; and the judgment signal S7 is enabled.
Hence, the operation to be performed when conducting the test is the same as that performed when the detection processing unit constituting the microprocessor 20 is in the malfunctioning state.
Thus, with the embodiment of
Hereinafter, a test method suitable for the embodiment of
Firstly, Step ST21, where communication terminal 7 performs a test, is executed. More specifically, the communication terminal 7 sends a signal for starting the test to the transmitter 5, and then the process goes to Step ST22.
Secondly, Step ST22 is executed, wherein the switching unit 25 selects the signal S11 based on the signal sent from the communication terminal 7 to disable the diagnosis signal S13, and then the process goes to Step ST23.
Thirdly, Step ST23 is executed, wherein the gate array 30 generates the reset signal S3, and then the process goes to Step ST24.
Fourthly, Step ST24 is executed, wherein the gate array 30 detects a failure in the microprocessor 20 based on the diagnosis signal S13 (judgment signal S14) and enables a failure signal S5, and stops the microprocessor, and then the process goes to Step ST25.
Fifthly, Step ST25 is executed, wherein operations of the control valves (not shown) and the like connected to the transmitter 5 are confirmed, and a behavior test for the entire system including the transmitter 5 is executed, and then the process goes to Step ST26.
Sixthly, Step ST26 is executed, wherein the communication terminal 7 terminates the test. More specifically, the communication terminal 7 sends a test termination signal to the transmitter, and then the process goes to Step ST27.
Seventhly, Step ST27 is executed, wherein the switching unit 25 selects the signal S12 based on the test termination signal sent from the communication terminal 7 to make the periodic signal S12 generated by the microprocessor 20 the diagnosis signal S13.
With the above-described test method, it is possible to conduct the test as easily as in the embodiment of
Hereinafter, operation of the embodiment of
Shown in
Region C of
Referring to
More specifically, the diagnosis signal S13 (WDTCL) is periodically sent to the watchdog timer 31 at the predetermined timing; the 4–20 mA standard range output S6 takes a normal value; the microprocessor is in the normal state; and the flag is in the off-state.
When a failure occurs in the microprocessor 20 at the time t1, the flag is brought into the on-state.
More specifically, when the failure occurs in the microprocessor 20 at the time t1, the transmission of the signal S13 (WDTCL) to the watchdog timer 31 is stopped, so that the watchdog timer 31 detects the malfunction in the microprocessor (CPU) 20 and brings the flag into the on-state.
Then, the microprocessor 20 is reset (r1) a second after the time t1, and the microprocessor 20 is reset again (r2) two seconds after the first reset. With the second reset, the 4–20 mA standard range output S6 is lowered. The microprocessor 20 is not restored to operation since it is malfunctioning.
Further, the 4–20 mA standard range output S6 is set above the 4–20 mA range two seconds after the second reset, and the microprocessor 20 stops. That is, after the two reset operations, the 4–20 mA standard range output S6 is set above the 4–20 mA range and the microprocessor 20 stops.
More specifically, when two seconds have passed after the second reset, the watchdog timer 31 detects the failure in the microprocessor 20; the signals S7, S5, and S3 are generated; the 4–20 mA standard range output S6 is set above the 4–20 mA range in response to the signal S5; and the microprocessor 20 is stopped in response to the signal S3. That is, after the two reset operations, the 4–20 mA standard range output S6 is set above the 4–20 mA range and the microprocessor 20 stops.
After elimination of the failure in the microprocessor 20 and a release of the reset (r0) by the transmitter 5, the transmitter 5 returns to the normal state; the watchdog timer 31 is reset periodically at the predetermined timing; the 4–20 mA standard range output S6 takes a normal value; the microprocessor 20 returns to the normal state; and the flag is brought into the off-state.
More specifically, after elimination of the failure in the microprocessor 20 and a release of the reset (r0), the transmitter 5 returns to the normal state; the diagnosis signal S13 (WDTCL) is sent periodically to the watchdog timer 31 at the predetermined timing; the 4–20 mA standard range output S6 takes a normal value; the microprocessor returns to the normal state; and the flag is brought into the off-state.
Hereinafter, the operation of the embodiment of
Shown in
When starting up the microprocessor 20, operation of increment (++1) is performed when the RAM count is 1 or 2, and reset operation is performed when the RAM count is 3 in starting up the microprocessor 20. When the test is conducted, the RAM count is set to 1.
The diagnosis signal WDTCL is disabled when the RAM count is other than 0.
Referring to
When the test is started at the time t1, the RAM count becomes 1; the diagnosis signal WDTCL is disabled; and the EEPROM count becomes 1 by downloading the value of the RAM count.
At the time t11, the microprocessor 20 is reset (r1), and the RAM count becomes 1 by uploading the EEPROM count value.
Then, the RAM count is incremented to become 2, and the EEPROM count becomes 2 by downloading the RAM count value. At the time t12, the reset of the microprocessor 20 is released.
At the time t13, the microprocessor 20 is reset (r2), and the RAM count becomes 2 by uploading the EEPROM count value.
Then, the RAM count is incremented to become 3, and the EEPROM count becomes 3 by downloading the RAM count value. At the time t14, the reset of the microprocessor 20 is released.
At the time t15, the 4–20 mA standard range output S6 is set above the 4–20 mA range to stop the microprocessor 20. The EEPROM count remains at 3.
At the time t16, the test is terminated, and the transmitter 5 is reset (r0). The RAM count becomes 3 by uploading the EEPROM count value. Then, the RAM count is reset to 0.
At the time t2, the transmitter 5 releases the reset. After that, the transmitter 5 is in the normal state; the 4–20 mA standard range output S6 takes a normal value; and the diagnosis signal WDTCL is in the normal state. The EEPROM count becomes 0 by downloading the RAM count value. Thus, after the 4–20 mA standard range output S6 is set above the 4–20 mA range, the transmitter 5 is restored to operation when the transmitter 5 is restarted (reset).
The EEPROM stores the test state in a nonvolatile manner and counts the resets in the region r1 and the resets in the region r2 (reset signal S3) based on the information stored in the EEPROM. Therefore, the embodiment based on the operation of
Though the test for checking the malfunction in the detection processing unit constituting the microprocessor 20 is described in the foregoing embodiment, it is possible to modify the embodiment for conducting the test for other detection processing units such as the gate array 30 and the sensor (not shown). In the modification, a test function is installed in the detection processing unit. The modification example has substantially the same constitution and achieves a similar effect.
Though the communication terminal 7 controls the switching unit in the foregoing embodiments, it is possible to achieve the same effect by controlling the switching unit from upstream of the transmitter 5.
Also, though the communication terminal 7 controls the switching unit in the foregoing embodiments, it is possible to achieve the same effect by controlling the switching unit by the communication signals of an upstream system which is connected to the distributor 1 and controls the transmitter 5.
The foregoing embodiments can be applied to a differential pressure meter, a temperature meter, and a flow rate meter, for example.
Though the two wire process control transmitter is described in the foregoing embodiments, it is possible to achieve the same effect by using a transmitter other than the two wire process control transmitter so far as the transmitter has a similar constitution.
As described above, the present invention is not limited to the foregoing embodiments and encompasses many alterations and modifications so far as the alterations and the modifications do not depart from the spirit of the invention.
As is apparent from the foregoing, this invention has the following effects.
According to this invention, it is possible to easily conduct a test for a failure in the detection processing unit of a transmitter without dismantling the transmitter, and to provide a transmitter as well as a method for testing the transmitter that requires less manpower and cost.
According to this invention, it is possible to easily test behavior of the entire system when the transmitter is in a malfunctioning state. Further, it is possible to easily check failsafe mechanisms of the entire system which operate when the transmitter is in the malfunctioning state.
According to this invention, it is possible to conduct a test for checking only the transmitter during an on-the-site inspection. Also, it is possible to conveniently execute an abnormal output examination during the on-the-site inspection.
According to this invention, it is possible for a user operating the transmitter to easily perform the test for failure in the detection processing unit. Normal operation can be resumed immediately after the completion of the test.
Number | Date | Country | Kind |
---|---|---|---|
2004-260698 | Sep 2004 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
6017143 | Eryurek et al. | Jan 2000 | A |
6192321 | Grumstrup et al. | Feb 2001 | B1 |
6745107 | Miller | Jun 2004 | B1 |
Number | Date | Country |
---|---|---|
3308119 | May 2002 | JP |
2002-175112 | Jun 2002 | JP |
Number | Date | Country | |
---|---|---|---|
20060064284 A1 | Mar 2006 | US |