SCADA system

User Tools

Site Tools


LAquis FAQ | SCADA system

Question: How to create timer?


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:

x = timer
x = timer.test1

SCADA system

faq19.txt · Last modified: 2018/10/05 08:46 (external edit)

Page Tools

Tags: SCADA system , SCADA software