Schneider Electric LUFP7 user manual Appendix D Sample Use under PL7 PRO

Page 102

11. Appendix D: Sample Use under PL7 PRO

The second frame, “Parameter Address,” allows you to set the address of the parameter to read/write. When the “SEND command” button is being pushed, the value currently set in this frame is copied into the “Read parameter address” field of the reading command (%QW4.0.10) or into the “Written parameter address” field of the writing command (%QW4.0.13).

The third frame, “Value for WRITING,” will only be used if the “Parameter Writing” command is to be issued. The transfer of any value set in this frame into the “Written parameter value” field of the writing command (%QW4.0.14) is done whenever the “SEND command” button is being pushed, provided the “Parameter Writing” box is checked.

The fourth frame, “Command,” allows you to select the command that will be issued for the aperiodic parameter reading/writing service: read command or write command. Only one box can be checked at any given time.

The “SEND command” button triggers the update of the gateway’s periodic output data (%QW4.0.9 à %QW4.0.14) in such a way that the gateway will issue the command that matches the settings and values from the frames previously described. The reading command is issued using the %QW4.0.9 to %QW4.0.11 outputs and the writing command is issued using the %QW4.0.12 to %QW4.0.14 outputs. All these updates are performed in the “Pkw_service” program. A new command is issued and sent each time a modification is brought to the value of the MSB byte (for reading) or to the value of the LSB byte (for writing) of the %QW4.0.15 output.

E.g. In the example displayed above, the frames are used to issue a command intended to read (16#03, i.e. the function code that stands for the “Read Holding Registers” Modbus function) the value of the register no. 455 (address = 16#01C7) on the TeSys U motor starter no. 3 (16#03). The number of read parameters is necessarily equal to 1 (16#0001), but this data is still updated by the “Pkw_service” program because it is part of the Modbus command frame the gateway will issue.

The next four frames, located beneath and apart from the other ones, are intended to diplay the output data, transmitted to the gateway so that it will issue the corresponding Modbus query, the input data, as received by the gateway from one of its Modbus slaves in response to this query, the counters used by the gateway to trigger the emission of a command, and the counters updated by the gateway in order to mark the reception of a response. The upper frame is dedicated to the reading command (%QW4.0.9 to %QW4.0.11 for the query sent by the gateway and %IW4.0.9 to %IW4.0.11 for the response sent back by the Modbus slave) and the middle frame is dedicated to the writing command (%QW4.0.12 to %QW4.0.14 for the query sent by the gateway and %IW4.0.12 to %IW4.0.14 for the response sent back by the Modbus slave). Finally, the lowest two frames display the counters (or “Trigger bytes”) associated to these queries and responses. The queries counters are transmitted to the gateway using the %QW4.0.15 output, whereas the responses counters are read using the %IW4.0.15 input. The contents of these two words is broken down in order to isolate the values of these 8-bit counters.

The example located at the top of the next page follows the previously described example, as the output and input data for the aperiodic parameter reading/writing service match the settings and values of the other frames. Here, the value of the parameter is equal to 16#02C3. The middle frame has no valid data because the gateway has not yet been requested by the Profibus-DP master to send any write command.

103

Image 102
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 NetworkLUFP7 gateway HilscherProfibus-DP Configuration Modbus RTU Hardware Implementation of the LUFP7 GatewayOn Receipt Powering the Gateway Mounting the Gateway on a DIN RailMounting the gateway Connecting the Gateway to the Modbus Network LU9GC03Examples of Modbus Connection Topologies LUFP7 Gateway TSXCSA00 Pin OutsWiring Recommendations for the Modbus Network 120 ΩHubs, 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 Configuring the Profibus-DP Communication Features Encoding the Gateway AddressNo Internal Line Termination Address = Signalling System Architecture Software Implementation of the GatewayIntroduction Profibus-DPConfiguring the Motor Starters Modbus Cycle TimeManaging 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 SlaveCopying a previously configured Modbus slave Adding a 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 Deleting Aperiodic Parameter Data QW4.0.16QW4.0.17 Configuring the Gateway Configuring the Gateway Managing the downstream Changing a Modbus Slave Configuration Changing the name of a Modbus slaveChanging 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 Adding a Special Modbus Command Modbus Commands Based on Standard CommandsModbus 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 Appendix a Technical Characteristics Communication 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 Configuring Modbus Exchanges 16#1016#06 Content of the Gateway’s Dpram Memory Service Address Size DescriptionInput 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 IEC61915 command register Controlling and Supervising the 8 TeSys U Motor StartersTeSys 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 Appendix E Profibus-DP Data and Diagnostics Gateway Profibus-DP DiagnosticsBytes Structure Description Gateway Configuration Data Bytes Name DescriptionGeneral Gateway Information Bytes Name Value108 Appendix F Modbus Commands Read Holding Registers Command 16#03 Preset Single Register Command 16#06Frame 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