Schneider Electric LUFP9 user manual Fbdu Modbus exchange startup, Bits Description

Page 34

5. Gateway Initialization and Diagnostics

Bits Description

14FB_HS_SEND: New command from the DeviceNet master

Before changing the value of FB_DU, the DeviceNet 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 DeviceNet master command. Else, the DeviceNet 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 DeviceNet master command word still contains a command which has not yet been acknowledged by the gateway. So the DeviceNet master cannot use this word to place a new command in it.

Else Æ The previous command of the DeviceNet 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 DeviceNet master allows communications between the gateway and the Modbus slaves. Resetting it to zero is used to inhibit them.

When the DeviceNet 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, this data will be transmitted to the Modbus slaves “as it”.

0-12 Reserved.

Due to the inversion of the LSB and the MSB for this register between the gateway and the DeviceNet master, the structure of the corresponding output word (“O:1.1” in the case of the default configuration) is as follows:

Bits

Description

8-15

Reserved.

7

FB_HS_CONFIRM: Acknowledgement bit of a gateway diagnostic

6

FB_HS_SEND: New DeviceNet master command word

5

FB_DU: Modbus exchange startup

0-4

Reserved.

e.g. If the O:1.1 output word is set to 16#00A0, the DeviceNet master command word will be set to 16#A000.

The correct use of this command word by the DeviceNet 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 DeviceNet 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 DeviceNet master command word (that is to say 16#0060 in the O:1.1 output word) in order to activate the Modbus communications, and 16#0000 to stop them.

34

Image 34
Contents LUFP9 Page LUFP9 Page Table of contents Introduction Introduction to the user guideTerminology Introduction to the LUFP9 GatewayAltistart Notational Conventions Additional DocumentationDownstream network no.3 Modbus ModbusModbus VW33-A48 Downstream network no.1Principle Used to Configure and Operate the LUFP9 Gateway ABC Configurator Modbus networkRSLogix LUFP9 gatewayRSNetWorx DeviceNet NetworkHardware Implementation of the LUFP9 Gateway Configuration Modbus RTUOn Receipt Mounting the Gateway on a DIN Rail Powering the gatewayMounting the gateway Dismounting the gateway Connecting the Gateway to the Modbus Network Examples of Modbus connection topologiesLUFP9 gateway TSXCSA00 Pin outs120 Ω Wiring recommendations for the Modbus networkHubs, drops, taps, and line terminations Cables Connecting the LUFP9 gateway to the DeviceNet networkWire colour PinConfiguring DeviceNet Communication Features Selector Switches DeviceNet speed 3 4 5 6 7Speed Address Mac ID Selector DeviceNet Switches Address 3 4 5 6 7Encoding the Gateway Address Signalling System Architecture Software Implementation of the GatewayIntroduction DeviceNet Master PLC SLC500 DeviceNet upstream networkModbus cycle time Configuring the Motor StartersManaging degraded modes Installing the Gateway Description File Configuring the Gateway in RsNetWorxSelecting and adding the master PLC’s DeviceNet scanner Selecting and Adding the Gateway to the DeviceNet Network Editing gateway parametersSoftware Implementation of the Gateway Configuring the DeviceNet Scanner I1.1 Configuring Inputs from the GatewayService PLC input Description I1.2O1.1 Configuring Outputs Intended for the GatewayService PLC output Description O1.2Output Value Meaning MSB + LSB Description of Services Assigned to Gateway Inputs/OutputsInput Value Meaning MSB + LSB Transferring the DeviceNet Scanner Configuration Developing a DeviceNet ApplicationSummary Gateway Initialization and DiagnosticsFull Management Control/Status Byte field Sub-chapterFbdu Modbus exchange startup Fbhssend New DeviceNet master command wordBits Description ED Error data item associated with the Modbus network Bits Description Abchssend New gateway diagnostic11EC Error code associated with the Modbus network Gateway Status WordDescription of the error Diagnostic only DeviceNet Master Command Word Simplified Operation Configuring the Gateway Connecting the Gateway to the Configuration PCMale RJ45 LUFP9 Configuration Female RJ45RS-232 link protocol PC COM Male 9 point SUB-DInstalling 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 new type of Modbus slave Copying a previously configured Modbus slaveAdding a Modbus Slave Keyboard shortcut CtrlImporting/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 I1.19 I1.17I1.18 I1.20Configuring the Gateway Configuring the Gateway Configuring the Gateway O1.17 O1.18Deleting Aperiodic Parameter Data Configuring the Gateway Changing a Modbus slave Configuration Changing the Name of a Modbus SlaveChanging the Address of a Modbus Slave With TeSys U Motor Starters Adding and Setting Up a Modbus CommandName of the Modbus command Modbus query Modbus responseWith a Generic Modbus Slave Configuring the Gateway DeviceNet 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 FrameSize FieldFrame Mode. The default value, CRC, should not be changed Configuring the Content of the Response FrameAdding 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 Communication Characteristics Appendix a Technical CharacteristicsEnvironment Inputs Input data areaOutput data area OutputsGeneral data General data area16#10 Appendix B Default ConfigurationConfiguring Modbus exchanges 16#06Content of the Gateway’s Dpram Memory Input Data Memory Area16#0200 Appendix C Practical Example RSLogix Main Program LAD 2 MAINLUFP9Address Symbol Description ScanvalidationCmdreset Module Address Symbol DisplayAppendix C Practical Example RSLogix Numparam Appendix C Practical Example RSLogix Wrrunning Address Symbol Display Reserves relating to the RSLogix 500 exampleList of the Gateway’s DeviceNet Objects Appendix D DeviceNet ObjectsIntroduction to the Gateway’s DeviceNet Objects Class Required Instances InterfacesGraphical Representation of the Gateway’s DeviceNet Objects Identity Object class 16#01Services of instance 16#01 of class 16#01 Attributes of instance 16#01 of class 16#01Message Router Object class 16#02 DeviceNet Object class 16#03Services in class 16#04 Assembly Objects Class 16#04Services of instance 16#01 of class 16#03 Revision index of the Assembly Object classAttributes of instance 16#64 of class 16#04 Modbus Inputs Services of instances 16#64 and 16#96 of class 16#04Connection Object Class 16#05 Attributes of instance 16#96 of class 16#04 Modbus OutputsServices in class 16#05 Attributes of class 16#0516#83 Initial comm. characteristicsWatchdog timeout action Produced connection IDAccess Name Type Value 16#01 Get StateGet / Set Produced connection path Type Value16# 20 04 24 64 30 Type Value 16#07 Get / Set Produced connection size Type Value 16#04 Get / Set Produced connection ID #0 xxAttributes of instances 16#01 to 16#04 of class 16#05 Services in class 16#2BAcknowledge Handler Object class 16#2B Attributes of class 16#2BType Value 16#06 Get Data with ack path list size Services of instance 16#01 of class 16#2BData with ack path list 10.10. I/O Data Input Mapping Object Class 16#A0 Services in class 16#A0Services of instance 16#01 of class 16#A0 Attributes of class 16#A010.11. I/O Data Output Mapping Object Class 16#A1 Services in class 16#A1Services of instance 16#01 of class 16#A1 Attributes of class 16#A1Attributes of class 16#AA Diagnostic Object Class 16#AAServices in class 16#AA Attributes of instance 16#01 of class 16#AADeviceNet module status Access Name Need Type Value 16#09 Get LED statusModule type Changed data fieldServices of instance 16#01 of class 16#AA Appendix E 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 Page User’s manual V1.0 2003-03