Schneider Optics Modicon Quantum Ethernet manual Transmit State Machine

Page 82

Ethernet Developers Guide

B.10 Transmit State Machine

The transmit state machine establishes a connection, and periodically transmits a request. The different states for the transmit state machine are as follows.

IDLE. In the IDLE state, there is no connection.

RESOLVING_NAME. In the RESOLVING_NAME state, CSample_View is waiting for the window socket DLL to convert a node’s name into an IP address.

CONNECTING. In the CONNECTING state, CSample_View is waiting for the window socket DLL to generate the FD_CONNECT event. This event indicates if the attempt to establish a connection succeeded or failed.

CONNECTED. The CONNECTED state indicates that a connection has been successfully established.

WAIT_TO_TX. In the WAIT_TO_TX state, CSample_View is waiting to transmit the message. It transmits the message, when the time from the last

ztransmit exceeds the specified poll interval.

BLOCKED. When CSample_View attempts to send a message, the window socket DLL may not be able to transmit the complete message. This is a flow control condition, and CSample_View enters the BLOCKED state. The window socket DLL generates the FD_WRITE event when it can send more

zdata.

TX_DONE. CSample_View enters the TX_DONE when it has completed transmitting the request.

If the CSample_View is in the IDLE state, and user selects either the connect menu item, or the connect tool bar button, CSample_View OnManagConnect function attempts to establish connect with its tcpip_initate_connection function. This function examines the remote destination and determines if it’s a name or an IP address. If it’s a name, OnMangConnect changes the transmit state to RESOLVING_NAME, and it invokes the window sockets DLL WSAAsyncGetHostByName function to resolve the name. Window sockets DLL will generate the user defined WM_TCPIP_NAME_RESOLVED message which indicates if the name has been resolved. The OnTcpIpNameResolved member function process the WM_TCPIP_NAME_RESOLVED message. If the name is not resolved, OnTcpIpNameResolved changes the transmit state back to IDLE.

72

840 USE 115 00 Version 1.0

Image 82
Contents Modicon Quantum Ethernet USE 115 00 VersionTraining USE 115 00 Vesion Modicon Quantum EthernetOctober Document Set Preface USE 115 00 Version Contents Mstr Instruction Using the Network Options Ethernet TesterChapter Maintenance Retrieving Data via the World Wide WebAppendix a Specifications Appendix D Suppliers Glossary IndexContents Viii About This Book Document Scope Validity Note Related DocumentationIntroduction Ethernet Web Embedded Server Modules Benefits of Quantum DesignModels for Fiber Optic and Twisted Pair Cable Systems Type of Cable Network Part NumberFront Panel Components Removable Door140 NOE 251 Color Indication When On LED DisplayAddress Label Address LabelsEthernet Internet Protocol IP Network Address LabelFront panel of the module Example Calculating the Derived IP Network AddressLocate the global address label on 0 B 7 2 aFiber Optic Connectors Twisted Pair ConnectorTransmit Data Network Options Ethernet Tester Utility DisketteErrlog Ethernet and Your Application Meeting the Demands of Your ApplicationCompatibility Guidelines for Designing Your NetworkSegregating DelaysUsing Switches TrafficInstalling and Configuring Module Before You Begin Verifying the Default ConfigurationVerifying that the Network Has Been Constructed Properly Improper Network TopologiesAre You Really Ready to Install? Check Installing the ModuleMounting the Module on the Backplane Twisted Pair Connecting the CableWith connectors 990 XCA 656 Snap into placeAttaching the Cable Changing the Default Configuration Configuring the Module with ModsoftSelecting the Ethernet Framing Type Assigning a Slot NumberResetting the Module Assigning the Default Gateway Address and Subnet MaskAssigning the IP Network Address Configuring More Than One Ethernet Module Configuring the Module with Concept Parameter Dialog for an Ethernet Web Embedded Server ModuleMstr Description Mstr Instruction IntroductionMstr Operation Code TCP/IP Ethernet Support Compatibility CharacteristicsSize Opcode BF hexInputs ContentRepresentation OutputsMiddle Node Mstr Function Error CodesError Codes Bottom NodeHex Error Code Meaning Ss Hex value MeaningHex Error Code Meaning 5016 An argument is valid Utilization Read and Write Mstr OperationsControl Block Information as described in the following tableGet Local Statistics Mstr Operation Statistics information as described in the following tableClear Local Statistics Mstr Operation Get Remote Statistics Mstr OperationClear Remote Statistics Mstr Operation Communications Peer Cop Health Mstr OperationPeer Cop Health StatusType Word Status IndexRead CTE Config Extension Table Mstr Operation Reset Option Module Mstr OperationModule information as described in the following table Implementation Parameter Register ContentCTE Display Registers. The registers display the following CTE dataWrite CTE Config Extension Table Mstr Operation 13 TCP/IP Ethernet Statistics Word MeaningRetrieving Data via the World Wide Web Introduction Accessing the Web Utility Home Web Utility HomeWeb Utility for Quantum Quantum Web UtilityRetrieving Data via the World Wide Web Using the Network Options Ethernet Tester Introduction Installing the Network Options Ethernet Tester Establishing a Connection with an Ethernet ModuleMain Menu Getting and Clearing Statistics Get Statistics BoxMAC Address Sample StatisticsUsing the Network Options Ethernet Tester Reading and Writing Registers Read Register BoxWrite Register Box Maintenance Responding to Errors Detecting ErrorsActive LED Ready LEDLink LED Fault LEDKernel LED Collision LED LED Display for Improperly Connected Twisted Pair CableReading and Clearing the Error Log Application LEDDefault is Example Errlog 49 EBX, EBP, ESI, EDI, ESP, EFLAGS, EIPExample Sample Error Log To restart the controller, type YHot Swapping An Ethernet Module Downloading a New Software Image From the Device to Download menu, select Local HeadUSE 115 00 Version Communication Ports SpecificationsPower Dissipation Bus Current Required Operating Conditions Storage ConditionsSpecifications Ethernet Developers Guide Introduction ReferencesOverview Development EnvironmentClass Descriptions CSampledoc Class CSampleView Class Accessing TCP/IPEvent Description Application Message Format Network Event Member FunctionTimers Transaction ProcessingTransmit State Machine Exists the loop Receive State Machine Ethernet Developers Guide Displaying on the Screen Quantum Ethernet TCP/IP Modbus Application Protocol Is defined below Modbus Application Protocol PDUIncludes the dstid and data fields Counts and data offsetsModbus Application Protocol Service Classes Modbus Application Protocol PDU Analysis Quantum Ethernet TCP/IP Modbus Application Protocol Broadcast/Multicast TCP/IP Specific IssuesTCP Port Number Reference Documents Quantum Ethernet TCP/IP Modbus Application Protocol Suppliers Suppliers Bps GlossaryAddress BridgeFrame Default gatewayField Framing typesIP Address HubInternet IO MapPort OSI modelPacket ProtocolStack SwitchSocket SubnetGlossary Index Index Mstr Network Options Ethernet Tester World Wide Web server