background image

7

4

MODBUS PROTOCOL

Information.

The advanced process recorder operates as a Modbus, Remote Terminal Unit (RTU) slave.

Parity checking – used to detect transmission errors in individual characters.

Cyclic redundancy checking – used to detect errors in the master messages and slave responses.

Non-volatile memory save command.

4.1

Introduction to Modbus Protocol

Modbus communication is based on a master and a slave arrangement. The master sends a message to one slave at a time and
waits for a reply.

The slave cannot accept a new message until the existing message is processed and a reply sent to the master (maximum
response time 90 milliseconds). The slave monitors the elapsed time between receipt of characters. If the elapsed time without
a new character is 3

1/

2

 character times, the slave assumes the next character received is the start of a new message.

To allow the master to differentiate between more than one slave in a system, each slave is given a unique identity address
(between 1 and 99).

A broadcast address (address zero) can be used to access all slave devices with one command. This is limited to write messages
only and there is no slave acknowledgment.

Note. Modbus RTU requires 1 start bit, 8 data bits, 1 parity bit (optional) and 1 or 2 stop bits.

4.1.1

Non-volatile Memory Limitations

 Caution. If the number of write cycles to any particular non-volatile memory register exceeds 10

4

 cycles, the data

stored may not be retained.

Any changes made to a parameter via the serial link, e.g. Alarm A Trip Point value, are stored in a non-volatile memory register
assigned to that parameter.

The number of write cycles to a particular register can be reduced by disabling non-volatile memory access when making changes
to parameters which do not need to be retained following a power-down. This is achieved using the Non-volatile Save State (NV)
Coil 061 – see Section 7.1.

When the Non-volatile Save State is set to ‘1=Saved’, any parameter changes made via the serial link are written to non-volatile
memory and are retained on power-down. If the Non-volatile Save State is set to ‘0=Not Saved’, parameter changes made via
the serial link are not retained on power down.

The Non-volatile Save State must be adjusted only when necessary and must be reset to the required state each time the
instrument is or the host computer is powered down or the instrument is replaced.

Содержание SR100A

Страница 1: ...A Advanced Process Recorder COMMANDER SR100 OPERATING PAGE 1 BOILER ROOM 09 50 Batch 18 3 Complete 09 00 A1 75 5 RH A2 495 8 m3 day 09 00 A3 110 0 C A4 20 0 CO2 09 00 A5 25 2 l h A6 7 0 pH Operating Guide Modbus RTU Communications Option ...

Страница 2: ...roducts result from over 100 years experience combined with a continuous program of innovative design and development to incorporate the latest technology The NAMAS Calibration Laboratory No 0255 is just one of the ten flow calibration plants operated by the Company and is indicative of ABB Instrumentation s dedication to quality and accuracy Stonehouse U K EN 29001 ISO 9001 Lenno Italy Cert No 9 ...

Страница 3: ...t Status Response 10 5 3 Read Holding Register Function Code 03 10 5 3 1 Read Holding Register Query 10 5 3 2 Read Holding Register Response 10 5 4 Read Input Register Function Code 04 11 5 4 1 Read Input Register Query 11 5 4 2 Read Input Register Response 11 5 5 Force Single Coil Function Code 05 12 5 5 1 Force Single Coil Query 12 5 5 2 Force Single Coil Response 12 5 6 Preset Single Register F...

Страница 4: ...422 485 communications adaptor is required for serial links It is strongly recommended that the card used has galvanic isolation to protect the computer from lightning damage and increase immunity from noise pick up 2 2 Recommended OPTO22 Boards The following OPTO22 boards are recommended for use with the advanced process recorder Part No Computer Type AC24 AT AT Bus IBM PC compatible AC34 Microch...

Страница 5: ...ngle driver computer terminal or host computer the RS422 standard quotes connection of up to ten slaves However these numbers can be increased if the driver s serial port permits 2 ELECTRICAL INSTALLATION Position link Termination Resistors Linked out Termination Resistors Linked in Identify Link 4 4 1 1 LK1 LK1 Serial Module 1 4 LK1 Internal Termination Resistors Computer Terminal or Host Compute...

Страница 6: ...ted pair with overall foil screen and an integral drain wire e g Belden 9502 or equivalent Up to 1200m twin twisted pair with separate foil screens and integral drain wires for each pair e g Belden 9729 or equivalent 2 ELECTRICAL INSTALLATION Fig 2 3 Serial Module Connections Table 2 1 Terminal and Pin Identification Serial Module Connections 1 2 3 4 5 F TB1 TB2 TB3 TB4 6 7 8 9 10 Tx Tx Rx Rx GND ...

Страница 7: ...s SERIAL COMMS CONFIGURATION BAUD RATE PARITY IDENTITY Basic Level Exit Operating Level Pages Advanced Level Disabled Memory Card Data Logging Setup Displayed only if Memory Card Option fitted 3 ADVANCED CONFIGURATION LEVEL Fig 3 1 Location of the Serial Communication Configuration Page ...

Страница 8: ...ty Assign the recorder an identification number 1 to 99 The identification number allows more than one recorder to be accessed via the communications channel Return to Serial Communication Configuration frame 3 ADVANCED CONFIGURATION LEVEL 3 1 Serial Communication Configuration Page Information Modbus protocol Programmable baud rate 1200 to 9600 baud Odd or even parity The general programming proc...

Страница 9: ...mmand This is limited to write messages only and there is no slave acknowledgment Note Modbus RTU requires 1 start bit 8 data bits 1 parity bit optional and 1 or 2 stop bits 4 1 1 Non volatile Memory Limitations Caution If the number of write cycles to any particular non volatile memory register exceeds 104 cycles the data stored may not be retained Any changes made to a parameter via the serial l...

Страница 10: ...e m u r t s n i e h T l i o c t n i o p n a e l o o b e t e r c s i d e n o e t i r W e l b a e t i r w y l t n e r r u c t o n s i t n i o p e h t 6 0 r e t s i g e R e l g n i S t e s e r P s i r e t s i g e r e h t f i e s n o p s e r n o i t p e c x e n a s n r u t e r t n e m u r t s n i e h T r e t s i g e r g n i d l o h e n o e t i r W o t s t i m i l e l b a c i l p p a y l t n e r r u c ...

Страница 11: ...cknowledged or inactive Alarm C status active Alarm D status acknowledged or inactive Alarms E to M status acknowledged or inactive 5 MODBUS FUNCTIONS s s e r d d A n o i t c n u F t r a t S l i o C h g i H t e s f f O t r a t S l i o C w o L t e s f f O f o r e b m u N h g i H s l i o C f o r e b m u N w o L s l i o C 6 1 C R C d l e i F k c e h C r o r r E 1 0 1 0 0 0 4 1 0 0 C 0 C 7 B 0 s s e r...

Страница 12: ...point 0 Alarm F trip point 0 s s e r d d A n o i t c n u F e t y B t n u o C g n i d l o H 1 5 r e t s i g e R w o L h g i H g n i d l o H 2 5 r e t s i g e R w o L h g i H g n i d l o H 3 5 r e t s i g e R w o L h g i H g n i d l o H 4 5 r e t s i g e R w o L h g i H g n i d l o H 5 5 r e t s i g e R w o L h g i H g n i d l o H 6 5 r e t s i g e R w o L h g i H d l e i F k c e h C r o r r E 6 1 C...

Страница 13: ...es the first byte includes the high order bits and the second the low order bits Example with an input range of 0 to 1000mV the response to the read input register query shows the following A1 analog input 200 A2 analog input 200 A3 analog input 200 A4 analog input 200 A5 analog input 200 A6 analog input 200 s s e r d d A n o i t c n u F t r a t S r e t s i g e R h g i H t e s f f O t r a t S r e ...

Страница 14: ... Query This message forces a single coil into the active or inactive state The data value 65 280 FF00 HEX renders the coil active and the value zero renders the coil inactive All other values are illegal and do not affect the coil Note To write to a coil the coil offset address must be used e g to write to coil 41 the coil address 40 28H is transmitted The use of slave address zero broadcast mode ...

Страница 15: ...gister Query The preset single register allows the user to modify the contents of a holding register Note To write to a register the register s offset address must be used e g to write to register 31 the offset address 30 1EH is transmitted The use of slave address zero broadcast mode forces all attached slaves to modify the desired register Example a preset single register request to write the va...

Страница 16: ...i F k c e h C r o r r E 1 0 F 0 0 0 C 2 0 0 4 0 5 9 1 C 5 9 Preset Multiple Registers Function Code 16 5 9 1 Preset Multiple Registers Query Holding registers existing within the controller can have their contents changed by this message When used with slave address zero broadcast mode all slave controllers load the selected registers with the contents specified Note To write to multiple registers...

Страница 17: ...comprises of a control byte which defines control type an internal function byte designating the action to be taken a qualifier byte the usage of which is dependent on the user defined task and a byte specifying the number of bytes to follow in the information data string Example a user defined read instrument version internal function 24 of slave 01 is shown below The control byte has no effect v...

Страница 18: ... P y r o m e M d e v i e c e r s r e t c a r a h c e h t f o e r o m r o e n o n i r o r r e n a s e t a c i d n i k c e h c y t i r a P s s e r d d A e v a l S n o i t c n u F t r a t S r e t s i g e R h g i H t e s f f O t r a t S r e t s i g e R w o L t e s f f O f o r e b m u N h g i H s r e t s i g e R f o r e b m u N w o L s r e t s i g e R 6 1 C R C d l e i F k c e h C r o r r E 1 0 3 0 0 0...

Страница 19: ...26 R W Alarm F 027 R W Alarm G 028 R W Alarm H 0 Alarm State Acknowledged or Inactive 029 R W Alarm J 1 Alarm State Active Not Acknowledged 030 R W Alarm K 031 R W Alarm L 032 R W Alarm M 033 R W Real Time Alarm 1 034 R W Real Time Alarm 2 035 R W Line Power Fail Print Commands 041 W Print Operator Message 042 W Print Channel Data 043 W Print Channel Values 044 W All Totals Print 045 W Total 1 Pri...

Страница 20: ...put E3 014 R Digital Input G1 015 R Digital Input G2 016 R Digital Input G3 Analog Input Fail States 031 R A1 Fail State 032 R A2 Fail State 033 R A3 Fail State 034 R A4 Fail State 035 R A5 Fail State 036 R A6 Fail State 0 Inactive 037 R B1 Fail State 1 Active 038 R B2 Fail State 039 R B3 Fail State 040 R B4 Fail State 041 R B5 Fail State 042 R B6 Fail State Alarm States 051 R Alarm A 052 R Alarm ...

Страница 21: ...riate input Z Engineering range Zero for the appropriate input Input Number Read Write Description Response Entry Logic Equation Result State 071 R Logic Equation 1 Result 072 R Logic Equation 2 Result 073 R Logic Equation 3 Result 074 R Logic Equation 4 Result 075 R Logic Equation 5 Result 0 Inactive 076 R Logic Equation 6 Result 1 Active 077 R Logic Equation 7 Result 078 R Logic Equation 8 Resul...

Страница 22: ... to 9999 047 R B3 Engineering range Decimal Point 0 to 3 Decimal Places 048 R B4 Engineering range Full Scale 0999 to 9999 049 R B4 Engineering range Zero 0999 to 9999 050 R B4 Engineering range Decimal Point 0 to 3 Decimal Places 051 R B5 Engineering range Full Scale 0999 to 9999 052 R B5 Engineering range Zero 0999 to 9999 053 R B5 Engineering range Decimal Point 0 to 3 Decimal Places 054 R B6 E...

Страница 23: ...ord together is 0 to 99 999 999 138 R Value Decimal Point Position 8 No Dec Places 0 8 Dec Places 9 x10 Multiplier 10 x100 Multiplier Predetermined Value Channel 3 139 R High Word The Limit for High Word Low Word linked 140 R Low Word together is 0 to 99 999 999 Preset Value 141 R High Word The Limit for High Word Low Word linked 142 R Low Word together is 0 to 99 999 999 Front Panel Totalizer Val...

Страница 24: ...0 x100 Multiplier Alarm Configuration 195 R Process Alarm A Type 0 None 1 High 2 Low Process 196 R Alarm A Decimal Point 0 to 3 Decimal Places 197 R Process Alarm B Type 0 None 1 High 2 Low Process 198 R Alarm B Decimal Point 0 to 3 Decimal Places 199 R Process Alarm C Type 0 None 1 High 2 Low Process 200 R Alarm C Decimal Point 0 to 3 Decimal Places 201 R Process Alarm D Type 0 None 1 High 2 Low ...

Страница 25: ... 018 R W Operator Message 019 R W Operator Message 020 R W Operator Message End of Message Math Constants 031 R W Math 1 Constant a 032 R W Math 1 Constant b 033 R W Math 1 Constant c 034 R W Math 2 Constant a 035 R W Math 2 Constant b 036 R W Math 2 Constant c 037 R W Math 3 Constant a 9999 to 9999 038 R W Math 3 Constant b 039 R W Math 3 Constant c 040 R W Math 4 Constant a 041 R W Math 4 Consta...

Страница 26: ...C 67 43 D 68 44 E 69 45 F 70 46 G 71 47 H 72 48 I 73 49 J 74 4A K 75 4B L 76 4C M 77 4D N 78 4E O 79 4F P 80 50 Character Decimal Hexadecimal Q 81 51 R 82 52 S 83 53 T 84 54 U 85 55 V 86 56 W 87 57 X 88 58 Y 89 59 Z 90 5A 91 5B 92 5C 93 5D 94 5E _ 95 5F 96 60 a 97 61 b 98 62 c 99 63 d 100 64 e 101 65 f 102 66 g 103 67 h 104 68 i 105 69 j 106 6A k 107 6B l 108 6C m 109 6D n 110 6E o 111 6F p 112 70...

Страница 27: ...ure I to P Converters and Field Indicators Flow Metering Magnetic Flowmeters Electromagnetic insertion type probes and watermeters Turbine Flowmeters Wedge Flow Elements Mass Flow Meters Transmitters sensors controllers and batch display units Level Control Submersible Capacitance Conductivity Pneumatic Instrumentation Transmitters Indicating Controllers Recording Controllers Customer Support ABB ...

Страница 28: ...ithout notice ABB 2000 Printed in UK 01 00 ABB Instrumentation Ltd St Neots Cambs England PE19 3EU Tel 44 0 1480 475321 Fax 44 0 1480 217948 ABB Automation Inc Instrumentation Division 125 E County Line Road Warminster PA 18974 USA Tel 1 215 674 6000 Fax 1 215 674 7183 ABB Instrumentation SpA 22016 Lenno Como Italy Tel 39 0 344 58111 Fax 39 0 344 58278 ...

Отзывы: