Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beckhoff: log less #7618

Closed
1 task
Tom-Willemsen opened this issue Feb 15, 2023 · 6 comments
Closed
1 task

Beckhoff: log less #7618

Tom-Willemsen opened this issue Feb 15, 2023 · 6 comments

Comments

@Tom-Willemsen
Copy link
Contributor

Tom-Willemsen commented Feb 15, 2023

IMAT filled up their disk with 10+GB of messages in <24h of the form:

[2023-02-14 23:59:59] 2023/02/14 23:59:58.391 [ERROR] C:\Instrument\Apps\EPICS\support\adsDriver\master\adsApp\src\ADSPortDriver.cpp:747 integerRead(): [ads-port] Read failed(1010): data could not be read

after a plc code change.

Acceptance criteria:

  • The beckhoff driver does not log unreasonable amounts after a plc change on the controller, or on disconnection from the hardware.
@rerpha
Copy link
Contributor

rerpha commented Feb 15, 2023

consider adding a last error code to https://github.com/ISISComputingGroup/adsDriver/blob/main/adsApp/src/ADSPortDriver.cpp#L745 and only log if its a new code

@rerpha
Copy link
Contributor

rerpha commented Feb 15, 2023

we should probably make a PR upstream for this too, i suspect cosylab will want it

@rerpha
Copy link
Contributor

rerpha commented Feb 28, 2023

I am going to submit two separate PRs upstream.

  1. Make the sum-read rate configurable from AdsOpen() ioc command - done (add way of specifying sum read period Cosylab/adsDriver#5)
  2. Add another ioc command option to not print loads if the same status has occurred (spun out to Beckhoff: do not fill logs when PLC is disconnected #8406)

once these are approved i will merge in upstream and update our st-common to utilise the new command args

@rerpha
Copy link
Contributor

rerpha commented Jun 28, 2024

@rerpha rerpha self-assigned this Jun 28, 2024
@rerpha rerpha added the 3 label Jun 28, 2024
@rerpha rerpha moved this from To do to Done in Beckhoff/TwinCAT Jun 28, 2024
@rerpha
Copy link
Contributor

rerpha commented Jun 28, 2024

potentially linked to #8339

@Tom-Willemsen
Copy link
Contributor Author

The linked changes slow down the logging rate when disconnected to ~330MB/day (rather than 10GB). Further improvements in #8406

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Status: Done
Development

No branches or pull requests

3 participants