svego Posted August 29, 2014 Share Posted August 29, 2014 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 xyz@abc.xf values 2 ---- >main door closed Do you have any examples or can you give link where it can be found ? THX Damir Link to comment Share on other sites More sharing options...
AzeoTech Posted September 5, 2014 Share Posted September 5, 2014 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. Link to comment Share on other sites More sharing options...
svego Posted September 7, 2014 Author Share Posted September 7, 2014 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... gsm-number@domain.com... 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 Link to comment Share on other sites More sharing options...
AzeoTech Posted September 7, 2014 Share Posted September 7, 2014 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). Link to comment Share on other sites More sharing options...
svego Posted September 18, 2014 Author Share Posted September 18, 2014 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 Link to comment Share on other sites More sharing options...
AzeoTech Posted September 18, 2014 Share Posted September 18, 2014 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.