beautypg.com

KROHNE OPTISONIC V6 Modbus User Manual

Page 2

background image


2011-07-19

OPTISONIC_V6_Modbus_6.doc

2/29

K

R

O

H

N

E

C

T

P

ro

d

u

c

ts

TABLE OF CONTENTS

1

INTRODUCTION ......................................................................................................................................3

2

PHYSICAL COMMUNICATION LAYER...................................................................................................4

3

SERIAL TRANSMISSION FORMAT ........................................................................................................5

3.1

ASCII mode ....................................................................................................................................5

3.2

RTU mode ......................................................................................................................................5

4

MODBUS MESSAGE FRAMING .............................................................................................................6

4.1

The Address Field (Device Address) .............................................................................................6

4.2

The Function Field .........................................................................................................................6

4.3

The Data Field................................................................................................................................6

4.4

Error Checking Methods ................................................................................................................7

4.4.1

Error check in ASCII mode transmission .............................................................................7

4.4.2

Error check in RTU mode transmission ...............................................................................7

4.5

Transmission gaps .........................................................................................................................7

4.5.1

ASCII mode..........................................................................................................................7

4.5.2

RTU mode............................................................................................................................7

4.6

Response time out .........................................................................................................................7

5

SUPPORTED FUNCTIONS .....................................................................................................................8

5.1

Function 01: READ COILS.............................................................................................................8

5.2

Function 02: READ DISCRETE INPUTS.......................................................................................8

5.3

Function 03: READ HOLDING REGISTERS .................................................................................9

5.4

Function 04: READ INPUT REGISTERS.......................................................................................9

5.5

Function 05: WRITE SINGLE COIL ...............................................................................................9

5.6

Function 06: WRITE SINGLE HOLDING REGISTER....................................................................9

5.7

Function 8: DIAGNOSTICS..........................................................................................................10

5.8

Function 15: WRITE MULTIPLE COILS ......................................................................................10

5.9

Function 16: WRITE MULTIPLE HOLDING REGISTERS...........................................................10

5.10

Exception Responses ..................................................................................................................11

6

HANDLING OF LARGE DATA TYPES ..................................................................................................12

6.1

Integer (16 bit), Transmit Sequence ............................................................................................12

6.2

Long integer (32 bit), Transmit Sequence....................................................................................13

6.3

Single precision floating-point (32 bit), Transmit Sequence ........................................................13

6.4

Double precision floating-point (64 bit), Transmit Sequence .......................................................13

6.5

Long long (64 bit integer), Transmit Sequence............................................................................14

6.6

Maximum number requested items..............................................................................................14

7

DEFAULT SETTINGS ............................................................................................................................15

8

MODBUS REGISTER MAPPING...........................................................................................................16

8.1

Input Registers (read-only): Integer (16-bit); address range 3000-3499 .....................................16

8.2

Holding Registers (read/write): Integer (16-bit); address range 3500-3999 ................................17

8.3

Input Registers (read-only): Long integer (32-bit); address range 5000-5499 ............................17

8.4

Holding Registers (read/write): Long integer (32-bit), address range 5500-5999 .......................20

8.5

Input Registers (read-only): Double (64-bit floating-point), address range 6000-6499 ...............21

8.6

Holding Registers (read/write): Double (64-bit floating-point), address range 6500-6999 ..........21

8.7

Input Registers (read-only): Float (32-bit floating-point), address range 7000-7499...................22

8.8

Holding Registers (read/write): Float (32-bit) floating-point, address range 7500-7999..............25

8.9

Input Registers (read-only): Long long (64-bit integer), address range 8000-8499.....................28

8.10

Holding Registers (read/write): Long long (64-bit integer), address range 8500-8999................29