RTU) Protocol Supplement to Operating Instructions BA 244

www.reinhausen.com TAPGUARD® 240 Implementation of MODBUS (ASCII/RTU) Protocol Supplement to Operating Instructions BA 244 Contents Contents 1 In...
Author: Silvia Brooks
0 downloads 0 Views 195KB Size
www.reinhausen.com

TAPGUARD® 240 Implementation of MODBUS (ASCII/RTU) Protocol Supplement to Operating Instructions BA 244

Contents

Contents 1

Introduction ..................................................................................................................................................................................................... 4

2

Hardware ...........................................................................................................................................................................

3

Configurable Parameters ............................................................................................................................................................................ 4

4

Communication Mode .................................................................................................................................................................................. 4

5

Function Codes ................................................................................................................................................................................................ 4

6

Device Data Points ......................................................................................................................................................................................... 5 6.1 6.2 6.3

7

4

Inputs (1X references) ........................................................................................................................................................................ 5 Input Registers (3X references) ...................................................................................................................................................... 5 Holding Registers (4X references) ................................................................................................................................................. 5

DIP switch settings ........................................................................................................................................................................................ 6 7.1 Default settings .................................................................................................................................................................................. 7

BB10_222/03/01/0_261/01/01/0

Supplement BB01 to Operating Instructions of TAPGUARD® 240 © Maschinenfabrik Reinhausen 2009

3

1 2/3

1

Introduction

This implementation of the MODBUS® communication protocol (ASCII and RTU mode) in the TAPGUARD® 240 is based on the Modicon MODBUS Protocol Reference Guide, PIMBUS-300 Rev. J, copyright 1996 by Modicon Inc. MODBUS is a registered trademark of Modicon, Inc. This supplement details the implementation subset available in a TAPGUARD® 240 monitoring system equipped with the optional interface board. Refer to the documentation of TTAPGUARD® 240 available at Maschinenfabrik Reinhausen GmbH, Germany for additional information on the TAPGUARD® 240 monitoring system.

2

4 5

Introduction Hardware/Configurable Parame-

3

Communication Mode Function Codes

Configurable Parameters

Slave address

1-127; address 0 (zero) = broadcast message. 1 is default.

Baud rate

9600, 19200 (default is 9600)

Character

RTU: 8N2 (8 Bit, no parity, 2 stopbits) DEFAULT: 8E1 (8 Bit, even parity, 1 stopbit) 8O1 (8 Bit, odd parity, 1 stopbit) ASCII: 7N2 (7 Bit, no parity, 2 stopbits) 7E1 (7 Bit, even parity, 1 stopbit) 7O1 (7 Bit, odd parity, 1 stopbit)

Hardware

Communications interface

RS232 (TX, RX GND) 25 pin female sub-d connector Pin 2: TxD Pin 3: RxD Pin 7: GND

4

Communication Mode

ASCII and RTU mode are supported. The selection is done with DIP switch SW8.

5 Communications interface

Function Codes

RS485 The following MODBUS function codes are supported: 9 pin female sub-d connector Pin 3: B Pin 2: A with jumper B4 Pin 8: A with jumper B3 Pin 1 and 5: 100 ohms to ground Polarity: A > B by 200 mV means 1 B > A by 200 mV means 0 An inactive communication line is 1. The startbit is a 0.

02

Read input status

03

Read holding registers

04

Read input registers

Last device in-line: 120 W terminating resistor

4

Supplement BB01 to Operating Instructions of TAPGUARD® 240 © Maschinenfabrik Reinhausen 2009

BB01_244/02

6

Device Data Points

6

Device Data Points

6.1

Inputs (1X references):

31

MR signalling red

29

MR signalling green

30

MR signalling yellow

32

User signalling yellow

33

User signalling red

6.2

Input Registers (3X references):

1

6.3

tap position

Holding Registers (4X references):

1

not used

6

not used

7

Abrasion parts

8

Oil exchange + cleaning

9

Contact wear

10

Oil sampling

11

On-site interval

12

Lower 16 bits of Number of operations counter

13

Upper 16 bits of Number of operations counter Example: Number of operations is 80,000. This is 0x13880 in hex. The lower 16 bits are 0x3880 in hex. This will be sent in holding register 12. The upper 16 bits are 0x0001 in hex. This will be sent in holding register 13.

14 .. 18

not used

BB01_244/02

Supplement BB01 to Operating Instructions of TAPGUARD® 240 © Maschinenfabrik Reinhausen 2009

5

7

7

DIP Switch settings

DIP switch settings

S1...S8 set the address of the TAPCON® 240/260 on the smaller card (switch 1 ... 8) S1

S2

S3

S4

S5

S6

S7

Bit 0

Bit 1

Bit 2

Bit 3

Bit 4

Bit 5

Bit 6

A switch in ON - position sets the corresponding bit of the address to zero. S7 is in use, if S1-3 is ON. Example: For address 1 S1 has to be OFF, S2...S7 have to be ON. The possible setting range is 1..127, if S1-3 is ON and 1 ... 63, if S1-3 is OFF. S8 sets ASCII/RTU (small card)

S1-1 sets the baud rate on the main card (switch 1 ... 4)

S8

ASCII/RTU

S1-1

Baud rate

ON

RTU

ON

9600

OFF

ASCII

OFF

19200

S1-2 and S1-3 set the character format on the main card (switch 1 ... 4) S1-2

S1-3

S7

Format

ON

ON

X

RTU : 8E1

ASCII : 7E1

OFF

ON

X

RTU : 8O1

ASCII : 7O1

OFF

OFF

ON

RTU : 8N2

ASCII : 7N2

ON

OFF

ON

RTU : 8E1

ASCII : 7E1

OFF

OFF

OFF

RTU : 801

ASCII : 701

S1-3 enables the ‘send’ direction signal to the RS485 module. S1-3

Enable ‘send’ direction signal

ON

disabled

OFF

enabled, RS485 module present

If no RS485 module is present S1-3 should be switched to ON. If S1-3 is OFF - a signal is sent to the RS485 module before sending a telegram. - a time delay is inserted between the signal to the RS485 module and the start of the telegram itself to allow the hardware to switch from receive to send mode. The time delay is approximately 1.1ms to allow a possible external RS485/RS232 converter to switch from send to receive mode after having sent the last byte to the TAPCON® 240/260. 6

Supplement BB01 to Operating Instructions of TAPGUARD® 240 © Maschinenfabrik Reinhausen 2009

BB01_244/02

7

7.1

DIP Switch settings

Default settings

The default setting is: Address 1, RTU mode and baud rate 9600 which means S1: OFF, S2 ... S8: ON and S1-1 ... S1-3: ON (main card)

SIC-card with RS232-module

1

Optional optical fibre module on basis RS232 available as design variant with connections of type F-SMA (see figure) or FH-ST Optional RS485-module

2 BB01_244/02

3 Supplement BB01 to Operating Instructions of TAPGUARD® 240 © Maschinenfabrik Reinhausen 2009

7

www.reinhausen.com

© Maschinenfabrik Reinhausen GmbH Falkensteinstrasse 8 93059 Regensburg, Germany

Phone +49 (0)941 4090 0 Fax +49 (0)941 4090-7001 E-Mail [email protected]

Please note: The data in our publications may differ from the data of devices delivered. We reserve the right to make changes without notice. BB01_ 244/02 en • 0609 • Printed in Germany