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

Page 131

Advertising
background image

Publication 2706-UM016D-EN-P - March 2006

InView Control and InView Control API 5-13

ChangeDisplayAddress

Syntax

HRESULT ChangeDisplayAddress
(short nNewDisplayAddress)

Parameters

nNewDisplayAddress
The new address to which the display will
be set.

Return Value

S_OK - Success
E_FAIL - Failure

Description

This method is used to change the address
of a display. The change display address
command will be sent to the display address
set by the DisplayAddress property.
DisplayAddress should be set before calling
this method. Be careful when using the
broadcast address (255) with this method on
a network of displays.

ChangeDisplayBaudRate

This method is only recognized by the P9x
series of displays.

Syntax

HRESULT ChangeDisplayBaudRate
short nNewDisplayBaudRate)

Parameters

nNewDisplayBaudRate
An enumerated value of the currently
available baud rates. 0 = 9600 baud,
1 = 19200 baud, and 2 = 38400 baud.

Return Value

S_OK - Success
E_FAIL - Failure

Description

This method is used to change the display’s
baud rate for communication transmissions.
The change display baud rate command will
be sent to the display address set by the
DisplayAddress property. DisplayAddress
should be set before calling this method.

Example

ChangeDisplayBaudRate(1)
Changes the display’s baud rate to 19200
baud.

Methods

InViewCtrl Methods

Properties

Description

Advertising