Siemens SITRANS F C MASSFLO series Скачать руководство пользователя страница 12

Modbus RTU RS-485

12

SFIDK.PS.023.D2.02

5.

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)

Exceeding max. message size (25 registers) => Exception 2 (Illegal data address)

Writing data above/crossing limitation of max. register address (0xFFFF) => Exception 2
(Illegal data address)

Application exceptions:

Application errors => Exception 4 (Slave device error)

Further information about the error can be read from holding registers 682+683 (Last
HoldReg Addr + ErrorNo)

Application errors include writing to ReadOnly holding registers

Holes / register alignment:

If start-address is not the start of a mapped holding register => Exception 2 (Illegal data
address)

Writing to holes is allowed (ie ignored - and no exception occurs) - except for the condition
described above

If the end address is only part of a mapped holding register item (e.g. one half of a float value),
the action depends on the datatype. It is allowed to update first part of  „

VisibleString

“ and

ByteArray

“ datatypes (although strange results may appear, if the VisibleSting does not

include the terminating zero). Writing parts of all other datatypes => Exception 4 (Slave device
error)

Function code 17 (Report Slave ID)

There are no exceptions for this function

Generally writing stops when the first exception occurs. When writing multiple registers, writing
starts with the register with the lowest address - and continues until an exception occurs - or until
all registers are updated.

Содержание SITRANS F C MASSFLO series

Страница 1: ... Operating Manual Order no FDK 521H1183 SFIDK PS 023 D2 02 A5E00253376 s SITRANS F M MAGFLO SITRANS F C MASSFLO Modbus RTU RS 485 add on module for USM II transmitters ...

Страница 2: ...s holding registers 13 6 1 Process data 14 6 2 Modbus driver settings 14 6 3 Modbus application settings 15 6 4 Basic settings 16 6 5 Totalizer 17 6 6 Output 17 6 7 External input 21 6 8 Sensor characteristics 21 6 9 Product identity 22 6 10 Service info 22 6 11 Display settings 23 6 12 Flowmeter status 25 7 Modbus coils 26 7 1 Communication settings 26 7 2 Auto zero adjust 26 7 3 Totalizer 26 7 4...

Страница 3: ...s of the protocol 1 Introduction 1 Introduction 1 1 Definitions and Abbreviations CRC Cyclic Redundancy Check Used for error checking in Modbus RTU See appendix Modbus master A Modbus device which is able to access data in one or more connected Modbus slaves Modbus slave A Modbus device which is able to respond to requests from a single Modbus master Modbus address Throughout this document the fol...

Страница 4: ...ectrical interface RS 485 2 wire Connecter type Screw terminals Supported function codes 1 read coils 3 read holding registers 5 write single coil 16 write multiple registers 17 report slave ID Broadcast No Maximum cable length 1200 meters 115200 bits sec Standard Modbus over serial line v1 0 Certified No Device profile None Standard restriction The standard requires a LED indicator for visual dia...

Страница 5: ...ystem which means that only one master can be connected at the time Two modes of communication are possible Unicast and Broadcast Unicast mode is where the master sends a request to one slave device and waits a specified time for a response In Broadcast mode the master sends out a request to address 0 which means that the information is for all slave devices on the network In Broadcast mode there ...

Страница 6: ...lows 1 Unpack the add on module and insert it in the bottom of the signal converter as shown 2 Press the add on module in the direction shown until it stops and is firmly seated in position 3 This completes the add on mo dule installation and the signal converter may now be connected to the terminal box Communica tion with the display keypad and the electrical input output termi nals is establishe...

Страница 7: ...resence of an add on module It is however not possible to install this module in a MASS 6000 with extra outputs If a Current Out 2 is present the MASS 6000 has extra outputs installed 3 3 USM II connections The following table shows the connection layout for the USM II Modbus RTU module Terminal number Modbus RTU RS 485 connection 91 T1 92 Data 93 Data 94 T2 PE Shield 3 4 RS 485 termination All RS...

Страница 8: ...o the ResetCommunication coil When changed from the Modbus master the new settings only have effect after a reset PowerUp of the module or after writing to the ResetCommunication coil In both cases the new settings will not have effect until the Modbus driver has responded to any ongoing Modbus request Note It is recommended NOT to use the default address in a multi slave network It is of great im...

Страница 9: ... View mode only skip steps 2 3 2 Type in password 1000 by pressing Change key two times and then press Lock key and hold for two seconds 3 The display now says Basic settings 4 Press Forward key until you reach the Modbus RTU module menu item 5 Press Lock key 6 You can now cycle through all the Modbus RTU settings by pressing Forward key 7 Press Top key for two seconds and you return to 1 ...

Страница 10: ...t overwhelming its receiver Factory setting 0 Interframe spacing 3 5 25 chars The minimum interframe space between two Modbus RTU messages in sequence specified as 3 5 characters is configurable Range 3 5 25 character times Factory setting 3 5 TAG Flowmeter The TAG can be changed to any string up to 16 chars Factory setting Flowmeter Modbus SW version 1 00 Firmware version of the Modbus module Mod...

Страница 11: ... be read from holding registers 680 681 Last Coil Addr ErrorNo Holes register alignment Unmapped coils return zero when read Function code 3 Read holding registers General exceptions Requesting less than 1 or more than 125 registers Exception 3 Illegal data value Requesting more than max message size 27 registers Exception 2 Illegal data address Requesting data above crossing limitation of max reg...

Страница 12: ...egisters Holes register alignment If start address is not the start of a mapped holding register Exception 2 Illegal data address Writing to holes is allowed ie ignored and no exception occurs except for the condition described above If the end address is only part of a mapped holding register item e g one half of a float value the action depends on the datatype It is allowed to update first part ...

Страница 13: ...ding 20000 to the address of the value Where the value is not directly applicable the min max limit shown will be based on the data type e g a WORD type valuewillshowthelimits0 65535 eventhoughsomeofthesevalues are not allowed Min max values do not apply to all datatypes e g strings Reading min max value for such holding registers will return zero values Figure Holding registers memory map Comm se...

Страница 14: ...Batch kg or m3 R 4 03023 3022 4 Float Totalizer 1 kg or m3 R 4 03025 3024 4 Float Totalizer 2 Batch kg or m3 R 4 03100 3099 2 Byte Update rate set 0 Reserved 1 All process data updated with 2 Hz R W 2 Like set 1 but with Massflow 10 Hz 3 Like set 2 but with Totalizers 5 Hz MASS Modbus Modbus No of Data Read register address bytes type Description write 4 00501 500 2 Word No of ParityErrors R 4 005...

Страница 15: ...e name R Slave ID 6 Modbus holding registers Modbus Modbus No of Data Read register address bytes type Description write 4 00641 640 18 String TAG R W TAG Modbus Modbus No of Data Read register address bytes type Description write 4 00650 649 20 String Modbus module SW version R e g 1 00 4 00660 659 2 Byte Modbus module HW version e g 2 R Modbus module version Modbus Modbus No of Data Read registe...

Страница 16: ...ff R W 1 On 4 02031 2030 2 Byte Noise filter 1 min 2 3 R W 4 5 max 4 02032 2031 2 Byte Error level 1 Warning 2 Permanent R W 3 Fatal 4 02033 2032 2 Byte Zero adjust mode 0 Auto R W 1 Manual 4 02034 2033 4 Float Manual zero adjust kg s R W 4 02036 2035 2 Word Zero adjust time s R W 4 02037 2036 4 Float Zero sigma kg s R 4 02039 2038 4 Float Zero sigma limit kg s R W MASS 6000 6 Modbus holding regis...

Страница 17: ...write 4 02102 2101 2 Byte Totalizer 1 direction 0 Reverse 1 Forward R W 2 Net 4 02104 2103 2 Byte Totalizer 2 direction 0 Reverse 1 Forward R W 2 Net MAG 6000 Modbus Modbus No of Data Read register address bytes type Description write 4 02201 2200 2 Byte Current Output 1 selection 0 Off R W 1 On 4 02202 2201 2 Byte Current Output 1 direction 1 Unidirectional R W 2 Bidirectional 4 02203 2202 2 Byte...

Страница 18: ...te Relay Output 1 function 0 Off 3 Error Level 4 Error Number R W 5 Direction Limit 6 Batch 7 Cleaning 4 02226 2225 2 Byte Limit Relay mode 0 1 setpoint R W 1 2 setpoints 4 02227 2226 4 Float Limit Relay Setpoint min 1 100 R W 4 02229 2228 4 Float Limit Relay Setpoint max 1 100 R W 4 02231 2230 4 Float Limit Relay Hysteresis 1 100 R W 4 02233 2232 2 Byte Error number 0 255 R W 4 02235 2234 4 Float...

Страница 19: ...requency R W 3 Error Level 4 Error Number 5 Direction Limit 6 Batch 4 02207 2206 2 Byte Pulse 1 selection 0 Uninitialized 1 Massflow R W 2 Fraction A 3 Fraction B 4 Volumeflow 4 02208 2207 2 Byte Pulse 1 direction 1 Unidirectional R W 2 Bidirectional 4 02209 2208 2 Byte Pulse 1 width 0 64 us 1 130 us 2 260 us 3 510 us 4 1 0 ms 5 2 0 ms 6 4 1 ms 7 8 2 ms R W 8 16 ms 9 33 ms 10 66 ms 11 130 ms 12 26...

Страница 20: ...n A 4 02226 2225 2 Byte Limit Relay mode 0 1 setpoint R W 1 2 setpoints 4 02227 2226 4 Float Limit Relay Setpoint min 1 100 R W 4 02229 2228 4 Float Limit Relay Setpoint max 1 100 R W 4 02231 2230 4 Float Limit Relay Hysteresis 1 100 R W 4 02233 2232 2 Byte Error number 0 255 R W 4 02234 2233 2 Byte Batch selection 0 Off read only 1 Massflow 2 Fraction A R W 3 Fraction B 4 Volumeflow 4 02235 2234 ...

Страница 21: ... Modbus No of Data Read register address bytes type Description write 4 02401 2400 4 Float Sensor size m 4 02403 2402 4 Float Calibration factor 4 02405 2404 4 Float Correction factor 4 02421 2420 2 Byte Excitation frequency 0 3 125 Hz 50 Hz 1 6 25 Hz 50 Hz 2 12 5 Hz 50 Hz 3 25 Hz 50 Hz 4 1 5625 Hz 50 Hz 5 44 Hz only SV 6 2 0833 Hz 7 1 875 Hz 60 Hz 8 3 75 Hz 60 Hz 9 7 5 Hz 60 Hz 10 15 Hz 60 Hz 11 ...

Страница 22: ...02541 2540 20 String Sensor type R 4 02551 2550 20 String Sensor code no R 4 02561 2560 20 String Sensor serial no R 4 02571 2570 20 String Sensor size R 4 02581 2580 20 String Customer code no R MASS 6000 Modbus Modbus No of Data Read register address bytes type Description write 4 02701 2700 4 Double word Operating time s R 4 02703 2702 54 Byte array Error pending list See appendix B R 4 02730 2...

Страница 23: ...x 4 Totalizer 1 5 Totalizer 2 R W 6 Batch cycle counter 7 Sensor size 8 Sensor type 9 TAG number 10 Operating time 11 Q max text 4 02904 2903 2 Byte Display line 3 0 Volumeflow 1 Volumeflow 2 Q max 3 Totalizer 1 4 Totalizer 2 5 Batch cycle counter R W 6 Sensor size 7 Sensor type 8 TAG number 9 Operating time 10 Q max text 4 02907 2906 2 Byte Volumeflow unit R W 4 02908 2907 2 Byte Volumeflow point...

Страница 24: ...ature 15 Totalizer 1 4 02904 2903 2 Byte Display line 3 1 Massflow 2 Massflow 3 Volumeflow 4 Volumeflow 5 Fraction A text 6 Fraction A 7 Fraction A R W 8 Fraction B text 9 Fraction B 10 Fraction B 11 Fraction A 12 Density 13 Sensor temperature 14 Totalizer 1 15 Totalizer 2 4 02905 2904 2 Byte Massflow unit R W 4 02906 2905 2 Byte Massflow point R W 4 02907 2906 2 Byte Volumeflow unit R W 4 02908 2...

Страница 25: ...rd Error pending 5 R 4 03207 3206 2 Word Error pending 6 R 4 03208 3207 2 Word Error pending 7 R 4 03209 3208 2 Word Error pending 8 R 4 03210 3209 2 Word Error pending 9 R 4 03211 3210 2 Byte Batch status 0 Idle 1 Ready R 2 Running 3 Paused Modbus Modbus No of Data Read register address bytes type Description write 4 03212 3211 2 Byte Zero adjust progress 0 Idle 1 Ready R 2 Running Zero adjust pr...

Страница 26: ...ead register address type Description write 0 00010 9 Coil Reset totalizer 1 Write 0 No effect 1 ResetRead R W always 0 0 00011 10 Coil Hold totalizer 1 Write 0 Run 1 HoldRead R W 0 Not held1 Held 0 00012 11 Coil Reset totalizer 2 Write 0 No effect 1 ResetRead R W always 0 0 00013 12 Coil Hold totalizer 2 Write 0 Run 1 HoldRead R W 0 Not held1 Held Modbus Modbus Data Read register address type Des...

Страница 27: ...ding list contains all actual errors and the Error Log list provides information of all previous errors Both lists are structured as 9 error records each consisting of 6 bytes New errors will be placed first on the list Error 1 and the rest will be shifted down the list Error No A list of all error numbers can be found in the MAG MASS manuals No error is represented by 0x7F Category 0 Information ...

Страница 28: ...o 1 byte No of Points Hi 1 byte No of Points Lo 1 byte CRC 2 bytes Slave address 1 byte Function 1 byte Byte Count 1 byte Data Hi 1 byte Data Lo 1 byte Data Hi 1 byte Data Lo 1 byte CRC 2 bytes Response Examples Read absolute mass flow 4 03001 Query 1 3 11 184 0 2 70 10 Response 1 3 4 64 195 82 139 98 200 Absolute mass flow 6 10383 kg sec Read absolute density 4 03005 Query 1 3 11 188 0 2 7 203 Re...

Страница 29: ...8 Restart Modbus communication 16 0x10 Write multiple registers Query Slave address 1 byte Function 1 byte Starting Address Hi 1 byte Starting Address Lo 1 byte No of Registers Hi 1 byte No of Registers Lo 1 byte Byte Count 1 byte Data Hi 1 byte Data Lo 1 byte Data Hi 1 byte Data Lo 1 byte CRC 2 bytes Slave address 1 byte Function 1 byte Starting Address Hi 1 byte Starting Address Lo 1 byte No of ...

Страница 30: ... rev 1 byte e g 1 Modbus module name 11 bytes Modbus RTU Modbus major rev 1 byte e g 1 Modbus minor rev 1 byte e g 0 CRC 2 bytes Response Examples Read report slave ID Query 1 11 c0 2c Receive 1 11 2a ff 19 30 38 33 48 30 32 32 32 0 1 ff 0 53 69 65 6d 65 6e 73 0 0 0 0 0 4d 41 53 53 36 30 30 30 0 54 0 0 2 1 4d 4f 44 42 55 53 20 52 54 55 0 ff 1 2 3f 98 Address 1 Function code 17 Byte Count 55 Slave ...

Страница 31: ...with FFFF hex all 1 s Call this the CRC register 2 Exclusive OR the first 8 bit byte of the message with the low order byte of the 16 bit CRC register putting the result in the CRC register 3 Shift the CRC register one bit to the right toward the LSB zero filling the MSB Extract and examine the LSB 4 If the LSB was 0 Repeat step 3 another shift If the LSB was 1 Exclusive OR the CRC register with t...

Страница 32: ...C7 0x05 0xC5 0xC4 0x04 0xCC 0x0C 0x0D 0xCD 0x0F 0xCF 0xCE 0x0E 0x0A 0xCA 0xCB 0x0B 0xC9 0x09 0x08 0xC8 0xD8 0x18 0x19 0xD9 0x1B 0xDB 0xDA 0x1A 0x1E 0xDE 0xDF 0x1F 0xDD 0x1D 0x1C 0xDC 0x14 0xD4 0xD5 0x15 0xD7 0x17 0x16 0xD6 0xD2 0x12 0x13 0xD3 0x11 0xD1 0xD0 0x10 0xF0 0x30 0x31 0xF1 0x33 0xF3 0xF2 0x32 0x36 0xF6 0xF7 0x37 0xF5 0x35 0x34 0xF4 0x3C 0xFC 0xFD 0x3D 0xFF 0x3F 0x3E 0xFE 0xFA 0x3A 0x3B 0x...

Страница 33: ...ror name Reason Dec Hex 3 3 Write access denied This parameter is in a state where it is not writable 4 4 Max limit The value was greater than the allowed maximum value 5 5 Min limit The value was less than the allowed minimum value 127 7F No error No problem APPENDIX F Run Indicator The Run Indicator indicates the state of the device Two states are possible ON 0xFF and OFF 0x00 The device will be...

Страница 34: ... kg h kg h kg h 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 kg d ton d lb d mg d g d kg d kg d kg d kg d kg d kg d kg d kg d kg d kg d kg d 64 255 Reserved Density unit Totalizer unit volume 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 M3 Ml l hl kl Ml m3 m3 ft3 in3 USG USMG UKG UKMG USkG UKkG 16 254 Reserved Totalizer unit massflow 0 1 2 3 4 kg ton lb Mg G 5 255 Reserved 0 1 2 3 4 5 6 7 8 9 10 11 12...

Страница 35: ...dian representation for addresses and data items This means that when a numerical quantity larger than a single byte is transmitted the MOST significant byte is sent first Read absolute massflow 4 03001 Query 01 03 0B B8 00 02 46 0A Response 01 03 04 40 C3 52 93 62 C8 Absolute massflow 6 10383 kg s Value IEEE FP B Register N Register N 1 decimal MSB LSB high low high low 100 0 42C80000h 42h C8h 00...

Страница 36: ...provement are always welcomed Technical data subject to change without prior notice The reproduction transmission or use of this document or its contents is not permitted without express written authority Offenders will be liable for damages All rights including rights created by patent grant or registration of a utility model or design are reserved Copyright Siemens AG 01 2004 All Rights Reserved...

Отзывы: