KB6000III Modbus Protocol Instruction
1. Key figures:
Bud rate: 4800 (optional of 9600 and 19200).
8 digits of figure and 1 digit of stop. No verification digit (verification of odd
number and even number can be set)
Device address ID is adjustable and the initial ID is 99.
2. Command code of reading the device information is 03. No other code is not
available now.
3. Below offsets can store different information. Some information (like the
quantity of the connected detectors) will only be stable after powering on for some
time. After power on, the device will automatically search for the detectors being
connected and this time will last for 2 minutes.
offset 0: Quantity of the detectors
offset 1: second
offset 2: minute
offset 3: hour
offset 4: day
offset 5: week
offset 6: month
offset 7: year
Offset 500: to start save the structural morphology of each detector in turns. The
length of each morphology is 11 and total length is 11 * detector quantity.
Syllable Meaning
0 number; Serial number enumeration
1 name; Gas name enumeration
2 deepness; concentration signed number
3 unit; Unit enumeration
4 point; Scaling position exponent arithmetic of 10 signed number
5 state; status enumeration
6 preserve0 preserved
7 preserve1 preserved
8 preserve2 preserved
9 preserve3 preserved
10 preserve4 preserved
Final gas level = deepness * 10^(-point)
All the detectors will be displayed in turns automatically.
/*---- Status definition-------------------------------------------------*/
NODE_STATE_WARM_UP 0x00 Warm-up
NODE_STATE_NORMAL 0x01 Normal
NODE_STATE_DATA_ERROR 0x02 Data default
NODE_STATE_SENSOR_FAULT 0x03 Sensor fault
NODE_STATE_EARLY_WARING 0x04 Pre-alarm
NODE_STATE_LOW_ALARM 0x05 Low alarm
NODE_STATE_HIGH_ALARM 0x06 High alarm
NODE_STATE_VISIT_FAULT 0x07 Access failure
NODE_STATE_OUTRANGE 0x08 Over range
NODE_STATE_NEED_ADJUST 0x09 Need calibration
NODE_STATE_OUT_TIME 0x0A Overtime
NODE_STATE_ALARM_STEL 0x0B STEL alert
NODE_STATE_ALARM_TWA 0x0C TWA alert
NODE_STATE_COM_FAULT 0x0F Communications fault
NODE_STATE_1_SQUARE 0x80
NODE_STATE_2_SQUARE 0xA0
NODE_STATE_3_SQUARE 0xC0
/*----- Unit definition-------------------------------------------------------- */
/* Prefix P and it’s unit*/
UNIT_P_LEL 0x01 %lel
UNIT_P_VOL 0x02 %vol
UNIT_PPM 0x03 PPM
/*----- Gas type definition------------------------------------------------------*/
NAME_NEW_TYPE 0x00 New type
NAME_CH4 0x01 CH4
NAME_NH3 0x02 NH3
NAME_H2S 0x03 H2S
NAME_CO 0x04 CO
NAME_O2 0x05 O2
NAME_H2 0x06 H2
Working mode, KB6000III address ID, Bud rate and verification method can be set in
the menu of “factory setting”.
Working mode: mod 00 01 (00: rtu 01: ascii) (Initial is 00)
Address ID: addr 01-250 (Initial is 50)
Bud rate: buad 00 01 02 (00: 4800 01:9600 02:19200) (Initial is 4800)
Verification: pari 00 01 02 (00: none 01: odd 02: even) (Initial is none)
Note:
1. In working status, if modifying the setting, the device will not work normally. So
after setting, please reset the device, then the setting can be activated.
2. Technically speaking, the maximum frame length is 256. But if mass data is read
each time, transmission error rate is very a little big. So please reduce the reading
data and we suggest the frame length is within 60.