pcdshub / lcls-twincat-general

A PLC code toolkit for LCLS TwinCAT PLC projects
https://pcdshub.github.io/lcls-twincat-general/
Other
16 stars 20 forks source link

Logging: fbGetAdapterIP not toggling bExecute #56

Closed klauer closed 2 years ago

klauer commented 3 years ago

https://github.com/pcdshub/lcls-twincat-general/blob/9f268ccfe29bbb430dea85df80ba7dbe6416da00/LCLSGeneral/LCLSGeneral/POUs/Logger/FB_LogHandler.TcPOU#L112

If the first "get IP address" check fails, logging will be disabled entirely because fbGetAdapterIP never updates arrAdapters again.

Fixed on plc-kfe-gatt by manually toggling bExecute.