Schneider Electric LUFP7 user manual Description of Services Assigned to Gateway Inputs/Outputs

Page 34

4. Software Implementation of the Gateway

4.2.10. Description of Services Assigned to Gateway Inputs/Outputs

Managing the downstream Modbus network: Refer to chapter 5.3 Diagnostic Only, page 41, for a detailed description of that service, and to chapter 11.2 LUFP7 Gateway Initialization and Diagnostics, page 98, for an advanced sample use. In the case of the gateway’s default configuration, under AbcConf, the “Control/Status Byte” field of the “ABC” element is equal to “Enabled but no startup lock.”

Periodic communications (inputs): The value of each of the 8 words for this service corresponds to teh value of the status register of a TeSys U motor starter (register located at address 455).

Periodic communications (outputs): The value of each of the 8 words for this service corresponds to the value to be sent to the command register of a TeSys U motor starter (register located at address 704).

Refer to chapter 11.3 Controlling and Supervising the 8 TeSys U Motor Starters, page 100, for a sample use of these "periodic communications" services.

Aperiodic communications: Refer to chapter 11.4 Reading and Writing any TeSys U Motor Starter Parameter, page 101, for a simple example of these "aperiodic communications".

These aperiodic communications services offer functions similar to those of “parameter area PKW” which can be found on certain Schneider Electric products, such as some ATV drives.

Sample reading of a motor starter parameter:

Reading of the 1st fault register (address = 452 = 16#01C4) on TeSys U motor starter no. 5. The initial values of %QW4.0.15 and %IW4.0.15 are equal to 16#0613.

The result of the reading is 16#0002 (magnetic fault).

Output

Value

Meaning (MSB + LSB)

%QW4.0.9

16#0503

Slave no. + Function no.

%QW4.0.10

16#01C4

Parameter address

%QW4.0.11

16#0001

Number of parameters

%QW4.0.15

16#0713

“Trigger byte” for the query (PF)

Input

Value

Meaning (MSB + LSB)

%IW4.0.9

16#0005

(not used) + Slave no.

%IW4.0.10

16#0302

Slave no. + Number of bytes

%IW4.0.11

16#0002

Value read

%IW4.0.15

16#0713

“Trigger byte” for the response (PF)

Sample writing of a motor starter parameter:

Writing of the 2nd command register (address = 705 = 16#02C1) on TeSys U motor starter no. 7 at the value 16#0006 (clear statistics + reset thermal memory).

The initial values of %QW4.0.15 and %IW4.0.15 are equal to 16#0713.

The result of the writing is a command echo, that is to say that the values of the “address parameter” and “value to be written” fields are identical in both the query and the response.

Output

Value

Meaning (MSB + LSB)

%QW4.0.12

16#0706

Slave no. + Function no.

%QW4.0.13

16#02C1

Parameter address

%QW4.0.14

16#0006

Value to be written

%QW4.0.15

16#0714

“Trigger byte” for the query (PF)

Input

Value

Meaning (MSB + LSB)

%IW4.0.12

16#0706

Slave no. + Function no.

%IW4.0.13

16#02C1

Parameter address

%IW4.0.14

16#0006

Written value

%IW4.0.15

16#0714

“Trigger byte” for the response (PF)

Avoid writing incorrect values in outputs which correspond to the aperiodic communication services described above, as they would lead to the transmission of an incoherent Modbus frame. It is therefore up to the Profibus-DP master PLC application to manage them.

In addition, do not ever use these services in “Broadcast” mode (Modbus address = 0).

35

Image 34
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 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 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