Qualification certificate

Fixed oxygen concentration transmitter communication protocol (V1.0.0 version)

发布时间:2023-12-16 11:04:57  浏览次数:44



Fixed oxygen concentration transmitter Communication Protocol   (V1.0.0version)

1. Basic Agreement

The communication format is MODBUD-RTUWay, 8bit data bits, 1Bit stop bit, no verification.Baud rate: 9600BPS,support 03and 06Two MODBUSOrder.

Communication is slave mode.The host makes a command request. equipment response;After receiving the data, do data analysis. If the data meets the communication regulations, the slave responds.(The sampling period is best >200ms,To avoid excessive frequency response Interrupt, impact equipment Concentration cycle is used.)

The time from receiving the command frame to starting the response is less than 100 ms。If the slave detects the data incorrectly, or does not respond to the host in time.The host does timeout processing.

Each frame of data sent by the communication host between the master and slave contains the following information ( 16 Pricing):

 

Slave address

Command word

Information word

Verification code

 

Slave address :(1 bytes): slave device number, the host uses the slave address to identify the slave device for communication.The slave indicating that the address set by the user will receive the information sent by the host.Each slave must have a unique address code, and only slaves that meet the address code can respond to the reply.Address range 0x01-0xF71-247),0x0000)is the broadcast address.

Command word :(1bytes): The function code sent by the host, telling the slave what tasks to perform.support 03Read and 06Write two commands.

Information word :(Nbytes): includes various data information, data length, read and write data, etc. in communication between the two machines.

Verification code :(2bytes): used to detect data communication errors, using cyclic redundant code CRC16, The low is in front and the high is in back.

Communication commands

Read registers: 03Order

 

 

Slave address

 

03

Register address high bit

Register address

Low

Number of registers

High

Number of registers

Low

Verification code

Verification code

ADRH

ADRL

N_H

N_L

CRC_L

CRC_H

 

 

Correct answer:

Slave address

 

03

Number of data bytes

data

Verification code

Verification code

(N_H*16+N_L)*2

(N_H*16+N_L)*2Byte data

CRC_L

CRC_H


                                                                                                                                               

Single register writing: 06Order

Slave address

 

06

Register address

High

Register address low bit

Register value high bit

The register value is low

Verification code

Verification code

ADRH

ADRL

D_H

D_L

CRC_L

CRC_H

 

Correct answer: (When used 00When the broadcast address is written, the slave returns as well 00address)

Slave address

 

06

Register address

High

Register address low bit

Register value high bit

The register value is low

Verification code

Verification code

ADRH

ADRL

D_H

D_L

CRC_L

CRC_H

 

 

two, Data address table

Register address

Variable name

Variable description

Remark

HEX

DEC

0X0100

256

Equipment Status

0-16;(0:normal; 1:Underreport; 2:High news;

16Communication Fault)

Only supported 03instruction

 

0X0101

257

Measure the concentration value

0-65535

Only supported 03instruction

0X0102

258

Decimal Point Point

0-40:none; 11decimal places; 22decimal places; 33decimal places; 44Decimal places ;The highest position is 1,Indicates a negative number;The highest bit is zero, indicating a positive number

support 03/06instruction

 

0X0103

259

Unit of measurement

0-8;(0PPM1PPB2%VOL3%LEL4mg/m356RH%7Kpa

support 03/06instruction

 

0X0104

260

Gas type

0-255,See the attached table for details 1

support 03/06instruction

0X0105

261

High limit alarm value

00-65535

support 03/06instruction

0X0106

262

Low limit alarm value

00-65535

0X0107

263

Detection range

00-65535

Only supported 03instruction

 

0X0108

264

equipment address

01-247

support 03/06instruction

 

0X0109

265

ADCvalue

Read and modify the current ADCvalue( ADCThe highest position is 1,express ADCis a negative value. ADCThe highest position is 0,express ADCis a positive value.)

Only supported 03instruction

 

0X0110

272

Factory zeroing

Write 0X00AAValue is valid

 

Only supported 06instruction

(Manufactured)

0X0111

273

Delivery Calibration value

00-65535 

0X0112

274

User Zero

Write 0X00AAValue is valid

Only supported 06instruction

(For users)

0X0113

275

user Calibration value

00-65535

0X0114

276

Restore factory value

Write 0X00AAValue is valid

 

3. Read register test command

Read 1#equipment Work status

Host send: 01 03 01 00 00 01 85 F6

Reply to the slave: 01 03 02 00 00 B8 44 (Working status is: Normal)

 

Read 1#equipment Measure the concentration value

Host send: 01 03 01 01 00 01 D4 36

Reply to the slave: 01 03 02 00 20 B9 9C (The real-time gas concentration is: 32

 

Read 1#equipment Number of decimal places

Host send: 01 03 01 02 00 01 24 36

Reply to the slave: 01 03 02 00 01 79 84(Decimal point: 1//Note: Gas concentration 32/Decimal point 10,Real concentration 3.2

The decimal point is as 2bit, that is divided by 100,Three are 1000

Read 1#equipment Unit of measurement

Host send: 01 03 01 03 00 01 75 F6

Reply to the slave: 01 03 02 00 00 B8 44  Equipment unit: ppm

0000PPM  0001PPB 0002PPM   0003 0004%

0005%LEL 0006%VOL0007Mg/m3 0008Mg/L

 

Read 1#equipment Detect gas (See the attached table for detailed gas types 1

Host send: 01 03 01 04 00 01 C4 37

Reply to the slave: 01 03 02 00 01 79 84 Detection of gas: CO )

 

Read 1#equipment High limit alarm value

Host send: 01 03 01 05 00 01 95 F7

Reply to the slave: 01 03 02 01 F4 B8 53 The high report value is: 500

 

Read 1#equipment Low limit alarm value

Host send: 01 03 01 06 00 01 65 F7

Reply to the slave: 01 03 02 00 C8 B9 D2 The low value is: 200

 

Read 1#equipment Detection range

Host send: 01 03 01 07 00 01 34 37

Reply to the slave: 01 03 02 03 E8 B8 FA Here 0x03E8Indicates the product Full scale yes 1000

 

Read equipment address (have no idea equipment Use broadcast address in the case of address 00,Applicable to 0306 All instructions)

Host send: 00 03 01 08 00 01 05 E5

Reply to the slave: 01 03 02 00 01 79 84 address: 1# 

 

Read 1#equipment All Information

Host send: 01 03 01 00 00 0A C4 31

Reply to the slave: 01 03 14 00 00 00 00 00 01 00 02 00 05 00 64 00 32 00 C8 00 01 00 0B   0C 3F

state Concentration value Decimal point Unit of measurement Gas type A2 A1 Range address ADC   CRC16

 normal  00   1    %VOL   NO2   10.0  5.0  20.0   01   11     0C3F

 

4. Examples of writing register test commands

Revise 1#equipment High limit alarm value


Host send: 01 06 01 05 01 90 99 CB

CB

Reply to the slave: 01 06 01 05 01  90 99 CB

CB (The high report value is modified to: 400

 

 

Revise 1#equipment Low limit alarm value


Host send: 01 06 01 06 00  64 69 DC

DC

Reply to the slave: 01 06 01 06 00  64 69 DC

DC (The low report value is modified to: 100

Revise equipment Address is 1#(Broadcast address  00,Only connections are allowed 1 indivual equipment ,On the bus equipment No duplicate addresses

Host send:

00

06

01

08

00

01

C9

E5


Reply to the slave:

00

06

01

08

00

01

C9

E5

(The device address is modified to: 1#

 

right 1#equipment Factory zeroing

Host send: 01 06 01 10 00 AA 09 8C

Reply to the slave: 01 06 01 10 00 AA 09 8C The device adjusts the current zero point value)

 

right 1#equipment Carry out factory calibration ( equipment The calibration operation must be carried out after the value is stable)

Host send: 01 06 01 11 01 F4 D8 24

Reply to the slave: 01 06 01 11 01 F4 D8 24 Equipment access 50.0 Numerical standard gas, recalibrated to: 50.0

 

right 1#equipment Restore factory value (restore default After value, equipment Will restart ,If there is no abnormality, please do not recover! !  

Host send: 01 06 01 14 00 AA 48 4D

Reply to the slave: 01 06 01 14 00 AA 48 4D  The device restores all data to: factory value and restart)

Attached 1 Types of gas detection

serial number

Gas type

Chinese

serial number

Gas type

Chinese

0

N2

Nitrogen

42

C3H8O

Propanol

1

CO

Carbon monoxide

43

iC3H8O

 Isopropanol

2

H2S

Hydrogen sulfide

44

C4H10O

Butyl alcohol

3

O2

oxygen

45

CH2O

formaldehyde

4

EX

Flammable

46

C2H4O

Acetaldehyde

5

SO2

Sulfur dioxide

47

C3H6O

Propionaldehyde

6

NH3

Ammonia

48

C3H4O

Aceraldehyde

7

H2

hydrogen

49

C2H2

Acetylene

8

CH3Br

Methane bromide

50

C6H6

benzene

9

O3

ozone

51

C7H8

Toluene

10

TVOC

Total volatiles

52

C8H10

Xylene

11

CL2

Chlorine

53

C8H8

Styrene

12

HCL

Hydrogen chloride

54

C6H6O

phenol

13

NO

Nitrogen monoxide

55

ETO

Ethylene oxide

14

NO2

Nitrogen dioxide

56

C2H8O2

Ethyl acetate

15

PH3

Hydrogen Phosphide

57

NMHC

Total non-methane hydrocarbons

16

ArH3

Hydrogen Arsenic

58

F2S2O

Sulfolyl fluoride

17

HCN

  Hydrogen cyanide

59

GAS


18

CO2

carbon dioxide

60



19

SF6

Sulfur hexafluoride

61



20

Br2

Bromine gas

62



21

HBr

Hydrogen bromide

63



22

F2

Fluorine

64



23

HF

Hydrogen fluoride

65



24

N2O

nitrous oxide

66



25

H2O2

Hydrogen peroxide

67



26

NOX

Nitrogen oxides

68



27

SOX

Sulfide

69



28

Odor

Smell

70



29

VOC

Volatiles




30

CH4

Methane




31

C2H6

Ethane




32

C3H8

Propane




33

C4H10

Butane

100

Temperature

temperature

34

iC4H10

Isobutane

101

Humidity

humidity

35

C5H12

Pentane

102

Pressure

Air pressure

36

C2H4

Ethylene




37

C3H6

Acrylic




38

C4H8

Butene




39

iC4H8

Isobutylene




40

CH4O

Methanol




41

C2H6O

Ethanol




 

Attached 2 Gas detection data unit

Serial number

unit

0

PPM

1

PPB

2

%VOL

3

%LEL

4

Mg/m3

5

g/m3

6

ug/m3

7

8

%RH

9

Kpa

10

umol/mol

11

Mpa


  • Home
  • Product Display
  • Qualification certificate
  • Application News
  • Consulting
  • phone:0755-26588758 13714285279(倪先生) 13922884770(王先生) 13923716479(倪先生)


    fax:0755-26747274


    email:info@source-sensor.com


    address:East 3rd Floor, Building 15, Majialong Industrial Zone, Nantou Street, Nanshan District, Shenzhen


    Copyright©2002-2023 Yuanjian Sensing Technology. All Rights Reserved Copyright 粤ICP备17008245号-5 技术支持:图页网 网站地图xml 网站地图html