Common types

Data types

boolean – boolean value: TRUE or FALSE

char08 – one byte signed integer or ASCII character

uchar08 - one byte unsigned integer or ASCII character

int16 – 2 byte signed integer

uint16 - 2 byte unsigned integer

long32 - 4 byte signed integer

ulong32 - 4 byte unsigned integer

long64 - 8 byte signed integer

ulong64 - 8 byte unsigned integer

 

EventQualifierT (IO-Link event qualifier)

EventQualifierT has the following fields:

  • Instance - received event instance, can be

    • EVENT_INSTANCE_PL – from device physical layer

    • EVENT_INSTANCE_DL - from device data link layer

    • EVENT_INSTANCE_AL - from device application layer

    • EVENT_INSTANCE_APPL - from device application

  • Source - received event source, can be

    • EVENT_SOURCE_REMOTE - from device

    • EVENT_SOURCE_LOCAL - from master

  • Type - received event type, can be

    • EVENT_TYPE_NOTIFICATION

    • EVENT_TYPE_WARNING

    • EVENT_TYPE_ERROR

  • Mode - received event mode, can be

    • EVENT_MODE_SINGLE_SHOT - appears only once

    • EVENT_MODE_APPEARS - event appears to disappear later

    • EVENT_MODE_DISAPPEARS - event disappears

enet_ConnectionT (Ethernet connection type)

Fields

  • char08 cpIqInterfaceIpAddr[17] - ip address of iqInterface TCP connection over ethernet: “xxx.xxx.xxx.xxx” (string in dec format)
  • uint16 uiPort - port of iqInterface TCP connection over ethernet
  • char08 cpIqInterfaceMacAddr[19] - MAC address of iqInterface ethernet connection: “HH:HH:HH:HH:HH:HH” (string in hex format)
  • ulong64 ul64SerialNumber - serial number of iqInterface
  • char08 cpLocalIpAddr[17] - local (PC) ip address of network adapter in which subnet iqInterface is availiable

Error return values

#define ERR_NONE 0 // no error, sucess
#define ERR_INTERNAL -1 // internal error
#define ERR_NOTFOUND -2 // iqInterface is found for connection
#define ERR_BUFFER_OVERFLOW -3 // not enough buffer size
#define ERR_PARAMETER -4 // wrong input function parameter
#define ERR_OPERATION -5 // operation failed
#define ERR_DATA -6 // wrong data received or to send
#define ERR_CUSTOM -7 // specific error