Siemens SITRANS F M MAGFLO series Operating Manual

Modbus rtu rs-485 add-on module for usm ii transmitters
Hide thumbs Also See for SITRANS F M MAGFLO series:

Advertisement

s
SITRANS F M MAGFLO
SITRANS F C MASSFLO
Modbus RTU RS-485 add-on module
for USM II transmitters
Order no.: FDK:521H1183
SFIDK.PS.023.D2.02
- A5E00253376
    
&
    
[
Operating Manual
]

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SITRANS F M MAGFLO series

  • Page 1 Operating Manual      SITRANS F M MAGFLO &      SITRANS F C MASSFLO Modbus RTU RS-485 add-on module for USM II transmitters Order no.: FDK:521H1183 SFIDK.PS.023.D2.02 - A5E00253376...
  • Page 2: Table Of Contents

    Modbus RTU RS-485 Contents Introduction ........................3 Definitions and Abbreviations ..................3 References ........................3 Technical data ........................ 4 General Modbus RTU ....................5 Installation ........................6 Add-on module ......................6 General electrical information ..................7 USM II connections ......................7 RS-485 termination ......................
  • Page 3: Introduction

    Instruments USM II family of transmitters, which presently includes MAG 6000 and MASS 6000. The Modbus RTU module is effectively a gateway through which a Modbus RTU master device can have controlled access to a number of Siemens Flow Instruments USM II signal converter parameters.
  • Page 4: Technical Data

    Modbus RTU RS-485 Technical data Technical data Siemens Flow Instruments Modbus RTU specification Device type Slave Baud rates 1200, 2400, 4800, 9600, 19200, 38400, 57600, 76800, 115200 bits/sec. Number of stations Recommended: max. 31 per segment without repeaters Device address range...
  • Page 5: General Modbus Rtu

    Modbus RTU RS-485 Technical data 2.1 General Modbus RTU The module complies with the Modbus serial line protocol [Reference 1]. Among other things this implies a master-slave protocol at level 2 of the OSI model. One node (the master) issues explicit commands to one of the „slave“-nodes and processes responses. Slave nodes will not transmit data without a request from the master node, and do not communicate with other slaves.
  • Page 6: Installation

    Modbus RTU RS-485 Installation Installation The installation procedure for an add-on module to a Siemens Flow Instruments USM II transmitter is as follows: 3.1 Add-on module 1. Unpack the add-on module and 19” rack mounted versions IP 67 compact versions insert it in the bottom of the signal converter as shown.
  • Page 7: General Electrical Information

    Modbus RTU RS-485 Installation General electrical On the electrical termination boards for USM II transmitters, additional input/output terminals have information been reserved for add-on module functions. The numbering range of these terminals is as follows, but how many are actually used depends on the type of add-on module. Please refer to the relevant handbook for other electrical connection information.
  • Page 8: Commissioning

    Modbus RTU RS-485 Commissioning Before communicating with the master, baudrate, node ID and update rate must be selected. This Commissioning can be done from the display. Please look in to the transmitter manual to locate the Modbus RTU menu. 4.1 Effect of changing Changing baudrate or framing has effect on the communication as follows: Modbus communica- •...
  • Page 9: Modbus Rtu Display Menu

    Modbus RTU RS-485 Commissioning 4.2 Modbus RTU display menu To change (or view) the Modbus RTU settings from the keypad display. Press [Top key] for two seconds. (Note: For “View” mode only, skip steps 2 & 3). Type in password (1000) by pressing [Change key] two times, and then press [Lock key] and hold for two seconds...
  • Page 10: Menu Item Explanation

    Modbus RTU RS-485 Commissioning 4.3 Menu item Item Value Comments explanation Slave addr. 1-247 Device address [Factory setting: 1] Baud rate 1200, 2400, 4800, 9600, Communication speed [Factory setting: 19200] 19200, 38400, 57600, 76800, 115200 Parity/framing Even, 1 stopbit Communication parameters [Factory setting: Even, 1 stopbit] Odd, 1 stopbit None, 2 stopbit...
  • Page 11: Modbus Addressing Model

    Modbus RTU RS-485 Modbus addressing model Modbus addressing The module allows R/W access to the following standard Modbus data register blocks: model • Coils (ref. 0x address range) • Holding registers (ref. 4x address range) I.e. the module will not support the other standard data register blocks: •...
  • Page 12 Modbus RTU RS-485 Modbus addressing model Function code 16 (Write multiple registers) General exceptions: • Writing less than 1 or more than 120 registers => Exception 3 (Illegal data value) • If ByteCount is not exactly 2 times NoOfRegisters => Exception 3 (Illegal data value) •...
  • Page 13: Modbus Holding Registers

    Modbus RTU RS-485 Modbus holding registers Modbus holding In the following the holding registers for the USM II Modbus RTU module are described. registers Figure: Holding registers memory map Comm. settings Info/status 2000 Application settings 3300 10000 Min. values 20000 Max.
  • Page 14: Process Data

    Modbus RTU RS-485 Modbus holding registers 6.1 Process data Modbus Modbus No. of Data Read/ Description register address bytes type write 4:03003 3002 Float Absolute Volumeflow (m 4:03015 3014 Double Totalizer 1 (m 4:03019 3018 Double Totalizer 2/Batch (m 4:03023 3022 Float Totalizer 1 (m...
  • Page 15: Modbus Application Settings

    Modbus Modbus No. of Data Read/ Description register address bytes type write Slave ID: 0x2A = Siemens 4:00601 Byte 4:00602 Byte Run indicator: 0x00 = not running 0xFF = running Product code: 4:00603 Byte 24 = MAG 6000 25 = MASS 6000...
  • Page 16: Basic Settings

    Modbus RTU RS-485 Modbus holding registers 6.4 Basic settings MAG 6000 Modbus Modbus No. of Data Read/ Description register address bytes type write 4:02001 2000 Byte Flow direction: 0 = Negative 1 = Positive 4:02006 2005 Float Q max. (m 4:02008 2007 Float...
  • Page 17: Totalizer

    Modbus holding registers Modbus RTU RS-485 6.5 Totalizer MAG 6000 Modbus Modbus No. of Data Read/ Description register address bytes type write Totalizer 1 direction: 4:02102 2101 Byte 0 = Reverse 1 = Forward 2 = Net Totalizer 2 direction: 4:02104 2103 Byte...
  • Page 18 Modbus RTU RS-485 Modbus holding registers 6.6 Output (continued) MAG 6000 Modbus Modbus No. of Data Read/ Description register address bytes type write 4:02209 2208 Byte Pulse 1 width: 0 = 64 us 1 = 130 us 2 = 260 us 3 = 510 us 4 = 1.0 ms 5 = 2.0 ms...
  • Page 19 Modbus RTU RS-485 Modbus holding registers 6.6 Output (continued) MASS 6000 Modbus Modbus No. of Data Read/ Description register address bytes type write 4:02201 2200 Byte Current Output 1 selection: 0 = Off 1 = Massflow 2 = Fraction A 3 = Fraction B 4 = Volumeflow 5 = Sensor temp.
  • Page 20 Modbus RTU RS-485 Modbus holding registers 6.6 Output (continued) MASS 6000 Modbus Modbus No. of Data Read/ Description register address bytes type write 4:02214 2213 Float Frequency 1 Timeconstants 4:02216 2215 Byte Limit Digital selection: 0 = Off (read only) 1 = Massflow 2 = Fraction A 3 = Fraction B...
  • Page 21: External Input

    Modbus RTU RS-485 Modbus holding registers 6.7 External input MAG 6000 Modbus Modbus No. of Data Read/ Description register address bytes type write Input Function: 4:02301 2300 Byte 0 = Off 1 = Start Batch 2 = Hold/Continue 3 = Stop Batch 4 = Zero Adjust 5 = Totalizer reset 6 = Force output...
  • Page 22: Product Identity

    Modbus RTU RS-485 Modbus holding registers Product identity MAG 6000 Modbus Modbus No. of Data Read/ Description register address bytes type write 4:02501 2500 String Converter type 4:02511 2510 String Converter code no. 4:02521 2520 String Converter serial no. 4:02531 2530 String Converter SW version...
  • Page 23: Display Settings

    Modbus RTU RS-485 Modbus holding registers 6.11 Display settings MAG 6000 Modbus Modbus No. of Data Read/ Description register address bytes type write 4:02901 2900 Byte Language: 0 = English 1 = Deutsch 2 = Français 3 = Dansk 4 = Svenska 5 = Suomeksi 6 = Russian 7 = Español...
  • Page 24 Modbus holding registers Modbus RTU RS-485 6.11 Display settings MASS 6000 (continued) Modbus Modbus No. of Data Read/ Description register address bytes type write Language: 4:02901 2900 Byte 0 = English 1 = Deutsch 2 = Français 3 = Dansk 4 = Svenska 5 = Suomeksi 6 = Russian...
  • Page 25: Flowmeter Status

    Modbus RTU RS-485 Modbus holding registers 6.12 Flowmeter status Modbus Modbus No. of Data Read/ Description register address bytes type write 4:03201 3200 Word System status: bit0=RunIndicator bit1=ErrorPendingOn bit2=ErrPendChanged bit3=Batching bit4=BatchPaused bit5=Zeroadjusting bit6=Totalizer1Hold bit7=Totalizer2Hold 4:03202 3201 Word Error pending 1* (oldest/first error) 0xFFFF = no error 4:03203 3202...
  • Page 26: Modbus Coils

    Modbus coils Modbus RTU RS-485 Modbus coils In the following the coils for the USM II Modbus RTU module are described. Figure: Control/status Memory map for coils 655535 7.1 Communication Modbus Modbus Data Read/ Description settings register address type write Restart Modbus communication: 0:00001 Coil...
  • Page 27: Appendix A - Si-Units Used In Usm Ii Products

    Modbus RTU RS-485 APPENDIX A & B      APPENDIX A SITRANS F M MAGFLO Volume flow: /sec. SI-units used in USM II Totalisers: products      SITRANS F C MASSFLO Mass flow: kg/sec. Volume flow: /sec.
  • Page 28: Appendix C - Modbus Communication Examples

    Modbus RTU RS-485 APPENDIX C APPENDIX C 01 (0x01) Read coil status Query Response Modbus communication Slave address 1 byte Slave address 1 byte examples Function 1 byte Function 1 byte Byte Count 1 byte Starting Address Hi 1 byte Starting Address Lo 1 byte Data Coil...
  • Page 29 Modbus RTU RS-485 APPENDIX C 05 (0x05) Force single coil Query Response Slave address 1 byte Slave address 1 byte Function 1 byte Function 1 byte Coil Address Hi 1 byte Coil Address Hi 1 byte Coil Address Lo 1 byte Coil Address Lo 1 byte Force Data Hi...
  • Page 30 1 byte 17 (0x11) Byte count 1 byte 52 (0x34) Slave ID 1 byte 0x2a = Siemens Run indicator 1 byte 0 = Off, 0xFF = Running Product code 1 byte 24 = MAG 6000, 25 = MASS 6000 Transmitter Code No.
  • Page 31: Appendix D - Crc Calculation

    APPENDIX D Modbus RTU RS-485 APPENDIX D The Cyclical Redundancy Checking (CRC) field is two bytes, containing a 16-bit binary value. The CRC value is first generated by the transmitting device, which appends the CRC to the CRC calculation message. The device that receives recalculates a CRC during receipt of the message, and compares the calculated value to the actual value it received in the CRC field.
  • Page 32 Modbus RTU RS-485 APPENDIX D C programming example /* Table of CRC values for high-order byte */ static __flash unsigned char auchCRCHi[] = { 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81,...
  • Page 33: Appendix E - Exception Codes

    Modbus RTU RS-485 APPENDIX E & F APPENDIX E The Modbus module uses the following Modbus exception codes, when responding to a master module: Exception codes Exception code (Dec) Exception name Illegal function Illegal data address Illegal data value Slave device failure Device busy If an exception code 04 is received, further requests have to be done to narrow down the exact problem.
  • Page 34: Appendix G - Units And Point Positions

    Modbus RTU RS-485 APPENDIX G APPENDIX G - Units and Point positions Volumeflow units m3/s ml/s hl/s kl/s Ml/s m3/s m3/s ft3/s in3/s USGPS USMGPS UKGPS UKMGPS USkGPS UKkGPS m3/min ml/min L/min hl/min kl/min Ml/min m3/min m3/min ft3/min in3/min USGPM USMGPM UKGPM UKMGPM USkGPM...
  • Page 35: Appendix H - Float Definition

    Modbus RTU RS-485 APPENDIX H APPENDIX H Stuffing of multi-byte numbers into multiple Modbus RTU registers differs among Modbus devises. Float Definition „Big Endian“ and „Little Endian“ describe the order or sequence in which multi-byte data is stored in memory. This device uses (as IEEE and Honeywell) a ‘Big-Endian’ representation for addresses and data items.
  • Page 36 Suggestions for improvement registration of a utility model or design, are reserved. are always welcomed. Technical data subject to change without prior notice. Copyright © Siemens AG 01.2004 All Rights Reserved Siemens Flow Instruments A/S Order no.: FDK:521H1183-02 Nordborgvej 81...

This manual is also suitable for:

Sitrans f c massflo series

Table of Contents