Read Memory Usage

  • sedoerr

    sedoerr - 2020-10-30

    Hi there,

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


    Edit: i found this topic

    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

    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

    sedoerr - 2020-11-04


    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.