Ewon TechForum
Providing technical solutions to technical requests


Switch output at alarm
Richard Offline
Ewon Distributor
#1
Hi,
Did anyone already made a script for switching one of the outputs of the FLX3401 IO extension?
I want to switch an output when there is an alarm so peple will also see it physically on location when an alarm occurs.
Thanks,
Richard
Reply

ziozetti Offline
Member
#2
If I remember well you can change state of DO0, DO1 and DO2 via BASIC.

Define in ewon tags digital tag DIGITAL1@ with server EWON, address DO1 and type boolean. > https://hmsnetworks.blob.core.windows.ne...0bd4ad7_12 (chapter 9)

Then in Basic make a script with an ONALARM command > https://developer.ewon.biz/system/files_...amming.pdf (Chapter 3.56.1)
ONALARM "TagInAlarm", "GOTO DigitalOnAlarm"

DigitalOnAlarm:
DIGITAL1@ = 1

About FLX 3401/2 card: https://hmsnetworks.blob.core.windows.ne...n-card.pdf
Reply

Richard Offline
Ewon Distributor
#3
Thanks for your clear explanation Ziozetti!
I also found this post to get a tag when one or more alarms will be be active. 
https://techforum.ewon.biz/thread-440.html
This works but I do not see it switch off when the alarms are gone.
Do you know if I need to make some kind of setting to make it switch on and off fast when there is an alarm or not?
thanks
Thanks,
Richard
Reply

ziozetti Offline
Member
#4
My fault, you can use ALSTAT function; considering that you are monitoring the alarm of tag named LEVEL:

DigitalOnAlarm:

%alm = ALSTAT "LEVEL@"

If %alm = 2 OR %alm = 3
THEN
DIGITAL1@ = 1
ELSE
DIGITAL1@ = 0

PS: I'm not sure about IF syntax (I always mess with IF+OR/AND) but it should work with minor corrections.
Reply

Richard Offline
Ewon Distributor
#5
Thanks!
I will try this out!
gr
Richard
Thanks,
Richard
Reply



Possibly Related Threads…
  Alarm Email Contents Started by ibeason
2 Replies - 29 Views
10-07-2020, 10:36 AM
Last Post: Ludo
19-06-2020, 02:53 PM
Last Post: simon
  Simple Alarm Escalation System Started by simon
4 Replies - 1.155 Views
15-06-2020, 11:54 AM
Last Post: simon
  Alarm notification issue Started by rmac
12 Replies - 750 Views
11-05-2020, 10:41 PM
Last Post: simon
15-11-2019, 03:21 PM
Last Post: simon
08-11-2019, 04:16 PM
Last Post: Richard
07-11-2019, 04:13 PM
Last Post: simon
26-06-2019, 10:58 AM
Last Post: saadzahabi_bowman
07-11-2018, 11:42 PM
Last Post: simon
03-10-2018, 05:36 PM
Last Post: dfieschko



Users browsing this thread:
1 Guest(s)



Theme © Ewon 2019 - Forum software by © MyBB - Cookie policy