Methods, Methods -7 – Rockwell Automation 2706-P42_P43_P44_P72_P74_P92_P94 InView Marquee Message Display User Manual User Manual

Page 125

Advertising
background image

Publication 2706-UM016D-EN-P - March 2006

InView Control and InView Control API 5-7

Methods

Heartbeat

Syntax

object.Heartbeat = value
Read/Write [short]

Values

0 - No heartbeat from control
1 - Heartbeat generated by control
2 - Heartbeat disabled

Default

0

Description

This property is used to set how the control
will handle the heartbeat requirement of the
display. The display requires serial activity
approximately every 3 seconds. In the
absence of such activity the display will
show a No Network Activity message. If the
heartbeat property is set to 0, the activity is
assumed to come from sources such as
variable updates. If the heartbeat property is
set to 1, the control will generate a serial
heartbeat command that prevents the
display from displaying the no activity
message. If the heartbeat property is set to
2, the need for constant serial activity will
be disabled in the display.

Properties

InViewCtrl Properties

Properties

Description

Methods

InViewCtrl Methods

Properties

Description

Initialize

Syntax

HRESULT Initialize()

Parameters

None

Return Value

S_OK - Success
E_FAIL - Failure

Description

This method is used to open the COM port
or socket that will be used to communicate
with the display. If Initialize is called more
than once, any open connection will be
closed, and a new connection opened.

Close

Syntax

HRESULT Close()

Parameters

None

Return Value

S_OK - Success
E_FAIL - Failure

Description

This method is used to close any open
connection to free its resources for other
applications. Any open connection is
automatically closed when the control is
unloaded.

Advertising