Logging data change in ftview on tags when enter key is used.

It can be done very easily, not used FTV for many years but same goes for many HMI's/Scada systems.
When the operator types in a value it does not change the tag value until the enter (Return) key is pressed, you could generate a bit of code either in the PLC or HMI that runs every so often i.e. an on change event.
In the PLC this could be using the variable in question & compare with last stored value so..
If My_Var <> Last_Stored_Var then create event & MOVE My_Var to Last_Stored_Var.
So every time the actual value changes it creates the event, using this you can write the event into your log.
I have done this many times using a timed interrupt, it could be even every x seconds as /i don't think the possible few seconds difference on the timestamp of the log is going to be of interest as to when the value was changed.
 
Yes that is what I posted, it could be done in either, not used FTV much & certainly not recently so cannot help on the code but have done it on others, I just created a timed procedure that is called every second (I'm sure there is the ability for this in FTV), however, a 1000 variables is probably a little too much & might hang the system for at least a little while, I suppose you could have an indirect pointer to the current & last stored variables, so every second itterate through say 10, store the current pointer ready for the next call & continue when it reaches the 1000, reset the pointer to 0.
The only problem is that unless all your variables are contiguous then indirect pointing is nigh on impossible.
Example:
if My_Pointer > 1000 then My_Pointer = 0 // check we are not out of bounds & reset pointer
For x = 0 to 9 //do the loop
My_Pointer = My_Pointer + X //Add x to the pointer
If My_Edit_Var[My_pointer] <> Stored_Var[My_Pointer] //Check the value
Then Create event //i.e. log the required data to the DB
Stored_Var[My_Pointer] = My_Edit_Var //update the stored value
ENDIF
As I stated, to do this in chunks then the variables would have to be some sort of array.
somehow, I think a 1000 variables is a little hard if you need to check & log the data I have no idea if there is an on change function on an edit field but even then that's a lot of coding.
 

Similar Topics

Hi, I have to create a log file in Ftview SE when a setpoint is changed on a tag and conirmed with the enter key. Can anybody help please?
Replies
0
Views
630
Hi, I have a clients machine running Factory Talk View SE release # 8.00 I have set up trending and data logging which has been working correctly...
Replies
1
Views
3,645
Hi folks, I'm not as accustom with Siemens & WinCC, however I've been asked to increase the amount of data an existing application is logging...
Replies
2
Views
74
Hi, Wy we log data in PLC using DLG instruction, when we have option to log data in HMI
Replies
1
Views
82
Hi everyone id like to start by saying im not a PLC programmer so my technical terminology is limited. i would like advice on what software is...
Replies
4
Views
300
Back
Top Bottom