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

CPU Temperature

straccio80
2015-06-16
2019-08-21
1 2 > >> (Page 1 of 2)
  • straccio80

    straccio80 - 2015-06-16

    Hi,

    Can I read the CPU Temperature?

    How can I do it?

    Thanks for any help.

    Straccio80

     
  • hcvoort

    hcvoort - 2015-06-16

    Hello Straccio80,

    Type: /opt/vc/bin/vcgencmd measure_temp
    in the command window (SSH). This should show the Raspberry Pi cpu temperature.

    BR,

    Carsten

     
  • straccio80

    straccio80 - 2015-06-16

    Thank you Carsten,
    my goal is read the temperature in a variable inside the codesys project.

    Is it possible?

    BR

    Straccio80

     
  • eschwellinger

    eschwellinger - 2015-06-16

    Hi,

    this will be possible with the 3.5SP7 release (mid of July)
    There is a new SysProcess2 which will allow to give the result of the Shell comannds to CODESYS.
    See screenshot.
    BR
    Edwin

    IMG: SysProcess2_SP7.jpg

     
  • straccio80

    straccio80 - 2015-06-16

    Thank You Edwin,
    I'll wait it.

    BR

    Straccio80

     
  • kor

    kor - 2015-10-06

    Hallo

    Gibt es auch die Möglichkeit dies zu machen wenn man im Continuous Funktion Chart (CFC) programmiert? Kann keinen entsprechenden Baustein finden.
    Danke für Hilfe

    Lg

     
  • eschwellinger

    eschwellinger - 2015-10-06

    Hallo,

    in CFC: (screenshot)

    Grüße
    Edwin

    IMG: SysProcessCFC.jpg

     
  • kor

    kor - 2015-10-07

    Hallo
    Herzlichen Dank für die Antwort.

    Bibliothek war nicht beim Projekt dabei (Bibliotheksverwalter) darum konnte ich den Baustein nicht finden. Wie dumm von mir.

    Bei dem Bausteinaufruf bekomme ich keinen Wert zurück (stdout bleibt leer). Auf Result bekomme ich einen Wert von 25 was es bedeutet "No access rights for this operation ". Daraus schließe ich, dass das der Befehl anders lauten muss. Aber wie?

    In der CodesysControl.cfg habe ich bis jetzt nichts eingetragen. Muss ich das?

    Lg

     
  • eschwellinger

    eschwellinger - 2015-10-07

    Hi,
    bitte englisch im englischen Forum

    you need to enable in
    /etc/CODESYSControl.cfg

    the shell commands

    BR
    Edwin

    IMG: SysProcess.jpg

     
  • kor

    kor - 2015-10-08

    hi

    it works.

    thanks

     
  • frankdunn

    frankdunn - 2015-11-18

    Hi

    I have sp7 patch 3 installed , I cannot use SysProcess , do i need to import a library or is it possible to post a simple example project ?

    Thank you .

     
  • frankdunn

    frankdunn - 2015-11-18

    Thank You

    I can open the example ok . How do I import the sysProcess library to a blank project ?

     
  • eschwellinger

    eschwellinger - 2015-11-18

    add library and then type in the search line what ever you know from the library,
    after that double click on the selection in the Dialog... that's it
    BR
    Edwin

    IMG: addLibrary.jpg

     
  • frankdunn

    frankdunn - 2015-11-18

    Please see attached screenshot

    IMG: add_lib.PNG

     
  • eschwellinger

    eschwellinger - 2015-11-18

    hi,
    but this is not 3.5.7.x Version which you are using isn't it?
    In older versions -> switch to professional feature set in current Version this should work without problems.
    BR
    Edwin

     
  • frankdunn

    frankdunn - 2015-11-18

    hi
    I am using v3.5 sp3 patch 3 +

     
  • eschwellinger

    eschwellinger - 2015-11-18

    Hi,
    any chance for updating the CODESYS Developmentsystem?
    BNR
    Edwin

     
  • frankdunn

    frankdunn - 2015-11-18

    ok sorry how do I do this ?

     
  • eschwellinger

    eschwellinger - 2015-11-18

    Hi,
    here you could download the CODESYS Developmentsystem in current version:
    http://store.codesys.com/engineering/codesys.html
    -Install it.
    -Install the Raspberry PI Package in the PackageManager in CODESYS.

    BR
    Edwin

     
  • frankdunn

    frankdunn - 2015-11-19

    Hi

    I uninstalled everything and installed codesys v3.5 sp7 patch 3 and codesys control for raspberry pi 2.2.0.2 .
    I still can not add the library , but when I open the example project It works .

     
  • eschwellinger

    eschwellinger - 2015-11-19

    Hi,
    you mean if you type: SysProcess (in the green field?)
    This does not occure like in in my screenshot

    BR
    Edwin

    IMG: SysProcess.jpg

     
  • frankdunn

    frankdunn - 2015-11-19

    Hi

    Yes , it is like the screenshot that I attached earlier , when I type in sys in the search field there is no library named SysProcess .

     
  • allen00se

    allen00se - 2016-08-23

    Edwin Schwellinger hat geschrieben:
    Hi,
    you mean if you type: SysProcess (in the green field?)
    This does not occure like in in my screenshot
    BR
    Edwin

    I have the same problem also, I am running V3.5 SP9 patch1 and when I type SysProcess there is no matching libraries.

     
  • allen00se

    allen00se - 2016-08-23

    All,
    I found the solution... apparently this is an "Advanced" library. So in order for it to be visible to be added you have to click the little "+" icon on the add library window.

    IMG: Bild

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.