CN107305373B - Pressure sensor and control system - Google Patents
Pressure sensor and control system Download PDFInfo
- Publication number
- CN107305373B CN107305373B CN201611037168.5A CN201611037168A CN107305373B CN 107305373 B CN107305373 B CN 107305373B CN 201611037168 A CN201611037168 A CN 201611037168A CN 107305373 B CN107305373 B CN 107305373B
- Authority
- CN
- China
- Prior art keywords
- setting
- communication
- pressure sensor
- pressure
- module
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0218—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
- G05B23/0221—Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24065—Real time diagnostics
Abstract
A kind of pressure sensor, comprising one to sense ambient pressure and be converted to the pressure sensitive module of a pressure data, the processing module that one work measures mode or an advanced mode one, one receives operation so that processing module to be switched to the input module of the advanced mode, one memory module and a display module to communication interface, an one communication setting data of storage with a control host communication.And processing module work is in the mode of measurement, display module is enabled to show pressure data and communication setting data, and processing module work is in advanced mode, it can be according to the input signal from input module, control display module shows communication setting data corresponding with input signal, and the communication setting data are changed according to the input signal, and communicated with control host with the communication setting data after changing.
Description
Technical field
The present invention relates to a kind of pressure sensors, more particularly to a kind of pressure sensor that can show communication setting data
And control system.
Background technique
MODBUS communications protocol is a kind of common communications protocol of Industry Control, defines a kind of communication package of standard
Format, rather than a kind of mechanics of communication, earliest MODBUS communications protocol be used in PLC (can program logic controller, hereinafter referred to as
PLC on), many industrial control equipments gradually also start using a kind of communication format of the MODBUS as standard.MODBUS is logical
News mode mainly includes the RTU mode indicated using binary mode and the ascii mode for using ASCII character, the two difference
Only it is that division format is different (ASCII is transmitted using character code mode).And in the hardware controls of low order, for example, by using
This communications protocol transmitted in a binary fashion of the RTU mode of the most-often used MODBUS of the hardware that RS485 is electrically standardized,
Because must have an equipment as main control end in the multiple equipment of RS485 electrical property code requirement parallel connection, and by the main control end to other
It communicated, controlled as the equipment of controlled end, and MODBUS agreement itself also has main control end (master) and controlled end
(slave) framework.
In addition, the PLC of existing unused MODBUS communications protocol is passed by the multiple transmission ports of setting and multiple pressure
Sensor is correspondingly connected with, and to receive the pressure value from each pressure sensor, and the display of existing pressure sensor is only shown
The pressure value and preset pressure set points measured.Consequently when the pressure sensor quantity to connect with PLC becomes more
When, PLC just must be provided with more transmission ports, leads to the increase of PLC volume and route more shape is complicated.So if pressure can be allowed to pass
Sensor is applicable in RS485 and electrically standardizes and communicated using above-mentioned MODBUS communications protocol with PLC, will effectively reduce the number of PLC's
Route and volume.Therefore, when pressure sensor is online with PLC for the first time, in order to manually set pressure sensor, make it
Communication setting data can match and online success with PLC, and pressure sensor need to have and can be set manually and show communication
Set the function of data.
Summary of the invention
It is suitable for MODBUS communications protocol the purpose of the present invention is to provide one kind and can be set manually and show communication
Set the pressure sensor of data and the control system comprising the pressure sensor.
The pressure sensor of invention can control host communication with one, and include: a pressure sensitive module, to
Sensing ambient pressure is simultaneously converted to a pressure data;One processing module is electrically connected the pressure sensitive module to receive the pressure
Data, and work and measure mode or an advanced mode one;One input module is electrically connected the processing module, and receives operation
To generate a setting signal, and the processing module according to the setting signal by the measurement pattern switching to the advanced mode;One is logical
Communication interface is electrically connected the processing module, to the control host electric coupling to communicate;One memory module, being electrically connected should
Processing module, and store a communication setting data;And a display module, it is electrically connected the processing module, and the processing module work
Make in the measurement mode, the display module can be enabled to show the pressure data and the communication setting data, and the processing module work
Make in the advanced mode, which it is aobvious to control the display module according to the input signal from the input module
Show the communication setting data corresponding with the input signal, and the communication setting data are changed according to the input signal, and with
The communication setting data after change are communicated with the control host.
In one embodiment of this invention, which includes a setting key and a selection key group, the processing module work
Make in the measurement mode, the setting key is to generate the setting signal, which works in the advanced mode, the choosing
It selects key group and sequentially shows a variety of scheduled communication setting data to control the display module, and the setting key is aobvious to choose this
Show one of communication setting data that module is shown.
In one embodiment of this invention, which has one first display unit, one second display unit and a third
Display unit, the processing module work in the measurement mode, which enables first display unit show the pressure data, enable
Second display unit shows a pressure set points, and the communication for enabling the third display unit show that the pressure sensor uses instantly is set
Fixed number evidence, the processing module work in the advanced mode, which enables first display unit show and the input signal
The corresponding communication setting data enable second display unit show unit corresponding with data shown by first display unit or name
Claim.
In one embodiment of this invention, which includes a communication station number, a transmission rate, a transmission lattice
Formula and/or a communication mode.
In one embodiment of this invention, which further includes an output section, the component packet which has
Include following any one of them combination: the first combination: one first output module;Second combination a: analog output module;Third group
It closes: one first output module and one second output module;4th combination: one first output module and an analog output module;The
Five combinations: one first output module, one second output module and an analog output module;And the 6th combination: several output modules
And several analog output modules.
In one embodiment of this invention, which uses MODBUS communications protocol, and the communication mode is RTU
Mode or ascii mode, and the communication mode uses several function codes, and the function code distinctly represents station number setting, one
At present when pressure value, a unit value, a scale, a switch motion mode, a switch motion pattern, an on-off effect
Between, a backlight color selection, one answer difference setting, a power saving setting, one display fine setting scope, a transmission rate setting, one transmission
Format setting, a transmission information format, factory-said value reply, operating point setting, a switch state, locking key function setting
Value, a pressure Class, a switch category setting, a display refresh time setting value, a zero function, a pressure-sensing component are different
Normal detection state or a RS-485 line anomalies detection state.
In addition, a kind of control system of the present invention includes the above-mentioned pressure sensor and a control host, control master
Machine includes: a communication unit, to the communication interface electric coupling with the pressure sensor to communicate;And a processing unit, electricity
Property connect the communication unit, and by the communication unit send one and read instruction and give the pressure sensor, enable the pressure sensor
One data of passback are instructed according to the reading, or a write instruction is sent by the communication unit and gives the pressure sensor, enable the pressure
A data are written according to the write instruction in force snesor.
In one embodiment of this invention, which has several, and the control host reads the pressure sensing
The communication setting data of device simultaneously record, and according to the communication setting data of each pressure sensor, pass through the communication list
Member assigns different instruction to the pressure sensor, and the pressure sensor is enabled to execute different movements according to different instruction.
In one embodiment of this invention, the communications protocol between the pressure sensor and the control host is to use
MODBUS, and its communication mode is RTU mode or ascii mode.
In one embodiment of this invention, which uses several function codes, and the function code distinctly represents a station
Number setting, a current pressure value, a unit value, a scale, a switch motion mode, a switch motion pattern, one open
Close the reaction time, a backlight color selects, one answers difference setting, power saving setting, a display fine setting scope, a transmission rate to set
Fixed, transformat setting, a transmission information format, factory-said value reply, operating point setting, a switch state, a locking key
Function setting value, a pressure Class, a switch category setting, a display refresh time setting value, zero a function, a feeling of stress
Survey component exception detection state or a RS-485 line anomalies detection state.
Beneficial effect of the invention is: by the display module of pressure sensor it can be seen that pressure sensor itself
Communication setting data (such as: communication station number), and operator can adjust the communication setting data by input module, in order to press
When force snesor first time is with control mainframe on-line, operator can be by the communication setting number for manually setting pressure sensor
According to, make pressure sensor and control host success it is online.
Detailed description of the invention
Fig. 1 is a schematic diagram of a first embodiment of control system of the present invention.
Fig. 2 is the appearance diagram for the pressure sensor that the first embodiment has.
Fig. 3 is a circuit block diagram of the first embodiment.
Fig. 4 is an operational flowchart of the pressure sensor of the first embodiment.
Fig. 5 is an operation chart of the step S109 to S113 such as Fig. 4.
Fig. 6 is a schematic diagram of a second embodiment of control system of the present invention.
Fig. 7 is a schematic diagram of a 3rd embodiment of control system of the present invention.
Fig. 8 is a schematic diagram of a fourth embodiment of control system of the present invention.
Fig. 9 is a schematic diagram of one the 5th embodiment of control system of the present invention.
Specific embodiment
The following describes the present invention in detail with reference to the accompanying drawings and embodiments.
Before the present invention is described in detail, it shall be noted that in the following description content, similar component is with identical
Number indicate.
Refering to fig. 1 to Fig. 3, in one embodiment of the invention, control system 100 include by a RS485 transmission line 200 simultaneously
A control host 3 and multiple pressure sensors 1 for connection.Wherein, control host 3 is as a main control end (Master), and pressure passes
Sensor 1 is and to control host 3 by a communication interface, such as RS485, and use MODBUS as a controlled end (Slave)
Communications protocol and the pressure sensor 1 communicate.
Refering to Fig. 2 and Fig. 3, pressure sensor 1 includes a processing module 10, an input module 11, a display module 12, one
Pressure sensitive module 13, a power circuit 14, an output section 15, a communication interface 16 and a memory module 17.
Processing module 10 is the control circuit being set to inside pressure sensor 1, is electrically connected input module 11, display
Module 12, pressure sensitive module 13, power circuit 14, output section 15, communication interface 16 and memory module 17, and can work one
Measurement mode or an advanced mode.
Input module 11 includes a setting key 111 and a selection key group 113 (such as Fig. 2), when the work of processing module 10 is being measured
When survey mode, which receives manual operation to generate a setting signal to processing module 10, makes 10 basis of processing module
The setting signal has such as an advance key and back spacer by the measurement pattern switching to the advanced mode, the selection key group 113,
And when the work of processing module 10 is in advanced mode, the selection key group 113 in display module sequentially to show forward or backward
A variety of scheduled communication setting data in choose one of communication setting data.The communication setting data include an operating office
Number, a transmission rate, a transformat (frame) or a communication mode (communication protocol).Communicate station number
Range is 0~255, and transmission rate includes 19200 or 9600 bit/second, and transformat includes n81, E81 or 081, and communication mode is then
Using ASCII the or RTU communication mode of MODBUS communications protocol.And processing module 10 will be according to the communication setting data being selected
It is communicated with control host 3.
Communication interface 16 is led to send the data that the one of the transmission of processing module 10 meets Modbus communications protocol to control
Machine 3, or receive and one meet the instruction of Modbus communications protocol to processing module 10, in the present embodiment from control host 3
In, communication interface 16 is RS485 connector.Memory module 17 is to store the communication setting data.Supplementary explanation, other
A kind of microprocessor in embodiment using built-in memory function also belongs to the applicable technology of the present invention, not with the circuit of Fig. 3
For limitation.
Pressure sensitive module 13 to sense ambient pressure and be converted to a pressure data and be supplied to processing module 10, with
The pressure data is digitized by processing module 10.12 electrically connected processing module 10 of display module, and there is one first display
Portion 121, one second display unit 122 and a third display unit 123 (such as Fig. 2), and under measurement mode, the output of processing module 10 should
Pressure data makes to show the pressure data to first display unit 121, meanwhile, second display unit 122 to show one by
The pressure set points that module 10 provides are managed, which is provided by processing module 10 to show and be the pressure
The communication setting data currently in use of sensor 1 (comprising communication station number, transmission rate, transformat or communication mode, and
Those data can be set to show or only show one of them in turn by third display unit 123 for example with module 10 processed), and
Under advanced mode, processing module 10 enables first display unit 121 show communication setting data, and user passes through operation input at this time
Module 11 can change the communication setting data of the first display unit 121 display, and processing module 10 enables the second display unit 122 show
The unit or title of data shown by first display unit 121, and processing module 10 will be according to the communication setting number after change
It is communicated according to control host 3.
Controlling host 3 has a processing unit 30, a display unit 31, an input unit 32,33, one electricity of a transmission unit
Resource loop 34 and a communication unit 36, and communication unit 36 is via the RS485 transmission line 200 and the respectively pressure sensor 1 of Fig. 1
16 electric coupling of communication interface, therefore the processing unit 30 for controlling host 3 can transmit instructions to the pressure by communication unit 36
Sensor 1 enables the pressure sensor 1 according to the relevant movement of instruction execution received, in the present embodiment, communication unit 36
It is RS485 connector.Control host 3 can be (but are not limited to) one can program logic controller (PLC), input unit 32 for
Family is input operation instruction, and display unit 31 watches operating result for user, and electric power loop 34 supplies electricity to electricity to supply the direct current of 24V
Source circuit 14.In other embodiments, it is also possible to which an extraneous power supply (not shown) supplies electricity to power circuit 14, not with the circuit of Fig. 3
For limitation.
The output section 15 of pressure sensor 1 has one first output module 151, one second output module 152 and a simulation
Output module 153, and the transmission unit 33 for controlling host 3 has and the first output module 151, the second output module 152 and mould
Quasi- corresponding one first input interface 331 of output module 153, one second input interface 332 and a simulation input interface 333.
Wherein, the first output module 151 is electrically connected the first input interface 331, to transmit the numerical data for representing ON/OFF,
Such as if pressure sensor 1 includes a switch block, and under measurement mode, when the pressure value (display that pressure sensor 1 measures
In the first display unit 121) when being greater than pressure set points (being shown in the second display unit 122), pressure sensor 1 can control switch group
Part opens or closes, and the corresponding ON/OFF numerical data for generating a representation switch component and opening or closing, and passes through the first output
Module 151 sends control host 3 to;Similarly, if pressure sensor 1 also includes second switch block, the second output
Module 152 is electrically connected the second input interface 332, represents what second switch block opened or closed to transmit another pen
The numerical data of ON/OFF gives control host 3, it follows that pressure sensor 1 may include more than two switch blocks, and
By output module corresponding with the switch block quantity, by representing, the ON/OFF that the switch block opens or closes is digital
Data are corresponding to send control host 3 to;Analog output module 153 is electrically connected simulation input interface 333, above-mentioned to transmit
Pressure data (such as 4~20mA of 1~5V of analog voltage or analog current etc.).
In the present embodiment, the communication unit 36 of control host 3 is electrically connected by RS485 transmission line 200 as shown in Figure 1
The communication interface 16 of pressure sensor 1.Whereby, the processing unit 30 for controlling host 3 can send one by communication unit 36 and read
The pressure sensor 1 is given in instruction, enables pressure sensor 1 read data to the control host 3 passback one according to reading instruction, or logical
It crosses one write instruction of the communication unit 36 transmission and gives the pressure sensor 1, the pressure sensor 1 is enabled to be written according to the write instruction
One data are in the buffer or memory module 17 into the processing module 10 of pressure sensor 1, and pressure sensor 1 can return one
Whether write-in confirmation message notice control host 3 completes write activity.
Refering to Fig. 4 and Fig. 5, the operating process of pressure sensor 1 includes: that control host 3 and pressure sensor 1 open power supply
(step S100);And after pressure sensor 1 opens power supply (when comprising using for the first time) every time, processing module 10 can all be set again
The communications protocol parameter (step S101) of level pressure force snesor 1 itself, the parameter are usually that default value when dispatching from the factory (makes for the first time
Used time) or last time shutdown before setting value, such as represent use MOSBUS communications protocol parameter;It is (logical to set station number value itself
The setting value before default value 1 or last time shutdown when being often factory) (step S102);Set transmission rate value itself (usually
The setting value before default value or last time shutdown when factory, such as 19200/per second) (step S103);Setting transmission lattice itself
Formula (setting value before default value or last time shutdown when usually dispatching from the factory, such as n81) (step S104), setting communication mould itself
Formula (setting value before default value or last time shutdown when usually dispatching from the factory, such as RTU or ASCII) (step S105), and pressure
After sensor 1 is opened, processing module 10 is default work in measurement mode, and receives the number pressure that pressure sensitive module 13 transmits
According to, therefore under measurement mode, processing module 10 enables the first display unit 121 of display module 12 show pressure data (i.e. at present
The pressure value measured), it enables the second display unit 122 show pressure set points, third display unit 123 is enabled to show 1 mesh of pressure sensor
(comprising communication station number, transmission rate, transformat and/or communication mode, and those information can be by for preceding communication setting data
Processing module 10 is set to for example to show or only show one of them in turn), therefore under measurement mode, by display module 12
The information of display, operator be apparent that the communication station number of pressure sensor 1, transmission rate, transformat and/or
Communication mode;Then, pressure sensor 1 (step S106) is given in control 3 send instructions of host (commands).
Then, control host 3 judges whether pressure sensor 1 returns data corresponding with instruction or message, is with judgement
No online success (step S107), if success, control host 3 persistently communicates instructions to pressure sensor 1 (step S108).If connection
Machine failure, i.e. pressure sensor 1 do not return data corresponding with instruction or message, such as the transmission speed that pressure sensor 1 is set
The passbacks of pressure sensor 1 different or multiple from control host 3 of rate, transformat and/or communication mode are from same station number
Data or message, for example, it is online at the beginning when, have 5 pressure sensors 1 with control host 3 connection and all have identical station number,
5 data or message from same station number will be received by then controlling host, and have no way of recognizing its source, at this point, operator is
The communication setting data of pressure sensor 1 need to be manually adjusted by the input module 11 of pressure sensor 1.
Therefore, for the pressure sensor 1 for needing to set communication setting data, operator pins pressure sensor 1
Setting key 111 is greater than 5 seconds (such as step S109 of Fig. 5), setting signal of the meeting basis of processing module 10 from setting key 111, from
Pattern switching is measured to advanced mode, and as shown in Fig. 5 step S109, under measurement mode, 121 script of the first display unit is aobvious
Show pressure value, such as 0,122 script of the second display unit is the pressure value for showing setting, such as 500.Then, entering advanced mould
After formula, as shown in the step S110 of Fig. 4 and Fig. 5, operator can manually adjust communication setting data by selection key group 113,
That is, processing module 10 can assist operator to manually set data by selection key group 113 at this time, such as with selection key group 113
Station number value is manually set, such as clicks setting key (SET) 111, processing module 10 enables the display of the second display unit 122, and " ld represents station
Number, station number value is manually set with selection key group 113 again at this time, such as the first display unit 121 show the station number value that originally set as
1, advance key once then station number value+1 is pressed, back spacer once then station number value -1 is pressed, and so on, until the first display unit
121 display operation personnel want the station number value of setting, and operator clicks setting key 111 again, and processing module 10 is that basis comes from
The input signal of input module 11 completes station number setting.
Then, such as the step S111 of Fig. 4 and Fig. 5, the second display unit 122 shows that " rAt " represents the unit of transmission rate, this
When, operator can choose key group 113 and manually set transmission rate value (step S111), such as press advance key, and first is aobvious
Show that portion 121 shows next transmission rate (such as 96 (representing 9600 bit/second)), presses back spacer, the display of the first display unit 121
A upper transmission rate (such as 192 (representing 19200 bit/second)), and the transmission speed for wanting setting is shown in the first display unit 121
When rate, then setting key 111 is clicked, processing module 10 is to complete transmission rate according to the input signal from input module 11 to set
It is fixed.
Then, such as the step S112 of Fig. 4 and Fig. 5, the second display unit 122 shows that " For " represents transformat, operates at this time
Personnel can choose key group 113 and manually set transformat (step S112), such as press advance key or back spacer always, and first is aobvious
Show that portion 121 can sequentially show that different transpost formats, such as the first display unit 121 sequentially show " n81 ", " EUE ", " odd " respectively
N81, E81 and 081 3 kinds of transformats are represented, therefore, to set E81 transformat, are then shown in the first display unit 121
When EUE, setting key 111 is pressed, processing module 10 is that transformat setting is completed according to the input signal from input module 11.
Then, such as the step S113 of Fig. 4 and Fig. 5, the second display unit 122 shows that " nod " represents communication mode, operates at this time
Personnel can choose key group 113 and manually set communication mode (step S113), such as press advance key or back spacer, the first display
Portion 121 display " rtu " can represent RTU mode in turn, or display " ASC " represents ascii mode, therefore to set RTU mode,
Then when the first display unit 121 shows " rtu ", setting key 111 is pressed, processing module 10 is then according to from the defeated of input module 11
Enter signal and completes communication mode setting.
Certainly, above-mentioned setting procedure S110~S113 is not necessarily to whole execution, can also optionally only carry out wherein
One or two step, if as long as such as execute step S111 set transmission rate, pressure sensor 1 enter it is advanced
It is (i.e. in step s 110) continuous by setting key 111 twice after mode, so that the second display unit 122 is shown that " rAt " (indicates entry into biography
Defeated rate set-up function), so that it may carry out transmission rate setting.After the completion of setting, pressure sensor 1 can automatically switch the amount of returning to
Survey mode, the third display unit 123 of display module 12 can show the updated communication setting data of pressure sensor 1 (packet at this time
The station number containing communication, transmission rate, transformat and/or communication mode, and those information can be configured to for example show in turn
Or only show one of them).Then, then control host 3 is enabled to repeat above-mentioned steps S106, attempts the pressure with reset
Sensor 1 is again online, if still can not be online, operator optionally repeats the above steps S109~S113, until control
After host 3 and the success of pressure sensor 1 are online, control host 3 can persistently communicate instructions to relevant pressure sensor 1.Also
That is, after controlling host 3 and the pressure sensor 1 success is online, since control host 3 has learnt each pressure sensor 1
Station number, therefore control the sustainable pressure sensor 1 for communicating instructions to corresponding station number of host 3, or even change pressure sensor 1
Station number.
In the present embodiment, the function code used in RTU communication mode of pressure sensor 1 is as follows referring to table.
The abnormality code used in RTU communication mode of pressure sensor 1 is as follows.
Code | Explanation |
01H | Read/write mistake |
02H | Function code mistake |
03H | Data content mistake or setting value go beyond the scope |
Relevant control presented below in RTU communication mode instructs and several examples of data format, check code therein
It is using cyclic redundancy codes (Cyclic redundancy code check, abbreviation CRC) form.
Example one: the format content for the reading instruction (Read command) that control host 3 transmits is as follows.
In example one, the format content for the reading data that pressure sensor 1 responds is as follows.
Example two: the format content for the write instruction that control host 3 transmits is as follows.
In example two, the format content for the write-in data (Write command) that pressure sensor 1 responds is as follows.
Example three: the format content of 1 response abnormality data of pressure sensor is as follows.
Example four: the format content of the read/write code of control host 3 is as follows.
Read/write code | Movement |
00H | (all pressure switch parameters are written) in broadcast capability |
03H | Read pressure parameter |
06H | Pressure parameter is written |
10H | Single pressure switch multiple parameters are written |
Example five: in the example for the pressure value that control host 3 reads pressure sensor 1, host 3 is controlled to pressure sensing
The format content for the data that device 1 is sent is as follows.
Communicate station number | Read code | Function code | Data stroke count | Check code |
01H | 03H | 0001H | 0001H | D5CAH |
In example five, pressure sensor 1 corresponds to the transmission data for controlling host 3 and the format content of the data returned such as
Under.
Communicate station number | Read code | Data Byte number | Data | Check code |
01H | 03H | 02H | 0001H | 7984H |
Example six: in the example for the station number that control host 3 sets pressure sensor 1, host 3 is controlled to pressure sensor 1
The format content of transmission is as follows.
In example six, the format content that pressure sensor 1 corresponds to the data that control host 3 is sent and returns is as follows.
Communicate station number | Code is written | Function code | Data | Check code |
01H | 06H | 0000H | 0001H | 480AH |
Example seven;Assuming that the setting Data Out of Range that control host 3 is sent to pressure sensor 1, controls host 3 to pressure
The format content for the data that force snesor 1 is sent is as follows.
Communicate station number | Code is written | Function code | Data | Check code |
01H | 06H | 0000H | 01FFH | C81AH |
In example seven, the data format that pressure sensor 1 corresponds to the data that control host 3 is sent and returns is as follows, when
When the reply of pressure sensor 1 is abnormality code, MSB can be set as to 1, therefore the code being written is 86H.
Communicate station number | Code is written | Abnormality code | Check code |
01H | 86H | 03H | 0261H |
In the present embodiment, the function code used in ASCII communication mode of pressure sensor 1 is as follows referring to table.
The abnormality code used in ASCII communication mode of pressure sensor 1 is as follows.
Relevant control presented below in ASCII communication mode instructs and several examples of data format, inspection therein
Code is using longitudinal redundancy code (Longitudinal Redundancy Check, abbreviation LRC).
Example eight: the format content for the reading instruction that control host 3 transmits is as follows.
In example eight, the format content for the reading data that pressure sensor 1 responds is as follows, and N is positive integer.
Example nine: the format content for the write instruction that control host 3 transmits is as follows.
In example nine, the format content for the write-in data that pressure sensor 1 responds is as follows.
Example ten: when being abnormal situation, the format content for the abnormal data that pressure sensor 1 is sent out is as follows.
Example 11: the format content of the read/write code of control host 3 is as follows.
Read/write code | Movement |
30H30H | (all pressure switch parameters are written) in broadcast capability |
30H33H | Read pressure parameter |
30H36H | Pressure parameter is written |
31H30H | Single pressure switch multiple parameters are written |
Example 12: in the example for the pressure value that control host 3 reads pressure sensor 1, control host 3 is passed to pressure
The format content for the data that sensor 1 is sent is as follows.
In example 12, the format content of the data that the corresponding control host 3 of pressure sensor 1 is sent and the data returned
It is as follows.
Example 13: control host 3 is set in the example of communication station number of pressure sensor 1, and control host 3 is passed to pressure
The format content for the data that sensor 1 is sent is as follows.
In example 13, the format content of the data that the corresponding control host 3 of pressure sensor 1 is sent and the data returned
It is as follows.
Example 14;Assuming that the setting Data Out of Range that control host 3 is sent to pressure sensor 1, such as control master
The format content of machine 3 to the data that pressure sensor 1 is sent is as follows.
In example 14, the format content of the data that the corresponding control host 3 of pressure sensor 1 is sent and the data returned
It is as follows, when it is abnormality code that pressure sensor 1, which is replied, MSB can be set as to 1, therefore the code being written is 38H36H.
Initial code | Communicate station number | Code is written | Abnormality code | Check code | End code |
3AH | 30H31H | 38H36H | 30H33H | 37H36H | 0DH0AH |
Refering to Fig. 6, the second embodiment of the present invention is identical as component connection relationship and action principle that Fig. 3 has, different
, the output section 15 of pressure sensor 1 ' has the first output module 151, but without the second output module 152 and simulates defeated
Module 153 out.
Fig. 7 is that the third embodiment of the present invention is identical as the component connection relationship and action principle that Fig. 3 has, different
It is that the output section 15 of 1 〞 of pressure sensor has the first output module 151 and the second output module 152, but without simulation output
Module 153.
Fig. 8 is that the fourth embodiment of the present invention is identical as the component connection relationship and action principle that Fig. 3 has, different
It is that the output section 15 of 1 〞 ' of pressure sensor has the first output module 151 and analog output module 153, but exports without second
Module 152.
Fig. 9 is that the fifth embodiment of the present invention is identical as the component connection relationship and action principle that Fig. 3 has, different
It is that the output section 15 of 1 〞 〞 of pressure sensor has analog output module 153, but exports without the first output module 151 and second
Module 152.Other embodiments may also comprise several output modules and several analog output modules.
In conclusion pressure sensor 1 and control system 100 of the invention at least have effects that it is following: passed by pressure
The display module 12 of sensor 1, operator it can be seen that pressure sensor 1 itself communication setting data (such as: communication station number), and
The communication setting data that pressure sensor 1 itself can be adjusted by input module 11 enable pressure sensor 1 and control host 3
It is successfully established online, therefore the purpose of the present invention can be reached really.
Claims (9)
1. a kind of pressure sensor, can be with a control host communication, it is characterised in that:
The pressure sensor includes:
One pressure sensitive module, to sense ambient pressure and be converted to a pressure data;
One processing module is electrically connected the pressure sensitive module to receive the pressure data, and works and measure mode or one one
Advanced mode;
One input module is electrically connected the processing module, and receives operation to generate a setting signal, and the processing module according to
The setting signal is by the measurement pattern switching to the advanced mode;
One communication interface is electrically connected the processing module, to the control host electric coupling to communicate;
One memory module is electrically connected the processing module, and stores a communication setting data;And
One display module is electrically connected the processing module, and processing module work can enable the display mould in the measurement mode
Block shows the pressure data and the communication setting data, and the processing module works in the advanced mode, the processing module meeting
According to the input signal from the input module, controls the display module and show the communication setting corresponding with the input signal
Data, and the communication setting data are changed according to the input signal, and with communication setting data and the control after change
Host is communicated;
Wherein, which includes a setting key and a selection key group, which works in the measurement mode, this sets
Key is determined to generate the setting signal, which works in the advanced mode, and the selection key group is to control the display
Module sequentially shows a variety of scheduled communication setting data, and the one of which that the setting key is shown to choose the display module
Communication setting data.
2. pressure sensor according to claim 1, it is characterised in that: the display module has one first display unit, one
Second display unit and a third display unit, the processing module work in the measurement mode, which enables first display
Portion shows the pressure data, and second display unit is enabled to show a pressure set points, and the third display unit is enabled to show the pressure sensing
The communication setting data that device uses instantly, the processing module work in the advanced mode, which enables this first aobvious
The portion of showing shows the communication setting data corresponding with the input signal, enables second display unit show and shows with first display unit
Registration is according to corresponding unit or title.
3. pressure sensor according to claim 1, it is characterised in that: the communication setting data include one communication station number,
One transmission rate, a transformat and/or a communication mode.
4. pressure sensor according to claim 1, it is characterised in that: the pressure sensor further includes an output section, should
The component that output section has includes following any one of them combination:
First combination: one first output module;
Second combination a: analog output module;
Third combination: one first output module and one second output module;
4th combination: one first output module and an analog output module;
5th combination: one first output module, one second output module and an analog output module;And
6th combination: several output modules and several analog output modules.
5. pressure sensor according to claim 3, it is characterised in that: the pressure sensor is using MODBUS communication association
View, and the communication mode is RTU mode or ascii mode, and the communication mode uses several function codes, the function code point
Station number setting, a current pressure value, a unit value, a scale, a switch motion mode, a switch motion are not represented
Pattern, an on-off effect time, backlight color selection, one answer difference setting, power saving setting, a display fine setting scope, one to pass
Defeated rate setting, transformat setting, a transmission information format, a factory-said value is replied, an operating point is set, a switch shape
State, a locking key function setting value, a pressure Class, a switch category setting, a display refresh time setting value, a zero function
Energy, a pressure-sensing component exception detection state or a RS-485 line anomalies detection state.
6. a kind of control system, comprising as described in any claim in claim 1 to 5 the pressure sensor and a control
Host processed, it is characterised in that:
The control host includes:
One communication unit, to the communication interface electric coupling with the pressure sensor to communicate;And
One processing unit is electrically connected the communication unit, and sends a reading instruction by the communication unit and give the pressure sensing
Device enables the pressure sensor instruct one data of passback according to the reading, or sends a write instruction by the communication unit and give this
Pressure sensor enables the pressure sensor that a data are written according to the write instruction.
7. control system according to claim 6, it is characterised in that: the pressure sensor has several, and the control host
It reads the communication setting data of the pressure sensor and records, and according to the communication setting number of each pressure sensor
According to assigning different instruction to the pressure sensor by the communication unit, the pressure sensor enabled to hold according to different instruction
The different movements of row.
8. control system according to claim 6, it is characterised in that: between the pressure sensor and the control host
Communications protocol is to use MODBUS, and its communication mode is RTU mode or ascii mode.
9. control system according to claim 8, it is characterised in that: the communication mode uses a plurality of function codes, described
Function code respectively represents station number setting, a current pressure value, a unit value, a scale, a switch motion mode, one
Switch motion pattern, an on-off effect time, backlight color selection, one answer difference setting, power saving setting, a display fine tuning model
It encloses, transmission rate setting, transformat setting, a transmission information format, factory-said value reply, operating point setting, one
Switch state, a locking key function setting value, a pressure Class, a switch category setting, a display refresh time setting value, one return
Zero power energy, a pressure-sensing component exception detection state or a RS-485 line anomalies detection state.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2016102605120 | 2016-04-25 | ||
CN201610260512 | 2016-04-25 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107305373A CN107305373A (en) | 2017-10-31 |
CN107305373B true CN107305373B (en) | 2019-08-30 |
Family
ID=60150388
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611037168.5A Active CN107305373B (en) | 2016-04-25 | 2016-11-23 | Pressure sensor and control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107305373B (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10035387B2 (en) * | 2007-11-30 | 2018-07-31 | Volvo Lastvagnar Ab | Wheel-monitoring module |
US8482545B2 (en) * | 2008-10-02 | 2013-07-09 | Wacom Co., Ltd. | Combination touch and transducer input system and method |
CN201697747U (en) * | 2010-07-06 | 2011-01-05 | 北京昆仑海岸传感技术中心 | Pressure transmitter and pressure transmission module |
CN204228303U (en) * | 2014-07-31 | 2015-03-25 | 武汉松野智能仪表有限公司 | Intelligent digital pressure unit |
-
2016
- 2016-11-23 CN CN201611037168.5A patent/CN107305373B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107305373A (en) | 2017-10-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101685301B (en) | Embedded type state monitoring information adaptor capable of operating under complex working conditions of numerically-controlled machine tool and method thereof | |
CN107942957A (en) | Method and system for debugging process control hardware | |
US9645572B2 (en) | Device class information support for multi-option devices | |
CN102163055B (en) | Comprehensive intelligent check method of industrial distributed control system (DCS) | |
CN101132328A (en) | Real-time industry Ethernet EtherCAT communication controller | |
JPH0619922A (en) | Network field interface for production system | |
CN103905410A (en) | Multi-channel communication protocol converter capable of converting user-defined protocol to Modbus protocol | |
CN110262425A (en) | A kind of induction heating dcs | |
CN111736064A (en) | Multi-type signal online test method and system for PCB | |
CN107305373B (en) | Pressure sensor and control system | |
JPH03501913A (en) | Data transmission method between transmitter and receiver | |
CN100476778C (en) | Master module, function module, electronic device and identification data setting method thereof | |
JP6174768B1 (en) | Digital pressure gauge and control system | |
CN110221937A (en) | A kind of analytic method of communication between plates data | |
CN202210352U (en) | Remote controller and remote-controller testing device | |
CN105242592B (en) | The method and system of HART meter parameter are directly read by PROFIBUS PA active station | |
CN205656481U (en) | Pressure sensor and control system | |
CN102722975A (en) | Method and system for reading data of electricity meter based on PROFIBUS | |
TWI618995B (en) | Pressure sensor and control system | |
CN110955175A (en) | Method for communication between single chip microcomputer and PC | |
CN205281199U (en) | Redundant field bus IO controlling means | |
CN213715745U (en) | Intelligent frequency converter monitoring device | |
CN111308935B (en) | Automatic testing device and method for priority management product | |
CN211042424U (en) | Control system of civil intelligent gas meter controller function detection equipment | |
CN214372584U (en) | Intelligent sensor detection device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |