Schneider Optics Modicon Quantum Ethernet manual Modbus Application Protocol Service Classes

Page 89

 

 

 

Quantum Ethernet TCP/IP Modbus Application Protocol

 

 

 

 

 

 

 

Example

Modbus Application Protocol PDU

 

 

Here are the values for a sample mbap_pdu for reading a register:

 

 

 

00 01 00 00 00 06 01 03 00 00 00 01

 

 

This example has the folowing structure and content:

 

 

inv_id 00 01

 

 

 

proto_id

00 00

 

 

len

00 00

 

 

dst_idx

01

 

 

func_code03

 

 

data

00 00 00 01

C.1.2

Modbus Application Protocol Service Classes

 

 

There are several classes of service that are part of the Modbus Application

 

 

Protocol. They include:

Data access

Read/write both discrete and analog data values from PLC register files.

Online

Services make relatively minor alterations to ladder logic programs with a highly

programming

controlled introduction of these changes into the executing program.

Image download/

Image download services support the downloading of a ladder logic control

upload

program to the PLC. Image upload services support the uploading of a ladder logic

 

 

control program from a PLC to PC host for archival/backup purposes.

Configuration

Configuration services allow the user to define parameter values which affect the

 

 

PLC’s register files, I/O map, communication port configuration and scan attributes,

 

 

to name a few.

 

Device execution

The class of service allows the user to start/stop the PLC scan execution. These

state control

services require the user to be in an application login context which is obtained

 

 

through other Modbus services.

840 USE 115 00 Version 1.0

79

Image 89
Contents USE 115 00 Version Modicon Quantum EthernetTraining October Modicon Quantum EthernetUSE 115 00 Vesion Document Set Preface USE 115 00 Version Contents Chapter Maintenance Using the Network Options Ethernet TesterMstr Instruction Retrieving Data via the World Wide WebAppendix D Suppliers Glossary Index Appendix a SpecificationsContents Viii About This Book Document Scope Related Documentation Validity NoteBenefits of Quantum Design Introduction Ethernet Web Embedded Server ModulesType of Cable Network Part Number Models for Fiber Optic and Twisted Pair Cable SystemsRemovable Door Front Panel Components140 NOE 251 LED Display Color Indication When OnEthernet Address LabelsAddress Label Internet Protocol IP Network Address LabelLocate the global address label on Example Calculating the Derived IP Network AddressFront panel of the module 0 B 7 2 aTransmit Data Twisted Pair ConnectorFiber Optic Connectors Errlog Utility DisketteNetwork Options Ethernet Tester Meeting the Demands of Your Application Ethernet and Your ApplicationGuidelines for Designing Your Network CompatibilityUsing Switches DelaysSegregating TrafficVerifying the Default Configuration Installing and Configuring Module Before You BeginImproper Network Topologies Verifying that the Network Has Been Constructed ProperlyMounting the Module on the Backplane Installing the ModuleAre You Really Ready to Install? Check With connectors 990 XCA 656 Connecting the CableTwisted Pair Snap into placeAttaching the Cable Configuring the Module with Modsoft Changing the Default ConfigurationAssigning a Slot Number Selecting the Ethernet Framing TypeAssigning the IP Network Address Assigning the Default Gateway Address and Subnet MaskResetting the Module Configuring More Than One Ethernet Module Parameter Dialog for an Ethernet Web Embedded Server Module Configuring the Module with ConceptMstr Operation Code TCP/IP Ethernet Support Mstr Instruction IntroductionMstr Description Size CharacteristicsCompatibility Opcode BF hexRepresentation ContentInputs OutputsError Codes Mstr Function Error CodesMiddle Node Bottom NodeSs Hex value Meaning Hex Error Code MeaningHex Error Code Meaning 5016 An argument is valid Control Block Read and Write Mstr OperationsUtilization Information as described in the following tableStatistics information as described in the following table Get Local Statistics Mstr OperationGet Remote Statistics Mstr Operation Clear Local Statistics Mstr OperationClear Remote Statistics Mstr Operation Peer Cop Peer Cop Health Mstr OperationCommunications Health StatusStatus Index Type WordModule information as described in the following table Reset Option Module Mstr OperationRead CTE Config Extension Table Mstr Operation CTE Display Parameter Register ContentImplementation Registers. The registers display the following CTE dataWrite CTE Config Extension Table Mstr Operation Word Meaning 13 TCP/IP Ethernet StatisticsRetrieving Data via the World Wide Web Introduction Web Utility Home Accessing the Web Utility HomeQuantum Web Utility Web Utility for QuantumRetrieving Data via the World Wide Web Using the Network Options Ethernet Tester Introduction Establishing a Connection with an Ethernet Module Installing the Network Options Ethernet TesterMain Menu Get Statistics Box Getting and Clearing StatisticsSample Statistics MAC AddressUsing the Network Options Ethernet Tester Read Register Box Reading and Writing RegistersWrite Register Box Detecting Errors Maintenance Responding to ErrorsReady LED Active LEDKernel LED Fault LEDLink LED LED Display for Improperly Connected Twisted Pair Cable Collision LEDApplication LED Reading and Clearing the Error LogEBX, EBP, ESI, EDI, ESP, EFLAGS, EIP Default is Example Errlog 49To restart the controller, type Y Example Sample Error LogHot Swapping An Ethernet Module From the Device to Download menu, select Local Head Downloading a New Software ImageUSE 115 00 Version Power Dissipation Bus Current Required Operating Conditions SpecificationsCommunication Ports Storage ConditionsSpecifications References Ethernet Developers Guide IntroductionDevelopment Environment OverviewClass Descriptions CSampledoc Class Event Description Accessing TCP/IPCSampleView Class Network Event Member Function Application Message FormatTransaction Processing TimersTransmit State Machine Exists the loop Receive State Machine Ethernet Developers Guide Displaying on the Screen Quantum Ethernet TCP/IP Modbus Application Protocol Includes the dstid and data fields Modbus Application Protocol PDUIs defined below Counts and data offsetsModbus Application Protocol Service Classes Modbus Application Protocol PDU Analysis Quantum Ethernet TCP/IP Modbus Application Protocol TCP Port Number TCP/IP Specific IssuesBroadcast/Multicast Reference Documents Quantum Ethernet TCP/IP Modbus Application Protocol Suppliers Suppliers Address GlossaryBps BridgeField Default gatewayFrame Framing typesInternet HubIP Address IO MapPacket OSI modelPort ProtocolSocket SwitchStack SubnetGlossary Index Index Network Options Ethernet Tester World Wide Web server Mstr