Schneider Electric LUFP7 user manual With a Generic Modbus Slave

Page 70

6. Configuring the Gateway

6.11.2. With a Generic Modbus Slave

Unlike the previous chapter, here we will be looking at adding and setting up a Modbus command which is different from those configured by default with the LUFP7 gateway. We will benefit from this occasion to exhaustively describe the fields allowing you to set up the management of communications for a command of this sort.

Please see chapter 13 Appendix F: Modbus Commands, page 108, for a list of the Modbus functions supported by the LUFP7 gateway. If you need to use a command which is not supported by the gateway, you can configure one. A command of this sort is included in a specific element called “Transactions” or becomes a new Modbus command in its own right. Please see the next chapter, § 6.11.3 Adding a Special Modbus Command, page 80, for further details on this subject.

E.g. To illustrate the various operations to be carried out and the explanations given, we will be taking the example of a Altistart starter, the ATS48, and a Modbus command recognised both by the gateway and the ATS48. This is the “Preset Single Register” command, whose function code is 6 and which allows you to write the value of a unique output word. This function will be used to periodically write the value of the ATS48’s CMD command register, located at address W400 (address 400 = 16#0190).

Since the gateway’s default configuration already has 8 Modbus slaves, you will need to delete one of them, such as the “TeSys U n°2” node, for example, and to add a new node in its place (see chapter 6.6 Deleting a Modbus Slave, page 49, and chapter 6.7 Adding a Modbus Slave, page 50). Reminder: We strongly advise you not to delete the “TeSys U n°1” node, as it contains the commands corresponding to the read and write services for a parameter in a Modbus slave.

We rename the “New Node”, which has just been created, in “ATS48”, and we assign it the Modbus address 10, as shown here:

We then proceed to add the

“Preset Single Register” command by choosing “Add Command” from the “ATS48” menu.

In the window which appears (shown opposite), select the “0x06 Preset

Single Register” command and choose “Select” from the “File” menu.

Back in the main AbcConf window, the “Preset Single Register” command now appears in the list of Modbus commands for the “ATS48” node.

Expand the full tree structure for this command, shown at the top of the next page. The correspondence between the various elements which appear in this tree structure and the standard Modbus terminology is located to its right.

71

Image 70
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 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 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 Encoding the Gateway Address Configuring the Profibus-DP Communication FeaturesNo Internal Line Termination Address = Signalling System Architecture Software Implementation of the GatewayIntroduction 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 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 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.18 IW4.0.16IW4.0.17 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 Configuration Changing 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 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#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