This application is a continuation of application Ser. No. 11/080,440, filed on Mar. 16, 2005
BACKGROUND OF THE INVENTION 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 (seePatent Literature 1, for example), and others are used for temporarily changing a 4-20 mA standard range output into an abnormal value (seePatent Literature 2, for example).
One conventional transmitter will hereinafter be described with reference toFIG. 1.FIG. 1 is a block diagram showing the conventional transmitter.
The embodiment inFIG. 1 will here be explained.FIG. 1 is an embodiment of a two wire process control transmitter, where atransmitter5 is connected to a power unit (distributor)1 and to aload3 via atransmission line2. Normally, a current of 4-20 mA is output from thepower unit1 and flows through thetransmission line2, thetransmitter5, and theload3, all connected in series.
Thetransmitter5 is provided with an built-in display meter (LCD)6. A communication terminal7 is connected to thetransmission line2 and provided with adisplay unit8 and akeyboard9.
Further, thetransmitter5 detects a process variable such as static pressure, pressure differential, temperature, and flow rate by the use of sensors (not shown), further, thetransmitter5 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 thetransmission line2.
The process variable becomes the 4-20 mA standard range output voltage and is applied to theload3. In this way, the conventional example ofFIG. 1 transmits the process variable information.
A detection processing means200′ included in thetransmitter5 will hereinafter be described with reference toFIG. 2.FIG. 2 is a block diagram showing the detection processing means200′ of the conventional transmitter.
The detection processing means200′ is comprised of hardware and includes asensor101 and amicroprocessor102′. Themicroprocessor102′ has afirmware processing unit110′. Themicroprocessor102′ is connected to thesensor101 and a memory (non-volatile storage unit)103. Thefirmware processing unit110′ has aninput processing unit10, adiagnosis processing unit11, and anoutput processing unit12. Information generated by thefirmware processing unit110′ is processed by themicroprocessor102′.
Operation of the conventional example ofFIG. 2 will be described below.
Firstly, the steps of theinput processing unit10 are performed. As a result, in the case where thetransmitter5 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 thediagnosis processing unit11 are performed. As a result, if the frequency f is within a predetermined range, thediagnosis processing unit11 diagnoses that there has not been any failure in the detection processing unit (sensor101—no failure), whereas if the frequency f is outside the predetermined range, thediagnosis processing unit11 diagnoses that there has been a failure in the detection processing unit (sensor101—failure). More specifically, when the frequency f is 0, for example, thediagnosis processing unit11 diagnoses that thesensor101 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, thediagnosis processing unit11 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, thediagnosis processing unit11 diagnoses that the process variable is abnormal.
Then, the diagnosis information is stored in thememory103 serving as a storage unit.
Thirdly, the steps of theoutput processing unit12 are performed. Theoutput processing unit12 refers to thememory103, and where operation is normal, that is, the detection processing unit is not malfunctioning and the process is normal, a voltage in the range 4-20 mA corresponding to the calculated value A is output. The built-indisplay meter6 displays the 4-20 mA standard range output. Thedisplay unit8 of the communication terminal7 also displays the 4-20 mA standard range output. The conventional example ofFIG. 2 transmits the process variable information in the above-described manner.
Thememory103 is checked and when there is a failure of the detection processing unit, the output voltage falls above or below the 4-20 mA range. As a result, the built-indisplay meter6 displays an alarm. Further, thedisplay unit8 of the communication terminal7 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.
SUMMARY OF THE INVENTION 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.
BRIEF DESCRIPTION OF THE DRAWINGSFIG. 1 is a block diagram showing a conventional transmitter.
FIG. 2 is a block diagram showing adetection processing unit200′ of the conventional transmitter.
FIG. 3 is a block diagram showing adetection processing unit200 of one embodiment of the present invention.
FIG. 4 is a block diagram of the state of a transmitter when a test is conducted.
FIG. 5 is a flowchart of the embodiment ofFIG. 3.
FIG. 6 is a block diagram showing a signal processing circuit in another embodiment of the invention.
FIG. 7 is a diagram showing waveforms indicating timings when a microprocessor is malfunctioning in the embodiment ofFIG. 6.
FIG. 8 is a diagram showing waveforms indicating timings when the test is conducted in the embodiment ofFIG. 6.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 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 ofFIG. 3 in view of the case of the failure of the detection processing unit part other than themicroprocessor102.FIG. 3 is a block diagram showing thedetection processing unit200 of this embodiment. In the embodiment ofFIG. 3, components equivalent to those of the conventional example ofFIG. 2 are denoted by the same reference numerals to omit the descriptions therefor.
The embodiment ofFIG. 3 is characterized by a constitution relating to atest processing unit16 and aswitching unit15 of the test unit.
Referring toFIG. 3, thetest processing unit16 generates a detection processing unit failure state (malfunctioning state), specifically a parameter for an open circuit or short circuit, for a test.
A step to be performed by the switchingunit15 is inserted between steps to be performed by adiagnosis processing unit11 and steps to be performed by theoutput processing unit12. Accordingly, the switchingunit15 selects thediagnosis processing unit11 in the case of a normal state and selects thetest processing unit16 in the case of conducting the test (malfunctioning state).
In the embodiment ofFIG. 3, normal operation is similar to that of the conventional example ofFIG. 2, and process variable information is transmitted. Thetest processing unit16 is disconnected in the case of normal operation.
Hereinafter, conducting the test in the embodiment ofFIG. 3 will be described. Theinput processing unit10 and thediagnosis processing unit11 are disconnected in the case of conducting the test. Information on failures in the detection processing unit is stored inmemory103 which stores values of the diagnosis processing unit.
Further, in the steps to be performed by theoutput processing unit12, the output voltage is set removed from the 4-20 mA range in the high side or low side, since thememory103 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-indisplay meter6 displays an alarm. Adisplay unit8 of a communication terminal7 also displays an alarm.
Thus, when conducting the test, theoutput processing unit12 performs operation identical with that performed when there is a failure in asensor101. Also, in the embodiment ofFIG. 3, the testing operation is based on the operation of thetest processing unit16 and is independent from theinput processing unit10 and thediagnosis processing unit11.
Therefore, with the embodiment ofFIG. 3, it is possible to easily conduct the test for failure in detection processing unit. Further, when conducting the test, it is possible to check operation of control valves (not shown) and the like of the components other than thetransmitter5. Furthermore, the normal operation returns immediately after terminating the test.
Since the test is conducted by using the firmware processing unit in the embodiment ofFIG. 3, the test is simplified. Also, the firmware processing unit can be used to check for detection processing means failure not only for the 4-20 mA standard range output but also for any other value displayed in the built-indisplay meter6 and thedisplay unit8.
FIG. 4 is a block diagram showing a state of the transmitter when the test is conducted. InFIG. 4, region A corresponds to the period of normal operation; time t0 corresponds to the start of the test; and region B corresponds to the period of testing. The output voltage is set beyond the 4-20 mA range on the high side, and the built-indisplay meter6 displays an alarm AL.01 in the region B.
Hereinafter, a test suitable for the embodiment ofFIG. 3 will be described with reference toFIG. 5.FIG. 5 is a flowchart of the embodiment ofFIG. 3. The communication terminal7 connected to thetransmission line2 for transmitting an output from thedetection processing unit200 is used in the test.
Firstly, the test is executed using the communication terminal7 in Step ST11. More specifically, a signal for starting the test is sent from the communication terminal7 to thetransmitter5.
Secondly, the switchingunit15 selects thetest processing unit16 based on the signal from the communication terminal7 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 thetransmitter5 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 terminal7 in Step ST14. More specifically, the communication terminal7 sends a signal for terminating the test to thetransmitter5.
Fifthly, in Step ST15 the switchingunit15 selects thediagnosis processing unit11 depending on the signal for test termination from the communication terminal7 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 thetest processing unit16 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 thetest processing unit16 is used for generating an abnormal setting state of thetransmitter5. 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 thetest processing unit16 is used for generating a malfunctioning processing state of thetransmitter5. 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 inFIG. 6 dealing with a case equivalent to failure in the detection processing unit of themicroprocessor20.FIG. 6 is a block diagram showing a signal processing circuit of this embodiment.
The embodiment ofFIG. 6 is characterized by the constitution of its test unit with regard to themicroprocessor20 andgate array30.
Referring toFIG. 6, the microprocessor (CPU)20 is provided with acommunication processing unit21 and aprocessing unit22. Thegate array30 is provided with a watchdog timer (WDT)31, the reset control circuit forabnormality32, and a pulse width modulation circuit (PWM)33. Themicroprocessor20 and thegate array30 are independent hardware. For example, an internal portion of themicroprocessor20 is formed from firmware, and thegate array30 is formed from an ASIC.
A signal S1 is input from a sensor (not shown) to thesignal processing unit22. A signal S8 is transferred from thecommunication processing unit21 to thesignal processing unit22. A signal S9 is transferred from thesignal processing unit22 to thecommunication processing unit21.
Thecommunication processing unit21 inputs a test input S10 to generate a signal S11. Thesignal processing unit22 generates a signal S12. A switchingunit25 selects either the signal S11 or S12 to use as the diagnosis signal S13.
The diagnosis signal S13 is transferred from the switchingunit25 to thewatchdog timer31. A reset signal S3 is transferred from the reset control circuit forabnormality32 to thesignal processing unit22. A signal S4 is transferred from thesignal processing unit22 to the pulsewidth modulation circuit33.
A judgment signal S7 is transferred from thewatchdog timer31 to the reset control circuit forabnormality32. A failure signal S5 is transferred from the reset control circuit forabnormality32 to the pulsewidth modulation circuit33. A 4-20 mA standard range output S6 is output from the pulsewidth modulation circuit33 to thetransmission line2.
Hereinafter, operation to be performed when the embodiment ofFIG. 6 is in a normal state will be described. The test input S10 is disabled, and the switchingunit25 selects the signal S12. The signal S12 becomes the diagnosis signal S13 (S12=S13).
Thesignal processing unit22 of themicroprocessor20 generates the signal S4, and the pulsewidth modulation circuit33 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 themicroprocessor20 to be output to the transmission line2 (not shown).
Thesignal processing unit22 generates a periodic signal S12 at a predetermined timing, and then the signal S12 becomes the diagnosis signal S13, so that thewatchdog timer31 is reset by the diagnosis signal S13. Hence, the judgment signal S7, the reset signal S3, and the failure signal S5 are disabled.
Thecommunication processing unit21 communicates with a communication terminal7 and the like (not shown) connected to the transmission line2 (not shown) via thesignal processing unit22 and the pulsewidth modulation circuit33.
Hereinafter, operation to be performed when in the embodiment ofFIG. 6 the detection processing unit constituting themicroprocessor20 is in a malfunctioning state will be described. In this case, the test input S10 is disabled, and the switchingunit25 selects the signal S12. The signal S12 becomes the diagnosis signal S13 (S12=S13).
The signal S12 and the diagnosis signal S13 are disabled; thewatchdog timer31 is saturated; and the judgment signal S7 and the rest signal S3 are enabled. The normal state of themicroprocessor20 can be recovered by the reset signal S3 in some cases.
When a predetermined time has elapsed after the judgment signal S7 is enabled, the failure signal S5 is enabled, and the pulsewidth modulation circuit33 causes the 4-20 mA standard range output voltage 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 themicroprocessor20 is stopped to halt themicroprocessor20 and to cause the built-indisplay meter6 to light the “malfunctioning” message (not shown). At this time point, the communication between thecommunication processing unit21 and the communication terminal7 and the like is stopped, also.
Hereinafter, operation to be performed when the test is conducted in the embodiment ofFIG. 6 will be described. The test input S10 is enabled; the signal S11 is disabled; and the switchingunit25 selects the signal S11. The Signal S11 becomes equal to the diagnosis signal S13 (S11=S13).
Thus, the diagnosis signal S13 is disabled; thewatchdog timer31 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 themicroprocessor20 is in the malfunctioning state.
Thus, with the embodiment ofFIG. 6, it is possible to conveniently conduct the test for the malfunction in the detection processing unit constituting themicroprocessor20. Note that thegate array30 is in the normal state when themicroprocessor20 is in the malfunctioning state. However, the malfunction in the detection processing unit constituting thegate array30 is detected by the microprocessor20 (explanation of this point is omitted in this specification).
Hereinafter, a test method suitable for the embodiment ofFIG. 6 will be described.
Firstly, Step ST21, where communication terminal7 performs a test, is executed. More specifically, the communication terminal7 sends a signal for starting the test to thetransmitter5, and then the process goes to Step ST22.
Secondly, Step ST22 is executed, wherein the switchingunit25 selects the signal S11 based on the signal sent from the communication terminal7 to disable the diagnosis signal S13, and then the process goes to Step ST23.
Thirdly, Step ST23 is executed, wherein thegate array30 generates the reset signal S3, and then the process goes to Step ST24.
Fourthly, Step ST24 is executed, wherein thegate array30 detects a failure in themicroprocessor20 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 thetransmitter5 are confirmed, and a behavior test for the entire system including thetransmitter5 is executed, and then the process goes to Step ST26.
Sixthly, Step ST26 is executed, wherein the communication terminal7 terminates the test. More specifically, the communication terminal7 sends a test termination signal to the transmitter, and then the process goes to Step ST27.
Seventhly, Step ST27 is executed, wherein the switchingunit25 selects the signal S12 based on the test termination signal sent from the communication terminal7 to make the periodic signal S12 generated by themicroprocessor20 the diagnosis signal S13.
With the above-described test method, it is possible to conduct the test as easily as in the embodiment ofFIG. 3.
Hereinafter, operation of the embodiment ofFIG. 6 will be described in detail with reference toFIG. 7.FIG. 7 is a diagram showing waveforms indicating timings when themicroprocessor20 is malfunctioning in the embodiment ofFIG. 6.
Shown inFIG. 7A is the configuration of the diagnosis signal S13 (WDTCL) sent to the watchdog timer (WDT)31; shown inFIG. 7B is a waveform of the 4-20 mA standard range output S6; shown inFIG. 7C is an operation state of the microprocessor (CPU)20; and shown inFIG. 7D are the flag states of an EEPROM (not shown) serving as the nonvolatile memory for storing the information on failure (malfunctioning state) of themicroprocessor20.
Region C ofFIG. 7 is a non-active state. A region r1 and a region r2 ofFIG. 7 are each states in which themicroprocessor20 is reset, and this corresponds to the state in the embodiment ofFIG. 6 in which the reset signal S3 is enabled. Region r0 ofFIG. 7 is a state in which thetransmitter5 is reset (restarted). Region D ofFIG. 7 is a state in which the 4-20 mA standard range output S6 is higher than the 4-20 mA range, and Region E ofFIG. 7 is a state of stoppage. Region F ofFIG. 7 is a state in which the flag is in an on-state.
Referring toFIG. 7, thetransmitter5 is in the normal state before the time t1. Thewatchdog timer31 is reset periodically at a predetermined timing during this period. Also, the 4-20 mA standard range output S6 takes a normal value;microprocessor20 is in the normal state; and the flag is in an off-state.
More specifically, the diagnosis signal S13 (WDTCL) is periodically sent to thewatchdog timer31 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 themicroprocessor20 at the time t1, the flag is brought into the on-state.
More specifically, when the failure occurs in themicroprocessor20 at the time t1, the transmission of the signal S13 (WDTCL) to thewatchdog timer31 is stopped, so that thewatchdog timer31 detects the malfunction in the microprocessor (CPU)20 and brings the flag into the on-state.
Then, themicroprocessor20 is reset (r1) a second after the time t1, and themicroprocessor20 is reset again (r2) two seconds after the first reset. With the second reset, the 4-20 mA standard range output S6 is lowered. Themicroprocessor20 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 themicroprocessor20 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 themicroprocessor20 stops.
More specifically, when two seconds have passed after the second reset, thewatchdog timer31 detects the failure in themicroprocessor20; 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 themicroprocessor20 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 themicroprocessor20 stops.
After elimination of the failure in themicroprocessor20 and a release of the reset (r0) by thetransmitter5, thetransmitter5 returns to the normal state; thewatchdog timer31 is reset periodically at the predetermined timing; the 4-20 mA standard range output S6 takes a normal value; themicroprocessor20 returns to the normal state; and the flag is brought into the off-state.
More specifically, after elimination of the failure in themicroprocessor20 and a release of the reset (r0), thetransmitter5 returns to the normal state; the diagnosis signal S13 (WDTCL) is sent periodically to thewatchdog timer31 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 ofFIG. 6 will be described in detail with reference toFIG. 8.FIG. 8 is a diagram showing timings of waveforms when conducting the test in the embodiment ofFIG. 6. InFIG. 8, elements identical with those shown inFIG. 7 are denoted by the same reference numerals to omit the descriptions therefor.
Shown inFIG. 8A is a waveform showing the 4-20 mA standard range output S6; shown inFIG. 8B is a value of a RAM (RAM count) of themicroprocessor20; shown inFIG. 8C is a value of the EEPROM of the microprocessor20 (EEPROM count); and shown inFIG. 8D is a state of the diagnosis signal S13 (WDTCL) sent to thewatchdog timer31.
When starting up themicroprocessor20, 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 themicroprocessor20. 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 toFIG. 8, thetransmitter5 is in the normal state before the time t1. The 4-20 mA standard range output S6 takes the normal value; the RAM count becomes 0; the EEPROM count becomes 0; and the diagnosis signal WDTCL is normal.
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, themicroprocessor20 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 themicroprocessor20 is released.
At the time t13, themicroprocessor20 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 themicroprocessor20 is released.
At the time t15, the 4-20 mA standard range output S6 is set above the 4-20 mA range to stop themicroprocessor20. The EEPROM count remains at 3.
At the time t16, the test is terminated, and thetransmitter5 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, thetransmitter5 releases the reset. After that, thetransmitter5 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, thetransmitter5 is restored to operation when thetransmitter5 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 ofFIG. 8 operates stably.
Though the test for checking the malfunction in the detection processing unit constituting themicroprocessor20 is described in the foregoing embodiment, it is possible to modify the embodiment for conducting the test for other detection processing units such as thegate array30 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 terminal7 controls the switching unit in the foregoing embodiments, it is possible to achieve the same effect by controlling the switching unit from upstream of thetransmitter5.
Also, though the communication terminal7 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 thedistributor1 and controls thetransmitter5.
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.