Schneider Electric LUFP7 user manual Configuring the Gateway

Page 73

6. Configuring the Gateway

Configuration

Description

element

 

Retries

This element indicates the number of re-transmissions carried out by the gateway if there is

 

no response from the Modbus slave to a query, or if the response is incorrect. This re-

 

transmission process ceases as soon as the gateway gets a correct response within a given

 

time. If none of the re-transmissions has allowed the gateway to obtain a correct response,

 

the Modbus slave is deemed to be off-line, but only in relation to the command in question.

 

The gateway then uses the “Offline options for sub-network” and “Reconnect time (10ms)”

 

elements and the LED r MODBUS becomes red. This LED will only revert to a green state

 

if the Modbus command is answered with a correct response, once the reconnection has

 

started (see element “Reconnect time (10ms)”).

 

If the number of re-transmissions is set to 0, the process described above will not be run.

Timeout time

This element represents the time that the Modbus slave will wait for a response. If a

(10ms)

response has not reached the gateway within the given time, configured using the “timeout

 

time (10ms)” element, the gateway proceeds to a re-transmission. This process continues

 

until it reaches the last re-transmission allowed (see “Retries”), then the gateway declares

 

the Modbus slave off-line, but only for the command to which the “timeout time (10ms)”

 

belongs to.

Trigger byte

This element is only used by the gateway if “Update mode” is set to “Change of state on

address

trigger”. In this case, it specifies the address, in the gateway’s output memory (16#0202 to

 

16#02F3), of an 8-bit counter managed by the Profibus-DP master.

 

When the value located at this address is changed by the Profibus-DP master but different

 

from zero, the query configured with a “Change of state on trigger” related to this address is

 

transmitted to the Modbus slave. So the Profibus-DP master must have access to this

 

counter in the same way as for the periodic output registers sent to TeSys U motor starters.

 

In comparison to the “On data change” mode, this mode allows you to send a command on

 

a specific order from the Profibus-DP master if, for example, the latter is unable to update

 

all data from of any given query at the same time.

 

N.B. In the specific case of the gateway’s default configuration, the “Transactions 1” and

 

“Transactions 2” personalized command mode for the “TeSys U n°1” node is set to “Change

 

of state on trigger”. These aperiodic commands are respectively used to read and write the

 

value of a parameter of one of the Modbus slaves.

 

The “Trigger byte address” elements of the “Query” elements of these two commands are

 

configured at addresses 16#021E and 16#021F. These are the “parameter read/write

 

request counters”. Considered under Profibus-DP, SyCon, and PL7 PRO, these two data

 

are configured the same way as the other outputs (see chapter 4.2.9 Configuring the

 

Gateway I/O under PL7 PRO, page 32) and both correspond to the %QW4.0.15 output.

 

To transmit one of these two commands, the Profibus-DP master PLC must first of all

 

update all of the data to be transmitted on the Modbus network for this command

 

(addresses 16#0212 to 16#0217 or addresses 16#0218 to 16#021D), then change the

 

value of the associated counter (address 16#021E or 16#021F). The gateway will then

 

transmit the query corresponding to the command.

 

N.B. The “trigger byte” does not have to be an item of output data updated by the Profibus-

 

DP master. In fact it is quite possible that it may be an input between 16#0002 and

 

16#00F3. In this case, the Modbus slave which updates this byte will condition the

 

exchanges of the command you’re currently configuring.

74

Image 73
Contents LUFP7 Page LUFP9 Page Table of Contents Introduction to the User Guide IntroductionTerminology Introduction to the LUFP7 GatewayDPM1 Notational ConventionsIntroduction to the Communication System Architecture Additional DocumentationProfibus-DP Master Upstream network Profibus-DP ModbusPrinciple Used to Configure and Operate the LUFP7 Gateway Modbus Network ABC ConfiguratorHilscher 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 Pin Outs TSXCSA00120 Ω Wiring Recommendations for the Modbus NetworkHubs, drops, taps, and line terminations NAD 911 04/03 connector Point SUB-D male Connecting the LUFP7 gateway to the Profibus-DP NetworkCables Pin Outs LUFP7 plug --- 9-point SUB-D femaleGND Wiring Recommendations for the Profibus-DP NetworkNAD 911 04 or 03 connector Encoding the Gateway Address Configuring the Profibus-DP Communication FeaturesNo Internal Line Termination Address = Signalling Introduction Software Implementation of the GatewaySystem Architecture Profibus-DPModbus Cycle Time Configuring the Motor StartersManaging Degraded Modes Setting Up the Hardware Configuration under PL7 PRO Gateway Configuration under PL7 PRO and SyConSelecting and Adding the Profibus-DP Master Station Creating a Profibus-DP Network under SyConSetting up the Gateway Description Files Selecting and Adding the Gateway to the Profibus-DP Network Editing and Configuring the GatewaySoftware Implementation of the Gateway Diagnostic length Saving and Exporting the Profibus-DP Network ConfigurationOptional Possible valuesConfiguring the Gateway I/O under PL7 PRO Service PLC output Description Service PLC input DescriptionIW4.0 IW4.0.1Sample reading of a motor starter parameter Description of Services Assigned to Gateway Inputs/OutputsAllocating Symbols to the Gateway Inputs and Outputs Developing a Profibus-DP Application Using and Monitoring the TSX PBY 100 Coupler ConfigurationDisabled 5.3.2 Profibus-DP Master Control Word Gateway Initialization and DiagnosticsFull Management Control/Status Byte fieldProfibus-DP Master Control Word Fbdu Modbus exchange startup 11EC Error code associated with the Modbus network Bits Description Abchssend New gateway diagnosticED Error data item associated with the Modbus network Gateway Status WordDescription of the error Diagnostic OnlyBits Description Abcdu Modbus exchanges activated Simplified Operation Connecting the Gateway to the Configuration PC Configuring the GatewayRS-232 Link Protocol GNDImporting the Gateway Configuration Installing AbcConfMonitoring the Content of the Gateway’s Memory Transferring a Configuration to the GatewayConfiguring the Gateway Deleting a Modbus Slave Procedure for 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 Replacing a periodic input data element Changing the Periodic Data Exchanged with a Modbus SlaveReplacing an Output Periodic Data Element Increasing the Amount of Periodic Input Data Configuring the Gateway Configuring the Gateway Configuring the Gateway IW4.0.17 IW4.0.16IW4.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 With the TeSys U Motor Starters Adding and Setting Up a Modbus CommandModbus response Name of the Modbus command Modbus queryWith a Generic Modbus Slave CPU stop/failure LUFP7 gateway Profibus-DP Modbus RTU Configuration Description Element Configuring the QueryConfiguring the Gateway Default communication mode. The query is transmitted Configuring the Response Configuring the Content of the Query Frame Field Size Description Frame Configuring the Content of the Response Frame Mode. The default value, CRC, should not be changedStart byte fields Modbus Commands Based on Standard Commands Adding a Special Modbus CommandModbus Commands which Can Be Completely Changed by the User Fieldbus Element Configuring the General Characteristics of the GatewayABC 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 Appendix B LUFP7 Gateway GSD File GSD File ContentIdentification 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 Overview of the LUFP7 Tutorial Example Appendix D Sample Use under PL7 PROLUFP7 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 Bytes Name Description Gateway Configuration DataBytes Name Value General Gateway Information108 Appendix F Modbus Commands Preset Single Register Command 16#06 Read Holding Registers Command 16#03Frame Field Value or properties Modbus Protocol Exception Responses Preset Multiple Registers Command 16#10Code Name Description of the exception Exception LUFP7 Quantum Appendix F Concept and Quantum PLCLeft intentionally blank 114 Page User’s Manual LUFP7 V1.1 2003-05