Schneider Optics Modicon Quantum Ethernet manual Read and Write Mstr Operations, Control Block

Page 41

The MSTR Instruction

Hex Error Code

Meaning

 

 

5047

The MTU is invalid

 

 

5048

The hardware length is invalid.

 

 

5049

The route specified cannot be found.

 

 

504A

Collision in select call: these conditions have already been selected by

another task.

 

 

 

504B

The task id is invalid.

 

 

CTE Error Codes The following error codes are returned if there is a problem with the Ethernet configuration extension table (CTE) in your program configuration.

Hex Error Code

Meaning

 

 

7001

There is no Ethernet configuration extension.

 

 

7002

The CTE is not available for access.

 

 

7003

The offset is invalid.

 

 

7004

The offset + length is invalid.

 

 

7005

Bad data field in the CTE.

 

 

3.2.4Read and Write MSTR Operations

An MSTR Write operation (type 1 in the displayed register of the top node) transfers data from a master source device to a specified slave destination device on the network. An MSTR Read operation (type 2 in the displayed register of the top node) transfers data from a specified slave source device to a master destination device on the network. Read and Write use one data master transaction path and may be completed over multiple scans.

Note: TCP/IP Ethernet routing must be accomplished via standard third-party

Ethernet IP router products.

Control Block

The registers in the MSTR control block (the top node) contain the Read or Write

Utilization

information as described in the following table:

 

 

 

 

 

 

 

 

 

 

 

Register

Function

Content

 

 

 

 

 

 

 

 

 

 

 

Displayed

Operation Type

1 = Write, 2 = Read.

 

 

 

 

 

 

 

 

 

 

First Implied

Error status

Displays a hex value indicating an MSTR error.

 

 

 

 

 

 

 

 

 

 

Exception response, where

 

Exception code

 

 

 

 

 

 

 

 

 

response size is incorrect.

 

+ 3000

 

 

 

 

 

 

 

 

 

 

 

Exception response where

 

4001

 

 

 

 

response size is incorrect.

 

 

 

 

 

 

 

 

 

 

 

 

 

Read Write

 

 

 

 

 

 

 

 

 

 

840 USE 115 00 Version 1.0

31

Image 41
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