background image

C1300

Advanced Circular Chart Recorder

4 Modbus Protocol

8

IM/C1300–MOD

 Rev. C

4 Modbus Protocol

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 250 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.

4.2 Modbus Function Codes

The function code field instructs the addressed slaves what function to perform. Table 4.1 shows the function codes, their meaning,
and the action they initiate.

Note.

The C1300 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.

Note.

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

Modbus 

Function Code

Modbus Message Name

C1300 Definition

01

Read Coil Status

Read up to 16 consecutive discrete (boolean) points from a specific starting point. 
The C1300 returns zeros for points which do not contain defined data and NAKs* 
any request for point numbers greater than 200.

03

Read Holding Register

Read up to 8 consecutive registers from a specific starting register. The C1300 
returns zeros from registers which do not contain defined data and NAKs* any 
request for register numbers greater than 250.

05

Force Single Coil

Write one discrete (boolean) point. The C1300 NAKs* this if the point is not 
currently writeable.

06

Preset Single Register

Write one register. The C1300 NAKs* if the register is not currently writeable. This 
function code also applies to any currently applicable limits to the value before 
storage in the database.

08

Loopback Diagnostic Test

Echo the message; only 'Return of Query' is supported.

16

Preset Multiple Registers

Write up to 8 consecutive registers from a specified starting register. The C1300 
NAKs* if any of the registers are not currently writeable, but still carries out all the 
writes which are valid, applying any currently applicable limits to the value before 
storage in the database.

*NAK = Negative Acknowledgement

Table 4.1 Modbus Function Codes

Summary of Contents for C1300

Page 1: ...publications are available for free download from www abb com measurement or by scanning this code Search for or click on C1300 Advanced circular chart recorder Datasheet DS C1300 EN C1300 Advanced ci...

Page 2: ...ed in full or part without prior approval of the Technical Publications Department Health and Safety To ensure that our products are safe and without risk to health the following points must be noted...

Page 3: ...Status Response 9 5 2 Read Holding Register Function Code 03 9 5 2 1 Read Holding Register Query 9 5 2 2 Read Holding Register Response 10 5 3 Force Single Coil Function Code 05 10 5 3 1 Force Single...

Page 4: ...th RS422 485 communication standard Modbus protocol for master host computer to slave C1300 system Isolated 500V from rest of instrument 3 and 5 wire communication supported Baud rate from 1200 to 960...

Page 5: ...2 485 adaptor card see Figs 2 1 and 2 2 Note An RS422 485 communication board is required in the host PC Observe the limitations outlined in the Installation Guide the maximum serial data transmission...

Page 6: ...puter Terminal or Host Computer Serial Module Terminal Board 0V A B B A GND GND 3 4 9 Links on Serial Module PL2 C1300 Linked Out see Note 5V 0V 1 8kW Pull down Resistor 1 8kW Pull up Resistor 5V 1 8k...

Page 7: ...RS485 standard quotes connection of thirty two slaves maximum to any single driver computer terminal or host computer the RS422 standard quotes connection of up to ten slaves However these numbers ca...

Page 8: ...t Up to 1200m 3 937 ft twin twisted pair with separate foil screens and integral drain wires for each pair e g Belden 9729 or equivalent Fig 2 4 Serial Module Connections C1300 Serial Module Terminal...

Page 9: ...e key to open the Main Menu Highlight Modbus Communications Transmission Type Select the required number of transmission wires 2 wire or 4 wire Baud Rate Select the transmission rate required 1200 slo...

Page 10: ...hecking used to detect errors in the master messages and slave responses Non volatile memory save command Note Modbus RTU requires 1 start bit 8 data bits 1 parity bit optional and 1 or 2 stop bits Mo...

Page 11: ...rs are filled in with zeros at high order end Example the response to the read coil status query shows the following Alarm A status channel 1 ON Alarm B status channel 1 OFF Alarm C status channel 1 O...

Page 12: ...ther values are illegal and do not affect the coil The use of slave address zero broadcast mode forces all attached slaves to modify the desired coil Example a force single coil request to switch ON c...

Page 13: ...the designation of the diagnostic code followed by 2 bytes to designate the action to be taken Example These are considered to be the information fields for diagnostic mode 5 5 2 Loopback Test Respon...

Page 14: ...ite multiple register request to write the value 10 to the register address 121 and the value 100 to the register address 122 in slave 01 is shown below 5 6 2 Write Multiple Registers Response The res...

Page 15: ...t of the function code is set to 1 Exception Response Code Exception Response Name Exception Response Definition 01 Illegal Function The message function received is not an allowable action for the C1...

Page 16: ...Channel 3 Alarm C Channel 3 Alarm D Channel 3 Alarm A Channel 4 Alarm B Channel 4 Alarm C Channel 4 Alarm D Channel 4 0 Inactive 1 Active Digital Input States 051 052 061 062 071 072 081 082 083 084...

Page 17: ...127 128 R R R R R R R R Logic Equation 1 Logic Equation 2 Logic Equation 3 Logic Equation 4 Logic Equation 5 Logic Equation 6 Logic Equation 7 Logic Equation 8 0 Inactive 1 Active Real Time States 13...

Page 18: ...High Word Low Word 019 020 R R Analog Input 5 High Word Low Word 021 022 R R Analog Input 6 High Word Low Word 023 024 R R Math Result 1 High Word Low Word 025 026 R R Math Result 2 High Word Low Word...

Page 19: ...p Value Channel 3 High Alarm A Trip Value Channel 3 Low Alarm B Trip Value Channel 3 High Alarm B Trip Value Channel 3 Low Alarm C Trip Value Channel 3 High Alarm C Trip Value Channel 3 Low Alarm D Tr...

Page 20: ...isters 18 IM C1300 MOD Rev C 7 4 Chart Settings Register Number Read Write Description Response Entry 181 182 R W R Chart Settings Chart Rotation Time Pen Lift Status 1 to 167 Hrs 168 7 Days to 193 32...

Page 21: ...d Low Word Secure Totalizer Value Ch 2 High Word Low Word The Limit for High Word Low Word linked together is 0 to 99 999 999 211 212 213 214 215 216 217 218 R R R R R R R R Predetermined Value Channe...

Page 22: ...C1300 Advanced Circular Chart Recorder Notes 20 IM C1300 MOD Rev C Notes...

Page 23: ...Acknowledgements Modbus is a registered trademark of the Modbus IDA organization IBM is a registered trademark of Sales Software Service...

Page 24: ...ll rights in this document and in the subject matter and illustrations contained therein Any reproduction disclosure to third parties or utilization of its contents in whole or in parts is forbidden w...

Reviews: