170 likes | 305 Views
NET Applications- Desktop or Web, INGEAR.NET Components Can Handle It. Local Browser Clients. Remote Browser Clients. Ethernet. Ethernet. Advanced Access to Allen-Bradley Devices with VS.NET. Renee Sikes Applications Engineer Email: rsikes@softwaretoolbox.com. Win Worrall
E N D
NET Applications- Desktop or Web, INGEAR.NET Components Can Handle It Local Browser Clients Remote Browser Clients Ethernet Ethernet Advanced Access to Allen-Bradley Devices with VS.NET Renee Sikes Applications Engineer Email: rsikes@softwaretoolbox.com Win Worrall Applications/Development Engineer Email: wworrall@softwaretoolbox.com
Visualization and Connecting to AB/GE/Modbus PLCs with VS.NET Agenda – 1 Hour • INGEAR.NET Overview • Unsolicited Messaging and Data Structures Overview • PeerMessage and DTEncoding Class • Live training • Discussion, Questions & Answers
What Is Involved? • You have an Allen-Bradley PLC that supports unsolicited messages and/or UDT, PDT, or MDT data types • Logix Family (ControlLogix, CompactLogix, MicroLogix) • PLC5-E • SLC 5/05 • Visual Studio 2005 or newer • Good Design and Planning Still Required Visual Studio to 1-N Devices
INGEAR.NET Family of Visual Studio.NET Components • Connect to Allen-Bradley, GE Fanuc, and Modbus PLCs • Supported in both Visual Studio 2005, 2008, 2010 • Windows Forms • Console Applications • System Services • Web Forms • Web Services • COM Wrapper for VB6 Support
Advantages of INGEAR.NET • Easy to use • Runtime-free distribution, single computer, or compact framework licenses No point counts or other artificial limits Self Optimized Communication Interfaces allow for rapid and device-independent development
Unsolicited Messages The PLC sends the data message to an Endpoint without a client requesting information • On a PC that receives the message the Endpoint is a binding of the IP Address and a specific IP port • Endpoints must be unique and not in use by any other application • Endpoint is an instance of the PeerMessage class Unsolicited Message Cycle Normal Polling Cycle
PeerMessage Class • Handles unsolicited messages • Binds the IPAddressNIC and Protocol properties to a socket to receive the message • Each instance of the PeerMessage class must have a unique IP address and Protocol combination • Each instance of the PeerMessage class can receive messages from multiple PLCs
.LOGIX and Unsolicited Messages • For the PLC • Create a MSG instruction • For INGEAR .NET .LOGIX • Create an instance of the PeerMessage Class • Set the IPAddressNIC and Protocol properties • Set the MsgReceived Event to handle incoming data • Call the Listen method CompactLogix /ControlLogix MSG MicroLogix MSG
Data Structures • Mixed collections of: • Atomic Types (SINT, INT, Bool, REAL) • Arrays • Other Structures • Categorized as: • Predefined Data Types- PDT • Counter, Timer, PID, INT, Real, MSG • Module-Defined Data Types (MDT) • Created by the module’s configuration profile • User-Defined Data Types (UDT) • Structure created by the user • UDT Example: “Additive_1”
Data Alignment Rules for UDTs • Structures must be defined on 32-bit word boundaries • You may have to pad your structure to fulfill this alignment • INTs are 16-bit word boundaries • SINTs are 8 bit word boundaries • BOOLs of 8 or less are packed into a SINT • BOOLs of 8+ are packed into a 64-bit array, with 32 bit alignment
DTEncoding Class • Encodes and decodes raw data bytes into structured types • Gets or Sets the Abbreviated Data Type code for ControlLogix and CompactLogix • Array of internal bytes used to check for matching data types during write operations • CRC calculation based on string of members • Unique identifier of a structure
What Tools are Needed? • For all usage scenarios • No tags limits • Single developer or multi-developer solutions • Visual Studio 2005, Visual Studio 2008, Visual Studio 2010 • INGEAR.NET Licenses Available: • Runtime Free Developer License, $999 (Modbus $599) • Additional Developers, $595 (Except Modbus) • Single Computer License, $299 (Except Modbus $199) • Optional USB Hardware Key $150 • Developers Licenses included 1 Year of Support and Upgrades. • Maintenance Agreement Renewal $295 • Fully Functional 10-Day Demo Available www.ingearnet.com
Contact Information & Other Learning Opportunities • Questions later? • Win Worrall • wworrall@softwaretoolbox.com • Renee Sikes • rsikes@softwaretoolbox.com • 888-665-3678 or +1 704-849-2773 • Product Websites • www.ingearnet.com • Other learning opportunities • Recording of this webinar • Visit softwaretoolbox.webex.com