Oncommandxx, Onpoweron, Onpoweroff – CUE CueSiteManager Programmers User Manual
Page 23

23
Cue Site Manager / Programmer’s Manual / CSMDataProvider (driver)
© CUE, a.s. All Rights Reserved. | www.cuesystem.com | [email protected]
OnCommandxx
Scope: Public
Events OnCommand01 – OnCommand10 are raised in case Command01 – Command10 are sent from
Central Unit / Operator Console. You have to linked processes to this events to each command defined in
CSMDataProvider Command01 – Command10 Group of Properties.
Example
Private Process
CSMDataProvider1_OnCommand03( )
As Boolean Link
CSMDataProvider1.OnCommand03
// Place all commands required for execution of Command03 here
End Process
OnPowerOn
Scope: Public
Event OnPowerOn is raised, when remote command PowerOn is sent from CSM. Place commands for PowerOn
to process linked to this event.
Example
Private Process
CSMDataProvider1_OnPowerOn( )
As Boolean Link
CSMDataProvider1.OnPowerOn
// Place commands for switching on your system here
End Process
OnPowerOff
Scope: Public
Event OnPowerOff is raised, when remote command PowerOff is sent from CSM. Place commands for
PowerOff to process linked to this event.
Example
Private Process
CSMDataProvider1_OnPowerOff( )
As Boolean Link
CSMDataProvider1.OnPowerOff
//Place commands for switching off your system here
End Process
OnReceiveMessageFromOperator As Process (message As Text, receivelocaltime As Time)
Scope: Global
This event is raised, if operator sends a message to the site user. parameter message contain text of the
message, in parameter receivelocaltime is local time, when message was received. You can use process linked
to this event for displaying messages to the touchpanel.
Example
Private Process
CSMDataProvider1_OnReceiveMessageFromOperator(
message
As Text
,
receivelocaltime
As Time
)
Link
CSMDataProvider1.OnReceiveMessageFromOperator
FullscreenWindow1.StaticTextMessage.SetText(message)
End Process