Schneider Electric LUFP7 Appendix E Profibus-DP Data and Diagnostics, Bytes Structure Description

Page 104

12. Appendix E: Profibus-DP Data and Diagnostics

The various elements presented here are detailed in the documentation of the Profibus-DP master you will have to use. In the case of the TSX PBY 100 coupler of the Premium automatic controls, for example, these elements are detailed in the Implementation Manual – TSX PBY 100 – PROFIBUS-DP(ref.: TSX DM PBY 100E), and in the PL7 PRO on line help (help path: Communication Æ Profibus-DP).

However, the most important elements are reproduced here in order to make the LUFP7 gateway easier to use.

12.1. Gateway Profibus-DP Diagnostics

These diagnostics are the gateway's response to a specific command generated by a Profibus-DP master. This command enables the master to check the status of one of its slaves.

In the case of the LUFP7 gateway, the response length is equal to 6 bytes, i.e. the minimum standard and mandatory length for a response to a diagnostic command.

Under PL7 PRO, this response can be viewed in two different ways:

In the “Debug” screen of the TSX PBY 100 coupler, when the slave whose address corresponds to the gateway's is selected. The gateway Profibus-DP diagnostics are then displayed in the "PROFIBUS-DP diagnostic data". An example is given on the right. It is an excerpt from the screen represented in chapter 4.2.13 Using and Monitoring the TSX PBY 100 Coupler Configuration, page 36.

Using the SEND_REQ function, the 16#0031 command code, and requesting specifically a diagnostic from the slave concerned.

The table below describes the structure and content of the gateway response to a Profibus-DP diagnostic command sent to it:

Bytes

Structure

Description

0

x0: not_reachable

x0=1 if the slave is non connected or switched off

 

x1: not_ready

x1=1 if the slave is not ready for data exchange

 

x2

: config_fault

x2=1 if there is a slave configuration error upon test request

 

x3

: ext_diag

x3=1 if extended diagnostic (bytes 7-255); x3=0 for the LUFP7 gateway

 

x4

: not_supported

x4=1 if the function is not supported by the slave

 

x5

: invalid_rsp

x5=1 if there is an error in the slave's first response

 

x6

: param_fault

x6=1 if there is an error in the slave's last setting message

 

x7

: master_lock

x7=1 if the slave is already set up by another master module

1

x0: prm_required

x0=1 if the slave should be configured and set up again

 

x1

: diag_data_rdy

x1=1 if the slave generated a diagnostic to be processed by the master

 

x2

: is_slave_diag

x2=0/1 if the diagnostic was created by the master / by the slave

 

x3

: wdt_active

x3=1 if the slave's watchdog is active

 

x4

: freeze_mode

x4=1 if the selected slave inputs are frozen

 

x5

: sync_mode

x5=1 if the selected slave outputs are frozen

 

x6

(non utilisé)

——

 

x7

: inactive

x7=1 if the slave is inactive (excluded from the processing)

2

x0..x6 (unused)

——

 

x7: diag_overflow

x7=1 if the number of diagnostic bytes exceeds the size of the reception words

3

master_address

Address of the master module that sets up the slave

4-5

PNO_identifier

Slave's identification code

6-244

specific_diag (unused)

Optional specific diagnostic data (none for the LUFP7 gateway)

105

Image 104
Contents LUFP7 Page LUFP9 Page Table of Contents Introduction Introduction to the User GuideIntroduction to the LUFP7 Gateway TerminologyNotational Conventions DPM1Additional Documentation Introduction to the Communication System ArchitectureProfibus-DP Master Upstream network Profibus-DP ModbusPrinciple Used to Configure and Operate the LUFP7 Gateway ABC Configurator Modbus NetworkProfibus-DP LUFP7 gatewayHilscher On Receipt Configuration Modbus RTUHardware Implementation of the LUFP7 Gateway Mounting the gateway Powering the GatewayMounting the Gateway on a DIN Rail Examples of Modbus Connection Topologies Connecting the Gateway to the Modbus NetworkLU9GC03 LUFP7 Gateway TSXCSA00 Pin OutsHubs, drops, taps, and line terminations Wiring Recommendations for the Modbus Network120 Ω Connecting the LUFP7 gateway to the Profibus-DP Network NAD 911 04/03 connector Point SUB-D maleCables Pin Outs LUFP7 plug --- 9-point SUB-D femaleWiring Recommendations for the Profibus-DP Network GNDNAD 911 04 or 03 connector No Internal Line Termination Address = Configuring the Profibus-DP Communication FeaturesEncoding the Gateway Address Signalling Software Implementation of the Gateway IntroductionSystem Architecture Profibus-DPManaging Degraded Modes Configuring the Motor StartersModbus Cycle Time Gateway Configuration under PL7 PRO and SyCon Setting Up the Hardware Configuration under PL7 PROCreating a Profibus-DP Network under SyCon Selecting and Adding the Profibus-DP Master StationSetting up the Gateway Description Files Editing and Configuring the Gateway Selecting and Adding the Gateway to the Profibus-DP NetworkSoftware Implementation of the Gateway Saving and Exporting the Profibus-DP Network Configuration Diagnostic lengthOptional Possible valuesConfiguring the Gateway I/O under PL7 PRO Service PLC input Description Service PLC output DescriptionIW4.0 IW4.0.1Description of Services Assigned to Gateway Inputs/Outputs Sample reading of a motor starter parameterAllocating Symbols to the Gateway Inputs and Outputs Using and Monitoring the TSX PBY 100 Coupler Configuration Developing a Profibus-DP ApplicationGateway Initialization and Diagnostics Disabled 5.3.2 Profibus-DP Master Control WordFull Management Control/Status Byte fieldProfibus-DP Master Control Word Fbdu Modbus exchange startup Bits Description Abchssend New gateway diagnostic 11EC Error code associated with the Modbus networkED Error data item associated with the Modbus network Gateway Status WordDiagnostic Only Description of the errorBits Description Abcdu Modbus exchanges activated Simplified Operation Configuring the Gateway Connecting the Gateway to the Configuration PCGND RS-232 Link ProtocolInstalling AbcConf Importing the Gateway ConfigurationTransferring a Configuration to the Gateway Monitoring the Content of the Gateway’s MemoryConfiguring the Gateway Procedure for deleting a Modbus slave Deleting a Modbus SlaveAdding a new type of Modbus slave Copying a previously configured Modbus slaveAdding a Modbus Slave Importing/exporting a Modbus slave configuration Changing the Periodic Data Exchanged with a Modbus Slave Replacing a periodic input data elementReplacing an Output Periodic Data Element Increasing the Amount of Periodic Input Data Configuring the Gateway Configuring the Gateway Configuring the Gateway IW4.0.16 IW4.0.17IW4.0.18 IW4.0.19Configuring the Gateway Configuring the Gateway Configuring the Gateway Configuring the Gateway QW4.0.17 Deleting Aperiodic Parameter DataQW4.0.16 Configuring the Gateway Configuring the Gateway Managing the downstream Changing the Address of a Modbus slave Changing a Modbus Slave ConfigurationChanging the name of a Modbus slave Adding and Setting Up a Modbus Command With the TeSys U Motor StartersName of the Modbus command Modbus query Modbus responseWith a Generic Modbus Slave CPU stop/failure LUFP7 gateway Profibus-DP Modbus RTU Configuring the Query Configuration Description ElementConfiguring the Gateway Default communication mode. The query is transmitted Configuring the Response Configuring the Content of the Query Frame Field Size Description Frame Mode. The default value, CRC, should not be changed Configuring the Content of the Response FrameStart byte fields Modbus Commands which Can Be Completely Changed by the User Adding a Special Modbus CommandModbus Commands Based on Standard Commands Configuring the General Characteristics of the Gateway Fieldbus ElementABC Element Sub-Network Element Configuring the Gateway Adding a Broadcaster Node Environment Appendix a Technical CharacteristicsCommunication Characteristics Communications between other stations Performance Results Inputs General data GSD File Content Appendix B LUFP7 Gateway GSD FileIdentification Number Identification number Name of the related GSD fileMaximum response time of the gateway Input Appendix C Default Configuration 16#06 Configuring Modbus Exchanges16#10 Input Data Memory Area Content of the Gateway’s Dpram MemoryService Address Size Description Output Data Memory Area Appendix D Sample Use under PL7 PRO Overview of the LUFP7 Tutorial ExampleLUFP7 Gateway Initialization and Diagnostics See note TeSys U status register IEC61915 IEC61915 command registerControlling and Supervising the 8 TeSys U Motor Starters Reading and Writing any TeSys U Motor Starter Parameter Appendix D Sample Use under PL7 PRO Appendix D Sample Use under PL7 PRO Bytes Structure Description Appendix E Profibus-DP Data and DiagnosticsGateway Profibus-DP Diagnostics Gateway Configuration Data Bytes Name DescriptionGeneral Gateway Information Bytes Name Value108 Appendix F Modbus Commands Frame Field Value or properties Read Holding Registers Command 16#03Preset Single Register Command 16#06 Preset Multiple Registers Command 16#10 Modbus Protocol Exception ResponsesCode Name Description of the exception Exception Appendix F Concept and Quantum PLC LUFP7 QuantumLeft intentionally blank 114 Page User’s Manual LUFP7 V1.1 2003-05