AsIOLink.var 2.2 KB

1234567891011121314151617181920212223242526272829303132
  1. (* error area 37960 - 38009 for AsIOLink reserved *)
  2. VAR CONSTANT
  3. ioLinkERR_INVALID_PARAMETER : UINT := 37960; (*invalid parameters in function call*)
  4. ioLinkERR_INVALID_MASTER : UINT := 37961; (*the device is not an IO-Link device or the IO-Link device is not supported *)
  5. ioLinkERR_COMMUNICATION_DEVICE : UINT := 37962; (*error occured during communication with the IO-Link device e.g. timeout, disconnect, wrong mode ...*)
  6. ioLinkERR_MAX_OPEN_COUNT : UINT := 37963; (*library client limit is reached*)
  7. ioLinkERR_REQUESTQUEUE_FULL : UINT := 37964; (*communication request queue if full*)
  8. ioLinkERR_REQUEST_TO_LONG : UINT := 37965; (*request exceeded allowed length limit*)
  9. ioLinkERR_BUFFER_TO_SMALL : UINT := 37966; (*device response does not fit in handed receive buffer*)
  10. ioLinkERR_DEVICE_DRIVER : UINT := 37967; (*error in the ar internal device driver occured*)
  11. ioLinkERR_DATATYPE_MISMATCH : UINT := 37968; (*the handed datatype length is different to the received data length*)
  12. ioLinkERR_EVENT_RECEIVED : UINT := 37969; (*an event was received*)
  13. ioLinkERR_NO_EVENT : UINT := 37970; (*there is no event*)
  14. ioLinkERR_DEVICE_ERROR : UINT := 37971; (*the IO-Link device returns an error - see errorCode*)
  15. ioLinkTYPE_SINT : USINT := 2; (*constant for type SINT*)
  16. ioLinkTYPE_INT : USINT := 3; (*constant for type INT*)
  17. ioLinkTYPE_DINT : USINT := 4; (*constant for type DINT*)
  18. ioLinkTYPE_LINT : USINT := 23; (*constant for type LINT*)
  19. ioLinkTYPE_USINT : USINT := 5; (*constant for type USINT*)
  20. ioLinkTYPE_UINT : USINT := 6; (*constant for type UINT*)
  21. ioLinkTYPE_UDINT : USINT := 7; (*constant for type UDINT*)
  22. ioLinkTYPE_ULINT : USINT := 10; (*constant for type ULINT*)
  23. ioLinkTYPE_REAL : USINT := 8; (*constant for type REAL*)
  24. ioLinkTYPE_LREAL : USINT := 14; (*constant for type LREAL*)
  25. ioLinkTYPE_STRING : USINT := 9; (*constant for type STRING*)
  26. ioLinkTYPE_RECORD : USINT := 254; (*constant for type RECORD*)
  27. ioLinkMODE_INACTIVE : USINT := 0; (*constant for operating mode digital output*)
  28. ioLinkMODE_DIGINPUT : USINT := 1; (*constant for operating mode digital input*)
  29. ioLinkMODE_DIGOUTPUT : USINT := 2; (*constant for operating mode digital output*)
  30. ioLinkMODE_OPERATE : USINT := 10; (*constant for operating mode operate*)
  31. END_VAR