CircuitWerkes Sicon-8 Spezifikationen Seite 82

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 101
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 81
Sicon-8 Technical Manual CircuitWerkes, Inc.
82
Scripting Example:
Example script that turns on a backup transmitter if the main fails. If the station has an automatic transfer panel, this can possibly be
accomplished using the autofix function of the Sicon-8’s alarm system without the aid of a computer or script. This example assumes
no automatic transfer switch, but does assume a motorized xfer switch. The example turns off the main xmtr and verifies that it’s off. It
then swtiches the motorized xfer switch, checks its status to be sure it’s in the backup position and then turns on the backup
transmitter.
'===============================================================================
' Name: Simple Transmitter Failure Switching with interlock check
' Author: Dmitri Kisten
' Created: 04-25-2008 14:23
' Created with: SiController v0.9.82 Script Editor
' Description: If channel 3 critical alarm is on, then:
' A. Channel 2 lower relay for 1 second (turns off transmitter)
' B. Checks status input 2 for "Off". If ON, send e-mail and stop. (verifies transmitter is off)
' C. If Stat2=off, then close relay channel 7 lower for 1 second. (switches AUX transmitter to Air)
' D. Checks status input 7 for "On". If off, send e-mail and stop. (verifies the ant. switch is set to aux)
' E. If Stat7=on, then close relay channel 7 raise for 1 second. (puts backup transmitter on).
'===============================================================================
const ON_state = true
const OFF_state = false
IF Site_1.IsConnected = True THEN
IF Site_1.Meter_CurAlarmStateCritical(3) = ON_state THEN 'if chan 3 critical alarm is on
Site_1.Relay_OperateLower 2, 1000 'Part A
Pause 500 'wait for change to be reflected in the status LED
IF Site_1.LED_GetStatus(2) = ON_state THEN 'Part B
Site_1.Email "MyName","myema[email protected]m","receiver@mod.com","Channel 2 is still ON","Check channel 2 status"
ELSE 'if OFF state
Site_1.Relay_OperateLower 7, 1000 'Part C
Pause 500 'wait for change to be reflected in the status LED
IF Site_1.LED_GetStatus(7) = OFF_state THEN 'Part D
Site_1.Email "MyName","myemail@dom.com","receiver@mod.com","Channel 7 is still OFF","Check channel 7 status"
ELSE 'if ON state
Site_1.Relay_OperateRaise 7, 1000 'Part E
END IF
END IF
END IF
END IF
Seitenansicht 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 100 101

Kommentare zu diesen Handbüchern

Keine Kommentare