Download presentation
Presentation is loading. Please wait.
Published byMya Cory Modified over 9 years ago
1
Advanced Access to Allen-Bradley Devices with VS.NET Win Worrall Applications/Development Engineer Email: wworrall@softwaretoolbox.com Renee Sikes Applications Engineer Email: rsikes@softwaretoolbox.com NET Applications- Desktop or Web, INGEAR.NET Components Can Handle It Local Browser Clients Remote Browser Clients Ethernet
2
Agenda – 1 Hour INGEAR.NET Overview Unsolicited Messaging and Data Structures Overview PeerMessage and DTEncoding Class Live training Discussion, Questions & Answers Visualization and Connecting to AB/GE/Modbus PLCs with VS.NET
3
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
4
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
5
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
6
Unsolicited Messages 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 The PLC sends the data message to an Endpoint without a client requesting information Unsolicited Message Cycle Normal Polling Cycle
7
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
8
.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
9
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”
10
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
11
Example UDT and Padding UDT2:# bits BOOL 8 Total Bits8 Padded Bits24 Total32 UDT1:# bits INT16 INT16 BOOL 8 INT16 Total Bits56 Padded Bits8 Total64
12
Padding the Structure
13
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
14
Live Demonstration
15
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
16
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.