background image

C1300

Advanced Circular Chart Recorder

5 Modbus Functions

IM/C1300–MOD

 Rev. C

9

5 Modbus Functions

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

5.1 Read Coil Status – Function Code 01

5.1.1 Read Coil Status Query

This function allows the user to obtain the ON/OFF status of logic coils used to control discrete outputs from the addressed slave
only. Broadcast mode is not supported with this function code. In addition to the slave address and function fields, the message
requires that the information field contain the initial coil offset address to be read (starting address) and the number of locations to be
interrogated must obtain status data.

Example

 – a read coil status request to read 16 coils from slave (01) starting at coil 31 (alarm A status channel 1) is shown below.

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 even multiples of eight, the last characters 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 ON

Alarm D status channel 1 OFF

Alarm A,B,C,D status channel 2 all OFF

Alarm A,B,C,D status channel 3 all OFF

Alarm A,B,C,D status channel 4 all OFF

5.2 Read Holding Register – Function Code 03

5.2.1 Read Holding Register Query

The Read holding registers allow the user to obtain the binary contents of holding registers in the addressed slave.

Broadcast mode is not allowed.

Example

 – a read holding register request to read 6 holding registers from slave (01) starting at holding address 121 (alarm trip A1) is

shown below.

Note.

The coil offset address is the coil number minus one, e.g. to start at coil 31 the data start value must be set to 30 (1EH).

Address

Function

Coil Start Offset 

Number of Coils 

Error Check Field

 (CRC-16)

High

Low

High

Low

01

01

00

1E

00

10

5D

C0

Address

Function

Byte Count

Data Coil Status 

31 to 38

Data Coil Status 

39 to 46

Error Check Field

 (CRC-16)

01

01

02

05

00

BA

AC

Note.

The data start register must contain the offset address of the first register to be accessed, e.g. to start at register 121 the 

data start register must contain 120 (78H).

Address

Function

Register Start Offset 

Data Number of Registers 

Error Check Field

 (CRC-16)

High

Low

High

Low

01

03

00

78

00

06

45

D1

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: