Cue CueSiteManager Programmers Bedienungsanleitung Seite 21

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 32
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 20
21
Cue Site Manager / Programmer’s Manual / CSMDataProvider (driver)
© CUE, a.s. All Rights Reserved. | www.cuesystem.com | [email protected]
Events
Overview
CSMDataProvider raises following events, which must be linked to the program
OnCueUnitsOnlineRequest
OnParametersRequest
OnSiteStatusRequest
OnCommand01 - OnCommand10
OnPowerOn, OnPowerOff
OnReceiveMessageFromOperator
OnUserHelpRequestChange
OnUserMaintenanceRequestChange
OnUserSecurityAlertChange
OnUserServiceRequestChange
OnAttack
Data provided to CSM are collected in parameters of this events. To link this events right-click on the
CSMDataProvider1 driver instance in configuration tab, click Events in PopUp menu and then click to the name
of the required event. Events are automatically created in module DeviceEvents.
OnCueUnitsOnlineRequest
Scope: Public
Function linked to OnCueUnitsOnlineRequest collects information, if monitored CUEunits are online
(accesible) or not.
Following feature of CVC projects is used there. If you want to get return value of function or variable, which
is placed in another CUEunit and this CUEunit is not accesible (is offline or switched off), you will get zero
value of given data type (for example 0 in case of Long or Double, false in case of Boolean. If unit is online,
you will get real value (you will get Boolean value True in our example).
You must create global boolean variable in Main module of each monitored CUEunit and set value of this
variable to True.
Global Var OnLine As Boolean := True
Example
Private Function CSMDataProvider1_OnCueUnitsOnlineRequest(
ByRef cueunit01online As Boolean,
ByRef cueunit02online As Boolean,
ByRef cueunit03online As Boolean,
ByRef cueunit04online As Boolean,
ByRef cueunit05online As Boolean,
ByRef cueunit06online As Boolean,
ByRef cueunit07online As Boolean,
ByRef cueunit08online As Boolean,
ByRef cueunit09online As Boolean,
ByRef cueunit10online As Boolean )
As Boolean Link CSMDataProvider1.OnGetCueUnitsOnlineRequest
cueunit01online := MyUnit1.Main.OnLine
cueunit02online := MyUnit2.Main.OnLine
cueunit03online := MyUnit3.Main.OnLine
cueunit04online := MyUnit4.Main.OnLine
cueunit05online := MyUnit5.Main.OnLine
//CUEunits 06 – 10 are not used in this example
Return Value True
End Function
Seitenansicht 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 31 32

Kommentare zu diesen Handbüchern

Keine Kommentare