Back

Topic

[KB293]Modbus TCPIP Protocols Block Length

Tags: Modbus TCP/IP

14 years ago
By RM
Options
Print
Applies to:

PcVue all versions.


Summary:

Modbus TCP/IP Protocols (Additional information)


Details:

The  CIMWAY  protocols  Open  Modbus  Master  and  Open  Modbus  Slave  support block  size  lengths  that  may  exceed  the  maximum  number  of  blocks  defined  in  the various equipment manufacturer dependent standards.

The online help list all the maximum values for the different data types: 

Data type Read Write

Bit

2048

2048

Word

128

128

Double Word

64

64

Real

64

64

 

 

 

 

 

 

 

 

 

 

The maximum amount of variables per block varies between the different equipments
types  implementing  the  Modbus  protocol  but  hardly  any  type  uses  the  theoretically
maximum block length.

Example:
Here is a table that exemplarily illustrates these differences for communicating with
Schneider Electric PLCs:

Data format TSX Quantum TSX Premium Generic Equipment
  Read     Write Read     Write Read     Write

Bit

2000      800

1016      1984

2040      2040

Word

125        100

127        124

127        127

Double Word

62          50

63          62

63          63

Floating Point

62          50

63          62

63          63

 

 

 

 

 

 

 

 

 

 

 

 

Symptom: 

CIMWAY equipment error 0003 – Illegal data value, wrong size.

Solution:
Generally, the block length limitation can be reduced by some specific PLC limitation.
Therefore,  it  is  the  responsibility  of  the  application  engineer  to  make  sure  that  the
PLC  supports  the  specified  block  length.  To  find  out  about  the  maximal  supported
block length it is either advisable to refer to the equipment’s documentation or to start
with small frame size lengths that can be increased by trial and error.


Created on: 17 Dec 2010 Last update: 13 May 2024