Parameters, Comment, Sample vb-syntax – BECKHOFF CP9090-S100 User Manual

Page 21: Ceopen 21, Deviceopen, Twin cat

Advertising
background image

Eiserstraße 5 / D-33415 Verl / Telefon 05246/963-0 / Telefax 05246/963-149

21

TWIN

CAT

DeviceOpen

Sets / returns the status of CP9030 communication port (open or close)

HRESULT DeviceOpen(

[out, retval] VARIANT_BOOL* pVal

);

HRESULT DeviceOpen(

[in] VARIANT_BOOL pVal

);

Parameters

pVal

TRUE if open, FALSE if not

Comment

You have to set the property "DeviceAddr" before setting "DeviceOpen" to TRUE.
If this function failed, check the property "DeviceAddr".

Sample VB-Syntax

Dim bDeviceOpen as Boolean

CP9030W9x1.DeviceOpen = True
bDeviceOpen = CP9030W9x1.DeviceOpen

Advertising