Schneider Electric LXM32M Function Code 8 Diagnostics, Sub-function Code Diagnostics function

Page 29

LXM32M

3 Basics

 

 

3.4.2"Function Code" 8 (Diagnostics)

This "Function Code" 8 (Diagnostics) allows you to read diagnostics data of the slave.

Modbus request Structure of the Modbus request:

Field

Bytes

Value

Meaning

 

 

 

 

Function Code

1

8 = 08h

Diagnostics

 

 

 

 

Sub-function Code

2

(various)

Diagnostics function

 

 

 

 

Data

2

(various)

Data (depending on diagnostics function)

 

 

 

 

Modbus response Structure of the positive Modbus response:

Field

Bytes

Value

Meaning

 

 

 

 

Function Code

1

8 = 08h

Diagnostics

 

 

 

 

Sub-function Code

2

(various)

Diagnostics function

 

 

 

 

Data

2

(various)

Diagnostics data

 

 

 

 

Structure of the negative Modbus response

Field

Bytes

Value

Meaning

 

 

 

 

Function Code

1

08h + 80h = 88h

Diagnostics

 

 

 

 

Exception Code

1

01h ... 04h

See chapter

 

 

 

"3.3.2 Modbus response to a Modbus request"

 

 

 

 

Sub-function Code The following diagnostics functions are available:

 

Sub-function Code

Diagnostics function

 

 

 

 

 

00

Return Query Data

Return request as a response

 

 

 

 

 

01

Restart Communication Option

Re-initialize the communication port

 

 

 

 

 

02

Return Diagnostic Register

Return the error number in the case of synchronous errors

 

 

 

 

 

03

(reserved)

 

 

 

 

 

04

Force Listen Only Mode

Force "Listen Only" mode

 

 

 

 

 

05 ... 09

(reserved)

 

 

 

 

 

10

Clear Counters and Diagnostic

Clear all statistical counters

 

 

Register

 

 

 

 

 

 

11

Return Bus Message Count

Return number of detected "Bus Message"s

 

 

 

 

 

12

Return Bus Communication

Return number of detected "Bus Communication Error"s

 

 

Error Count

 

 

 

 

 

 

13

Return Bus Exception Error

Return number of detected "Bus Exception Error"s

 

 

Count

 

 

 

 

 

 

14 ... 15

(reserved)

 

 

 

 

 

16

Return Slave NAK Count

Return number of detected "Slave Not-Acknowledged"s

 

 

 

 

01.2012

17

Return Slave Busy Count

Return number of detected "Slave Busy"s

 

 

 

18

Return Bus Char Overrun

Return number of detected "Bus Char Overrun"s

 

0198441113843, V1.01,

 

Count

 

 

 

 

>18

(reserved)

 

 

 

 

 

 

Modbus-TCP module

29

Image 29
Contents LXM32M Important information Table of contents Diagnostics and troubleshooting Accessories and spare parts LXM32M About this manual Further reading Fieldbus products on the network IntroductionLXM32M Intended use Before you begin safety informationQualification of personnel Hazard categories Basic information Standards and terminology Modbus TCP technology BasicsFunction principle Bus topologyClient / server model Network service SnmpStructure of a Modbus message Modbus TCP protocolField Length Description Mbap headerConnection management Modbus TCP communicationExcep Name Description Tion Code Modbus response to a Modbus requestAddress Value Reading and writing parameters4 I/O scanning to Drive Profile Lexium Byte Meaning Data type Parameter address 4.1 I/O scanning OutputBit Meaning 4.2 I/O scanning InputInputs Bit Signal Factory settingParameter channel Ctrl Subindex Index Field Bytes Value Meaning Modbus services Function CodeFunction Code 3 Read Multiple Registers Sub-function Code Diagnostics function Function Code 8 DiagnosticsFunction Code 16 Write Multiple Registers Function Code 23 ReadWrite Multiple Registers Object ID Object name Value Function Code 43 Encapsulated Interface TransportExample of Function Code ExamplesLXM32M Description Order no InstallationInstallation of the module Pin Signal Meaning Electrical installationCommissioning the device CommissioningSwitching on the device Power stage supply is switched off First SetupManual assignment of the network address Bootp / boot BootpManual / 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 protocol Setting the transmission rateSet the IP address of the gateway with the parameters Setting the gatewayMaster 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 communication monitoring for I/O scanning Setting the web server0198441113843, V1.01 Operation Bit Name Meaning Operating statesIndication of the operating state Bit Name Meaning Operating state Changing the operating stateBit Name Description Indicating and monitoring the operating modeOperating modes Bit Name Description Starting and changing an operating modeMODE+ACTION Overview of operating modesOperating mode Jog Operating mode Electronic Gear 24 h Operating mode Profile Torque23 h Operating mode Profile VelocityOperating mode Profile Position Operating mode Homing LXM32M6 Operation Operating mode Motion SequenceWeb server Extended settingsUser interface Main menu Submenu ContentFTP server Accessing the FTP serverFDR service Fast Device Replacement LXM32M Fieldbus communication error diagnostics Diagnostics and troubleshootingColor Status Meaning Status LEDsMeaning for EtherNet/IP Meaning for Modbus TCP ColorError indication Excep Name Description Tion Code LXM32M Cables Accessories and spare partsLXM32M Units and conversion tables GlossaryRotation TemperatureTorque Moment of inertiaTerms and Abbreviations LXM32M Index LXM32M