3 cifxgetchannelhandle function, 4 cifxputpacket function, Cifxgetchannelhandle function – Lenze PROFIBU PC-based Automation User Manual

Page 48: Cifxputpacket function, Control technology | profibus communication manual

Advertising
background image

Control technology | PROFIBUS communication manual

Function libraries

HilscherNetX.lib function library

48

L

DMS 2.2 EN 07/2011 TD17

8.3.3

CIFXGetChannelHandle function

This function provides the handle of the NetX channel as return value. This handle can be

used to request the CIFXGetPacket functions and CIFXPutPacket. In the event of an error,

’0’ is returned.

Inputs (VAR_INPUT)

8.3.4

CIFXPutPacket function

This functions transmits a package to the NetX channel. A package of the CIFX_PACKET

type must be transmitted. When it is sent, the ulSrcId value is written by the driver. This is

important to retrieve the response to the request. The return value is the error code. ’0’

means error-free, unequal ’0’ is the error case. The Hilscher firmware documentation

describes the error codes in detail.

Inputs (VAR_INPUT)

Identifier/data type

Meaning/possible settings

iDevice

INT

Device number of the NetX station

Identifier/data type

Meaning/possible settings

hChannel

UDINT

Handle of the channel which can be queried via CIFXGetChannelHandle.

pPacket

POINTER TO

CIFX_PACKET

Pointer to the package which is to be transmitted.

ulTimeout

UDINT

Transmit time-out which is waited for.

Advertising