www.reinhausen.com TAPGUARD 240 Implementation of MODBUS (ASCII/RTU) Protocol Supplement to Operating Instructions BA 244
Contents Contents 1 Introduction... 4 2 Hardware... 4 3 Configurable Parameters... 4 4 Communication Mode... 4 5 Function Codes... 4 6 Device Data Points... 5 6.1 Inputs (1X references)... 5 6.2 Input Registers (3X references)... 5 6.3 Holding Registers (4X references)... 5 7 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 Introduction 2/3 Hardware/Configurable Parame- 4 Communication Mode 5 Function Codes 1 Introduction 3 Configurable Parameters This implementation of the MODBUS communication protocol (ASCII and RTU mode) in the TAPGUARD 240 is based on the Modicon MODBUS Protocol Reference Guide, PI- MBUS-300 Rev. J, copyright 1996 by Modicon Inc. MODBUS is a registered trademark of Modicon, Inc. Slave address 1-127; address 0 (zero) = broadcast message. 1 is default. Baud rate 9600, 19200 (default is 9600) 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 Hardware 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) Communications interface Communications interface RS232 (TX, RX GND) 25 pin female sub-d connector Pin 2: TxD Pin 3: RxD Pin 7: GND RS485 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. 4 Communication Mode ASCII and RTU mode are supported. The selection is done with DIP switch SW8. 5 Function Codes The following MODBUS function codes are supported: 02 Read input status 03 Read holding registers 04 Read input registers Last device in-line: 120 W terminating resistor BB01_244/02 4 Supplement BB01 to Operating Instructions of TAPGUARD 240 Maschinenfabrik Reinhausen 2009
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 tap position 6.3 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 DIP Switch settings 7 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 ON OFF ASCII/RTU RTU ASCII S1-1 Baud rate ON 9600 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 OFF disabled 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. BB01_244/02 6 Supplement BB01 to Operating Instructions of TAPGUARD 240 Maschinenfabrik Reinhausen 2009
7 DIP Switch settings 7.1 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) 1 SIC-card with RS232-module 2 Optional RS485-module Optional optical fibre module on basis RS232 available as design variant with connections of type F-SMA (see figure) or FH-ST 3 BB01_244/02 Supplement BB01 to Operating Instructions of TAPGUARD 240 Maschinenfabrik Reinhausen 2009 7
www.reinhausen.com Maschinenfabrik Reinhausen GmbH Phone +49 (0)941 4090 0 Falkensteinstrasse 8 Fax +49 (0)941 4090-7001 93059 Regensburg, Germany E-Mail sales@reinhausen.com 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