Results 1 to 2 of 2

Thread: .net WinForms, PLC, OPC, ASP, AJAX, and all that jazz...

  1. #1
    Registered
    Join Date
    Feb 2007
    Location
    USA
    Posts
    2
    Downloads
    0
    Uploads
    0

    .net WinForms, PLC, OPC, ASP, AJAX, and all that jazz...

    I am no stranger to this site... But, I sure would like to see a forum for .net development, along the lines of OPC, .net, HMI, ASP, AJAX, etc. Maybe something like ".net Developer's Forum", or some tangent thereof...

    At work, I sit in front of a couple applications I have built, and have pondered performance.

    I have a few applications that listen to a Kepware OPC server, WinForms - based .net apps. I have a question - WHY does it take so long for sync tx? If I WROTE the PLC interface, it would be lightning fast- I know it would be. I've written TCP / IP Socket apps before for other purposes, and they're just plain fast. However, in one OPC instance, I ended up sending a bulk syncread and processing the data as a whole because it was so much faster to do a bulk sync read than a series of sync tx / rx pairs. The OPC server WAS NOT taxed. This was the only app pulling from it at the time. I was cycling through 4 PLC's, doing some rudimentary handshaking. 1 Second wasn't fast enough- it took more than 1 second to do the sync reads / writes initially required - more like 2 or 3 seconds. Using the bulk-read method, I get cycle times of .2 to .7 seconds, which is JUST acceptable. I cranked up the polling sample rates in the OPC server (check for datachange) to 10 mS, and results were no different. This was talking to FAST PLC's, with built in Ethernet.

    In another .net winforms app, I do samples at .5s, and cranked that up to .2s for testing with no problems (including a data flush to SQL Server on every read!). This is simply for syncreads, so it seems the problem is in syncwrites. This app ran for a few months straight at last run before I stopped it.

    Maybe I'm expecting too much. Maybe I'm just not doing the math.

    At any rate, it floors me that it takes so long processing transactions with an OPC server.

    Equally frustrating is the 6 or so seconds it takes for AJAX to do a refresh in ASP using the same SQL Server (a sort of hybrid HMI app in ASP). Simply pulling AJAX out, direct refresh time is nill. Go figure...

    Thoughts?


  2. #2
    Registered
    Join Date
    Feb 2007
    Location
    US
    Posts
    1
    Downloads
    0
    Uploads
    0

    Opc

    Synchronous device writes will block fully until completion.

    For better overall performance I recommend using asynchronous writes and use an async read subscription to verify that the value you intended to write has been set. Most of our customers use KepWare and it is an excellent performance OPC Server.

    Our web based products implements AJAX and it roughly 1 second is the best you can expect for web based update without some kind of special plug in. Our components are 100% managed and do not require any plug ins.

    As an alternative consider developing a 100% managed WinForm application and deploy it as a Smart Client. Our OPC Controls.NET components can deliver data at a 100 ms display update with 10 ms data rate.

    Visit www.opcsystems.com to learn more about Smart Client deployment and AJAX Web applications for OPC. You can try Smart Client deployment directly from this page and also view an example AJAX web application, both connected to live OPC data in Texas over the Internet.


Similar Threads

  1. ajax test
    By CNCadmin in forum Test Forum
    Replies: 1
    Last Post: 11-27-2006, 10:53 AM
  2. Ajax DM45
    By lgreeves in forum AjaxCNC Control Products
    Replies: 2
    Last Post: 05-10-2006, 11:43 AM
  3. Ajax CNC
    By Hawk in forum AjaxCNC Control Products
    Replies: 2
    Last Post: 02-26-2006, 09:17 PM
  4. What is Ajax?
    By bdrmachine in forum AjaxCNC Control Products
    Replies: 2
    Last Post: 12-04-2005, 06:22 PM

Posting Permissions


 


About CNCzone.com

    We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

Follow us on

Facebook Dribbble RSS Feed


Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.