Author Topic: CLX Driver High Read Function Exceptions High CPU Usage  (Read 1516 times)

StephenSDH

  • Newbie
  • *
  • Posts: 36
    • View Profile
CLX Driver High Read Function Exceptions High CPU Usage
« on: March 17, 2015, 03:29:49 PM »
I am having exceptions that causes my application to stop logging and high CPU usage.  Compactlogix processors and CLX driver.  Both exceptions are inside the Read function.  I have it in Try Catch blocks, but it appears to not always recover and eventually the application stops reading and goes to high CPU usage.   I can duplicate it and I have a test PLC set up here. 

Stripped down Logic (2 Machines (PC2 and PC3), logic executes at a 5 second interval for logging)

                ' Get Machine Values
                PC3_LineRunning = PC3PLC.Read("DCS.LineRunning")
                PC3_OperatorPresent = PC3PLC.Read("DCS.OperatorPresent")
                PC3_BlenderRunning = PC3PLC.Read("DCS.BlenderRunning")
                PC3_MachineCycle = PC3PLC.Read("DCS.MachineCycle")
                PC3_ProductCode = PC3PLC.Read("DCS.ProductCode")
                PC3_WaitingMold = PC3PLC.Read("DCS.WaitingMold")
                PC3_BackedUp = PC3PLC.Read("DCS.BackedUp")

                ' If Machine Cycle is set then Turn Off
                If PC3_MachineCycle Then
                    PC3PLC.Write("DCS.CycleLogged", 1)
                End If

Project Files
https://www.dropbox.com/sh/r41qxbu8rmd4yy3/AAABCXQoeVh7p-E2sg8CkOPaa?dl=0

Thanks,

Steve
« Last Edit: March 17, 2015, 03:32:04 PM by StephenSDH »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: CLX Driver High Read Function Exceptions High CPU Usage
« Reply #1 on: March 17, 2015, 04:04:07 PM »
It looks like this would occur if a com error came back. I put some additional checks in to catch this situation. It will be part of the next release that will be posted withing the next few days.

StephenSDH

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: CLX Driver High Read Function Exceptions High CPU Usage
« Reply #2 on: March 17, 2015, 05:28:41 PM »
Thanks