Applies To:
  • CitectSCADA 5.20, 5.21

Summary:
When trying to write to more than one alarm tag property using tagwrite or just a normal write, only the first write to the alarm tag will be successful.

For example:

tagwrite("test1.high", 50);

tagwrite("test2.high", 50);

tagwrite("test3.high", 50);

Only test1.high will be set to 50, the rest will remain the same.

The same applies when doing a normal write

test1.high = 50;

test2.high = 50;

test3.high = 50;

 

Solution:
To work around the problem you need to put a small sleep after each write, however for tagwrite you only need to put the sleep function after the first write.

For example:

tagwrite("test1.high", 50);

sleepms(1);

tagwrite("test2.high", 50);

tagwrite("test3.high", 50);

or

test1.high = 50;

sleepms(1);

test2.high = 50;

sleepms(1);

test3.high = 50;

CIT has confirmed this to be a problem in Citect for Windows version 5.20 to 5.21. We are researching this problem and will post new information here as it becomes available.

 

Keywords:
 

Attachments