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

Page 33: Skey, Twin cat

Advertising
background image

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

33

TWIN

CAT

SKey

Returns the status of specified SKey on control panel connected to CP9030.

HRESULT SKey(

[in] short nIndex,

[out, retval] VARIANT_BOOL* pVal

);

Parameters

nIndex

Number of SKey, 1..27

pVal

TRUE if SKey pressed. FALSE if not pressed

Comment

You can poll the state of an SKey by reading the property "SKey". If you set "CycleEnabled" to TRUE, SKey-
events will be fired if state of an SKey changed.

Sample VB-Syntax

Dim bSKey01 as Boolean

bSKey09 = CP9030W9x1.SKey(9)

Advertising