Schneider Electric user manual LUFP7 Gateway Initialization and Diagnostics

Page 98

11. Appendix D: Sample Use under PL7 PRO

This description remains concise, because it is only meant to describe the overall operation of the program and the way to use the related screen. If you need further detail, don't hesitate and review the actual content of the example under PL7 PRO.

The source code is commented by and large to help you understand how this works. Each "program" file starts with a short description of the way it operates, and each line includes a comment.

Each variable used has a symbol whose name describes its use. Use keyboard shortcuts “Ctrl+E” and “Ctrl+F” to display the variables by addresses (e.g. %MW80) or by symbols (e.g. Pkw_checked_boxes_slave).

Two animation tables (icon ) have been created, “Lufp7_inputs_outputs” and “Parameter_read_write.” The first animation table presents the I/O that correspond to the exchanges with the LUFP7 gateway, i.e. %IW4.0 to %IW4.0.15 and %QW4.0 to %QW4.0.15. The second table presents the I/O related to the aperiodic service for reading/writing the value of any motor starter parameter, and also some local variables used by this service. In the context of this example, this service is also called “PKW” due to its limited similarity with the PKW service implemented on a few other products from Schneider Electric. N.B. This service was not implemented the same way as the PKW service and must therefore not be used identically!

11.2. LUFP7 Gateway Initialization and Diagnostics

The “LUFP7 gateway exchanges” operating screen comprises four separate sections:

Hexadecimal display of gateway input data (%IW4.0 to %IW4.0.15) in the INPUTS frame. These inputs are named and grouped in the same manner as in this guide (see chapter 4.2.9 Configuring the Gateway I/O under PL7 PRO, page 32). Of course, the display of these input data is correct only if the gateway default configuration is used.

A green/red LED indicates whether the various input data have already been updated by the gateway. It is associated to bit 13 (ABC_DU) of the gateway status word.

These input data include periodic Modbus data (controlling and monitoring) and aperiodic Modbus data (parameter reading/writing). In order for the LED to turn green, a parameter read command and a parameter write command must both have received a response from a Modbus slave!

A second green/red LED indicates whether the input data are updated on a periodic basis or not by the gateway, i.e. if periodic exchanges take place properly with all Modbus slaves. It is associated to bit 12 of the gateway status word. Unlike the first LED, only one Modbus command per slave should receive a response on a periodic basis for this LED to remain green.

Hexadecimal display of gateway output data (%QW4.0 to %QW4.0.15) in the OUTPUTS frame. Ditto.

The green/red LED indicates whether the Profibus-DP master wants the gateway to communicate with the Modbus slaves. It is associated to bit 13 (FB_DU) of the Profibus-DP master control word, which is updated in the “Handshake_master” program, in accordance with the user controls described below. See note (1).

User controls for enabling / disabling exchanges on the gateway Modbus sub-network. These two exclusive buttons are meant to switch the value of bit 13 (FB_DU) of the Profibus-DP master control word and to generate a new control meant for the gateway (see “Handshake_master” program description and chapter 5.2.1 Profibus-DP Master Control Word, page 38). See note (1).

99

Image 98
Contents LUFP7 Page LUFP9 Page Table of Contents Introduction Introduction to the User GuideIntroduction to the LUFP7 Gateway TerminologyNotational Conventions DPM1Profibus-DP Master Upstream network Profibus-DP Additional DocumentationIntroduction to the Communication System Architecture 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 Ω Cables Connecting the LUFP7 gateway to the Profibus-DP NetworkNAD 911 04/03 connector Point SUB-D male 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 System Architecture Software Implementation of the GatewayIntroduction 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 Optional Saving and Exporting the Profibus-DP Network ConfigurationDiagnostic length Possible valuesConfiguring the Gateway I/O under PL7 PRO IW4.0 Service PLC input DescriptionService PLC output Description 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 ApplicationFull Management Gateway Initialization and DiagnosticsDisabled 5.3.2 Profibus-DP Master Control Word Control/Status Byte fieldProfibus-DP Master Control Word Fbdu Modbus exchange startup ED Error data item associated with the Modbus network Bits Description Abchssend New gateway diagnostic11EC Error code 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.18 IW4.0.16IW4.0.17 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 Identification Number GSD File ContentAppendix B LUFP7 Gateway GSD File 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