svego

Recommended Posts

Posted

Hi,

 

On site I have DAQBridge and few Modbus TCP/RTU devices..

 

I need script example how to change text on digital input event and send email when changes his state

example...

 

 

 

 

 

DAQ.x332_B_glavna_vrata()  

 

values    1 ----> main door open   - > send alarm to email address [email protected]

values    2 ---- >main door closed

 

Do you have any examples or can you give link where it can be found ?

 

THX

Damir

Posted

To do the text part, use the javascript inline if:

 

DAQ.x332_B_glavna_vrata() == 1 ? "Open" : "Closed"

 

To send an email, use an alarm on that channel where it fires when = 1, and resets on 2.

Posted

Hi,

 

about alarms..

Is possible to send email alarm with external pop server....?

I have SMS server that can send SMS to dedicated GSM number if email address has format like... [email protected]...

 

 

I tried to set monitoring one channel, OK, it is shown on history table, no problem for that...

 

example ?

 

How to monitor if remote site is live ?

 

Yesterday I had power down at remote site, so how to check if line is active ?

like...last update from DAQBridge or DAQFactory was at 11:53, present time is 11:55 so how to check if time difference is <300 seconds... LIVE button is green, else LIVE button is red ????

 

THX

Posted

You can only use an external server if you have an OEM instance of DAQConnect.

 

You can check for if the remote site is live by looking at the time stamp of the data point, or better yet, create an alarm on an important tag and use the "Data Age greater than" alarm type.  That will trigger if the data gets older than the given amount (in seconds I believe).

  • 2 weeks later...
Posted

If I understand...

 

need to choose one tag from remote site...

 

Alarms.....

Name: linklost
Alarm when: Data Age greater than
Alarm at: 300
Reset at: 100
 
How to make red/green symbol if alarm is active...
 
I have red/green dot under symbols...
 
Symbol control...
 
when: linklost==1
calls red dot.gif
else 
green dot
Posted

You can't detect alarm status from other controls very easily.  It requires more fancy script.  If you only have one alarm on the tag, you can probably get the status using:

 

($.dc.alarm.getByTag("data source UUID", "tagName"))[0].status

Archived

This topic is now archived and is closed to further replies.