Schneider Electric LUFP9 Reserves relating to the RSLogix 500 example, Address Symbol Display

Page 93

9. Appendix C: Practical Example (RSLogix 500)

Address

Symbol

Description

S:24

INDEX_SYS

Index register used in indexed addressing (prefix: ‘#’)

T4:1

TIMEOUT_WR_PARAM

Timer for the timeout of the parameter writing command

(3 seconds)

 

 

The example includes a personalized screen for monitoring the data, called “CDM 2 - WR_PAR”, in order to simplify the use of this example. The content of this screen is shown below:

Address

Symbol

Display

N7:12

WR_SLAVE

Decimal

N7:13

WR_ADDRESS

Decimal

N7:14

WR_VALUE

Decimal

B3:0/2

WR_COMMAND

Binary

 

 

 

B3:0/3

WR_RUNNING

Binary

B3:0/4

WR_OK

Binary

N7:15

WR_INDEX

Decimal

N7:16

WRPAR_1_ADDRESS

Decimal

N7:17

WRPAR_1_VALUE

Decimal

N7:18

WRPAR_2_ADDRESS

Decimal

N7:19

WRPAR_2_VALUE

Decimal

N7:20

WRPAR_3_ADDRESS

Decimal

N7:21

WRPAR_3_VALUE

Decimal

N7:22

WRPAR_4_ADDRESS

Decimal

N7:23

WRPAR_4_VALUE

Decimal

N7:24

WRPAR_5_ADDRESS

Decimal

Address

Symbol

Display

N7:25

WRPAR_5_VALUE

Decimal

N7:26

WRPAR_6_ADDRESS

Decimal

N7:27

WRPAR_6_VALUE

Decimal

N7:28

WRPAR_7_ADDRESS

Decimal

N7:29

WRPAR_7_VALUE

Decimal

N7:30

WRPAR_8_ADDRESS

Decimal

N7:31

WRPAR_8_VALUE

Decimal

O:1.13

WRPAR_SLAVE_FCT

Hexadecimal

O:1.14

WRPAR_ADRPAR

Hexadecimal

O:1.15

WRPAR_VALUE

Hexadecimal

I:1.13

CR_WRPAR_SLAVE_FCT

Hexadecimal

I:1.14

CR_WRPAR_ADRPAR

Hexadecimal

I:1.15

CR_WRPAR_VALUE

Hexadecimal

I:1.16

TRIGGER_IN_RD_WR

Hexadecimal

O:1.16

TRIGGER_OUT_RD_WR

Hexadecimal

N7:37

————

Hexadecimal

B3:0/6

————

Binary

9.5. Reserves relating to the RSLogix 500 example

This example is perfectible. So, for instance, with an incorrect response (wrong slave number, function number, etc.), the program performs no particular processing and continues to wait for a response until it times out, even though the gateway has not re-transmitted anything because, from its point of view, the response is correct. In fact, as the whole content of the Modbus response is placed in a “Data” field, it will not be checked before being copied into the gateway’s memory. Only the frame’s Checksum is checked by the gateway.

The two “trigger bytes” located in the input word I:1.16 are not used. You should use them if it is relevant for your application to be notified each time a response related to the two personalized commands “Transactions 1” and “Transactions 2” is received by the gateway.

Compatibility with the various options offered for the “Control/Status Byte” field in “ABC” (see chapter 5 Gateway Initialization and Diagnostics, page 33) is only partially dealt with in this example. The improvements required relate mainly to managing bits 14 and 15 of the DeviceNet master’s command word and the gateway’s status word (bits 6 and 7 of the corresponding input I:1.1 and output O:1.1). Also, the use of gateway diagnostics (EC and ED fields) still needs to be defined by the user.

93

Image 93
Contents LUFP9 Page LUFP9 Page Table of contents Introduction to the user guide IntroductionIntroduction to the LUFP9 Gateway TerminologyAltistart Additional Documentation Notational ConventionsModbus VW33-A48 ModbusDownstream network no.3 Modbus Downstream network no.1Principle Used to Configure and Operate the LUFP9 Gateway Modbus network ABC ConfiguratorRSNetWorx LUFP9 gatewayRSLogix DeviceNet NetworkConfiguration Modbus RTU Hardware Implementation of the LUFP9 GatewayOn Receipt Powering the gateway Mounting the Gateway on a DIN RailMounting the gateway Dismounting the gateway Examples of Modbus connection topologies Connecting the Gateway to the Modbus NetworkLUFP9 gateway Pin outs TSXCSA00Wiring recommendations for the Modbus network 120 ΩHubs, drops, taps, and line terminations Wire colour Connecting the LUFP9 gateway to the DeviceNet networkCables PinSelector Switches DeviceNet speed 3 4 5 6 7 Configuring DeviceNet Communication FeaturesSelector DeviceNet Switches Address 3 4 5 6 7 Speed Address Mac IDEncoding the Gateway Address Signalling Introduction Software Implementation of the GatewaySystem Architecture DeviceNet Master PLC SLC500 DeviceNet upstream networkConfiguring the Motor Starters Modbus cycle timeManaging degraded modes Configuring the Gateway in RsNetWorx Installing the Gateway Description FileSelecting and adding the master PLC’s DeviceNet scanner Editing gateway parameters Selecting and Adding the Gateway to the DeviceNet NetworkSoftware Implementation of the Gateway Configuring the DeviceNet Scanner Service PLC input Description Configuring Inputs from the GatewayI1.1 I1.2Service PLC output Description Configuring Outputs Intended for the GatewayO1.1 O1.2Description of Services Assigned to Gateway Inputs/Outputs Output Value Meaning MSB + LSBInput Value Meaning MSB + LSB Developing a DeviceNet Application Transferring the DeviceNet Scanner ConfigurationFull Management Gateway Initialization and DiagnosticsSummary Control/Status Byte field Sub-chapterFbhssend New DeviceNet master command word Fbdu Modbus exchange startupBits Description 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 only DeviceNet Master Command Word Simplified Operation Connecting the Gateway to the Configuration PC Configuring the GatewayRS-232 link protocol LUFP9 Configuration Female RJ45Male RJ45 PC COM Male 9 point SUB-DImporting 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 Keyboard shortcut CtrlImporting/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 I1.18 I1.17I1.19 I1.20Configuring the Gateway Configuring the Gateway Configuring the Gateway O1.18 O1.17Deleting Aperiodic Parameter Data Configuring the Gateway Changing the Name of a Modbus Slave Changing a Modbus slave ConfigurationChanging the Address of a Modbus Slave Name of the Modbus command Modbus query Adding and Setting Up a Modbus CommandWith TeSys U Motor Starters Modbus responseWith a Generic Modbus Slave Configuring the Gateway DeviceNet Configuration Description Element Configuring the QueryConfiguring the Gateway Default communication mode. The query is transmitted Configuring the Response Field Size Description Frame Configuring the Content of the Query FrameField SizeFrame Configuring the Content of the Response Frame Mode. The default value, CRC, should not be changedModbus 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 Appendix a Technical Characteristics Communication CharacteristicsEnvironment Input data area InputsGeneral data OutputsOutput data area General data areaConfiguring Modbus exchanges Appendix B Default Configuration16#10 16#06Input Data Memory Area Content of the Gateway’s Dpram Memory16#0200 Main Program LAD 2 MAINLUFP9 Appendix C Practical Example RSLogixScanvalidation Address Symbol DescriptionAddress Symbol Display Cmdreset ModuleAppendix C Practical Example RSLogix Numparam Appendix C Practical Example RSLogix Wrrunning Reserves relating to the RSLogix 500 example Address Symbol DisplayIntroduction to the Gateway’s DeviceNet Objects Appendix D DeviceNet ObjectsList of the Gateway’s DeviceNet Objects Class Required Instances InterfacesIdentity Object class 16#01 Graphical Representation of the Gateway’s DeviceNet ObjectsAttributes of instance 16#01 of class 16#01 Services of instance 16#01 of class 16#01DeviceNet Object class 16#03 Message Router Object class 16#02Services of instance 16#01 of class 16#03 Assembly Objects Class 16#04Services in class 16#04 Revision index of the Assembly Object classConnection Object Class 16#05 Services of instances 16#64 and 16#96 of class 16#04Attributes of instance 16#64 of class 16#04 Modbus Inputs Attributes of instance 16#96 of class 16#04 Modbus OutputsAttributes of class 16#05 Services in class 16#05Watchdog timeout action Initial comm. characteristics16#83 Produced connection IDType Value 16#01 Get State Access NameType Value Get / Set Produced connection path16# 20 04 24 64 30 Type Value 16#07 Get / Set Produced connection size #0 xx Type Value 16#04 Get / Set Produced connection IDAcknowledge Handler Object class 16#2B Services in class 16#2BAttributes of instances 16#01 to 16#04 of class 16#05 Attributes of class 16#2BServices of instance 16#01 of class 16#2B Type Value 16#06 Get Data with ack path list sizeData with ack path list Services of instance 16#01 of class 16#A0 Services in class 16#A010.10. I/O Data Input Mapping Object Class 16#A0 Attributes of class 16#A0Services of instance 16#01 of class 16#A1 Services in class 16#A110.11. I/O Data Output Mapping Object Class 16#A1 Attributes of class 16#A1Services in class 16#AA Diagnostic Object Class 16#AAAttributes of class 16#AA Attributes of instance 16#01 of class 16#AAModule type Access Name Need Type Value 16#09 Get LED statusDeviceNet module status Changed data fieldServices of instance 16#01 of class 16#AA Appendix E 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 Page User’s manual V1.0 2003-03