hello I have an expression tag and I need it to save the information every 6 seconds.
in my expression I have the following
getSecond(now(1000))
and in the tag event in value changed
I have the following
if currentValue.value != previousValue.value:
INS = "INSERT INTO RF_HISTORY (DATE, RF_ID, NUM) VALUES (?, ?, ?)"
Contador = system.tag.read("[.]contadorPorScript")
Fecha = system.date.now()
system.db.runPrepUpdate(INS,[Fecha,"Linea_Disco",Contador.value],"TOPY_MW")
system.tag.write("[.]contadorPorScript",0)