5 cifxgetpacket function, Cifxgetpacket function, Control technology | profibus communication manual – Lenze PROFIBU PC-based Automation User Manual

Page 49

Advertising
background image

DMS 2.2 EN 07/2011 TD17

L

49

Control technology | PROFIBUS communication manual

Function libraries

HilscherNetX.lib function library

8.3.5

CIFXGetPacket function

This function retrieves the response to a package transmitted before. For this, the

management data of the transmitted package must be accepted unchanged. It is

important that the ulSrcId value changed by the driver is transferred. 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

hChannel

UDINT

Handle of the channel which can be queried via CIFXGetChannelHandle.

udiSize

UDINT

Size of the memory area which is transferred together with pPacket.

pPacket

POINTER TO

CIFX_PACKET

Pointer to the package which is to be transmitted.

ulTimeout

UDINT

Receipt time-out which is waited for.

ulRemAddress

UDINT

Set to ’0’.

Advertising