Schneider Electric LUFP7 user manual Fbdu Modbus exchange startup

Page 39

5. Gateway Initialization and Diagnostics

Bits

Description

14FB_HS_SEND: New command from the Profibus-DP master

Before changing the value of FB_DU, the Profibus-DP master must compare the values of FB_HS_SEND and ABC_HS_CONFIRM (bit 14 of the gateway’s status word). If these two values are different, this means that the gateway has not yet acknowledged the previous Profibus-DP master command. Else, the Profibus-DP master can issue a new command, updating the FB_DU bit according to the nature of its command (shutdown or activation of Modbus exchanges), then toggling the value of the FB_HS_SEND bit to inform the gateway that it has sent it a new command.

Summary:

If ( FB_HS_SEND ≠ ABC_HS_CONFIRM ) Æ The Profibus-DP master command word still contains a command which has not yet been acknowledged by the gateway. So the Profibus-DP master cannot use this word to place a new command in it.

Else Æ The previous command of the Profibus-DP master has been acknowledged by the gateway, which allows it to transmit a new command. In this case, it changes the value of the FB_DU bit, then toggles the value of the FB_HS_SEND bit.

13FB_DU: Modbus exchange startup

The setting of this bit to one by the Profibus-DP master allows communications between the gateway and the Modbus slaves. Resetting it to zero is used to inhibit them.

When the Profibus-DP master sets this bit to one, it is preferable for all of the output data it has placed in the gateway’s output memory to be up-to-date (“FB_DU” means “FieldBus – Data Updated”). If they are not, these data will be transmitted to the Modbus slaves “as it.”

0-12 Reserved.

The correct use of this command word by the Profibus-DP master, to transmit a new command to the gateway, goes through the following steps:

Checking of (FB_HS_SEND = ABC_HS_CONFIRM).

 The command, that is to say the value of the FB_DU bit, is updated.

 The value of the FB_HS_SEND bit is inverted.

N.B. It is possible to simplify this use as follows:

The FB_DU and FB_HS_SEND bits are set to one to activate the Modbus communications.

The FB_DU and FB_HS_SEND bits are reset to halt Modbus communications.

On the other hand, do not write directly in 16-bit format in the Profibus-DP master command word, because this would disrupt the operation of the transfer of the gateway diagnostics (undesired change to FB_HS_CONFIRM). However, during some debug or test phase, you could, for instance, write 16#6000 in the Profibus-DP master command word (that is to say 16#6000 in the %QW4.0 output word) in order to activate the Modbus communications, and 16#0000 to stop them.

40

Image 39
Contents LUFP7 Page LUFP9 Page Table of Contents Introduction to the User Guide IntroductionTerminology Introduction to the LUFP7 GatewayDPM1 Notational ConventionsModbus Additional DocumentationIntroduction to the Communication System Architecture Profibus-DP Master Upstream network Profibus-DPPrinciple Used to Configure and Operate the LUFP7 Gateway Modbus Network ABC ConfiguratorLUFP7 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 Pin Outs TSXCSA00Wiring Recommendations for the Modbus Network 120 ΩHubs, drops, taps, and line terminations Pin Outs LUFP7 plug --- 9-point SUB-D female Connecting the LUFP7 gateway to the Profibus-DP NetworkNAD 911 04/03 connector Point SUB-D male CablesGND Wiring Recommendations for the Profibus-DP NetworkNAD 911 04 or 03 connector Configuring the Profibus-DP Communication Features Encoding the Gateway AddressNo Internal Line Termination Address = Signalling Profibus-DP Software Implementation of the GatewayIntroduction System ArchitectureConfiguring the Motor Starters Modbus Cycle TimeManaging 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 Possible values Saving and Exporting the Profibus-DP Network ConfigurationDiagnostic length OptionalConfiguring the Gateway I/O under PL7 PRO IW4.0.1 Service PLC input DescriptionService PLC output Description IW4.0Sample 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 ConfigurationControl/Status Byte field Gateway Initialization and DiagnosticsDisabled 5.3.2 Profibus-DP Master Control Word Full ManagementProfibus-DP Master Control Word Fbdu Modbus exchange startup Gateway Status Word Bits Description Abchssend New gateway diagnostic11EC Error code associated with the Modbus network ED Error data item associated with the Modbus networkDescription 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 slaveCopying a previously configured Modbus slave Adding a 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.19 IW4.0.16IW4.0.17 IW4.0.18Configuring 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 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 Adding a Special Modbus Command Modbus Commands Based on Standard CommandsModbus 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 Appendix a Technical Characteristics Communication CharacteristicsEnvironment Communications between other stations Performance Results Inputs General data Identification number Name of the related GSD file GSD File ContentAppendix B LUFP7 Gateway GSD File Identification NumberMaximum 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 Overview of the LUFP7 Tutorial Example Appendix D Sample Use under PL7 PROLUFP7 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 Bytes Name Description Gateway Configuration DataBytes Name Value General Gateway Information108 Appendix F Modbus Commands Read Holding Registers Command 16#03 Preset Single Register Command 16#06Frame 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