Menu

Programmatically read timer values

Help
2012-08-28
2019-09-03
  • CodeEverything

    CodeEverything - 2012-08-28

    I am having a lot of trouble trying to programmatically read value from a timer in the PLC.  I do not have any trouble reading integer values like this label1.text = DF1Comm1.ReadAny("N7:0") but I cannot seem to get it right when trying to read a timer value such as "T4:0.PRE"  has anyone done this before?

     
  • Hasala Senevirathne

    There is a issue with timer's tag mapping . If you read T4:0.ACC it actually reads the .PRE- preset value.
    But writing to the .PRE works normally.
    eg: label1.text = DF1Comm1.ReadAny("T4:0.ACC") // This actually reads T4:0.PRE

     
  • Archie

    Archie - 2019-09-03

    DF1Comm is from a very old version. Go to the AdvancedHMI web site and get the latest version

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.