KROHNE IFC-300 User Manual

Page 1
Supplementary instructions
Supplementary instructions
IFC 300
IFC 300
IFC 300IFC 300
Signal converter for electromagnetic flowmeters
Description of Modbus interface
Description of Modbus interface
Description of Modbus interfaceDescription of Modbus interface
Electronic Revision: ER 3.3.xx (SW.REV. 3.3x) Modbus version 1.2.x
© KROHNE 07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
Page 2
CONTENTS
IFC 300
1 Important information 3
2 Technical data 4
2.1 General technical data .....................................................................................................4
2.2 Technical data of the Modbus interface (acc. to EIA standards) ..................................... 4
3 Connection in bus systems 5
4 Local configuration 6
5 Electrical connection 7
6 Modbus protocol 8
6.1 General information concerning the protocol ................................................................. 8
6.2 RTU frame format............................................................................................................. 8
6.3 Addressing........................................................................................................................ 9
6.4 Overview of supported functions...................................................................................... 9
6.5 Device identification on the Modbus interface............................................................... 10
6.6 Coil registers .................................................................................................................. 10
6.6.1 Converter controls ................................................................................................................ 10
6.6.2 Counter controls ................................................................................................................... 11
6.6.3 Start calibration functions .................................................................................................... 11
6.7 Input registers ................................................................................................................ 12
6.8 Holding registers............................................................................................................ 14
6.8.1 Counter parameters ............................................................................................................. 14
6.8.2 Process input filter parameters ........................................................................................... 15
6.8.3 Modbus parameters.............................................................................................................. 17
6.9 Diagnostics ..................................................................................................................... 17
6.10 Calibration procedures................................................................................................. 18
6.10.1 Zero Flow Calibration.......................................................................................................... 18
6.10.2 Coil Temperature Calibration ............................................................................................. 19
6.10.3 Conductivity Calibration...................................................................................................... 20
7 Notes 21
2
www.krohne.com 07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
Page 3
IFC 300
IMPORTANT INFORMATION 1
The flow converter with the RS485 interface card fitted, is able to communicate with an external device (PC or other suitable computer system) using the Modbus protocol. This option allows data exchange between PC or computer and single or multiple devices.
The bus configuration consists of one external device as a master and one or more converters as slaves. For bus operation the device address (menu C5.8.1), baudrate (menu C5.8.2) and settings (menu C5.8.3, C5.8.4, C5.8.5 & C5.8.6) must be set in the converter.
All devices connected to the bus, must have different unique addresses but the same baud rate and settings.
www.krohne.com07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
3
Page 4
2 TECHNICAL DATA
2.1 General technical data
Interface RS485, galvanically isolated
Baud rate 1200, 2400, 4800, 9600, 19200, 38400, 57600 or 115200
Protocol Modbus RTU (available as a separate document on request)
Maximum participants on bus 32 per line, master included (may be extended by repeaters)
Coding NRZ bit coding
Address range Modbus: 1...247
Transmission procedure Half duplex, asynchronous
Bus access Master / slave
Cable Screened twisted pair
Distances Maximum 1.2 km / 3937 ft without repeater (dependant on
baud rate and cable specifications)
2.2 Technical data of the Modbus interface (acc. to EIA standards)
Kind of signal transmission Differential, 2-wire topology
Maximum number of transmitter/receivers
Voltage range on converter input -7...+12 V
Maximum voltage on converter output 5V
Minimum voltage on driver output, max. load
Maximum input current (off state) -20...+20 μA
Receiver input voltage -7...+12 V
Sensitivity of the receiver -200...+200 mV
Receiver input resistance >12kΩ
Short circuit current < 250 mA
Termination / polarization resistors (if activated by the jumpers X5/X6)
32
U
>1.5V
diff
120 Ω / 560 Ω
IFC 300
4
www.krohne.com 07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
Page 5
IFC 300
CONNECTION IN BUS SYSTEMS 3
For proper operation of Modbus in half duplex mode in single or multi-drop communication, it is recommended that a termination resistor is applied to both ends of the data line. The simplest form of termination is line-to-line resistor across the differential input.
In RTU mode the Modus protocol requires quiet periods on the communications bus for synchronisation. It is therefore important that the Modbus is not allowed to "float", i.e. unreferenced to 0 V, as this could lead to spurious signals due to noise pick-up. It is therefore necessary to employ biasing resistors at one point on the bus network, normally the "end".
The Modbus converter has two conditions. Default is without termination and polarization. To get the active termination and polarization the settings of jumper X5 and X6 on Modbus board must be changed then. For detailed information see chapter "Electrical Connection".
www.krohne.com07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
5
Page 6
4 LOCAL CONFIGURATION
IFC 300
Converter Fct.
Display Description and settings
No.
C5.8.1 Slave Address Selects the Modbus address of the device.
C5.8.2 Baud Rate Selects the baud rate of the device.
C5.8.3 Parity Selects the parity.
C5.8.4 Data Format Selects the data format.
C5.8.5 Transmission Delay Selects the delay between receiving the last byte of a request and
C5.8.6 Stop Bits Selects the number of stop bits.
C5.8.7 Information Displays information about the device.
Range: 1..247 (default = 1)
Options: 1200 / 2400 / 3600 / 4800 / 9600 / 19200 (default) / 38400 / 57600 / 115200
Options: Even (default) / Odd / No
Options: Big Endian (default) / Little Endian
sending the first byte of the response. Range: 0..40ms (default = 0ms)
Options: 1 (default) / 2
6
www.krohne.com 07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
Page 7
IFC 300
ELECTRICAL CONNECTION 5
Terminals A and B of the converter are dependant on the options selected at order. Refer to the standard handbook of the converter for connection details.
Modbus connections
Terminals Description
D- Signal A (D 0)
D Signal B (D 1)
C- Common 0 V
C Not connected
Jumper settings on the Modbus printed circuit board
Jumper position Description
X5 X6
1-2 1-2 With termination and polarization
2-3 2-3 Without termination and polarization
www.krohne.com07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
7
Page 8
6 MODBUS PROTOCOL
6.1 General information concerning the protocol
Using RTU (Remote Terminal Unit) format, data is transmitted as 8 bit binary characters. There are no special characters to determine the start and end of a message frame.
Synchronization is achieved by a minimum silent period of at least 3.5 character times before the start of each frame transmission and a maximum silent period of 1.5 character times between characters in the same frame.
6.2 RTU frame format
The format of the query and response frames vary slightly depending upon the command function. The basic form is outlined below.
Command function Frame format Description
IFC 300
Silent period 3.5 x T All transmissions must be preceded by a minimum silent
Slave address 8bits This is a single byte slave address which is transmitted
Function code 8bits This is an eight bit code in the range of 1...255 although
Register start address or byte count when required
Number of points or data bytes when required
8 bit byte count 16 bit address
n×8bits Number of points:
period of 3.5 x T, where T is the transmission time of a single character. This can be calculated from the baud rate, e.g. at 19.2 kb no parity with 1 stop bit (10 bits), T=520µs.
first and must be in the range of 1...247. Address 0 is reserved for a broadcast address which all slaves should recognize, and therefore requires no response.
only 126 functions exist as the codes 129...255 represent an error condition. An error condition occurs when the addressed slave does not accept the command, in which case it responds with the function code + 128, i.e. with its MSB set to 1.
Register start address:
Register start address: for a query command that requires
Register start address:Register start address: data to be returned, this field will contain the 16 bit start address of the register (or data) to be returned. Note that the converter uses protocol addresses. Therefore the register address listed is the actual number required in the Modbus command.
E.g:
E.g: to access input register 30006, the register start
E.g:E.g: address is 30006dec = 7536hex.
Byte count:
Byte count: In general this is only present in frames that
Byte count:Byte count: are transferring data, and has a value equal to the number of bytes contained in the data field. The data field is limited to a maximum of 250 bytes.
Number of points: for a query command that requires data
Number of points:Number of points: to be returned, this field will contain the number of registers to be returned regardless of their bit size.
Data bytes:
Data bytes: contains the data requested. The converter can
Data bytes:Data bytes: use big endian format (MSB first) or little endian format (LSB first).
CRC 16 bits This field contains a 16 bit CRC which is calculated on all
8
www.krohne.com 07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
the data bits of the message bytes.
Page 9
IFC 300
6.3 Addressing
In the following tables the Modbus protocol addresses / data addresses are listed.
Some systems cannot use addresses above 9999. For these systems there is the possibility to use the listed addresses but
for Input Registers omit the leading 3 of 3xxxx;
for Holding Registers omit the leading 4 of 4xxxx;
for Input Registers replace the leading 20 of 20xxx by 9xxx.
MODBUS PROTOCOL 6
Sometimes register numbers are asked for. The register numbers 1 to the protocol address and using a prefix according to the block:
prefix 1 for coils
prefix 3 for Input Registers
prefix 4 for Holding Registers
register numbers can be calculated by adding a
register numbersregister numbers
6.4 Overview of supported functions
The following table shows Modbus functions supported by RS485 interface.
Function code Name Access to
hex dec
01 01 Read Single Coil Status of calibration functions, counter
03 03 Read Holding Register Converter configuration parameter
04 04 Read Input Register Measurement values, status values and
05 05 Write Single Coil Cold start, warm start, error reset, start
08 08 Diagnostics -
10 16 Write Multiple Register Converter configuration parameter
status (start/stop)
calibration results
calibration function, start/stop counter
www.krohne.com07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
9
Page 10
6 MODBUS PROTOCOL
IFC 300
6.5 Device identification on the Modbus interface
The device identification is according to the category "Regular" according to the Modbus Application Protocol Specification V1.1a. Function code 43 / 14 (0x2B / 0x0E).
Modbus object Id Object name / Description Type Content
0x00 VendorName 16 byte ASCII String KROHNE
0x01 ProductCode 10 byte ASCII String CG number; order code for the
0x02 MajorMinorRevision 7 byte ASCII String V1.2.xx
0x03 Vendor URL 32 byte ASCII String www.krohne.com
0x04 ProductName 16 byte ASCII String IFC300
0x05 ModelName 16 byte ASCII String Modbus
0x06 UserApplicationName 16 byte ASCII String User tag, displayed on the
converter assembly
header of the local screen
6.6 Coil registers
These function codes are used for access:
0x01 = read input coil
0x05 = write single coil
6.6.1 Converter controls
Coil address Function
1000 Write 1 generates a cold start, write 0 is ignored
1001 Write 1 generates a warm start, write 0 is ignored
1002 Write 1 generates an error reset, write 0 is ignored
10
www.krohne.com 07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
Page 11
IFC 300
6.6.2 Counter controls
MODBUS PROTOCOL 6
Modbus protocol
Description Settings Converter Fct. No.
address
3000 Start / Stop
Counter 1
3001 Start / Stop
Counter 2
3002 Start / Stop
Counter 3 1
3003 Reset Counter 1 Write 1 reset counter C3.1.6
3004 Reset Counter 2 Write 1 reset counter C3.2.6
3005 Reset Counter 3 1 Write 1 reset counter C3.3.6
1 Only available in converters with IO2. A write attempt to a non-existing counter will cause an error response.
Write 1 start counter C3.1.8 / C3.1.9
Write 0 stop counter
Read 1 counter is running
Read 0 counter is stopped
Write 1 start counter C3.2.8 / C3.2.9
Write 0 stop counter
Read 1 counter is running
Read 0 counter is stopped
Write 1 start counter C3.3.8 / C3.3.9
Write 0 stop counter
Read 1 counter is running
Read 0 counter is stopped
Write 0 -
Read 0 -
Write 0 -
Read 0 -
Write 0 -
Read 0 -
6.6.3 Start calibration functions
Modbus protocol address
2000 Zero Calibration Write 1 start function C1.1.1
2001 Coil Temperature
2002 Electrode Factor
Description Settings Converter Fct. No.
Write 0 -
Read 0 -
Calibration
Calibration
Write 1 start function C1.1.8
Write 0 -
Read 0 -
Write 1 start function C1.1.11
Write 0 -
Read 0 -
www.krohne.com07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
11
Page 12
6 MODBUS PROTOCOL
6.7 Input registers
Measurement and status values are read only and can be accessed as Modbus "Input Registers".
Also the result of a calibration procedure is accessed by an input register at Modbus Protocol Address 20000 or 9000. The type are one or more float values.
Function code is 04 (0x04).
1: not available for senor option PF (partly filled) 2: not available for senor option CAP (capacitive) 3: only available for senor option PF (partly filled)
IFC 300
Modbus protocol
Description and settings Type Number of registers
address
1st 2nd
30000 0 flow speed
30002 2
30004 4 mass flow
30004 4 level
30006 6 coil temperature
30008 8 conductivity
30010 10 diagnosis value
30012 12 Display Channel 1
30014 14 Display Channel 2
30016 16 Operating time
30018 18 Not used, returns zero float 2
30020 20
30024 24
flow speed [m/s] float 2
flow speedflow speed
volume flow
volume flow [m3/s]
volume flowvolume flow mass flow [kg/s] (1) float 2
mass flowmass flow level [%] (3) float 2
levellevel
coil temperature [K] float 2
coil temperaturecoil temperature
conductivity [S/m]
conductivityconductivity This value may not be measured. Depending on register (4)2003. 0 = off (not measured) 1 = conductivity [S/m] 2 = cond. + empty pipe (S) [S/m] 3 = cond. + empty pipe (F) [S/m] 4 = cond. + empty pipe (I) [S/m]
For the sensor option PF and CAP this value is only used for empty pipe detection.
diagnosis value
diagnosis valuediagnosis value This value may not be measured. Depending on register (4)2011. 25 = off (not measured) 31 = electrode noise [m/s] 28 = flow profile [no unit] (1, 2) 21 = linearity [no unit] (1, 2) 8 = terminal 2 DC [Volt] (2) 9 = terminal 3 DC [Volt] (2)
Display Channel 1
Display Channel 1Display Channel 1 Represents the value on the first line of the first measurement screen in SI units
Display Channel 2
Display Channel 2Display Channel 2 Represents the value on the first line of the second measurement screen in SI units
Operating time [s] float 2
Operating timeOperating time
Counter 1
Counter 1 [m3] or [kg]
Counter 1Counter 1
Counter 2
Counter 2 [m3] or [kg]
Counter 2Counter 2
float 2
float 2
float 2
float 2
float 2
double float 4
double float 4
12
www.krohne.com 07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
Page 13
IFC 300
MODBUS PROTOCOL 6
Modbus protocol
Description and settings Type Number of registers
address
1st 2nd
30028 28
30032 32 long status sensor
30034 34 long status device
30036 36 long status sensor option PF
Counter 3
Counter 3 [m3] or [kg]
Counter 3Counter 3 Note: this counter is only available for converter with IO 2!
long status sensor byte [4] 2
long status sensorlong status sensor
long status device byte [4] 2
long status devicelong status device long status sensor option PF (3) byte [4] 2
long status sensor option PFlong status sensor option PF
Input register (3)0018 is not used up to now. This is included to fill the gap between the float and double float values and allows to read the full range of registers.
double float 4
www.krohne.com07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
13
Page 14
6 MODBUS PROTOCOL
6.8 Holding registers
Some parameters of the device can be accessed as Modbus holding registers.
Function code 03 (0x03) for "Read" operations and function code 16 (0x10) for "Write" operations.
The holding registers are grouped into the following different sections.
6.8.1 Counter parameters
INFORMATION!
Counter 3 parameters are only available for converter with IO 2.
1: not available for senor option PF (partly filled) 2: not available for senor option CAP (capacitive) 3: only available for senor option PF (partly filled)
IFC 300
Modbus protocol
Description and settings Converter Fct.
address
1st 2nd
40000 0 counter 1 function
40001 1 measurement Cnt1
40001 1 measurement Cnt1
40002 2 counter 2 function
40003 3 measurement Cnt2
40003 3 measurement Cnt2
40004 4 counter 3 function
40005 5 measurement Cnt3
40005 5 measurement Cnt3
41000 1000
41002 1002 time constant Cnt1
counter 1 function
counter 1 functioncounter 1 function 1=sum counter 2=+counter 3 = - counter 0=off
measurement Cnt1 (1)
measurement Cnt1measurement Cnt1 21 = volume flow 22 = mass flow
measurement Cnt1 (3)
measurement Cnt1measurement Cnt1 27 = volume flow
counter 2 function
counter 2 functioncounter 2 function 1=sum counter 2=+counter 3 = - counter 0=off
measurement Cnt2 (1)
measurement Cnt2measurement Cnt2 21 = volume flow 22 = mass flow
measurement Cnt2 (3)
measurement Cnt2measurement Cnt2 27 = volume flow
counter 3 function
counter 3 functioncounter 3 function 1=sum counter 2=+counter 3 = - counter 0=off
measurement Cnt3 (1)
measurement Cnt3measurement Cnt3 21 = volume flow 22 = mass flow
measurement Cnt3 (3)
measurement Cnt3measurement Cnt3 27 = volume flow
low flow cutoff value Cnt1
low flow cutoff value Cnt1 [m3/s] or [kg/s]
low flow cutoff value Cnt1low flow cutoff value Cnt1
time constant Cnt1 [s] C3.1.4 float 2
time constant Cnt1time constant Cnt1
Type Number of
No.
C3.1.1 byte 1
C3.1.2 word 1
C3.1.2 word 1
C3.2.1 byte 1
C3.2.2 word 1
C3.2.2 word 1
C3.3.1 byte 1
C3.3.2 word 1
C3.3.2 word 1
C3.1.3 float 2
registers
14
www.krohne.com 07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
Page 15
IFC 300
MODBUS PROTOCOL 6
Modbus protocol
Description and settings Converter Fct.
address
1st 2nd
41004 1004
41006 1006
41008 1008 time constant Cnt2
41010 1010
41012 1012
41014 1014 time constant Cnt3
41016 1016
41018 1018
41020 1020
41022 1022
set counter Cnt1 or read Cnt1
set counter Cnt1 or read Cnt1 [m3] or [kg]
set counter Cnt1 or read Cnt1set counter Cnt1 or read Cnt1
low flow cutoff value Cnt2
low flow cutoff value Cnt2 [m3/s] or [kg/s]
low flow cutoff value Cnt2low flow cutoff value Cnt2
time constant Cnt2 [s] C3.2.4 float 2
time constant Cnt2time constant Cnt2
set counter Cnt2 or read Cnt2
set counter Cnt2 or read Cnt2 [m3] or [kg]
set counter Cnt2 or read Cnt2set counter Cnt2 or read Cnt2
low flow cutoff value Cnt3
low flow cutoff value Cnt3 [m3/s] or [kg/s]
low flow cutoff value Cnt3low flow cutoff value Cnt3
time constant Cnt3 [s] C3.3.4 float 2
time constant Cnt3time constant Cnt3
set counter Cnt3 or read Cnt3
set counter Cnt3 or read Cnt3 [m3] or [kg]
set counter Cnt3 or read Cnt3set counter Cnt3 or read Cnt3
preset counter 1
preset counter 1 [m3] or [kg]
preset counter 1preset counter 1
preset counter 2
preset counter 2 [m3] or [kg]
preset counter 2preset counter 2
preset counter 3
preset counter 3 [m3] or [kg]
preset counter 3preset counter 3
6.8.2 Process input filter parameters
1: not available for senor option PF (partly filled) 2: not available for senor option CAP (capacitive) 3: only available for senor option PF (partly filled) 4: only available for senor option CAP (capacitive)
Type Number of
No.
C3.1.7 float 2
C3.2.3 float 2
C3.2.7 float 2
C3.3.3 float 2
C3.3.7 float 2
C3.1.5 float 2
C3.2.5 float 2
C3.3.5 float 2
registers
Modbus protocol
Description and settings Converter Fct.
address
1st 2nd
42000 2000 flow direction
42001 2001 pulse filter
42002 noise filter
42003 2003 empty pipe
42003 2003 empty pipe
42004 2004 full pipe
flow direction
flow directionflow direction 0=normal direction 1 = reverse direction
pulse filter
pulse filterpulse filter 0=off 1=on 2 = automatic
noise filter
noise filternoise filter 0=off 1=on
empty pipe (1, 2)
empty pipeempty pipe 0=off 1 = conductivity 2 = cond. + empty pipe (S) 3 = cond. + empty pipe (F) 4 = cond. + empty pipe (I)
empty pipe (3, 4)
empty pipeempty pipe 0=off 1 = conductivity 2 = empty pipe (S) 3 = empty pipe (F) 4 = empty pipe (I)
full pipe (1, 2)
full pipefull pipe 0=off 1=on
Type Number of
No.
C1.2.2 byte 1
C1.2.4 byte 1
C1.2.7 byte 1
C1.3.1 byte 1
C1.3.1 byte 1
C1.3.4 byte 1
registers
www.krohne.com07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
15
Page 16
6 MODBUS PROTOCOL
IFC 300
Modbus protocol
Description and settings Converter Fct.
address
1st 2nd
42005 2005 linearity
42006 2006 gain
42007 2007 coil current
42008 2008 flow profile
42009 2009 electrode noise
42010 2010 settling of field
42011 2011 diagnosis value
43000 3000 limitation low
43002 3002 limitation high
43004 3004 time constant
43006 3006 pulse width
43008 3008 pulse limitation
43010 3010 noise level
43012 3012 noise suppression
43014 3014 low flow cutoff value
43016 3016 limit empty pipe
43018 3018 limit full pipe
43020 3020 limit flow profile
43022 3022 limit electrode noise
43024 3024 Zero point
43026 3026 Coil Resistance Rsp, 20
43028 3028 Coil Temperature Calpoint
43030 3030 Coil Resistance Calpoint
43032 3032 Electrode Factor EF
43034 3034 Conductivity Calpoint
43036 3036 Conductivity Calpoint
linearity (1, 2)
linearitylinearity 0=off 1=on
gain
gaingain 0=off 1=on
coil current
coil currentcoil current 0=off 1=on
flow profile (1, 2)
flow profileflow profile 0=off 1=on
electrode noise
electrode noiseelectrode noise 0=off 1=on
settling of field
settling of fieldsettling of field 0=off 1=on
diagnosis value
diagnosis valuediagnosis value 25 = off 31 = electrode noise 28 = flow profile (1, 2) 21 = linearity (1, 2) 8=terminal2DC (2) 9=terminal3DC (2)
limitation low [m/s] C1.2.1 float 2
limitation lowlimitation low
limitation high [m/s] C1.2.1 float 2
limitation highlimitation high
time constant [s] C1.2.3 float 2
time constanttime constant
pulse width [s] C1.2.5 float 2
pulse widthpulse width
pulse limitation [m/s] C1.2.6 float 2
pulse limitationpulse limitation
noise level [m/s] C1.2.8 float 2
noise levelnoise level
noise suppression C1.2.9 float 2
noise suppressionnoise suppression
low flow cutoff value [m/s] C1.2.10 float 2
low flow cutoff valuelow flow cutoff value
limit empty pipe [S/m] C1.3.3 float 2
limit empty pipelimit empty pipe limit full pipe [S/m] (1, 2) C1.3.5 float 2
limit full pipelimit full pipe limit flow profile (1, 2) C1.3.11 float 2
limit flow profilelimit flow profile
limit electrode noise [m/s] C1.3.14 float 2
limit electrode noiselimit electrode noise
Zero point [m/s] C1.1.1 float 2
Zero pointZero point
Coil Resistance Rsp, 20 [Ω] C1.1.7 float 2
Coil Resistance Rsp, 20Coil Resistance Rsp, 20
Coil Temperature Calpoint [K] C1.1.8 float 2
Coil Temperature CalpointCoil Temperature Calpoint
Coil Resistance Calpoint [Ω] C1.1.8 float 2
Coil Resistance CalpointCoil Resistance Calpoint
Electrode Factor EF [m] C1.1.11 float 2
Electrode Factor EFElectrode Factor EF
Conductivity Calpoint [S/m] C1.1.11 float 2
Conductivity CalpointConductivity Calpoint
Conductivity Calpoint [S/m] C1.1.11 float 2
Conductivity CalpointConductivity Calpoint
Type Number of
No.
C1.3.6 byte 1
C1.3.8 byte 1
C1.3.9 byte 1
C1.3.10 byte 1
C1.3.13 byte 1
C1.3.16 byte 1
C1.3.17 byte 1
registers
16
www.krohne.com 07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
Page 17
IFC 300
6.8.3 Modbus parameters
MODBUS PROTOCOL 6
Modbus protocol
Description and settings Converter Fct.
address
50000 baud rate
50002 slave address
50003 parity
50004 data format
baud rate
baud ratebaud rate 1200 / 2400 / 3600 / 4800 / 9600 / 19200 (default) / 38400 / 57600 / 115200
slave address C5.8.1 byte 1
slave addressslave address
parity
parityparity 0 = even parity (default) 1 = odd parity 3=no parity
data format
data formatdata format 1=Big Endian 2 = Little Endian
6.9 Diagnostics
The Modbus interface supports the diagnostic function defined by the "Modbus Application Protocol Specification".
Function code is 08 (0x08).
Sub function code Name
hex dec
Type Number of
No.
C5.8.2 ulong 2
C5.8.3 byte 1
C5.8.4 byte 1
registers
00 00 Return Query Data
01 01 Restart Communication Option
04 04 Force Listen Only Mode
0A 10 Clear Counters
0B 11 Return Bus Message Count
0C 12 Return Bus Communication Error Count
0D 13 Return Bus Exception Count
0E 14 Return Slave Message Count
0F 15 Return Slave No Response Count
10 16 Return Slave NAK Count (counter not used)
11 17 Return Slave Busy Count (counter not used)
12 18 Return Bus Character Overrun Count
www.krohne.com07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
17
Page 18
6 MODBUS PROTOCOL
6.10 Calibration procedures
6.10.1 Zero Flow Calibration
IFC 300
1 User reduces the actual flow through the meter to
2 Start zero calibration:
3 Check status of calibration
3a [2000 == 1: calibration running]
3b [2000 == 0: calibration complete]
4 Read Calibration Value
5 User checks the calibration value:
5a Not ok
5b ok
6 User tries to improve the calibration situation
6a Improvement done
6b Improvement not possible
7 Write the calibration value
8 Activate new values
8a This results in a warm start of the device.
User reduces the actual flow through the meter to
User reduces the actual flow through the meter to User reduces the actual flow through the meter to zero
zero
zerozero Start zero calibration:
Start zero calibration:Start zero calibration: Set single coil 2000 to 1 (Modbus Fct. 0x05)
Check status of calibration
Check status of calibrationCheck status of calibration Read single coil 2000 (Modbus Fct. 0x01)
Read Calibration Value
Read Calibration ValueRead Calibration Value Read Input Register 20000 type float (Modbus Fct. 0x04)
User checks the calibration value:
User checks the calibration value:User checks the calibration value:
-0.01...+0.01: good results
-0.1...+0.1: acceptable result for difficult application
User tries to improve the calibration situation
User tries to improve the calibration situationUser tries to improve the calibration situation
-Break-
Write the calibration value
Write the calibration valueWrite the calibration value Write Holding Register 43024 type float (Modbus Fct. 0x10)
Activate new values
Activate new valuesActivate new values Set single coil 1001 to 1 (Modbus Fct. 0x05)
Will take maximum 5s.
18
www.krohne.com 07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
Page 19
IFC 300
6.10.2 Coil Temperature Calibration
MODBUS PROTOCOL 6
1 Read actual Rsp,20
2 User checks the value with the calibration value
2a Rsp,20 not correct
2b Write correct Rsp,20
2c Rsp,20 correct or corrected
3 User enters the actual coil temperature in K
4 Write actual coil temperature
5 Start coil temperature calibration:
6 Check status of calibration:
6a [2001 == 1: calibration running]
6b [2001 == 0: calibration complete]
7 Read Calibration Value
8 Write the calibration value
9 Activate new values
9a This results in a warm start of the device.
Read actual Rsp,20
Read actual Rsp,20Read actual Rsp,20 Read Holding Register 43026 type float (Modbus Fct. 0x03)
on the type plate of the device
Write correct Rsp,20
Write correct Rsp,20Write correct Rsp,20 Write Holding Register 43026 type float (Modbus Fct. 0x10)
User enters the actual coil temperature in K
User enters the actual coil temperature in KUser enters the actual coil temperature in K This is the target for the calibration
Write actual coil temperature
Write actual coil temperatureWrite actual coil temperature Write Holding Register 43028 type float (Modbus Fct. 0x10)
Start coil temperature calibration:
Start coil temperature calibration:Start coil temperature calibration: Set single coil 2001 to 1 (Modbus Fct. 0x05)
Check status of calibration:
Check status of calibration:Check status of calibration: Read single coil 2001 (Modbus Fct. 0x01)
Read Calibration Value
Read Calibration ValueRead Calibration Value Read Input Register 20000 type foat (Modbus Fct. 0x04)
Write the calibration value
Write the calibration valueWrite the calibration value Write Holding Register 43030 type foat (Modbus Fct. 0x10)
Activate new values
Activate new valuesActivate new values Set single coil 1001 to 1 (Modbus Fct. 0x05)
Will take maximum 5s.
www.krohne.com07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
19
Page 20
6 MODBUS PROTOCOL
6.10.3 Conductivity Calibration
IFC 300
1 User enters the actual conductivity in S/m
2 Write actual conductivity
3 Write actual conductivity
3a The target value has to be written to both
4 Start conductivity calibration:
5 Check status of calibration:
5a [2002 == 1: calibration running]
5b [2002 == 0: calibration complete]
6 Read Calibration Value
7 Write the calibration value
8 Activate new values
8a This results in a warm start of the device.
User enters the actual conductivity in S/m
User enters the actual conductivity in S/mUser enters the actual conductivity in S/m This is the target for the calibration
Write actual conductivity
Write actual conductivityWrite actual conductivity Write Holding Register 43034 type float (Modbus Fct. 0x10)
Write actual conductivity
Write actual conductivityWrite actual conductivity Write Holding Register 43036 type float (Modbus Fct. 0x10)
registers!
Start conductivity calibration:
Start conductivity calibration:Start conductivity calibration: Set single coil 2002 to 1 (Modbus Fct. 0x05)
Check status of calibration:
Check status of calibration:Check status of calibration: Read single coil 2002 (Modbus Fct. 0x01)
Read Calibration Value
Read Calibration ValueRead Calibration Value Read Input Register 20000 type float (Modbus Fct. 0x04)
Write the calibration value
Write the calibration valueWrite the calibration value Write Holding Register 43032 type float (Modbus Fct. 0x10)
Activate new values
Activate new valuesActivate new values Set single coil 1001 to 1 (Modbus Fct. 0x05)
Will take maximum 5s.
20
www.krohne.com 07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
Page 21
IFC 300
NOTES 7
www.krohne.com07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
21
Page 22
7 NOTES
IFC 300
22
www.krohne.com 07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
Page 23
IFC 300
NOTES 7
www.krohne.com07/2010 - 4000410703 - AD Modbus IFC 300 R03 en
23
Page 24
KROHNE product overview
Electromagnetic flowmeters
Variable area flowmeters
Ultrasonic flowmeters
Mass flowmeters
Vortex flowmeters
Flow controllers
Level meters
Temperature meters
Pressure meters
Analysis products
Measuring systems for the oil and gas industry
Measuring systems for sea-going tankers
Head Office KROHNE Messtechnik GmbH Ludwig-Krohne-Str. 5 D-47058 Duisburg (Germany) Tel.:+49 (0)203 301 0 Fax:+49 (0)203 301 10389 info@krohne.de
© KROHNE 07/2010 - 4000410703 - AD Modbus IFC 300 R03 en - Subject to change without notice.
The current list of all KROHNE contacts and addresses can be found at: www.krohne.com
Loading...