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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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
DF1Comm is from a very old version. Go to the AdvancedHMI web site and get the latest version