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

Page 44: Onchangeinimage, Twin cat

Advertising
background image

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

44

TWIN

CAT

OnChangeInImage

Occurs once when the process input image changes.

HRESULT OnChangeInImage(

[in] long PhysOffset

);

Parameters

PhysOffset

Byte-Offset of input image of CP9030 (0x0000 … 0x01FF) which changed

Comment

To avoid unnecessary cyclic polling of e.g. SKey-status, you can implement event-driven code in this event.

Sample VB-Syntax

Sub CP9030W9x1_OnChangeInImage(ByVal PhysOffset as Long)

' add code here

End Sub

Advertising