beautypg.com

KROHNE ALTOSONIC V Modbus EN User Manual

Page 2

background image

ALTOSONIC V

ModBus Manual 0300 rev07 E

7.30855.35.00

Page 2 of 64


TABLE OF CONTENTS

1

INTRODUCTION TO MODBUS.................................................................................................... 5

2

SERIAL TRANSMISSION FORMAT ............................................................................................ 6

2.1

ASCII-

MODE

................................................................................................................................... 6

2.2

RTU-

MODE

..................................................................................................................................... 6

3

MODBUS MESSAGE FRAMING.................................................................................................. 7

3.1

T

HE

A

DDRESS

F

IELD

....................................................................................................................... 7

3.2

T

HE

F

UNCTION

F

IELD

...................................................................................................................... 7

3.3

T

HE

D

ATA

F

IELD

.............................................................................................................................. 7

3.4

T

HE

E

RROR

C

HECKING

F

IELD

.......................................................................................................... 8

3.5

O

THER

E

RROR

C

HECKING

M

ETHODS

............................................................................................... 8

4

PHYSICAL COMMUNICATION LAYER....................................................................................... 9

4.1

W

HEN USING

RS232

TO

RS485

CONVERTERS

................................................................................. 9

4.2

W

HEN USING SERIAL

I/O

CARDS WITH

RS485

DRIVERS

..................................................................... 9

5

SUPPORTED FUNCTIONS ........................................................................................................ 10

5.1

F

UNCTION

01:

READ

COIL

STATUS ............................................................................................ 10

5.2

F

UNCTION

02:

READ

INPUT

STATUS.......................................................................................... 11

5.3

F

UNCTION

03:

READ

MULTIPLE

HOLDING

REGISTERS ........................................................... 11

5.4

F

UNCTION

04:

READ

INPUT

REGISTERS ................................................................................... 12

5.5

F

UNCTION

05:

WRITE

SINGLE

COIL ........................................................................................... 12

5.6

F

UNCTION

06:

WRITE

SINGLE

HOLDING

REGISTER ................................................................ 12

5.7

F

UNCTION

8:

DIAGNOSTICS........................................................................................................ 13

5.8

F

UNCTION

15:

WRITE

MULTIPLE

COILS .................................................................................... 13

5.9

F

UNCTION

16:

WRITE

MULTIPLE

HOLDING

REGISTERS ......................................................... 14

5.10

E

XCEPTION

R

ESPONSES

............................................................................................................ 15

6

HANDLING OF LARGE DATA TYPES ...................................................................................... 16

6.1

F

LOATING

P

OINT

R

EPRESENTATION

............................................................................................... 17

6.2

D

OUBLE

R

EPRESENTATION

............................................................................................................ 17

6.3

T

RANSMIT

S

EQUENCE

.................................................................................................................... 17

6.4

M

AXIMUM REQUESTED POINTS

....................................................................................................... 18

7

SET-UP OF THE UFP-V MODBUS DRIVER ............................................................................. 20

7.1

D

RIVER

C

ONTENTS

........................................................................................................................ 20

7.2

H

ARDWARE SET

-

UP

....................................................................................................................... 20

7.2.1

RS485/422 card: AX4285A............................................................................................................ 21

7.2.2

RS485/422 card: PCL-745 S ......................................................................................................... 22

7.3

S

OFTWARE SET

-

UP

....................................................................................................................... 23

7.3.1

First set the parameters for the communication line...................................................................... 23

7.3.2

Now select the parameters for the used protocol .......................................................................... 23

7.3.3

The UFP-V as SLAVE device ........................................................................................................ 23

7.3.4

The UFP-V as Master .................................................................................................................... 24

7.4

W

HAT CAN GO WRONG

? ................................................................................................................ 25

7.5

H

OW

S

TATUS

F

LAGS ARE

U

PDATED

............................................................................................... 25

7.6

H

OW DATA IS WRITTEN TO THE FLOAT FIELD

.................................................................................... 27

7.6.1

How to write in the float field to the specific application ................................................................ 27

8

MODBUS MAPPING ASSIGNMENTS ....................................................................................... 29

8.1

F

IELD

0

(R

EAD ONLY

B

OOLEAN FIELD

) ............................................................................................ 29

8.2

F

IELD

1

(R

EAD

/W

RITE

B

OOLEAN

F

IELD

) ......................................................................................... 31

8.3

F

IELD

2

(R

EAD ONLY

I

NTEGER

F

IELD

) ............................................................................................. 35

8.4

F

IELD

3

(R

EAD ONLY

L

ONG

I

NTEGER

F

IELD

).................................................................................... 38

8.5

F

IELD

4

(R

EAD ONLY

F

LOAT

F

IELD

) ................................................................................................ 40

8.6

F

IELD

5

(R

EAD ONLY

D

OUBLE

F

IELD

).............................................................................................. 45

8.7

F

IELD

6

(R

EAD

/W

RITE

F

LOAT

F

IELD

).............................................................................................. 46