Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Read Memory Usage

sedoerr
2020-10-30
2020-11-04
  • sedoerr - 2020-10-30

    Hi there,

    i am using Codesys 3.5.16.20.
    Does anyone know if it is possible to read out, in realtime, the current memory usage of a hardware PLC?

    BR
    Sebastian

    Edit: i found this topic
    https://forge.codesys.com/forge/talk/Engineering/thread/ea761b36d3/

    But this seems not to work cause i don`t have such a file on my plc

     

    Last edit: sedoerr 2020-10-30
    • Morberis

      Morberis - 2020-10-30

      Check out the Codesys Memory Tools from the store.

       
  • sedoerr - 2020-11-02

    Thanks for your answer. Yes i know this addon, but this i can only use in my developer system. But i want to show this informations in realtime on my webvisu.

    Background is that, that my program allows users to upload files to the PLC and i want to show him how much storage space is left on the system.

     
    • Morberis

      Morberis - 2020-11-03

      Hmm I don't have an answer for the first, sorry. Maybe the My Question button on your relevant Codesys store would get you some help on that. Or a support ticket.

      For the second you can use from the CAA File Library GetSize and do the math. I don't know if that will work on a folder so you can get the size of everything within but if it does then you're golden.

       
  • sedoerr - 2020-11-04

    @Morberis

    thanks for your reply. I tried to get the folder size, but it seems that this doesn't work.
    I can go through all folders and check size of all files, but i think this is unreasonable.

     

Log in to post a comment.