2 netxpbinfo.lib function library, 1 structure of netxgetpbinfostyp, Netxpbinfo.lib function library – Lenze PROFIBU PC-based Automation User Manual

Page 44: Structure of netxgetpbinfostyp, Netxpbinfo.lib function library ( 44), Control technology | profibus communication manual

Advertising
background image

Control technology | PROFIBUS communication manual

Function libraries

NetXPBInfo.lib function library

44

L

DMS 2.2 EN 07/2011 TD17

8.2

NetXPBInfo.lib function library

The NetXPBInfo.lib function library serves to query various information on the PROFIBUS

master (e.g. error counter, bus cycle counter).

8.2.1

Structure of NETXGETPBINFOSTYP

Description of the components

TYPE NETXGETPBINFOSTYP :
STRUCT
iDev : INT;
iDummy : INT;
ulLastCycleTime : DWORD;
ulCycleStarts : DWORD;
ulCycleEnds : DWORD;
usBus_error_cnt : WORD;
usMsg_Timeout : WORD;
usRX_Overflow : WORD;
usBus_Off_cnt : WORD;
ucErrNumber : BYTE;
ucErrStationAdr: BYTE;
END_STRUCT
END_TYPE

Identifier/data type

Meaning/possible settings

iDev

INT

Device number of the PROFIBUS master

iDummy

INT

Not used

ulLastCycleTime

DWORD

The time measured last to start the bus cycle.

ulCycleStarts

DWORD

Number of the bus cycles started

ulCycleEnds

DWORD

Number of the bus cycles completed

usBus_error_cnt

WORD

Number of the bus error events

usMsg_Timeout

WORD

Number of the bus message errors

usRX_Overflow

WORD

Number of the transmit overflow events

usBus_Off_cnt

WORD

Number of the Bus_OFF events

ucErrNumber

POINTER TO

BYTE

General error counter

ucErrStationAdr

POINTER TO

BYTE

Last faulty slave address

Advertising