Rockwell Automation 2706-P42_P43_P44_P72_P74_P92_P94 InView Marquee Message Display User Manual User Manual
Page 130

Publication 2706-UM016D-EN-P - March 2006
5-12 InView Control and InView Control API
UpdateVariableEx
Syntax
HRESULT UpdateVariableEx
(short nVariable, long nValue)
Parameters
nVariable
The variable number to update. Valid values
are 0 … 99.
nValues
The new value for the variable. The display
is limited to 16-bit numbers, which can be
signed or unsigned.
Return Value
S_OK - Success
E_FAIL - Failure
Description
This method is used to update a variable in
the display. If the variable is embedded in a
running message, the new value will be
shown. The update variable command will
be sent to the display address set by the
DisplayAddress property. DisplayAddress
should be set before calling this method.
SetTime
Syntax
HRESULT SetTime
(DATE dtTime, BOOL fMilitary)
Parameters
dtTime
The time used to update the display’s clock.
fMilitary
A flag used to indicate if the time should be
displayed using 24-hour format.
TRUE - use 24-hour format
FALSE - use AM/PM format
Return Value
S_OK - Success
E_FAIL - Failure
Description
This method is used to set the display’s
clock and to set how the time will be shown
on the display (AM/PM vs. 24-Hour). The set
time command will be sent to the display
address set by the DisplayAddress property.
DisplayAddress should be set before calling
this method.
SetDate
Syntax
HRESULT SetDate (DATE dtDate)
Parameters
dtDate
The date used to update the display’s
calendar.
Return Value
S_OK - Success
E_FAIL - Failure
Description
This method is used to set the display’s
calendar. The set date command will be sent
to the display address set by the
DisplayAddress property. DisplayAddress
should be set before calling this method.
Methods
InViewCtrl Methods
Properties
Description