ABB COMMANDER 500 User Manual Download Page 12

10

This section shows typical examples of MODBUS function codes 01, 03, 05, 06, 08, 15 and 16.

5.1

Read Coil Status – Function Code 01

5.1.1

Read Coil Status Query

This function obtains the ON/OFF status of logic coils used to control discrete outputs from the
addressed slave. Broadcast mode is not supported with this function code. In addition to the slave
address and function fields, the information field must contain the initial coil offset address (starting
address) and the number of each location to be interrogated.

Note. The coil offset address is one less than the coil number, e.g. to start at coil 10 the

start address must be set to 09 (09H).

Example. Read 16 coils from slave (01) starting at coil 10 (alarm state 1).

5

MODBUS FUNCTIONS

5.1.2

Read Coil Status Response

The data is packed one bit for each coil (1 = ON, 0 = OFF). The response includes the slave address,
function code, quantity of data characters, the data characters and error checking. The low order bit
of the first character contains the first addressed coil and the remainder follow. For coil quantities that
are not multiples of eight, the last characters are packed with zeros at the high order end.

Example

Alarms A3, A4, A5, A6 & A7 active

Alarms A1, A2, & A8 inactive

Alarms A3 & A4 are unacknowledged

Alarms A1, A2, A5, A6, A7 & A8 are acknowledged

s

s

e

r

d

d

A

n

o

i

t

c

n

u

F

e

t

y

B

t

n

u

o

C

l

i

o

C

a

t

a

D

0

1

s

u

t

a

t

S

7

1

o

t

l

i

o

C

a

t

a

D

8

1

s

u

t

a

t

S

5

2

o

t

d

l

e

i

F

k

c

e

h

C

r

o

r

r

E

)

6

1

C

R

C

(

1

0

1

0

2

0

C

7

C

0

9

9

9

3

s

s

e

r

d

d

A

n

o

i

t

c

n

u

F

t

e

s

f

f

O

t

r

a

t

S

l

i

o

C

s

l

i

o

C

f

o

.

o

N

d

l

e

i

F

k

c

e

h

C

r

o

r

r

E

)

6

1

C

R

C

(

h

g

i

H

w

o

L

h

g

i

H

w

o

L

1

0

1

0

0

0

9

0

0

0

0

1

D

E

4

C

Summary of Contents for COMMANDER 500

Page 1: ...ABB Instrumentation COMMANDER 500 User Guide MODBUS Serial Communications 50 5 15 0 COMMANDER 500 50 1...

Page 2: ...be stored away from heat protected from temperature extremes and powders kept dry Normal safe handling procedures must be used 6 When disposing of chemicals ensure that no two chemicals are mixed Saf...

Page 3: ...Code 06 13 5 5 Loopback Test Function Code 08 14 5 6 Force Multiple Coils Function Code 15 15 5 7 Write Multiple Registers Function Code 16 16 6 EXCEPTION RESPONSES 17 6 1 Examples 17 7 ADDRESSABLE PA...

Page 4: ...d with the instrument Information The MODBUS option provides the following facilities Standard RS422 485 communications MODBUS RTU protocol for master host computer to slave COMMANDER 500 system Isola...

Page 5: ...immunity to noise pick up 2 2 OPTO22 Boards for use with Personal Computers Where a personal computer is used as the host computer the following OPTO22 boards are recommended for use with the COMMANDE...

Page 6: ...Pull up and Pull down Resistors Four wire Operation Host Computer 5V 0V A B 1 8k Pull down Resistor 1 8k Pull up Resistor 0V 5V 0V A B 1 8k Pull down Resistor 1 8k Pull up Resistor Rx Rx Tx Tx C 32 3...

Page 7: ...ust be made in parallel as shown in Fig 2 3 When connecting cable screens ensure that no ground loops are introduced The maximum serial data transmission line length for both RS422 and RS485systems is...

Page 8: ...MMANDER 500 must be configured with the correct serial transmission parameters and assigned a unique address 3 1 Accessing the Serial Configuration Displays 450 2 500 0 70 xxxx COdE 50 AtNE LEV2 LEV5...

Page 9: ...or a few seconds Serial Configuration 0 OFF 1 2 wire connection 2400 baud rate 2 4 wire connection 2400 baud rate 3 2 wire connection 9600 baud rate 4 4 wire connection 9600 baud rate 5 2 wire connect...

Page 10: ...tween 1 and 99 A broadcast address address zero can be used to write to all slave devices simultaneously using one command In this instance there is no slave acknowledgment Slaves cannot accept new me...

Page 11: ...A M M O C e h T 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 6 0 e l g n i S t e s e r P r e t s i g e R e r o f e b r e t s i g e r e h t o t...

Page 12: ...1 2 Read Coil Status Response The data is packed one bit for each coil 1 ON 0 OFF The response includes the slave address function code quantity of data characters the data characters and error check...

Page 13: ...ressed slave responds with its address and function code followed by the information field The information field contains one byte describing the quantity of data bytes to be returned Two bytes are us...

Page 14: ...use of slave address zero broadcast mode forces all attached slaves to modify the desired coil Example Switch ON coil address 39 auto manual state in slave 01 5 3 2 Force Single Coil Response The res...

Page 15: ...an the register number must be used e g to write to register 104 the offset address 103 67H is transmitted 5 4 2 Preset Single Register Response The response to a Preset Single Register Response reque...

Page 16: ...owed by two bytes to designate the action to be taken Example 5 5 2 Loopback Test Response The Loopback Test Response always echoes the query only diagnostic code 0 bytes 3 and 4 can be used Example s...

Page 17: ...coil 39 to ON Select manual mode and coil 40 to OFF Select Local Set Point mode 5 6 2 Force Multiple Coils Response The Force Multiple Coils Response confirms slave identification function code start...

Page 18: ...he value 100 to the register address 105 integral action time in slave 01 5 7 2 Write Multiple Registers Response The Write Multiple Registers Response confirms slave identification function code star...

Page 19: ...V a t a D l a g e l l I e h t n o e l b a w o l l a t o n s i d l e i f a t a d e h t n i d e c n e r e f e r e u l a v e h T n o i t a c o l e v a l s d e s s e r d d a 7 0 e v i t a g e N t n e m e...

Page 20: ...t a t s 5 A e g d e l w o n k c a m r a l A R e v i t c A 1 3 2 e t a t s 6 A e g d e l w o n k c a m r a l A R e v i t c A 1 4 2 e t a t s 7 A e g d e l w o n k c a m r a l A R e v i t c A 1 5 2 e t...

Page 21: ...d a e R s e u l a V s t i m i L 0 2 V P R 9 9 9 9 o t 9 9 9 1 2 t n i o p t e s l o r t n o C R 9 9 9 9 o t 9 9 9 2 2 t a e H 1 t u p t u O W R 0 0 0 1 o t 0 0 0 0 1 o t 0 0 g n i t n e s e r p e r 3...

Page 22: ...0 0 0 1 o t 0 0 g n i t n e s e r p e r 0 0 0 1 o t 0 3 4 2 t u p t u O W R 0 0 0 1 o t 0 0 g n i t n e s e r p e r 0 0 0 1 o t 0 4 4 e l b a i r a v e c n a b r u t s i D R 0 0 0 1 o t 0 0 g n i t n...

Page 23: ...g n i t n e s e r p e r 0 0 0 1 o t 0 8 7 n i a g d r a w r o f d e e F W R 9 9 9 9 o t 1 0 9 7 s a i b d r a w r o f d e e F W R 0 0 0 1 o t 0 0 0 1 0 0 0 1 o t 0 0 0 1 g n i t n e s e r p e r s e u...

Page 24: ...r 9 9 9 9 o t 0 3 9 e m i t g n i l t t e S R s d n o c e s 9 9 9 9 o t 0 4 9 l a r g e t n i r o r r E R s t i n u g n e n i 9 9 9 9 o t 0 r e t s i g e R o N l e b a L e l b a i r a V e t i r W d a...

Page 25: ...W R 9 9 9 9 o t 1 0 5 0 1 1 e m i t n o i t c a l a r g e t n I W R 0 0 2 7 o t 0 6 0 1 1 e m i t n o i t c a e v i t a v i r e D W R 9 9 9 9 o t 0 0 7 0 1 e u l a v t e s e r l a u n a M W R 0 0 0 1...

Page 26: ...o t 9 9 9 2 3 1 s i s e r e t s y h 1 A m r a l A W R s t i n u g n e n i 9 9 9 9 o t 0 3 3 1 s i s e r e t s y h e m i t 1 A m r a l A W R s d n o c e s 9 9 9 9 o t 0 4 3 1 e p y t 2 A m r a l A R e...

Page 27: ...A m r a l A W R s d n o c e s 9 9 9 9 o t 0 8 5 1 e p y t 8 A m r a l A R e p y T 1 A m r a l A e e S 1 2 o t 0 9 5 1 p i r t 8 A m r a l A W R 9 9 9 9 o t 9 9 9 0 6 1 s i s e r e t s y h 8 A m r a l...

Page 28: ...o l h t i w p u k c a b g o l a n A n o i t c e l e s l a t i g i d r e d a o l l a u n a m r o t a c i d n i e l g n i S r e d a o l l a u n a m r o t a c i d n i e l b u o D d r a w r o f d e e f h...

Page 29: ...e H y a l e r 2 P O y a l e r 1 P O y a l e r 1 P O h t i w l o o c t a e H t u p t u o l a t i g i d 2 P O h t i w l o o c t a e H t u p t u o l a t i g i d 1 P O y a l e r 2 P O d e s U t o N h t i...

Page 30: ...9 9 9 9 o t 9 9 9 1 1 2 t l u s e r 2 k c o l b s h t a M R 9 9 9 9 o t 9 9 9 2 1 2 t l u s e r 3 k c o l b s h t a M R 9 9 9 9 o t 9 9 9 3 1 2 t l u s e r 4 k c o l b s h t a M R 9 9 9 9 o t 9 9 9 4...

Page 31: ...s and Field Indicators Flow Metering Magnetic Flowmeters Electromagnetic insertion type probes and watermeters Turbine Flowmeters Wedge Flow Elements Mass Flow Meters Transmitters sensors controllers...

Page 32: ...thout notice ABB 2000 Printed in UK 06 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 Lin...

Reviews: