Schneider Optics Modicon Quantum Ethernet manual Timers, Transaction Processing

Page 81

Ethernet Developers Guide

B.8 Timers

CSample_View requires to periodically receive a timer message. This message triggers the CSample_View to transmit a message. Since window timers are a limited resource, the window associated with CMainFrame class receives the timer messages. CMainFrame member AddTimerList function will place a window on its timer list. When CMainFrame processes the WM_TIMER message, it sends each window on its time list the user defined WM_POLL_INTERVAL message.

MFC calls CSample_View member OnInitalUpdate function when it is first being created. OnInitialUpdate calls CMainFrameís AddTimerList in order to receive the WM_POLL_INTERVAL message. MFC architectural framework calls CSample_View OnPollInterval member function to process this message.

B.9 Transaction Processing

CSample_View transaction processing consists of establishing a connection, transmitting the request, receiving the response, and displaying the response. CSample_View uses both a transmit and a receive state machine to advance a transaction.

840 USE 115 00 Version 1.0

71

Image 81
Contents USE 115 00 Version Modicon Quantum EthernetTraining Modicon Quantum Ethernet USE 115 00 VesionOctober 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 aTwisted Pair Connector Fiber Optic ConnectorsTransmit Data Utility Diskette Network Options Ethernet TesterErrlog 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 ProperlyInstalling the Module Are You Really Ready to Install? CheckMounting the Module on the Backplane 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 Default Gateway Address and Subnet Mask Resetting the ModuleAssigning the IP Network Address Configuring More Than One Ethernet Module Parameter Dialog for an Ethernet Web Embedded Server Module Configuring the Module with ConceptMstr Instruction Introduction Mstr DescriptionMstr Operation Code TCP/IP Ethernet Support 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 WordReset Option Module Mstr Operation Read CTE Config Extension Table Mstr OperationModule information as described in the following table 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 LEDFault LED Link LEDKernel 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 Accessing TCP/IP CSampleView ClassEvent Description 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/IP Specific Issues Broadcast/MulticastTCP Port Number 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