ABB C100 User Manual Download Page 11

9

This section shows typical examples of MODBUS function codes 01, 03, 05, 06, 08
and 16. Not all addressable parameters used in the examples which follow are valid
for all instrument types – see Sections 7.1 to 7.4.

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 06 the start address must be set to 05 (05H).

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

Address Function Coil Start

Coil Start

No. of

No. of

Error Check ( C R C - 1 6 )

Offset High Offset Low Coils High Coils Low

Field

01

01

00

05

00

10

2D

C7

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 1, 2 and 3 inactive

Digital input inactive

Digital output inactive

Relays 1 and 2 active

ON/OFF status 1 and 2 active

Data Coil

Data Coil

Error Check

(CRC-16)

Address

Function

Byte Count

Status

 Status

Field

6 to 13

 14 to 21

01

01

02

00

3E

38

2C

5

MODBUS FUNCTIONS

Summary of Contents for C100

Page 1: ...ControlIT 1 8 DIN Process Indicators and Controllers C100 C150 C160 and V100 User Guide ModbusTM Serial Data Communications Option IM C100 MOD_5...

Page 2: ...where applicable may be obtained from the Company address on the back cover together with servicing and spares information Electrical Safety This instrument complies with the requirements of CEI IEC 6...

Page 3: ...tatus Function Code 01 9 5 2 Read Holding Register Function Code 03 10 5 3 Force Single Coil Function Code 05 11 5 4 Preset Single Register Function Code 06 12 5 5 Loopback Test Function Code 08 13 5...

Page 4: ...2 2 MODBUS serial communications must be configured as either two wire or four wire serial links see Figs 2 1 and 2 2 Two four wire operation must also be selected in the Configuration Mode see Secti...

Page 5: ...omputer Rx Rx Tx Tx A A B B GND 20 21 22 23 24 C100 V100 Tx Rx Tx Rx GND C150 2 ELECTRICAL INSTALLATION Fig 2 1b Two wire Operation Wall Pipe Mounted Instruments 5V 0V 1 8k Pull up Resistor 1 8k Pull...

Page 6: ...V 0V A B 1 8k Pull down Resistor 1 8k Pull up Resistor 20 21 22 23 24 Rx Rx Tx C100 V100 Tx C150 GND 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 R...

Page 7: ...be connected to a single RS485 adaptor card on a PC The number of slaves can be increased if the driver s serial port permits Connections to the MODBUS serial board must be made as shown in Figs 2 1...

Page 8: ...n Parameters Fig 3 1 Fig 3 1 shows the display readouts and options available when defining the serial transmission rate and bit parity for COMMANDER 100 150 160 and V100 instruments Further detail on...

Page 9: ...ves Each slave is given a unique identity address between 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...

Page 10: ...zeros for points which do not contain defined data and NAKs any request for point numbers greater than 90 Write one discrete Boolean point The slave instrument NAKs this if the point is not currently...

Page 11: ...ss must be set to 05 05H Example Read 16 coils from slave 01 starting at coil 6 alarm state 1 Address Function Coil Start Coil Start No of No of Error Check CRC 16 Offset High Offset Low Coils High Co...

Page 12: ...ror Address Function Start Start of Registers of Registers Check CRC 16 Offset High Offset Low High Coils Low Field 01 03 00 00 00 03 05 CB 5 2 2 Read Holding Register Response The addressed slave res...

Page 13: ...il 30 the coil address 29 1CH is transmitted The use of slave address zero broadcast mode forces all attached slaves to modify the desired coil Example Switch ON coil address 30 auto manual state in s...

Page 14: ...gister its offset address one less than the register number must be used e g to write to register 25 the offset address 24 18H is transmitted Register Register Data Data Error Address Function Offset...

Page 15: ...followed by two bytes to designate the action to be taken Example Data Data Error Address Function Diagnostic Diagnostic Data Data Check CRC 16 Code High Code Low Field 01 08 00 00 A5 37 DA 8D These a...

Page 16: ...00 to the register address 25 proportional band 1 heat and the value 100 to the register address 26 integral action time in slave 01 Register Register Number of Byte Address Function Start Start Regis...

Page 17: ...he exception response codes sent by the slave are shown in Table 6 1 When a slave detects one of these errors it sends a response message to the master consisting of slave address function code error...

Page 18: ...State R 1 On 19 On Off Output 1 Heat R 1 On 20 On Off Output 2 Cool R 1 On 30 Auto Manual State RW 0 Auto 1 Manual 31 Control Action W 0 Reverse 1 Direct 32 Select Local Set Point W 1 Local 33 Select...

Page 19: ...t 4 RW 999 to 9999 22 Valve Deadband RW 1 to 9999 23 Valve Travel Time RW 1 to 5000 sec 24 Valve Drive RW 0 Close 1 Stop 2 Open 25 Proportional Band 1 RW 1 to 9999 26 Integral Action Time RW 0 to 7200...

Page 20: ...99 48 Fixed Set Point 4 RW 999 to 9999 7 2 4 Alarm Settings Register Variable Label Read Write Limits Values 51 Alarm Trip 1 RW 999 to 9999 53 Alarm Trip 2 RW 999 to 9999 56 Alarm Hysteresis Value RW...

Page 21: ...e R 1 On 21 Global Maths Reset W 1 Reset 22 Maximum Values Reset W 1 Reset 23 Minimum Values Reset W 1 Reset 24 Average Values Reset W 1 Reset 7 4 COMMANDER 150 160 Registers 7 4 1 Analog Inputs Regis...

Page 22: ...999999 77 78 Preset Value R 0 to 999999 79 80 Batch Total R 0 to 999999 81 82 Secure Total R 0 to 999999 83 Total Go State W 1 Go 84 Batch Reset W 1 Reset 7 4 4 Maths Functions Register Variable Label...

Page 23: ...7183 Client Warranty Prior to installation the equipment referred to in this manual must be stored in a clean dry environment in accordance with the Company s published specification Periodic checks...

Page 24: ...Limited Howard Road St Neots Cambridegshire PE19 8EU UK Tel 44 0 1480 475 321 Fax 44 0 1480 217 948 ABB Inc 125 E County Line Road Warminster PA 18974 USA Tel 1 215 674 6000 Fax 1 215 674 7183 ABB ha...

Reviews: