Schneider Electric LUFP7 Gateway Status Word, Bits Description Abchssend New gateway diagnostic

Page 40

5. Gateway Initialization and Diagnostics

5.2.2. Gateway Status Word

The input word located at addresses 16#0000 (MSB) and 16#0001 (LSB) in the gateway’s input memory constitutes the gateway’s status word. Its structure is described below:

Bits

Description

15ABC_HS_SEND: New gateway diagnostic

(See description of bit 15 of the Profibus-DP master command word, FB_HS_CONFIRM.)

14ABC_HS_CONFIRM: Acknowledgement bit of a Profibus-DP master command (See description of bit 14 of the Profibus-DP master command word, FB_HS_SEND.)

13ABC_DU: Modbus exchanges activated

The gateway activates this bit to tell the Profibus-DP master that the Modbus data located in its input memory area have all been updated at least once since the last activation of FB_DU (“ABC_DU” means “ABC – Data Updated”). These Modbus input data include every data in responses from all Modbus slaves, for both periodic commands and aperiodic commands.

This bit is deactivated by the gateway when the FB_DU bit is deactivated, that is to say when the Profibus-DP master demands a shutdown of Modbus exchanges.

N.B. Once it is active, this bit is not deactivated if there are any communication errors with the Modbus slaves. To signal this type of error, the gateway uses bit 12 of its status word.

12Periodicity of Modbus exchanges

The gateway activates this bit provided that it is periodically communicating with all of the Modbus slaves. It deactivates it as soon as it loses communication with one of them.

The “Reconnect time (10ms)”, “Retries” and “Timeout time (10ms)” elements of each of the Modbus queries (see chapter 6.11.2.2 Configuring the Query, page 72) are used to determine whether communication is lost, then restored.

N.B. If a number of periodic exchanges are configured for the same Modbus slave, only one of them needs to remain active for the periodic communications with this slave to be declared active.

8-11EC: Error code associated with the Modbus network

Code of the error detected on the Modbus network by the gateway and transmitted to the Profibus- DP master.

0- 7 ED: Error data item associated with the Modbus network

Data item associated with the EC error code.

The correct use of this status word by the Profibus-DP master, to read a diagnostic generated by the gateway, goes through the following steps:

Checking of (ABC_HS_SEND ≠ FB_HS_CONFIRM).

 Reading of the value of ABC_DU to determine whether all of the Modbus input data are up-to-date.

 Reading of the value of the bit 12 to determine whether the periodicity of the Modbus communications has been maintained.

 Reading of the values of EC and ED to check for any error detected by the gateway on the Modbus network (see table on the next page).

 Copying of the value of the ABC_HS_SEND bit to the FB_HS_CONFIRM bit.

This last step is essential because it allows the gateway to transmit a future diagnostic in order not to “loose” any further error reporting! Even if you do not wish to read the content of the gateway’s status word, it is preferable to automate this step in your Profibus-DP master software.

41

Image 40
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 NetworkHilscher LUFP7 gatewayProfibus-DP Hardware Implementation of the LUFP7 Gateway Configuration Modbus RTUOn Receipt Mounting the Gateway on a DIN Rail Powering the GatewayMounting the gateway LU9GC03 Connecting the Gateway to the Modbus NetworkExamples of Modbus Connection Topologies LUFP7 Gateway TSXCSA00 Pin Outs120 Ω Wiring Recommendations for the Modbus NetworkHubs, drops, taps, and line terminations 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 Encoding the Gateway Address Configuring the Profibus-DP Communication FeaturesNo Internal Line Termination Address = Signalling Software Implementation of the Gateway IntroductionSystem Architecture Profibus-DPModbus Cycle Time Configuring the Motor StartersManaging Degraded Modes 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 Modbus Slave Copying a previously configured Modbus slaveAdding a new type of 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.16 Deleting Aperiodic Parameter DataQW4.0.17 Configuring the Gateway Configuring the Gateway Managing the downstream Changing the name of a Modbus slave Changing a Modbus Slave ConfigurationChanging the Address 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 Based on Standard Commands Adding a Special Modbus CommandModbus Commands which Can Be Completely Changed by the User Configuring the General Characteristics of the Gateway Fieldbus ElementABC Element Sub-Network Element Configuring the Gateway Adding a Broadcaster Node Communication Characteristics Appendix a Technical CharacteristicsEnvironment 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#10 Configuring Modbus Exchanges16#06 Service Address Size Description Content of the Gateway’s Dpram MemoryInput Data Memory Area Output Data Memory Area Appendix D Sample Use under PL7 PRO Overview of the LUFP7 Tutorial ExampleLUFP7 Gateway Initialization and Diagnostics See note Controlling and Supervising the 8 TeSys U Motor Starters IEC61915 command registerTeSys U status register IEC61915 Reading and Writing any TeSys U Motor Starter Parameter Appendix D Sample Use under PL7 PRO Appendix D Sample Use under PL7 PRO Gateway Profibus-DP Diagnostics Appendix E Profibus-DP Data and DiagnosticsBytes Structure Description Gateway Configuration Data Bytes Name DescriptionGeneral Gateway Information Bytes Name Value108 Appendix F Modbus Commands Preset Single Register Command 16#06 Read Holding Registers Command 16#03Frame Field Value or properties 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