User Tools

Site Tools


faq19

SCADA software LAquis FAQ | SCADA software

Question: How to create timer?

Answer:

Timers can come from PLC. But can be created by SCADA itself. Create a tag with driver TIMERFORMAT. If possible use a different virtual port, the system will use a new windows thread.

Associate this tag with a displaytext with Format property hh:nn:ss clocke1.jpg

This tag is in windows double date time format like 1/24/60/60/1000 per milisseconds.

To start timer counting type in a script event (ex: button OnClick):

tagname = 1

To pause

tagname = 2

To stop

tagname = 0

In reports use cell format hh:nn:ss there.

if you want its possible to use internal script timer in milisseconds like:

timer.reset 
....
x = timer
timer.test1.reset
 
....
 
x = timer.test1

SCADA software

faq19.txt · Last modified: 2016/09/27 14:47 by scadalaquis

Page Tools


Tags: SCADA software , SCADA systems.