Question: How to record just one register to the database?
Normally database data are recorded automatically by intervals of time in Recording column when a database is defined.
When its needed the record just one register:
3 - In a script, for example inside an OnClick button event, type:
if you want to specify just one group of tags type Tags.RecordNow ( “groupname” ) If there is more than one database, to record just one of them independently of groups, choose a tag from that database and type Tags.RecordNow ( “tagname” )
If you want to record when an tag is triggered:
if Tag1 = 1 then Tags.RecordNow Tag1 = 0 end if
To prevent from repeating:
if Tag1 = 1 then if Tag1.ValueChanged = 1 then Tags.RecordNow Tag1.ValueChanged = 0 end if end if