12.07.2015 Views

Modbus Protocol for ION 7500, ION 7600 and ION 8000 series

Modbus Protocol for ION 7500, ION 7600 and ION 8000 series

Modbus Protocol for ION 7500, ION 7600 and ION 8000 series

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Modbus</strong> Register MapException ResponsesThe sending device calculates a 16-bit value, based on every byte in the packet,using the CRC-16 algorithm. The calculated value is inserted in the error checkfield.The receiving device per<strong>for</strong>ms the calculation, without the error check field, on theentire packet it receives. The resulting value is compared to the error check field.Transmission errors occur when the calculated checksum is not equal to thechecksum stored in the incoming packet. The receiving device ignores a badpacket.The CRC-16 algorithm is detailed in “Appendix A: CRC-16 Calculation” onpage 24.Exception ResponsesCode Name MeaningIf a <strong>Modbus</strong> master device sends an invalid comm<strong>and</strong> to a meter or attempts toread an invalid holding register, an exception response is generated. Theexception response follows the st<strong>and</strong>ard packet <strong>for</strong>mat. The high order bit of thefunction code in an exception response is set to 1.The data field of an exception response contains the exception error code. The tablebelow describes the exception codes supported by the meter <strong>and</strong> the possiblecauses.Table 1: Exception Codes supported by the meter01 Illegal Function02 Illegal AddressAn Invalid comm<strong>and</strong> is contained in the function field of the request packet. The meter only supports<strong>Modbus</strong> functions 3 <strong>and</strong> 16.The address referenced in the data field is an invalid address <strong>for</strong> the specified function. This could alsoindicate that the registers requested are not within the valid register range of the meter.03 Illegal Value The value referenced in the data field is not allowed <strong>for</strong> the referenced register on the meter.Broadcast PacketsThe <strong>ION</strong> <strong>Modbus</strong> protocol supports broadcast request packets. The purpose of abroadcast request packet is to allow all Slave devices to receive the same comm<strong>and</strong>from the Master station.A broadcast request packet is the same as a normal request packet, except the slaveaddress field is set to zero (0). All <strong>Modbus</strong> slave devices receive <strong>and</strong> execute abroadcast request comm<strong>and</strong>, but no device will respond. The Preset MultipleRegisters comm<strong>and</strong> is the only comm<strong>and</strong> supporting broadcast packets.Page 7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!