08.01.2015 Views

IWS_Training_Guide_v.. - FF-Automation

IWS_Training_Guide_v.. - FF-Automation

IWS_Training_Guide_v.. - FF-Automation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>IWS</strong> <strong>Training</strong> <strong>Guide</strong><br />

Example: Disabling Alarms<br />

Example: Disabling Alarms<br />

There are times when you may want to disable an alarm triggered by a tag or group of tags. This can easily be<br />

accomplished by manipulating the tag’s AlrDisable field during runtime. The AlrDisable field is R/W, and if the<br />

field is set to 0, any alarm associated with the tag is enabled. This means that if an alarm condition occurs, an<br />

Alarm will be generated If the field is set to 1, any alarm associated with the tag is disabled. This means that if<br />

an alarm condition occurs, an Alarm will not be generated.<br />

You can read or manipulate (set) the AlrDisable filed by the following syntax:<br />

From an <strong>IWS</strong> Math Script<br />

Tag<br />

AlrStatus<br />

Expression<br />

TagName->AlrDisable //returns the current Alarm disable status<br />

TagName->AlrDisable 0 //enables Alarms from this tag<br />

TagName->AlrDisable 1 //disables Alarms from this tag<br />

From VBScript<br />

$AlrStatus = $TagName-> AlrDisable<br />

$TagName->AlrDisable = 0<br />

$TagName->AlrDisable = 1<br />

//returns the current Alarm disable status for this tag<br />

//enables Alarms from this tag<br />

//disables Alarms from this tag<br />

21–14 InduSoft Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!