Schneider Electric LXM32M Modbus response to a Modbus request, Excep Name Description Tion Code

Page 20

3 Basics

LXM32M

 

 

3.3.2Modbus response to a Modbus request

The Modus server generates a Modbus response after having pro- cessed a Modbus request.

Depending on the type of processing, two types of Modbus responses are possible:

Positive Modbus response

-The "Function Code" in the Modbus response corresponds to the "Function Code" in the Modbus request.

Negative Modbus response

-The client receives pertinent information on error detection dur- ing processing;

-The "Function Code" in Modbus response corresponds to the "Function Code" in the Modbus request + 80h.

-The "Exception Code" indicates the cause of the error.

If a syntactically incorrect Modbus PDU (Protocol Data Unit) is trans- mitted, the connection is terminated. In the case of other other error, a negative Modbus response is sent.

Excep-

Name

Description

tion Code

 

 

 

 

 

01

Illegal Function Code

The "Function Code" is unknown to the

 

 

server.

 

 

 

02

Illegal Data Address

Depends on the Modbus request

 

 

 

03

Illegal Data Value

Depends on the Modbus request

 

 

 

04

Server Failure

The server was unable to properly termi-

 

 

nate processing.

 

 

 

05

Acknowledge

The server has accepted the Modbus

 

 

request. However, the execution takes a

 

 

relatively long time. The server therefore

 

 

only returns an acknowledgement con-

 

 

firming receipt of the service request.

 

 

 

06

Server Busy

The server was unable to accept the

 

 

Modbus request. It is the responsibility of

 

 

the application on the client to determine

 

 

whether and when to re-send the request.

 

 

 

0A

Gateway Problem

The gateway path is unavailable.

 

 

 

0B

Gateway Problem

The targeted device does not respond.

 

 

The gateway generates this error.

 

 

 

0198441113843, V1.01, 01.2012

20

Modbus-TCP module

Image 20
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 Intended use Before you begin safety informationQualification of personnel Hazard categories Basic information Standards and terminology Basics Modbus TCP technologyFunction principle 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 Field Bytes Value Meaning Modbus services Function CodeFunction Code 3 Read Multiple Registers 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 Description Order no InstallationInstallation of the module Electrical installation Pin Signal MeaningCommissioning Commissioning the deviceFirst Setup Switching on the device Power stage supply is switched offBootp / boot Bootp Manual assignment of the network addressManual / MAnu Manual 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 Activating I/O scanning Setting I/O-ScanningSetting the master for 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 Bit Name Meaning Operating statesIndication of the operating state Changing the operating state Bit Name Meaning Operating stateBit Name Description Indicating and monitoring the operating modeOperating modes 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 tablesTemperature RotationTorque Moment of inertiaTerms and Abbreviations LXM32M Index LXM32M