TWI618995B - Pressure sensor and control system - Google Patents
Pressure sensor and control system Download PDFInfo
- Publication number
- TWI618995B TWI618995B TW105134690A TW105134690A TWI618995B TW I618995 B TWI618995 B TW I618995B TW 105134690 A TW105134690 A TW 105134690A TW 105134690 A TW105134690 A TW 105134690A TW I618995 B TWI618995 B TW I618995B
- Authority
- TW
- Taiwan
- Prior art keywords
- communication
- module
- pressure sensor
- display
- data
- Prior art date
Links
- 238000004891 communication Methods 0.000 claims abstract description 138
- 238000012545 processing Methods 0.000 claims abstract description 70
- 238000005259 measurement Methods 0.000 claims abstract description 22
- 230000005540 biological transmission Effects 0.000 claims description 48
- 230000009471 action Effects 0.000 claims description 7
- 230000008878 coupling Effects 0.000 claims description 4
- 238000010168 coupling process Methods 0.000 claims description 4
- 238000005859 coupling reaction Methods 0.000 claims description 4
- 230000008859 change Effects 0.000 claims description 3
- 230000006870 function Effects 0.000 description 11
- 230000002159 abnormal effect Effects 0.000 description 6
- 230000005856 abnormality Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000035484 reaction time Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 1
- 125000004122 cyclic group Chemical class 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006386 memory function Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Landscapes
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
一種壓力傳感器,包含一用以感測外接壓力並轉換為一壓力資料的壓力感應模組,一工作在一量測模式或一進階模式的處理模組,一接受操作以將處理模組切換至該進階模式的輸入模組,一用以與一控制主機通訊的通訊介面、一儲存一通訊設定資料的記憶模組,及一顯示模組。且處理模組工作在量測模式時,令顯示模組顯示壓力資料及通訊設定資料,而處理模組工作在進階模式時,其會根據來自輸入模組的一輸入訊號,控制顯示模組顯示與輸入訊號對應的通訊設定資料,並根據該輸入訊號更改該通訊設定資料,並以更改後的該通訊設定資料與控制主機進行通訊。 A pressure sensor includes a pressure sensing module for sensing an external pressure and converting it into a pressure data, and a processing module operating in a measurement mode or an advanced mode, and accepting an operation to switch the processing module The input module to the advanced mode, a communication interface for communicating with a control host, a memory module for storing a communication setting data, and a display module. When the processing module works in the measurement mode, the display module displays the pressure data and the communication setting data, and when the processing module works in the advanced mode, it controls the display module according to an input signal from the input module. Displaying the communication setting data corresponding to the input signal, and changing the communication setting data according to the input signal, and communicating with the control host by using the changed communication setting data.
Description
本發明是有關於一種壓力傳感器,特別是指一種能顯示通訊設定資料的壓力傳感器及控制系統。 The invention relates to a pressure sensor, in particular to a pressure sensor and a control system capable of displaying communication setting data.
MODBUS通訊協定是一種工業控制常用的通訊協定,其定義了一種標準的通訊封包格式,而非一種通訊技術,最早MODBUS通訊協定是使用於PLC(可程式邏輯控制器,以下簡稱PLC)上,漸漸的許多工業控制設備也開始採用MODBUS作為一種標準的通訊格式。MODBUS通訊模式主要包括使用二進制方式表示的RTU模式以及使用ASCII碼的ASCII模式,兩者差異只在於部分格式不同(ASCII採用字元編碼方式傳送)。且在低階的硬體控制中,例如採用RS485電性規範的硬體設備最常使用MODBUS的RTU模式這種以二進制方式傳送的通訊協定,因為RS485電性規範要求並聯的多個設備中須有一設備做為主控端,並由該主控端對其他做為受控端的設備進行通訊、控制等,而MODBUS協定本身亦具有主控端(master)與受控端(slave)的架構。 MODBUS communication protocol is a communication protocol commonly used in industrial control. It defines a standard communication packet format instead of a communication technology. The earliest MODBUS protocol is used in PLC (programmable logic controller, hereinafter referred to as PLC), gradually Many industrial control devices are also beginning to adopt MODBUS as a standard communication format. The MODBUS communication mode mainly includes the RTU mode expressed in binary mode and the ASCII mode using ASCII code. The only difference is that some formats are different (ASCII is transmitted by character encoding). And in low-level hardware control, for example, hardware devices using the RS485 electrical specification most often use the MODBUS RTU mode, which is a binary communication protocol, because the RS485 electrical specification requires that one of the multiple devices connected in parallel The device is used as the main control terminal, and the main control terminal communicates and controls other devices as the controlled terminal, and the MODBUS protocol itself has the architecture of the master and the slave.
此外,以往未使用MODBUS通訊協定的PLC都是藉由設置多 個傳輸埠與多個壓力傳感器對應連接,以接收來自各個壓力傳感器的壓力值,且習知壓力傳感器的顯示器只顯示測得的壓力值及預設的壓力設定值。但如此一來,當要與PLC連接的壓力傳感器數量變多時,PLC就必須設置更多的傳輸埠,導致PLC體積增加且線路更形複雜。所以,若能讓壓力傳感器適用RS485電性規範並採用上述MODBUS通訊協定與PLC進行通訊,將能有效精減PLC的線路及體積。因此,在壓力傳感器第一次與PLC連線時,為了能夠手動設定壓力傳感器,使其通訊設定資料能與PLC相配合而連線成功,壓力傳感器需具備能夠被手動設定及顯示通訊設定資料的功能。 In addition, PLCs that have not used the MODBUS protocol in the past are all set up. The transmission port is connected to a plurality of pressure sensors to receive pressure values from the respective pressure sensors, and the display of the conventional pressure sensor displays only the measured pressure value and the preset pressure setting value. However, when the number of pressure sensors to be connected to the PLC is increased, the PLC must set more transmission ports, resulting in an increase in the volume of the PLC and a more complicated circuit. Therefore, if the pressure sensor can be applied to the RS485 electrical specification and communicate with the PLC using the above MODBUS communication protocol, the line and volume of the PLC can be effectively reduced. Therefore, when the pressure sensor is connected to the PLC for the first time, in order to be able to manually set the pressure sensor, the communication setting data can be successfully connected with the PLC, and the pressure sensor needs to be able to be manually set and display the communication setting data. Features.
因此,本發明之其中一目的,即在提供一種適用於MODBUS通訊協定且能被手動設定及顯示通訊設定資料的壓力傳感器及包含該壓力傳感器的控制系統。 Accordingly, it is an object of the present invention to provide a pressure sensor suitable for use in a MODBUS communication protocol and capable of manually setting and displaying communication setting data, and a control system including the pressure sensor.
於是,本發明的壓力傳感器能與一控制主機通訊,並包含:一壓力感應模組,用以感測外接壓力並轉換為一壓力資料;一處理模組,電性連接該壓力感應模組以接受該壓力資料,並工作在一量測模式或一進階模式;一輸入模組,電性連接該處理模組,並接受操作以產生一設定訊號,且該處理模組根據該設定訊號由該量測模式切換至該進階模式;一通訊介面,電性連接該處理模組,用以與該控制主機電耦接以通訊;一記憶模組,電性連接該處理模 組,並儲存一通訊設定資料;及一顯示模組,電性連接該處理模組,且該處理模組工作在該量測模式時,會令該顯示模組顯示該壓力資料及該通訊設定資料,而該處理模組工作在該進階模式時,該處理模組會根據來自該輸入模組的一輸入訊號,控制該顯示模組顯示與該輸入訊號對應的該通訊設定資料,並根據該輸入訊號更改該通訊設定資料,並且以更改後的該通訊設定資料與該控制主機進行通訊。 Therefore, the pressure sensor of the present invention can communicate with a control host, and includes: a pressure sensing module for sensing the external pressure and converting into a pressure data; and a processing module electrically connecting the pressure sensing module Receiving the pressure data and operating in a measurement mode or an advanced mode; an input module electrically connected to the processing module and receiving an operation to generate a setting signal, and the processing module is configured according to the setting signal The measurement mode is switched to the advanced mode; a communication interface is electrically connected to the processing module for electrically coupling with the control host for communication; and a memory module electrically connected to the processing mode And storing a communication setting data; and a display module electrically connected to the processing module, and when the processing module operates in the measurement mode, the display module displays the pressure data and the communication setting And the processing module controls the display module to display the communication setting data corresponding to the input signal according to an input signal from the input module, and according to an input mode, The input signal changes the communication setting data, and communicates with the control host by using the changed communication setting data.
在本發明的一實施例中,該輸入模組包含一設定鍵及一選擇鍵組,該處理模組工作在該量測模式時,該設定鍵用以產生該設定訊號,該處理模組工作在該進階模式時,該選擇鍵組用以控制該顯示模組依序顯示多種預定的通訊設定資料,且該設定鍵用以選取該顯示模組顯示的其中一種通訊設定資料。 In an embodiment of the invention, the input module includes a setting button and a selection button group. When the processing module operates in the measurement mode, the setting button is used to generate the setting signal, and the processing module works. In the advanced mode, the selection key group is used to control the display module to sequentially display a plurality of predetermined communication setting data, and the setting key is used to select one of the communication setting materials displayed by the display module.
在本發明的一實施例中,該顯示模組具有一第一顯示部、一第二顯示部及一第三顯示部,該處理模組工作在該量測模式時,該處理模組令該第一顯示部顯示該壓力資料,令該第二顯示部顯示一壓力設定值,令該第三顯示部顯示該壓力傳感器當下使用的該通訊設定資料,該處理模組工作在該進階模式時,該處理模組令該第一顯示部顯示與該輸入訊號對應的該通訊設定資料,令該第二顯示部顯示與該第一顯示器所顯示資料對應的單位或名稱。 In an embodiment of the present invention, the display module has a first display portion, a second display portion, and a third display portion. When the processing module operates in the measurement mode, the processing module The first display unit displays the pressure data, so that the second display unit displays a pressure setting value, so that the third display unit displays the communication setting data used by the pressure sensor, and the processing module operates in the advanced mode. The processing module causes the first display unit to display the communication setting data corresponding to the input signal, and causes the second display unit to display a unit or a name corresponding to the data displayed by the first display.
在本發明的一實施例中,該通訊設定資料包括一通訊 站號、一傳輸速率、一傳輸格式及/或一通訊模式。 In an embodiment of the invention, the communication setting data includes a communication Station number, a transmission rate, a transmission format, and/or a communication mode.
在本發明的一實施例中,該壓力傳感器還包括一輸出部,該輸出部具有的元件包括下列的其中任一種組合:第一組合:一第一輸出模組;第二組合:一類比輸出模組;第三組合:一第一輸出模組及一第二輸出模組;第四組合:一第一輸出模組及一類比輸出模組;第五組合:一第一輸出模組、一第二輸出模組及一類比輸出模組;及第六組合:複數個輸出模組及複數個類比輸出模組。 In an embodiment of the invention, the pressure sensor further includes an output portion having an element comprising any one of the following combinations: a first combination: a first output module; a second combination: an analog output a third combination: a first output module and a second output module; a fourth combination: a first output module and an analog output module; a fifth combination: a first output module, a a second output module and an analog output module; and a sixth combination: a plurality of output modules and a plurality of analog output modules.
在本發明的一實施例中,該壓力傳感器採用MODBUS通訊協定,且該通訊模式是RTU模式或ASCII模式,而且該通訊模式使用複數個功能碼,該等功能碼各別代表一站號設定、一目前壓力值、一單位值、一小數點位數、一開關動作模式、一開關動作型式、一開關反應時間、一背光顏色選擇、一應差設定、一省電設定、一顯示微調範圍、一傳輸速率設定、一傳輸格式設定、一傳輸資訊格式、一出廠值回復、一動作點設定、一開關狀態、一鎖鍵功能設定值、一壓力類別、一開關類別設定、一顯示更新時間設定值、一歸零功能、一壓力感測元件異常檢知狀態,或一RS-485線路異常檢知狀態。 In an embodiment of the invention, the pressure sensor adopts a MODBUS communication protocol, and the communication mode is an RTU mode or an ASCII mode, and the communication mode uses a plurality of function codes, and the function codes respectively represent a station number setting, a current pressure value, a unit value, a decimal point number, a switch operation mode, a switch action type, a switch reaction time, a backlight color selection, a difference setting, a power saving setting, a display fine adjustment range, A transmission rate setting, a transmission format setting, a transmission information format, a factory value reply, an action point setting, a switch state, a lock key function setting value, a pressure category, a switch category setting, and a display update time setting Value, a zero return function, a pressure sensing component abnormality detection state, or an RS-485 line abnormality detection state.
此外,本發明一種控制系統包含上述的該壓力傳感器以及一控制主機,該控制主機包括:一通訊單元,用以與該壓力傳感器的該通訊介面電耦接以通訊;及一處理單元,電性連接該通訊 單元,並通過該通訊單元發送一讀取指令予該壓力傳感器,令該壓力傳感器依據該讀取指令回傳一資料,或通過該通訊單元發送一寫入指令予該壓力傳感器,令該壓力傳感器依據該寫入指令寫入一資料。 In addition, a control system of the present invention includes the pressure sensor and a control host, the control host includes: a communication unit for electrically coupling with the communication interface of the pressure sensor for communication; and a processing unit, electrical Connect the communication And sending, by the communication unit, a read command to the pressure sensor, causing the pressure sensor to return a data according to the read command, or sending a write command to the pressure sensor through the communication unit, so that the pressure sensor A data is written in accordance with the write command.
在本發明的一實施例中,該壓力傳感器有複數個,且該控制主機讀取該等壓力傳感器的該通訊設定資料並記錄,並且根據每一壓力傳感器的該通訊設定資料,通過該通訊單元下達不同指令給該等壓力傳感器,令該等壓力傳感器依據不同指令執行不同動作。 In an embodiment of the invention, the pressure sensor has a plurality of, and the control host reads the communication setting data of the pressure sensors and records, and according to the communication setting data of each pressure sensor, passes through the communication unit. Different commands are issued to the pressure sensors, so that the pressure sensors perform different actions according to different instructions.
在本發明的一實施例中,該壓力傳感器以及該控制主機之間的通訊協定是採用MODBUS,且其通訊模式是RTU模式或ASCII模式。 In an embodiment of the invention, the communication protocol between the pressure sensor and the control host is MODBUS, and the communication mode is RTU mode or ASCII mode.
在本發明的一實施例中,該通訊模式使用複數個功能碼,該等功能碼各別代表一站號設定、一目前壓力值、一單位值、一小數點位數、一開關動作模式、一開關動作型式、一開關反應時間、一背光顏色選擇、一應差設定、一省電設定、一顯示微調範圍、一傳輸速率設定、一傳輸格式設定、一傳輸資訊格式、一出廠值回復、一動作點設定、一開關狀態、一鎖鍵功能設定值、一壓力類別、一開關類別設定、一顯示更新時間設定值、一歸零功能、一壓力感測元件異常檢知狀態或一RS-485線路異常檢知狀態。 In an embodiment of the invention, the communication mode uses a plurality of function codes, each of which represents a station number setting, a current pressure value, a unit value, a decimal point number, a switching operation mode, a switch action type, a switch reaction time, a backlight color selection, a difference setting, a power saving setting, a display fine adjustment range, a transmission rate setting, a transmission format setting, a transmission information format, a factory value reply, An action point setting, a switch state, a lock key function set value, a pressure category, a switch category setting, a display update time set value, a return to zero function, a pressure sensing element abnormality detection state, or an RS- 485 line abnormality detection status.
本發明的壓力傳感器及控制系統至少具有以下功效:透過壓力傳感器之顯示模組可得知壓力傳感器本身的通訊設定資料(如:通訊站號),且操作人員可藉由輸入模組調整該通訊設定資料,以便於壓力傳感器第一次與控制主機連線時,操作人員能夠藉由手動設定壓力傳感器的通訊設定資料,使壓力傳感器與控制主機成功連線。 The pressure sensor and the control system of the present invention have at least the following effects: the display module of the pressure sensor can know the communication setting data of the pressure sensor itself (for example, the communication station number), and the operator can adjust the communication by the input module. Set the data so that when the pressure sensor is connected to the control panel for the first time, the operator can manually set the pressure sensor's communication setting data to make the pressure sensor and the control host successfully connected.
1‧‧‧壓力傳感器 1‧‧‧ Pressure sensor
10‧‧‧處理模組 10‧‧‧Processing module
100‧‧‧控制系統 100‧‧‧Control system
11‧‧‧輸入模組 11‧‧‧Input module
111‧‧‧設定鍵 111‧‧‧Setting button
113‧‧‧選擇鍵組 113‧‧‧Selection key group
12‧‧‧顯示模組 12‧‧‧Display module
121‧‧‧第一顯示部 121‧‧‧First Display Department
122‧‧‧第二顯示部 122‧‧‧Second display
123‧‧‧第三顯示部 123‧‧‧ Third Display Department
13‧‧‧壓力感應模組 13‧‧‧ Pressure sensing module
14‧‧‧電源電路 14‧‧‧Power circuit
15‧‧‧輸出部 15‧‧‧Output Department
151‧‧‧第一輸出模組 151‧‧‧First output module
152‧‧‧第二輸出模組 152‧‧‧Second output module
153‧‧‧類比輸出模組 153‧‧‧ analog output module
16‧‧‧通訊介面 16‧‧‧Communication interface
17‧‧‧記憶模組 17‧‧‧Memory Module
3‧‧‧控制主機 3‧‧‧Control host
30‧‧‧處理單元 30‧‧‧Processing unit
31‧‧‧顯示單元 31‧‧‧Display unit
32‧‧‧輸入單元 32‧‧‧Input unit
33‧‧‧傳輸單元 33‧‧‧Transportation unit
331‧‧‧第一輸入介面 331‧‧‧ first input interface
332‧‧‧第二輸入介面 332‧‧‧Second input interface
333‧‧‧類比輸入介面 333‧‧‧ analog input interface
34‧‧‧電源迴路 34‧‧‧Power circuit
36‧‧‧通訊單元 36‧‧‧Communication unit
S100~S113‧‧‧步驟 S100~S113‧‧‧Steps
本發明之其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中:圖1是本發明控制系統的一第一實施例的一示意圖;圖2是該第一實施例具有的一壓力傳感器的外觀示意圖;圖3是該第一實施例的一電路方塊圖;圖4是該第一實施例之壓力傳感器的一操作流程圖;圖5是如圖4的步驟S109至S113的一操作示意圖;圖6是本發明控制系統的一第二實施例的一示意圖;圖7是本發明控制系統的一第三實施例的一示意圖;圖8是本發明控制系統的一第四實施例的一示意圖;及圖9是本發明控制系統的一第五實施例的一示意圖。 Other features and advantages of the present invention will be apparent from the embodiments of the present invention. FIG. 1 is a schematic view of a first embodiment of the control system of the present invention; FIG. 2 is a first embodiment having FIG. 3 is a circuit block diagram of the first embodiment; FIG. 4 is a flowchart of operation of the pressure sensor of the first embodiment; FIG. 5 is a step S109 to S113 of FIG. Figure 6 is a schematic view of a second embodiment of the control system of the present invention; Figure 7 is a schematic view of a third embodiment of the control system of the present invention; Figure 8 is a fourth embodiment of the control system of the present invention A schematic diagram of an embodiment; and FIG. 9 is a schematic diagram of a fifth embodiment of the control system of the present invention.
在本發明被詳細描述之前,應當注意在以下的說明內 容中,類似的元件是以相同的編號來表示。 Before the present invention is described in detail, it should be noted that in the following description In the middle, similar components are denoted by the same reference numerals.
參閱圖1至圖3,本發明的一實施例中,控制系統100包含透過一RS485傳輸線200並聯的一控制主機3及多個壓力傳感器1。其中,控制主機3是作為一主控端(Master),壓力傳感器1是作為一受控端(Slave),且控制主機3透過一通訊介面,例如RS485,並且採用MODBUS通訊協定與該等壓力傳感器1通訊。 Referring to FIG. 1 to FIG. 3, in an embodiment of the present invention, the control system 100 includes a control host 3 and a plurality of pressure sensors 1 connected in parallel via an RS485 transmission line 200. The control host 3 is used as a master (master), the pressure sensor 1 is used as a controlled terminal (Slave), and the control host 3 transmits through a communication interface, such as RS485, and uses the MODBUS communication protocol and the pressure sensors. 1 communication.
參閱圖2及圖3,壓力傳感器1包含一處理模組10、一輸入模組11、一顯示模組12、一壓力感應模組13、一電源電路14、一輸出部15、一通訊介面16及一記憶模組17。 Referring to FIG. 2 and FIG. 3 , the pressure sensor 1 includes a processing module 10 , an input module 11 , a display module 12 , a pressure sensing module 13 , a power circuit 14 , an output unit 15 , and a communication interface 16 . And a memory module 17.
處理模組10是設置於壓力傳感器1內部的一控制電路,電性連接輸入模組11、顯示模組12、壓力感應模組13、電源電路14、輸出部15、通訊介面16及記憶模組17,並可工作在一量測模式或一進階模式。 The processing module 10 is a control circuit disposed inside the pressure sensor 1 , and electrically connected to the input module 11 , the display module 12 , the pressure sensing module 13 , the power circuit 14 , the output unit 15 , the communication interface 16 , and the memory module 17, and can work in a measurement mode or an advanced mode.
輸入模組11包含一設定鍵111及一選擇鍵組113(如圖2),當處理模組10工作在量測模式時,該設定鍵111接受手動操作以產生一設定訊號給處理模組10,使處理模組10根據該設定訊號由該量測模式切換至該進階模式,該選擇鍵組113具有例如一前進鍵及後退鍵,且當處理模組10工作在進階模式時,該選擇鍵組113用以向前或向後在顯示模組依序顯示的多種預定的通訊設定資料中選取其中一種通訊設定資料。該通訊設定資料包括一通訊站號、一傳輸 速率、一傳輸格式(frame)或一通訊模式(communication protocol)。通訊站號範圍為0~255,傳輸速率包括19200或9600位元/秒,傳輸格式包括n81、E81或081,通訊模式則採用MODBUS通訊協定之ASCII或RTU通訊模式。且處理模組10將根據被選取的通訊設定資料與控制主機3進行通訊。 The input module 11 includes a setting button 111 and a selection button group 113 (FIG. 2). When the processing module 10 operates in the measurement mode, the setting button 111 accepts a manual operation to generate a setting signal to the processing module 10. The processing module 10 is switched from the measurement mode to the advanced mode according to the setting signal. The selection key group 113 has, for example, a forward key and a back key, and when the processing module 10 operates in the advanced mode, The selection key group 113 is configured to select one of the plurality of predetermined communication setting data sequentially displayed in the display module in the forward or backward direction. The communication setting data includes a communication station number, a transmission Rate, a frame or a communication protocol. The communication station number ranges from 0 to 255, the transmission rate includes 19200 or 9600 bits/second, the transmission format includes n81, E81 or 081, and the communication mode uses the ASCII or RTU communication mode of the MODBUS protocol. The processing module 10 will communicate with the control host 3 according to the selected communication setting data.
通訊介面16用以發送處理模組10傳送的一符合Modbus通訊協定的資料給控制主機3,或是接收來自控制主機3的一符合Modbus通訊協定的指令給處理模組10,在本實施例中,通訊介面16是RS485連接器。記憶模組17用以儲存該通訊設定資料。補充說明的是,其他實施例中採用一種內建記憶功能的微處理器也屬於本發明可應用的技術,不以圖3的電路為限制。 The communication interface 16 is configured to send a data corresponding to the Modbus protocol transmitted by the processing module 10 to the control host 3, or receive a command from the control host 3 that conforms to the Modbus protocol to the processing module 10, in this embodiment. The communication interface 16 is an RS485 connector. The memory module 17 is configured to store the communication setting data. It should be noted that a microprocessor using a built-in memory function in other embodiments is also applicable to the present invention, and is not limited to the circuit of FIG.
壓力感應模組13用以感測外接壓力並轉換為一壓力資料且提供給處理模組10,以由處理模組10將該壓力資料數位化。顯示模組12電性連接處理模組10,並具有一第一顯示部121、一第二顯示部122及一第三顯示部123(如圖2),且在量測模式下,處理模組10輸出該壓力資料至該第一顯示部121,使顯示該壓力資料,同時,該第二顯示部122用以顯示一由處理模組10提供的壓力設定值,該第三顯示部123用以顯示由處理模組10提供而且是該壓力傳感器1目前正在使用的通訊設定資料(包含通訊站號、傳輸速率、傳輸格式或通訊模式,且該些資料可以被處理模組10設定成例如由第三顯 示器123輪流顯示或只顯示其中一個),而在進階模式下,處理模組10令該第一顯示部121顯示通訊設定資料,此時使用者透過操作輸入模組11可以更改第一顯示部121顯示的通訊設定資料,且處理模組10令第二顯示器122顯示第一顯示器121所顯示的資料的單位或名稱,並且處理模組10將根據更改後的通訊設定資料與控制主機3進行通訊。 The pressure sensing module 13 is configured to sense the external pressure and convert it into a pressure data and provide the pressure data to the processing module 10 for digitizing the pressure data by the processing module 10. The display module 12 is electrically connected to the processing module 10 and has a first display portion 121, a second display portion 122, and a third display portion 123 (FIG. 2). In the measurement mode, the processing module is The outputting of the pressure data to the first display unit 121 is performed to display the pressure data. The second display unit 122 is configured to display a pressure setting value provided by the processing module 10, and the third display unit 123 is configured to display the pressure data. Displaying the communication setting data (including the communication station number, the transmission rate, the transmission format, or the communication mode) provided by the processing module 10 and currently being used by the pressure sensor 1, and the data can be set by the processing module 10 to be, for example, by Three display In the advanced mode, the processing module 10 causes the first display unit 121 to display the communication setting data. At this time, the user can change the first display by operating the input module 11. The unit 121 displays the communication setting data, and the processing module 10 causes the second display 122 to display the unit or name of the data displayed by the first display 121, and the processing module 10 performs the change according to the communication setting data with the control host 3. communication.
控制主機3具有一處理單元30、一顯示單元31、一輸入單元32、一傳輸單元33、一電源迴路34及一通訊單元36,且通訊單元36經由圖1的RS485傳輸線200與各該壓力傳感器1的通訊介面16電耦接,因此控制主機3的處理單元30能通過通訊單元36傳輸指令給該等壓力傳感器1,令該等壓力傳感器1依據收到的指令執行相關的動作,在本實施例中,通訊單元36是RS485連接器。控制主機3可以是(但不限於)一可程式邏輯控制器(PLC),輸入單元32供使用者輸入操作指令,顯示單元31供使用者觀看操作結果,電源迴路34用以供應24V的直流電給電源電路14。其他實施例中,也可用一外接電源(圖未示)供電給電源電路14,不以圖3的電路為限制。 The control unit 3 has a processing unit 30, a display unit 31, an input unit 32, a transmission unit 33, a power supply circuit 34 and a communication unit 36, and the communication unit 36 communicates with each of the pressure sensors via the RS485 transmission line 200 of FIG. The communication interface 16 of the first embodiment is electrically coupled, so that the processing unit 30 of the control unit 3 can transmit commands to the pressure sensors 1 through the communication unit 36, so that the pressure sensors 1 perform related actions according to the received instructions. In the example, the communication unit 36 is an RS485 connector. The control host 3 can be, but is not limited to, a programmable logic controller (PLC), the input unit 32 is for the user to input an operation command, the display unit 31 is for the user to view the operation result, and the power circuit 34 is used to supply 24V DC power. Power circuit 14. In other embodiments, an external power source (not shown) can also be used to supply power to the power circuit 14, not limited by the circuit of FIG.
壓力傳感器1的輸出部15具有一第一輸出模組151、一第二輸出模組152及一類比輸出模組153,而控制主機3的傳輸單元33具有與第一輸出模組151、第二輸出模組152及類比輸出模組153相對應的一第一輸入介面331、一第二輸入介面332及一類比輸入介面 333。其中,第一輸出模組151電性連接第一輸入介面331,用以傳輸一筆代表開/關的數位資料,例如若壓力傳感器1包含一開關元件,且在量測模式下,當壓力傳感器1測得的壓力值(顯示於第一顯示部121)大於壓力設定值(顯示於第二顯示部122)時,壓力傳感器1會控制開關元件開啟或關閉,並對應產生一筆代表開關元件開啟或關閉的開/關數位資料,透過第一輸出模組151傳送給控制主機3;同理,若壓力傳感器1還包含第二個開關元件時,則其第二輸出模組152電性連接第二輸入介面332,用以傳輸另一筆代表第二個開關元件開啟或關閉的開/關的數位資料給控制主機3,由此可知,壓力傳感器1可以包含兩個以上的開關元件,並透過與該等開關元件數量對應的輸出模組,將代表該等開關元件開啟或關閉的開/關數位資料對應傳送給控制主機3;類比輸出模組153電性連接類比輸入介面333,用以傳輸上述的壓力資料(例如類比電壓1~5V或類比電流4~20mA等等)。 The output unit 15 of the pressure sensor 1 has a first output module 151, a second output module 152 and an analog output module 153, and the transmission unit 33 of the control unit 3 has a first output module 151 and a second The output module 152 and the analog output module 153 correspond to a first input interface 331, a second input interface 332, and an analog input interface. 333. The first output module 151 is electrically connected to the first input interface 331 for transmitting a digital data representing on/off. For example, if the pressure sensor 1 includes a switching component, and in the measurement mode, when the pressure sensor 1 When the measured pressure value (displayed on the first display portion 121) is greater than the pressure set value (displayed on the second display portion 122), the pressure sensor 1 controls the switching element to be turned on or off, and correspondingly generates a representative switch element to be turned on or off. The on/off digital data is transmitted to the control host 3 through the first output module 151. Similarly, if the pressure sensor 1 further includes the second switching element, the second output module 152 is electrically connected to the second input. The interface 332 is configured to transmit another digital data of the on/off of the on/off of the second switching element to the control host 3, so that the pressure sensor 1 can include more than two switching elements, and The output module corresponding to the number of switching elements transmits the on/off digital data corresponding to the on or off of the switching elements to the control host 3; the analog output module 153 is electrically connected to the analog output. The interface 333 is configured to transmit the above pressure data (for example, an analog voltage of 1 to 5 V or an analog current of 4 to 20 mA, etc.).
本實施例中,控制主機3的通訊單元36透過如圖1所示的RS485傳輸線200電性連接壓力傳感器1的通訊介面16。藉此,控制主機3的處理單元30能通過通訊單元36發送一讀取指令予該壓力傳感器1,令壓力傳感器1依據讀取指令向該控制主機3回傳一讀取資料,或通過該通訊單元36發送一寫入指令予該壓力傳感器1,令該壓力傳感器1依據該寫入指令寫入一資料至壓力傳感器1的處理模組 10中的暫存器或記憶模組17中,且壓力傳感器1會回傳一寫入確認訊息通知控制主機3是否完成寫入動作。 In this embodiment, the communication unit 36 of the control host 3 is electrically connected to the communication interface 16 of the pressure sensor 1 through the RS485 transmission line 200 as shown in FIG. Thereby, the processing unit 30 of the control host 3 can send a read command to the pressure sensor 1 through the communication unit 36, so that the pressure sensor 1 returns a read data to the control host 3 according to the read command, or through the communication. The unit 36 sends a write command to the pressure sensor 1 to cause the pressure sensor 1 to write a data to the processing module of the pressure sensor 1 according to the write command. In the temporary memory or memory module 17 of the 10, the pressure sensor 1 returns a write confirmation message to notify the control host 3 whether or not the write operation is completed.
參閱圖4及圖5,壓力傳感器1的操作流程包括:控制主機3及壓力傳感器1開啟電源(步驟S100);且壓力傳感器1每次(包含第一次使用時)開啟電源後,處理模組10都會再次設定壓力傳感器1本身的通訊協定參數(步驟S101),該參數通常是出廠時的預設值(第一次使用時)或上次關機前的設定值,例如代表使用MOSBUS通訊協定的參數;設定本身站號值(通常是出廠時的預設值1或上次關機前的設定值)(步驟S102);設定本身傳輸速率值(通常是出廠時的預設值或上次關機前的設定值,例如19200位元/每秒)(步驟S103);設定本身傳輸格式(通常是出廠時的預設值或上次關機前的設定值,例如n81)(步驟S104),設定本身通訊模式(通常是出廠時的預設值或上次關機前的設定值,例如RTU或ASCII)(步驟S105),且壓力傳感器1開啟後,處理模組10是預設工作在量測模式,並接收壓力感應模組13傳來的壓力資料,因此在量測模式下,處理模組10令顯示模組12的第一顯示部121顯示壓力資料(即目前測得的壓力值),令第二顯示部122顯示壓力設定值,令第三顯示部123顯示壓力傳感器1目前的通訊設定資料(包含通訊站號、傳輸速率、傳輸格式及/或通訊模式,且該些資訊可以被處理模組10設定成例如輪流顯示或只顯示其中一個),因此在量測模式下,藉由顯 示模組12顯示的資訊,操作人員可以清楚地知道壓力傳感器1的通訊站號、傳輸速率、傳輸格式及/或通訊模式;然後,控制主機3傳送指令(commands)給壓力傳感器1(步驟S106)。 Referring to FIG. 4 and FIG. 5, the operation flow of the pressure sensor 1 includes: controlling the host 3 and the pressure sensor 1 to turn on the power (step S100); and the pressure sensor 1 turns on the power every time (including the first use), and the processing module 10 will set the communication protocol parameters of the pressure sensor 1 itself (step S101), which is usually the factory default value (when used for the first time) or the set value before the last shutdown, for example, representing the use of the MOSBUS protocol. Parameter; set its own station number value (usually the factory default value 1 or the previous set value before the shutdown) (step S102); set its own transmission rate value (usually the factory default value or before the last shutdown) Setting value, for example, 19200 bits/second) (step S103); setting the own transmission format (usually the factory default value or the setting value before the last shutdown, for example, n81) (step S104), setting the communication itself Mode (usually the factory preset value or the set value before the last shutdown, such as RTU or ASCII) (step S105), and after the pressure sensor 1 is turned on, the processing module 10 is preset to operate in the measurement mode, and Receiving the pressure sensing module 13 In the measurement mode, the processing module 10 causes the first display unit 121 of the display module 12 to display the pressure data (ie, the currently measured pressure value), so that the second display unit 122 displays the pressure setting value. The third display unit 123 displays the current communication setting data of the pressure sensor 1 (including the communication station number, the transmission rate, the transmission format, and/or the communication mode, and the information can be set by the processing module 10 to be displayed in turn, for example, or only a), so in the measurement mode, by means of The information displayed by the module 12 is displayed by the operator, and the operator can clearly know the communication station number, transmission rate, transmission format and/or communication mode of the pressure sensor 1; then, the control host 3 transmits commands to the pressure sensor 1 (step S106). ).
接著,控制主機3判斷壓力傳感器1是否回傳與指令對應的資料或訊息,以判斷是否連線成功(步驟S107),若成功,控制主機3持續傳送指令給壓力傳感器1(步驟S108)。若連線失敗,即壓力傳感器1未回傳與指令對應的資料或訊息,例如壓力傳感器1設定的傳輸速率、傳輸格式及/或通訊模式與控制主機3不同,或者多個壓力傳感器1回傳來自同一站號的資料或訊息,例如一開始連線時,有5個壓力傳感器1與控制主機3連接且皆具有相同站號,則控制主機將收到5個來自同一站號的資料或訊息,而無從辨識其來源,此時,操作人員即需透過壓力傳感器1的輸入模組11手動調整壓力傳感器1的通訊設定資料。 Next, the control host 3 determines whether the pressure sensor 1 returns a data or message corresponding to the command to determine whether the connection is successful (step S107), and if successful, the control host 3 continues to transmit the command to the pressure sensor 1 (step S108). If the connection fails, the pressure sensor 1 does not return the data or message corresponding to the command. For example, the transmission rate, transmission format and/or communication mode set by the pressure sensor 1 are different from the control host 3, or multiple pressure sensors 1 are transmitted back. Data or messages from the same station number, for example, when five connections are connected to the control panel 3 and all have the same station number, the control panel will receive 5 data or messages from the same station number. However, the source cannot be identified. At this time, the operator needs to manually adjust the communication setting data of the pressure sensor 1 through the input module 11 of the pressure sensor 1.
因此,針對需要設定通訊設定資料的壓力傳感器1,操作人員按住壓力傳感器1的設定鍵111大於5秒(如圖5的步驟S109),處理模組10會根據來自設定鍵111的設定訊號,從量測模式切換至進階模式,且如圖5步驟S109所示,在量測模式下,第一顯示部121原本是顯示壓力值,例如0,第二顯示部122原本是顯示設定的壓力值,例如500。然後,在進入進階模式後,如圖4及圖5的步驟S110所示,操作人員可藉由選擇鍵組113手動調整通訊設定 資料,亦即此時處理模組10可協助操作人員藉由選擇鍵組113手動設定資料,例如以選擇鍵組113手動設定站號值,例如按一下設定鍵(SET)111,處理模組10令第二顯示部122顯示”ld”代表站號,此時再以選擇鍵組113手動設定站號值,例如第一顯示部121顯示原先設定的站號值為1,按下前進鍵一次則站號值+1,按下後退鍵一次則站號值-1,以此類推,直到第一顯示部121顯示操作人員想要設定的站號值,操作人員再按一下設定鍵111,處理模組10即根據來自輸入模組11的輸入訊號完成站號設定。 Therefore, for the pressure sensor 1 that needs to set the communication setting data, the operator presses the setting button 111 of the pressure sensor 1 for more than 5 seconds (step S109 of FIG. 5), and the processing module 10 according to the setting signal from the setting button 111, Switching from the measurement mode to the advanced mode, and as shown in step S109 of FIG. 5, in the measurement mode, the first display portion 121 is originally displaying a pressure value, for example, 0, and the second display portion 122 is originally displaying the set pressure. Value, for example 500. Then, after entering the advanced mode, as shown in step S110 of FIG. 4 and FIG. 5, the operator can manually adjust the communication setting by selecting the key group 113. The data processing module 10 can assist the operator to manually set the data by selecting the key group 113. For example, manually setting the station number value by the selection key group 113, for example, pressing the setting button (SET) 111, the processing module 10 The second display unit 122 displays "ld" as the station number. At this time, the station number value is manually set by the selection key group 113. For example, the first display unit 121 displays the previously set station number value as 1, and presses the forward button once. The station number value is +1, the back button is pressed once, the station number value is -1, and so on, until the first display portion 121 displays the station number value that the operator wants to set, and the operator presses the setting button 111 again to process the mode. The group 10 completes the station number setting based on the input signal from the input module 11.
接著,如圖4及圖5的步驟S111,第二顯示部122顯示”rAt”代表傳輸速率的單位,此時,操作人員可以選擇鍵組113手動設定傳輸速率值(步驟S111),例如按下前進鍵,第一顯示部121顯示下一個傳輸速率(例如96(代表9600位元/秒)),按下後退鍵,第一顯示部121顯示上一個傳輸速率(例如192(代表19200位元/秒)),並在第一顯示部121顯示想要設定的傳輸速率時,再按一下設定鍵111,處理模組10即根據來自輸入模組11的輸入訊號完成傳輸速率設定。 Next, as shown in step S111 of FIG. 4 and FIG. 5, the second display unit 122 displays "rAt" as a unit of the transmission rate. At this time, the operator can select the key group 113 to manually set the transmission rate value (step S111), for example, press With the forward button, the first display portion 121 displays the next transmission rate (for example, 96 (representing 9600 bits/second)), and the back display button is pressed, and the first display portion 121 displays the previous transmission rate (for example, 192 (representing 19200 bits/ Second)), and when the first display unit 121 displays the transmission rate to be set, press the setting button 111 again, and the processing module 10 completes the transmission rate setting based on the input signal from the input module 11.
接著,如圖4及圖5的步驟S112,第二顯示部122顯示”For”代表傳輸格式,此時操作人員可以選擇鍵組113手動設定傳輸格式(步驟S112),例如一直按前進鍵或後退鍵,第一顯示部121會依序顯示不同傳輸格式,例如第一顯示部121依序顯 示”n81”、”EUE”、”odd”分別代表n81、E81及081三種傳輸格式,因此,若要設定E81傳輸格式,則在第一顯示部121顯示EUE時,按下設定鍵111,處理模組10即根據來自輸入模組11的輸入訊號完成傳輸格式設定。 Next, as shown in step S112 of FIG. 4 and FIG. 5, the second display unit 122 displays "For" as the transmission format. At this time, the operator can select the key group 113 to manually set the transmission format (step S112), for example, press the forward key or the backward. The first display unit 121 displays different transmission formats in sequence, for example, the first display unit 121 sequentially displays "n81", "EUE", and "odd" respectively represent three transmission formats of n81, E81, and 081. Therefore, if the E81 transmission format is to be set, when the first display unit 121 displays EUE, the setting key 111 is pressed, and the processing is performed. The module 10 completes the transmission format setting according to the input signal from the input module 11.
接著,如圖4及圖5的步驟S113,第二顯示部122顯示”nod”代表通訊模式,此時操作人員可以選擇鍵組113手動設定通訊模式(步驟S113),例如按下前進鍵或後退鍵,第一顯示部121會輪流顯示”rtu”代表RTU模式,或顯示”ASC”代表ASCII模式,因此若要設定RTU模式,則在第一顯示部121顯示”rtu”時,按下設定鍵111,處理模組10則根據來自輸入模組11的輸入訊號完成通訊模式設定。 Next, as shown in step S113 of FIG. 4 and FIG. 5, the second display unit 122 displays "nod" to represent the communication mode. At this time, the operator can select the key group 113 to manually set the communication mode (step S113), for example, press the forward key or the backward The key, the first display unit 121 will alternately display "rtu" for the RTU mode, or display "ASC" for the ASCII mode, so if the RTU mode is to be set, when the first display portion 121 displays "rtu", press the set button. 111. The processing module 10 completes the communication mode setting according to the input signal from the input module 11.
當然,上述設定步驟S110~S113並不一定要全部執行,也可以視需要只執行其中一個或兩個步驟即可,例如若只要執行步驟S111設定傳輸速率,則在壓力傳感器1進入進階模式後(即在步驟S110中)連續按兩次設定鍵111,使第二顯示部122顯示”rAt”(表示進入傳輸速率設定功能),就可進行傳輸速率設定。當設定完成後,壓力傳感器1會自動切換回到量測模式,此時顯示模組12的第三顯示部123會顯示壓力傳感器1更新後的通訊設定資料(包含通訊站號、傳輸速率、傳輸格式及/或通訊模式,且該些資訊可以被設定成例如輪流顯示或只顯示其中一個)。然後,再 令控制主機3重覆執行上述步驟S106,嘗試與重新設定的壓力傳感器1重新連線,若仍無法連線,則操作人員視情況重覆上述步驟S109~S113,直到控制主機3與壓力傳感器1成功連線後,控制主機3即能持續傳送指令給相關的壓力傳感器1。亦即,當控制主機3與該等壓力傳感器1成功連線後,由於控制主機3已得知每一壓力傳感器1的站號,因此控制主機3可以傳送不同的讀/寫指令給不同的壓力傳感器1,甚至更改壓力傳感器1的站號。 Of course, the above setting steps S110-S113 are not necessarily all performed, and only one or two steps may be performed as needed. For example, if the transmission rate is set in step S111, the pressure sensor 1 enters the advanced mode. (That is, in step S110), the setting key 111 is continuously pressed twice, and the second display unit 122 displays "rAt" (indicating the entry transmission rate setting function), and the transmission rate setting can be performed. When the setting is completed, the pressure sensor 1 will automatically switch back to the measurement mode. At this time, the third display unit 123 of the display module 12 displays the updated communication setting data of the pressure sensor 1 (including the communication station number, transmission rate, transmission). Format and/or communication mode, and the information can be set to, for example, rotate display or display only one of them). after that The control host 3 is repeatedly executed in the above step S106, and attempts to reconnect with the reset pressure sensor 1. If the connection is still not possible, the operator repeats the above steps S109 to S113 as needed until the control unit 3 and the pressure sensor 1 are connected. After successful connection, the control host 3 can continuously transmit commands to the associated pressure sensor 1. That is, after the control host 3 is successfully connected to the pressure sensors 1, since the control host 3 has learned the station number of each pressure sensor 1, the control host 3 can transmit different read/write commands to different pressures. Sensor 1, even changing the station number of pressure sensor 1.
本實施例中,壓力傳感器1於RTU通訊模式中使用的功能碼參照表如下。 In the present embodiment, the function code reference table used by the pressure sensor 1 in the RTU communication mode is as follows.
壓力傳感器1於RTU通訊模式中使用的異常代碼如下。 The abnormal code used by the pressure sensor 1 in the RTU communication mode is as follows.
以下提供於RTU通訊模式的相關控制指令及資料格式之數個範例,其中的檢查碼是採用循環冗餘碼(Cyclic redundancy code check,簡稱CRC)形式。 The following provides several examples of the relevant control commands and data formats in the RTU communication mode, wherein the check code is in the form of a Cyclic Redundancy Code Check (CRC).
範例一:控制主機3傳送之讀取指令(Read command)的格式內容如下。 Example 1: The format of the read command transmitted by the control host 3 is as follows.
在範例一中,壓力傳感器1回應之讀取資料的格式內容如下。 In the first example, the format of the read data of the pressure sensor 1 is as follows.
範例二:控制主機3傳送之寫入指令的格式內容如下。 Example 2: The format of the write command transmitted by the control host 3 is as follows.
在範例二中,壓力傳感器1回應之寫入資料(Write command)的格式內容如下。 In the second example, the format of the write command responded by the pressure sensor 1 is as follows.
範例三:壓力傳感器1回應異常資料的格式內容如下。 Example 3: The format of the pressure sensor 1 in response to the abnormal data is as follows.
範例四:控制主機3的讀取/寫入代碼的格式內容如下。 Example 4: The format of the read/write code of the control host 3 is as follows.
範例五:在控制主機3讀取壓力傳感器1之壓力值的範例中,控制主機3向壓力傳感器1發送的資料的格式內容如下。 Example 5: In the example in which the control host 3 reads the pressure value of the pressure sensor 1, the format of the data transmitted by the control host 3 to the pressure sensor 1 is as follows.
在範例五中,壓力傳感器1對應控制主機3的發送資料而回傳的資料的格式內容如下。 In the fifth example, the format of the data returned by the pressure sensor 1 corresponding to the transmission data of the control host 3 is as follows.
範例六:控制主機3設定壓力傳感器1之站號的範例中,控制主機3向壓力傳感器1發送的格式內容如下。 Example 6: In the example in which the control host 3 sets the station number of the pressure sensor 1, the format of the format transmitted by the control host 3 to the pressure sensor 1 is as follows.
在範例六中,壓力傳感器1對應控制主機3發送的資料而回傳的格式內容如下。 In the sixth example, the format of the pressure sensor 1 corresponding to the data transmitted by the control host 3 is as follows.
範例七;假設控制主機3向壓力傳感器1發送的設定資料超出範圍,控制主機3向壓力傳感器1發送的資料的格式內容如下。 Example 7; It is assumed that the setting data sent by the control host 3 to the pressure sensor 1 is out of range, and the format of the data transmitted by the control host 3 to the pressure sensor 1 is as follows.
在範例七中,壓力傳感器1對應控制主機3發送的資料而回傳的資料格式如下,當壓力傳感器1回覆為異常代碼時,會將MSB設定為1,因此寫入的代碼為86H。 In the seventh example, the data format of the pressure sensor 1 corresponding to the data sent by the control host 3 is as follows. When the pressure sensor 1 replies as an abnormal code, the MSB is set to 1, so the code written is 86H.
本實施例中,壓力傳感器1於ASCII通訊模式中使用的功能碼參照表如下。 In the present embodiment, the function code reference table used by the pressure sensor 1 in the ASCII communication mode is as follows.
壓力傳感器1於ASCII通訊模式中使用的異常代碼如下。 The error code used by pressure sensor 1 in ASCII communication mode is as follows.
以下提供於ASCII通訊模式的相關控制指令及資料格式之數個範例,其中的檢查碼是採用縱向冗餘碼(Longitudinal Redundancv Check,簡稱LRC)。 The following provides several examples of related control commands and data formats in the ASCII communication mode. The check code is a Longitudinal Redundancv Check (LRC).
範例八:控制主機3傳送之讀取指令的格式內容如下。 Example 8: The format of the read command transmitted by the control host 3 is as follows.
在範例八中,壓力傳感器1回應之讀取資料的格式內容如下。 In the eighth example, the format of the read data of the pressure sensor 1 is as follows.
範例九:控制主機3傳送之寫入指令的格式內容如下。 Example 9: The format of the write command transmitted by the control host 3 is as follows.
在範例九中,壓力傳感器1回應之寫入資料的格式內容如下。 In Example 9, the format of the data written by the pressure sensor 1 is as follows.
範例十:當有發生異常狀況時,壓力傳感器1送出之異常資料的格式內容如下。 Example 10: When an abnormal condition occurs, the format of the abnormal data sent by the pressure sensor 1 is as follows.
範例十一:控制主機3的讀取/寫入代碼的格式內容如 下。 Example 11: Controlling the format content of the read/write code of the host 3 as under.
範例十二:在控制主機3讀取壓力傳感器1之壓力值的範例中,控制主機3向壓力傳感器1發送的資料的格式內容如下。 Example 12: In the example in which the control host 3 reads the pressure value of the pressure sensor 1, the format of the data transmitted by the control host 3 to the pressure sensor 1 is as follows.
在範例十二中,壓力傳感器1對應控制主機3發送的資料而回傳的資料的格式內容如下。 In the example twelve, the format of the data returned by the pressure sensor 1 corresponding to the data transmitted by the control host 3 is as follows.
範例十三:控制主機3設定壓力傳感器1之通訊站號的範例中,控制主機3向壓力傳感器1發送的資料的格式內容如下。 Example 13: In the example in which the control host 3 sets the communication station number of the pressure sensor 1, the format of the data transmitted by the control host 3 to the pressure sensor 1 is as follows.
在範例十三中,壓力傳感器1對應控制主機3發送的資料而回傳的資料的格式內容如下。 In the thirteenth embodiment, the format of the data returned by the pressure sensor 1 corresponding to the data transmitted by the control host 3 is as follows.
範例十四;假設控制主機3向壓力傳感器1發送的設定資料超出範圍,例如控制主機3向壓力傳感器1發送的資料的格式內容 如下。 Example 14; assume that the setting data sent by the control host 3 to the pressure sensor 1 is out of range, for example, the format content of the data sent by the control host 3 to the pressure sensor 1. as follows.
在範例十四中,壓力傳感器1對應控制主機3發送的資料而回傳的資料的格式內容如下,當壓力傳感器1回覆為異常代碼時,會將MSB設定為1,因此寫入的代碼為38H36H。 In the fourteenth example, the format of the data returned by the pressure sensor 1 corresponding to the data sent by the control host 3 is as follows. When the pressure sensor 1 replies as an abnormal code, the MSB is set to 1, so the code written is 38H36H. .
參閱圖6,本發明的第二實施例與圖3具有的元件連接關係及作用原理相同,不同的是,壓力傳感器1’的輸出部15具有第一輸出模組151但是無第二輸出模組152及類比輸出模組153。 Referring to FIG. 6, the second embodiment of the present invention has the same component connection relationship and function principle as that of FIG. 3, except that the output portion 15 of the pressure sensor 1' has the first output module 151 but no second output module. 152 and analog output module 153.
圖7是本發明的第三實施例與圖3具有的元件連接關係及作用原理相同,不同的是,壓力傳感器1”的輸出部15具有第一輸出模組151及第二輸出模組152但是無類比輸出模組153。 FIG. 7 is a view showing the third embodiment of the present invention having the same component connection and operation principle as that of FIG. 3, except that the output portion 15 of the pressure sensor 1" has the first output module 151 and the second output module 152. Analogless output module 153.
圖8是本發明的第四實施例與圖3具有的元件連接關係及作用原理相同,不同的是,壓力傳感器1’’’的輸出部15具有第一輸出模組151及類比輸出模組153但是無第二輸出模組152。 FIG. 8 is the same as the component connection relationship and the principle of operation of the fourth embodiment of the present invention, and the output unit 15 of the pressure sensor 1 ′′′ has a first output module 151 and an analog output module 153 . However, there is no second output module 152.
圖9是本發明的第五實施例與圖3具有的元件連接關係及作用原理相同,不同的是,壓力傳感器1’’’’的輸出部15具有類比輸出模組153但是無第一輸出模組151及第二輸出模組152。其他實施例也可包括複數個輸出模組及複數個類比輸出模組。 Figure 9 is a view showing the fifth embodiment of the present invention having the same component connection and operation principle as that of Figure 3, except that the output portion 15 of the pressure sensor 1"" has an analog output module 153 but no first output mode. Group 151 and second output module 152. Other embodiments may also include a plurality of output modules and a plurality of analog output modules.
綜上所述,本發明的壓力傳感器1及控制系統100至少具有以下功效:透過壓力傳感器1的顯示模組12,操作人員可得知壓力傳感器1本身之通訊設定資料(如:通訊站號),且可藉由輸入模組11調整壓力傳感器1本身的通訊設定資料,使壓力傳感器1能與控制主機3成功建立連線,故確實能達成本發明之目的。 In summary, the pressure sensor 1 and the control system 100 of the present invention have at least the following effects: through the display module 12 of the pressure sensor 1, the operator can know the communication setting data of the pressure sensor 1 itself (eg, the communication station number). And the input setting module 11 can adjust the communication setting data of the pressure sensor 1 to enable the pressure sensor 1 to successfully establish a connection with the control host 3, so that the object of the present invention can be achieved.
惟以上所述者,僅為本發明之實施例而已,當不能以此限定本發明實施之範圍,凡是依本發明申請專利範圍及專利說明書內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。 However, the above is only the embodiment of the present invention, and the scope of the invention is not limited thereto, and all the equivalent equivalent changes and modifications according to the scope of the patent application and the patent specification of the present invention are still The scope of the invention is covered.
Claims (8)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW105111965 | 2016-04-18 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW201738673A TW201738673A (en) | 2017-11-01 |
| TWI618995B true TWI618995B (en) | 2018-03-21 |
Family
ID=61022775
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW105134690A TWI618995B (en) | 2016-04-18 | 2016-10-27 | Pressure sensor and control system |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI618995B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108195728A (en) * | 2018-02-01 | 2018-06-22 | 山东诺方电子科技有限公司 | A kind of control system and its control method based on multinuclear particulate matter sensors technology |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1875335A (en) * | 2003-10-31 | 2006-12-06 | 泽图有限公司 | Human Machine Interface System |
| CN100339843C (en) * | 2003-01-30 | 2007-09-26 | 罗斯蒙德公司 | Interface module, method for exchanging process control information, and process control system |
| CN101551662A (en) * | 2009-04-30 | 2009-10-07 | 曾锃 | Sensor network remote supervising method base on internet |
| TW201221169A (en) * | 2010-09-24 | 2012-06-01 | Carefusion 303 Inc | Modular pumping system |
| CN101905694B (en) * | 2009-06-04 | 2012-12-26 | 品秀橡胶股份有限公司 | Intelligent electronic self-adjusting pneumatic suspension system |
| CN103221796A (en) * | 2010-09-17 | 2013-07-24 | 卡梅伦国际有限公司 | Pressure sensor configuration for pressurized tank |
-
2016
- 2016-10-27 TW TW105134690A patent/TWI618995B/en active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100339843C (en) * | 2003-01-30 | 2007-09-26 | 罗斯蒙德公司 | Interface module, method for exchanging process control information, and process control system |
| CN1875335A (en) * | 2003-10-31 | 2006-12-06 | 泽图有限公司 | Human Machine Interface System |
| CN101551662A (en) * | 2009-04-30 | 2009-10-07 | 曾锃 | Sensor network remote supervising method base on internet |
| CN101905694B (en) * | 2009-06-04 | 2012-12-26 | 品秀橡胶股份有限公司 | Intelligent electronic self-adjusting pneumatic suspension system |
| CN103221796A (en) * | 2010-09-17 | 2013-07-24 | 卡梅伦国际有限公司 | Pressure sensor configuration for pressurized tank |
| TW201221169A (en) * | 2010-09-24 | 2012-06-01 | Carefusion 303 Inc | Modular pumping system |
Non-Patent Citations (1)
| Title |
|---|
| 台達電子工業股份有限公司機電事業部, "台達工業自動化產品PLC應用於RS指令送出自訂通訊命令範例", Mar. 26 2009 * |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201738673A (en) | 2017-11-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10484198B2 (en) | Function connection unit comprising a parameter memory | |
| EP2725436B1 (en) | Communication device connectable to a control device and a plurality of sensors | |
| JP2013156987A (en) | Device for transmitting sensor data | |
| US11175646B2 (en) | Display device for process automation | |
| TWI618995B (en) | Pressure sensor and control system | |
| CN106462149A (en) | Terminal for an automation system, terminal arrangement, and method for operating a terminal for an automation system | |
| EP3746851B1 (en) | Method and apparatus for configuring i/o modules connected to a fieldbus controller | |
| JP6174768B1 (en) | Digital pressure gauge and control system | |
| KR100198531B1 (en) | Integrated remocon | |
| CN112798175B (en) | Method for rapidly configuring working parameters of metering device and pressure metering device | |
| US11209785B2 (en) | Front adapter for connecting to a control device and automation system | |
| TWM529204U (en) | Pressure transducer and control system | |
| CN107305373B (en) | Pressure sensor and control system | |
| KR102030933B1 (en) | System and method for remote monitoring/controlling of generator | |
| CN205656481U (en) | Pressure sensor and control system | |
| CN109714053B (en) | Terminal device, system and method for digital communication using analog signal pin | |
| CN211381926U (en) | Dental laser treatment system based on Bluetooth control | |
| CN112821548B (en) | Power distribution terminal with display module, wireless power distribution display system and method | |
| JPH0332956B2 (en) | ||
| KR100732037B1 (en) | Freenet devices including DeviceNet protocol and Ethernet protocol | |
| WO1991008533A1 (en) | Terminal, data processor, switching unit, interface, and keyboard the latter three connected to the former two | |
| CN217930653U (en) | Wireless pressure transmitter | |
| JPH03207196A (en) | Transmitter | |
| KR920009438B1 (en) | Communication method and transmission signal conversion device of self-tuning controller and host computer | |
| EP4080298A1 (en) | Plc analog module comprising hart pass-through interface |