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=0Thanks,
Steve