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

Get Hardware Info from Runtime

rickj
2020-03-14
2020-03-28
  • rickj - 2020-03-14

    Is there a way to get basic hardware information from the runtime? I am making automated tests that measure execution time and would like to record CPU/Processor type, clock speed, and the amount of RAM. I'm mostly interested in the standard Win3 (x86 and x64) runtimes, although others would be useful as well.

     
  • Chris.O - 2020-03-19

    I use SysTarget.lib. May this is also valid for you

    e.g.

    IF xStartReadTarget THEN
        SysTarget.SysTargetGetDeviceName(ADR(pMyName), ADR(udiMyMaxLenght));
     END_IF
    

    BR
    Chris

     

    Last edit: Chris.O 2020-03-19
  • Chris.O - 2020-03-19

    Does someone know if there is an other library for deeper hardware information (e.g. Firmware version)
    In my case I want to see Firmware of the PFC200

    BR

    Chris

     
  • eschwellinger

    eschwellinger - 2020-03-19

    Hi Chris,
    only by cmd line by
    /etc/config-tools/get_coupler_details firmware-revision

    BR
    Edwin

     
  • Chris.O - 2020-03-19

    Ok,
    ThatΒ΄s a pity :-(
    thank you Edwin

     
  • Chris.O - 2020-03-23

    Can I read the current CoDeSys version?
    like V3.5 SP15 Patch 3 ?

     

    Last edit: Chris.O 2020-03-23
  • Thomas - 2020-03-23

    Hey Chris,

    wieder ΓΌber die lib "SysTarget": https://faq.codesys.com/pages/viewpage.action?pageId=21135402

    SysTarget.SysTargetGetVersion(pulVersion := ADR(dwVersion)); // V3.5.SP13.10 == > 50662666 = 16#03050D0A

    Gruß Thomas

     
  • Chris.O - 2020-03-23

    Ahh, super, Danke! Ich hab das dWord ausgelesen, aber konnte mir aus dem Ergebnis keinen Reim machen...Danke!

     
    • Ingo

      Ingo - 2020-03-23

      Die 4 Bytes des DWORDS entsprechen den 4 Stellen der Version. In deinem
      Beispiel:

      16#03050D0A

      V3.5.13.10 = 3.5 SP13 Patch 1

       
  • rickj - 2020-03-28

    Thanks all. I'll checkout SysTarget library. .

     

Log in to post a comment.