Instromet MODBUS ASCII communication driver is the driver to communicate with gas measurement corrector( 793-1K, ¡¦ ) controller of Instromet International in Belgium.
<Figure 1> is read setting example of Instromet MODBUS ASCII communication driver.
<Figure 1> Read setting example of Instromet MODBUS ASCII communication driver |
Device part of <Figure 1> input Com Port(COM1), Baud Rate(4800), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to the controller.
Also you can set 'don't use of Word unit read size' (1 = don't use, 0 = use Word unit read, default : 0) by using option part.
Note) Baud rate, parity bit, data bit, stop bit can set by using front panet switch. ( refer to chapter 3 )
Instromet 793-1K controller is made MODBUS ASCII protocol. MODBUS ASCII protocol and MODBUS protocol have the same frame structure except binary and ASCII code.
Instromet MODBUS ASCII communication driver read schedule
Read schedule setting parameters are as follows:
1) Station – 1 ~ 247 modbus station number of controller.
2) Read data type – Data type.
3 – Reading the data of WORD unit.
3D – Reading the data of DWORD unit ( WORD order : LO, HI ).
3d – Reading the data of DWORD unit ( WORD order : HI, LO ).
3M – Reading the special data[HI WORD x 10000 + LO WORD] of DWORD unit ( WORD order : LO, HI ).
3m – Reading the special data[HI WORD x 10000 + LO WORD] of DWORD unit ( WORD order : HI, LO ).
3F – Reading the data of FLOAT unit ( WORD order : LO, HI ).
3f – Reading the data of FLOAT unit ( WORD order : HI, LO ).
3fd – Reading the data of Double unit( 8 Byte order : HI, LO ).
3B – Reading the data of BYTE unit.
1X – Reading the data of BIT unit ( 1xxxx Modbus address ).
3) Read Start Address – Input read start modbus address.
4) Save start address for Communication Server – Saving start address of Communication Server.
5) Read Size – Input the read size of data.
3 – WORD unit,
3D, 3d, 3M, 3m, 3F, 3f – 2 WORD unit,
3fd – 4 WORD unit.
3B – BYTE unit.
1X – 16 Bit (WORD) unit,
Read schedule example)
DOUBLE, 1, 3fd, 1, 0, 20,
FLOAT, 1, 3f, 101, 20, 8,
DWORD, 1, 3, 117, 0, 3,
Note) Instromet 793-1K controller have 3 data type, DOUBLE, FLOAT, WORD. ( refer to 'Read schedule example' )
<Table 1> is modbus address and contents of Instromet 793-1K controller.
<Table 2> is conetnts of each bit data for status bit code.
Modbus address |
Contents |
Data type |
Units |
1 ~ 4 |
V
|
DOUBLE ( 64 bit ) |
m3 |
5 ~ 8 |
Vb-c
|
||
9 ~ 12 |
Vn Main |
||
13 ~ 16 |
|
Kcal |
|
17 ~ 20 |
M
|
Tonnes |
|
21 ~ 24 |
V Current Day |
m3 |
|
25 ~ 28 |
Vb-c Current Day |
||
29 ~ 32 |
Vn Current Day |
||
33 ~ 36 |
E Current Day |
Kcal |
|
37 ~ 40 |
M Current Day |
Tonnes |
|
41 ~ 44 |
V Current Hour |
m3 |
|
45 ~ 48 |
Vb-c Current Hour |
||
49 ~ 52 |
Vn Current Hour |
||
53 ~ 56 |
E Current Hour |
Kcal |
|
57 ~ 60 |
M Current Hour |
Tonnes |
|
61 ~ 64 |
V Previous Day |
m3 |
|
65 ~ 68 |
Vb-c Previous Day |
||
69 ~ 72 |
Vn Previous Day |
||
73 ~ 76 |
E Previous Day |
Kcal |
|
77 ~ 80 |
M Previous Day |
Tonnes |
|
81 ~ 84 |
V Previous Hour |
m3 |
|
85 ~ 88 |
Vb-c Previous Hour |
||
89 ~ 92 |
Vn Previous Hour |
||
93 ~ 96 |
E Previous Hour |
Kcal |
|
97 ~ 100 |
M Previous Hour |
Tonnes |
|
101 ~ 102 |
Qb |
FLOAT ( 32 bit ) |
m3/hr |
103 ~ 104 |
Qn |
||
105 ~ 106 |
QE |
Kcal/hr |
|
107 ~ 108 |
QM |
Tonnes/hr |
|
109 ~ 110 |
Pressure |
Kg/cm2 |
|
111 ~ 112 |
Temperature |
Deg C |
|
113 ~ 114 |
Z Factor |
|
|
115 ~ 116 |
Z base |
|
|
117 |
Status Bit Code ( refer to <Table 2> ) |
WORD ( 16 bit ) |
|
118 |
|
||
119 |
|
||
<Table 1> Modbus address and contents of Instromet 793-1K controller |
Modbus address | Bit position |
Contents |
Remarks |
117 | bit 0 ( LSB ) |
Any Alarm |
ON = Alarm, Fault, ..
OFF = normal |
bit 1 |
Flow Computer Fault |
||
bit 2 |
Pulse Output Alarm |
||
bit 3 |
Print Alarm |
||
bit 4 |
Calibrate Alarm |
||
bit 5 |
Don't care |
||
bit 6 |
Qb High Alarm |
||
bit 7 |
Qb Low Alarm |
||
bit 8 |
Blade Failure < HF/LF |
||
bit 9 |
Blade Failure > HF/LF |
||
bit 10 ~ 15 ( MSB ) |
Don't care |
||
118 | bit 0 ( LSB ) |
Pressure Max |
ON = Max, Min, High, Low, Fault, ..
OFF = normal |
bit 1 |
Pressure Min |
||
bit 2 |
Pressure High |
||
bit 3 |
Pressure Low |
||
bit 4 |
Pressure Transmitter Fault |
||
bit 5 |
Pressure Transmitter Comms |
||
bit 6 ~ 7 |
Don't care |
||
bit 8 |
Temperature Max |
||
bit 9 |
Temperature Min |
||
bit 10 |
Temperature High |
||
bit 11 |
Temperature Low |
||
bit 12 |
Temperature Transmitter Fault |
||
bit 13 |
Temperature Transmitter Comms |
||
bit 14 ~ 15 ( MSB ) |
Don't care |
||
119 | bit 0 ( LSB ) |
Hs Max |
ON = Max, Min, High, Low, ..
OFF = normal |
bit 1 |
Hs Min |
||
bit 2 |
Hs High |
||
bit 3 |
Hs Low |
||
bit 4 |
Hi Max |
||
bit 5 |
Hi Min |
||
bit 6 |
Hi High |
||
bit 7 |
Hi Low |
||
bit 8 |
CO2 Max |
||
bit 9 |
CO2 Min |
||
bit 10 |
CO2 High |
||
bit 11 |
CO2 Low |
||
bit 12 |
d Max |
||
bit 13 |
d Min |
||
bit 14 |
d High |
||
bit 15 ( MSB ) |
d Low |
||
<Table 2> Conetnts of each bit data for status bit code |
If you click the icon in protocol option part, you can see the dialogue box such as <Figure 2>. you can also set read schedule by using this part.
<Figure 2> Example of Instromet MODUBS ASCII communication driver¡¯s Option dialog box |
You can set read schedule by using , , button and listbox of <Figure 2>.
Also, in Modus Protocol Option shown in <Figure 2>, you can set set the 'don't use of Word unit read size' (1 = don't use, 0 = use Word unit read, default : 0).
<Figure 3> Example of Instromet MODUBS ASCII communication driver¡¯s read schedule Add/Edit dialog box |
When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> is shown.
You can control Instromet 793-1K controller by using 'writing settings'.
Digital Write
Digital write and analog write have the same setting parameters except output value.
Analog Write
Analog write setting parameters are as follows:
1) PORT Port no. (0 ~ 255)
2) STATION 1 ~ 247 modbus station number of controller.
3) ADDRESS Writing modbus address(decimal unit) or year, month.
TIME, TIME3 command : higher 2 digit = year, lower 2 digit = month.
other command : decimal unit modbus address.
4) Extra1 Writing data type.
16 – Writing the data of WORD unit.
16D – Writing the data of DWORD unit ( WORD order : LO, HI ).
16d – Writing the data of DWORD unit ( WORD order : HI, LO ).
16M – Writing the special data[HI WORD x 10000 + LO WORD] of DWORD unit ( WORD order : LO, HI ).
16m – Writing the special data[HI WORD x 10000 + LO WORD] of DWORD unit ( WORD order : HI, LO ).
16F – Writing the data of FLOAT unit ( WORD order : LO, HI ).
16F2 – Writing the data of FLOAT unit ( WORD order : LO, HI ).
16f – Writing the data of FLOAT unit ( WORD order : HI, LO ).
16fd – Writing the data of Double unit ( order : HI, LO ).
16B – Writing the data of BYTE unit.
TIME – Data, time setting for old model.
TIME1 – Data, time synchronization with computer for old model.
TIME2 – Data, time synchronization with computer for new model.
TIME3 – Data, time setting for new model.
5) Extra2 higher 2 digit = day, lower 2 digit = hour, when TIME, TIME3 command, other command : don't care.
Note) Output value for TIME, TIME3 : higher 2 digit = minute, lower 2 digit = second.
Write example 1)
PORT:0, station:1, ADDRESS:0100, Extra1: 16f, Extra2 : 0
The setting parameter shown above is a setting example of 100 modbus address by Float data(High, Low word order).
Write example 2)
PORT:0, station:1, ADDRESS:0102, Extra1: 16f, Extra2 : 0
The setting parameter shown above is a setting example of 102 modbus address by Float data(High, Low word order).
Write example 3)
PORT:0, station:1, ADDRESS:0305, Extra1: TIME, Extra2 : 2716, Output Value : 2545
The setting parameter shown above is date, time setting example. The setting date, time are 2003-05-27, 16:25:45. ( date, time setting modbus address for old model = FFFFh (65535) )
Write example 4)
PORT:0, station:1, ADDRESS:0305, Extra1: TIME3, Extra2 : 2716, Output Value : 2545
The setting parameter shown above is date, time setting example. The setting date, time are 2003-05-27, 16:25:45. ( date, time setting modbus address for new model = 01F4h (500) )
Write example 5)
PORT:0, station:1, ADDRESS:0000, Extra1: TIME2, Extra2 : 0
The setting parameter shown above is data, time synchronization example with computer for new modl. ( date, time setting modbus address for new model = 01F4h (500) )
Connection of main power line and communication cable are as follows.
Connection of main power
Please connect 24V DC main power to main power connector of Instromet 793-1K controller such as <Figure 4>.
<Figure 4> is connection example of communication cable and main power to Instromet 793-1K controller.
<Figure 4> Connection example of communication cable and main power to Instromet 793-1K |
Connection of communication cable
Please connect normal(cross) RS-232C communication cable to SKT1 connector such as <Figure 4>.
Baud rate of Instromet 793-1K controller can set by using front panel such as follows. ( refer to <Figure 5> )
1) Please place at ¡®EDIT¡¯ or ¡®DATA¡¯ the operation setting key.
2) Press 'L' button of number pad.
3) Input password by using number pad. Default password = ¡®5004¡¯.
4) Press ¡®E¡¯ button. Then, will be displayed 'Communication port 1 setting menu'.
5) Please select Baud rate, Data bit, Parity bit, MB id, ... menu by using Up, Down button.
6) After selection, press ¡®E¡¯ button.
7) Baud rate, Data bit, Parity bit can set by using Up, Down button. Also MB id can set by using number key pad.
8) After setting, press ¡®E¡¯ button. Then, the setting is completed.
Note) Available Baud rate, Data bit, Parity bit and MB id are as follows. ( bold character = default )
Baud : 1200, 2400, 4800, 9600
Data : 8Bit, 7 Bit
Parity : None, Even, Odd
MB id : 1 ~ 247
<Figure 5> is appearance of Instromet 793-1K(upper) and UPS(lower) controller.
<Figure 5> Appearance of Instromet 793-1K(upper) and UPS(lower) controller |