Adjusting the brightness of HMI

boulefra
2023-07-27
2023-07-28
  • boulefra - 2023-07-27

    Hello,
    Can we adjust the brightness of HMI using a code in codesys ,if someone have any idea please can you shre it with us .
    Thanks

     
  • necati - 2023-07-28

    if you can change brigness via terminal in Linux or Command Line in Windows, of course you can also change via code by using "SysProcessExecuteCommand" function. To try this method you need to apply below modification.

    Connect to the target device.
    Find and open the runtime configuration file "...codesys/CODESYSControl.cfg" with an editor.
    Before [CmpLog], add [SysProcess] and allow line.

       [SysProcess]
       Command=AllowAll
    

    For more detail please find:
    https://forge.codesys.com/forge/talk/Engineering/thread/64904fac37/

    Necati..

     
    πŸ‘
    1
    • boulefra - 2023-07-28

      Thanks for feedback ,actually im not sure that i got that ,so because of that let me please again to explaine you what i need : i have a plc + hmi weidmuller i need to control brightness of screen inside my programme , so for taht i need to connect my to my hmi and find maybe a library or something like that .

       

Log in to post a comment.