Schneider Electric LXM32M manual Mbap header, Field Length Description

Page 18

3 Basics

LXM32M

 

 

3.2.1MBAP header

The MBAP header contains the information allowing the recipient to uniquely identify a message. This is even possible if a message is split into several packets for transmission.

Explicit and implicit length rules as well as the use of a CRC-32 error check code (on Ethernet) results in an infinitesimal chance of undetec- ted corruption to a request or response message.

Design The MBAP header has a length of 7 bytes and contains the following fields:

Field

Length

Description

 

 

 

Transaction Identifier

2 bytes

Identification of a Modbus

 

 

request or Modbus response.

 

 

 

Protocol Identifier

2 bytes

Value 0 means Modbus proto-

 

 

col.

 

 

 

Length

2 bytes

Number of bytes to follow.

 

 

 

Unit Identifier

1 byte

Identification of a slave con-

 

 

nected to another bus via a

 

 

serial line.

 

 

 

Transaction Identifier

The field "Transaction Identifier" is used for "Pairing". The server copies the "Transaction Identifier" of the Modbus request to the Modbus response.

Protocol Identifier

The field "Protocol Identifier" is used to identify the protocol. The Modbus protocol is identified by the value 0.

Length

The "Length" field is a byte counter for the following fields ("Unit Identifier", "Function Code" and "Data").

Unit Identifier

The field "Unit Identifier" is used to identify the server in the slave.

0198441113843, V1.01, 01.2012

18

Modbus-TCP module

Image 18
Contents LXM32M Important information Table of contents Diagnostics and troubleshooting Accessories and spare parts LXM32M About this manual Further reading Introduction Fieldbus products on the networkLXM32M Before you begin safety information Qualification of personnelIntended use Hazard categories Basic information Standards and terminology Function principle BasicsModbus TCP technology Bus topologyNetwork service Snmp Client / server modelModbus TCP protocol Structure of a Modbus messageMbap header Field Length DescriptionModbus TCP communication Connection managementModbus response to a Modbus request Excep Name Description Tion CodeReading and writing parameters Address Value4 I/O scanning to Drive Profile Lexium 4.1 I/O scanning Output Byte Meaning Data type Parameter address4.2 I/O scanning Input Bit MeaningBit Signal Factory setting InputsParameter channel Ctrl Subindex Index Modbus services Function Code Function Code 3 Read Multiple RegistersField Bytes Value Meaning Function Code 8 Diagnostics Sub-function Code Diagnostics functionFunction Code 16 Write Multiple Registers Function Code 23 ReadWrite Multiple Registers Function Code 43 Encapsulated Interface Transport Object ID Object name ValueExamples Example of Function CodeLXM32M Installation Installation of the moduleDescription Order no Electrical installation Pin Signal MeaningCommissioning Commissioning the deviceFirst Setup Switching on the device Power stage supply is switched offManual / MAnu Manual Bootp / boot BootpManual assignment of the network address Dhcp / dhcP DhcpIP address Ethernet module, byte Assignment of the network address via Bootp Assignment of the network address via Dhcp Setting the transmission rate Setting the protocolSetting the gateway Set the IP address of the gateway with the parametersMaster with Word Swap Setting I/O-Scanning Setting the master for I/O scanningActivating I/O scanning Setting the mapping for I/O scanning PLC Setting the web server Setting communication monitoring for I/O scanning0198441113843, V1.01 Operation Operating states Indication of the operating stateBit Name Meaning Changing the operating state Bit Name Meaning Operating stateIndicating and monitoring the operating mode Operating modesBit Name Description Starting and changing an operating mode Bit Name DescriptionOverview of operating modes MODE+ACTIONOperating mode Jog Operating mode Electronic Gear Operating mode Profile Torque 24 hOperating mode Profile Velocity 23 hOperating mode Profile Position Operating mode Homing Operating mode Motion Sequence LXM32M6 OperationExtended settings Web serverMain menu Submenu Content User interfaceAccessing the FTP server FTP serverFDR service Fast Device Replacement LXM32M Diagnostics and troubleshooting Fieldbus communication error diagnosticsStatus LEDs Color Status MeaningColor Meaning for EtherNet/IP Meaning for Modbus TCPError indication Excep Name Description Tion Code LXM32M Accessories and spare parts CablesLXM32M Glossary Units and conversion tablesTorque TemperatureRotation Moment of inertiaTerms and Abbreviations LXM32M Index LXM32M