CoDeSys SP 32 Bit Embedded_E | Operating System | C (Programming Language)
https://www.scribd.com/document/218568260/CoDeSys-SP-32-Bit-Embedded-E
https://www.scribd.com/document/218568260/CoDeSys-SP-32-Bit-Embedded-E
Scribd
CoDeSys SP 32 Bit Embedded_E
The CoDeSys runtime system runs PLC programs on industrial controllers. It consists of modules that handle processing control, services, downloading programs, debugging, and adapting to different hardware. The document describes the runtime system components…
ERR_OK
UDINT 16#0 Ok
ERR_FAILED
UDINT 16#1 General error - to be used only for internal errors
ERR_PARAMETER
UDINT 16#2 Invalid parameter for this operation
ERR_NOTINITIALIZED
UDINT 16#3 Function cannot be executed, since component has not been initialized yet. It may work later, though
ERR_VERSION
UDINT 16#4 Version conflict
ERR_TIMEOUT
UDINT 16#5 Operation timed out
ERR_NOBUFFER
UDINT 16#6 Insufficient memory to carry out the request
ERR_PENDING
UDINT 16#A For async-calls: call not complete, yet
ERR_NUMPENDING
UDINT 16#B To many pending calls. Try later
ERR_NOTIMPLEMENTED
UDINT 16#C The function is not implemented
ERR_INVALIDID
UDINT 16#D No object with the provided id found
ERR_OVERFLOW
UDINT 16#E Integer overflow
ERR_BUFFERSIZE
UDINT 16#F The size of a buffer is to small or invalid
ERR_NO_OBJECT
UDINT 16#10 No object with this specified name available
ERR_NOMEMORY
UDINT 16#11 No heap memory available
ERR_DUPLICATE
UDINT 16#12 An object with the same name is still available
ERR_MEMORY_OVERWRITE
UDINT 16#13 Heap memory was written out of bounds! Memory overwrite error
ERR_INVALID_HANDLE
UDINT 16#14 Invalid handle TO an object
ERR_END_OF_OBJECT
UDINT 16#15 End OF object reached
ERR_NO_CHANGE
UDINT 16#16 No changes done
ERR_INVALID_INTERFACE
UDINT 16#17 Invalid OR unknown INTERFACE
ERR_NOT_SUPPORTED
UDINT 16#18 Functionality NOT supported
ERR_NO_ACCESS_RIGHTS
UDINT 16#19 No access rights FOR THIS operation
ERR_OUT_OF_LIMITS
UDINT 16#1A Specified limits OF a resource exceeded
ERR_ENTRIES_REMAINING
UDINT 16#1B Remaining entries that could NOT be transmitted because OF buffer limitation
ERR_INVALID_SESSION_ID
UDINT 16#1C Invalid online sessionid
ERR_EXCEPTION
UDINT 16#1D Exception occurred
ERR_SIGNATURE_MISMATCH
UDINT 16#1E Signature mismatch OF an api FUNCTION
ERR_VERSION_MISMATCH
UDINT 16#1F Version mismatch
ERR_TYPE_MISMATCH
UDINT 16#20 TYPE mismatch
ERR_ID_MISMATCH
UDINT 16#21 ID mismatch
ERR_NO_CONSISTENCY
UDINT 16#22 Consistency error
ERR_NO_COMM_CYCLE
UDINT 16#23 No COMM_CYCLE needed
ERR_DONT_SUSPEND_TASK
UDINT 16#24 DO NOT suspend task after an exception
ERR_MEMORY_LOCK_FAILED
UDINT 16#25 Memory cannot be locked in THIS operation
ERR_LICENSE_MISSING
UDINT 16#26 License missing FOR the runtime
ERR_OPERATION_DENIED
UDINT 16#27 Operation denied
ERR_DEVICE
UDINT 16#28 Device error
ERR_DISK_FULL
UDINT 16#29 Disk full
ERR_CRC_FAILED
UDINT 16#30 Internal use in runtime
ERR_MEDIA_ERASE
UDINT 16#31 Internal use in runtime
ERR_FILE_ERROR
UDINT 16#32 File error. e.g. cannot open a file FOR writing because it could be write PROTECTED
ERR_NO_RETAIN_MEMORY
UDINT 16#33 No RETAIN memory available
ERR_OUT_OF_LIMITS_MIN
UDINT 16#34 Specified minimum-limit of a resource exceeded
ERR_OUT_OF_LIMITS_MAX
UDINT 16#35 Specified maximum-limit of a resource exceeded
ERR_SIZE_MISMATCH
UDINT 16#36 Size mismatch
ERR_CALL_AGAIN
UDINT 16#37 Operation is not yet finished, call function again to proceed
ERR_NOTHING_TO_DO
UDINT 16#38 Operation has nothing TO DO. No execution.
ERR_SECURITY_CHECKS_FAILED
UDINT 16#39 Some security checks have failed. THIS is a generic error code TO report THIS error over PUBLIC channels. In THIS CASE the error code doesn’t provide a detailed cause for the error. */
ERR_INVALID_SEQUENCE
UDINT 16#3A
ERR_INVALID_REFERENCE
UDINT 16#3B Dereferencing an IEC reference in IecVarAccess failed due to invalid destination address, e. G. NULL.
ERR_CONVERSION_INCOMPLETE
UDINT 16#3C Conversion of string encodings was not lossless.
ERR_SOCK_NOTINITIALIZED
UDINT 16#201 Socket not initialized
ERR_SOCK_NOTSOCKET
UDINT 16#202 The provided socket handle is invalid
ERR_SOCK_AFUNSUPPORTED
UDINT 16#203 The address family is NOT supported
ERR_SOCK_PROTOUNSUPPORTED
UDINT 16#204 Protocol is NOT supported
ERR_SOCK_NOBUFFER
UDINT 16#205 NOT enough buffer TO handle the request
ERR_SOCK_WOULDBLOCK
UDINT 16#206 Socket is in nonblocking mode but THIS call would block
UDINT 16#0 Ok
ERR_FAILED
UDINT 16#1 General error - to be used only for internal errors
ERR_PARAMETER
UDINT 16#2 Invalid parameter for this operation
ERR_NOTINITIALIZED
UDINT 16#3 Function cannot be executed, since component has not been initialized yet. It may work later, though
ERR_VERSION
UDINT 16#4 Version conflict
ERR_TIMEOUT
UDINT 16#5 Operation timed out
ERR_NOBUFFER
UDINT 16#6 Insufficient memory to carry out the request
ERR_PENDING
UDINT 16#A For async-calls: call not complete, yet
ERR_NUMPENDING
UDINT 16#B To many pending calls. Try later
ERR_NOTIMPLEMENTED
UDINT 16#C The function is not implemented
ERR_INVALIDID
UDINT 16#D No object with the provided id found
ERR_OVERFLOW
UDINT 16#E Integer overflow
ERR_BUFFERSIZE
UDINT 16#F The size of a buffer is to small or invalid
ERR_NO_OBJECT
UDINT 16#10 No object with this specified name available
ERR_NOMEMORY
UDINT 16#11 No heap memory available
ERR_DUPLICATE
UDINT 16#12 An object with the same name is still available
ERR_MEMORY_OVERWRITE
UDINT 16#13 Heap memory was written out of bounds! Memory overwrite error
ERR_INVALID_HANDLE
UDINT 16#14 Invalid handle TO an object
ERR_END_OF_OBJECT
UDINT 16#15 End OF object reached
ERR_NO_CHANGE
UDINT 16#16 No changes done
ERR_INVALID_INTERFACE
UDINT 16#17 Invalid OR unknown INTERFACE
ERR_NOT_SUPPORTED
UDINT 16#18 Functionality NOT supported
ERR_NO_ACCESS_RIGHTS
UDINT 16#19 No access rights FOR THIS operation
ERR_OUT_OF_LIMITS
UDINT 16#1A Specified limits OF a resource exceeded
ERR_ENTRIES_REMAINING
UDINT 16#1B Remaining entries that could NOT be transmitted because OF buffer limitation
ERR_INVALID_SESSION_ID
UDINT 16#1C Invalid online sessionid
ERR_EXCEPTION
UDINT 16#1D Exception occurred
ERR_SIGNATURE_MISMATCH
UDINT 16#1E Signature mismatch OF an api FUNCTION
ERR_VERSION_MISMATCH
UDINT 16#1F Version mismatch
ERR_TYPE_MISMATCH
UDINT 16#20 TYPE mismatch
ERR_ID_MISMATCH
UDINT 16#21 ID mismatch
ERR_NO_CONSISTENCY
UDINT 16#22 Consistency error
ERR_NO_COMM_CYCLE
UDINT 16#23 No COMM_CYCLE needed
ERR_DONT_SUSPEND_TASK
UDINT 16#24 DO NOT suspend task after an exception
ERR_MEMORY_LOCK_FAILED
UDINT 16#25 Memory cannot be locked in THIS operation
ERR_LICENSE_MISSING
UDINT 16#26 License missing FOR the runtime
ERR_OPERATION_DENIED
UDINT 16#27 Operation denied
ERR_DEVICE
UDINT 16#28 Device error
ERR_DISK_FULL
UDINT 16#29 Disk full
ERR_CRC_FAILED
UDINT 16#30 Internal use in runtime
ERR_MEDIA_ERASE
UDINT 16#31 Internal use in runtime
ERR_FILE_ERROR
UDINT 16#32 File error. e.g. cannot open a file FOR writing because it could be write PROTECTED
ERR_NO_RETAIN_MEMORY
UDINT 16#33 No RETAIN memory available
ERR_OUT_OF_LIMITS_MIN
UDINT 16#34 Specified minimum-limit of a resource exceeded
ERR_OUT_OF_LIMITS_MAX
UDINT 16#35 Specified maximum-limit of a resource exceeded
ERR_SIZE_MISMATCH
UDINT 16#36 Size mismatch
ERR_CALL_AGAIN
UDINT 16#37 Operation is not yet finished, call function again to proceed
ERR_NOTHING_TO_DO
UDINT 16#38 Operation has nothing TO DO. No execution.
ERR_SECURITY_CHECKS_FAILED
UDINT 16#39 Some security checks have failed. THIS is a generic error code TO report THIS error over PUBLIC channels. In THIS CASE the error code doesn’t provide a detailed cause for the error. */
ERR_INVALID_SEQUENCE
UDINT 16#3A
ERR_INVALID_REFERENCE
UDINT 16#3B Dereferencing an IEC reference in IecVarAccess failed due to invalid destination address, e. G. NULL.
ERR_CONVERSION_INCOMPLETE
UDINT 16#3C Conversion of string encodings was not lossless.
ERR_SOCK_NOTINITIALIZED
UDINT 16#201 Socket not initialized
ERR_SOCK_NOTSOCKET
UDINT 16#202 The provided socket handle is invalid
ERR_SOCK_AFUNSUPPORTED
UDINT 16#203 The address family is NOT supported
ERR_SOCK_PROTOUNSUPPORTED
UDINT 16#204 Protocol is NOT supported
ERR_SOCK_NOBUFFER
UDINT 16#205 NOT enough buffer TO handle the request
ERR_SOCK_WOULDBLOCK
UDINT 16#206 Socket is in nonblocking mode but THIS call would block
ERR_SOCK_ADDRINUSE
UDINT 16#207 The provided address is already in use
ERR_SOCK_ADDRNOTAVAILABLE
UDINT 16#208 The provided address is NOT available on THIS computer
ERR_SOCK_CONNREFUSED
UDINT 16#209 Connection has been refused BY the remote host
ERR_SOCK_TIMEDOUT
UDINT 16#20A Operation timed out
ERR_SOCK_HOSTNOTFOUND
UDINT 16#20B The host has NOT been found
ERR_SOCK_HOSTUNREACHABLE
UDINT 16#20C Host is unreachable
ERR_SOCK_ISCONNECTED
UDINT 16#20D Socket is already connected
ERR_SOCK_NOTCONNECTED
UDINT 16#20E The socket is NOT connected
ERR_SOCK_SHUTDOWN
UDINT 16#20F Shutdown has been called on the socket
ERR_SOCK_MSGSIZE
UDINT 16#210 FOR sockets OF TYPE DGRAM. The package TO send exceeds the maximum package size
ERR_SOCK_CLOSED
UDINT 16#211 Socket has been gracefully closed. No more send/receives allowed
ERR_L7_TAG_MISSING
UDINT 16#300 Tag missing in online communication buffer
ERR_L7_UNKNOWNCMDGROUP
UDINT 16#301 Unknown command group
ERR_L7_UNKNOWNCMD
UDINT 16#302 Unknown command (within a valid command group)
ERR_L7_INCOMPLETE
UDINT 16#303 Level 7 service incomplete
UDINT 16#207 The provided address is already in use
ERR_SOCK_ADDRNOTAVAILABLE
UDINT 16#208 The provided address is NOT available on THIS computer
ERR_SOCK_CONNREFUSED
UDINT 16#209 Connection has been refused BY the remote host
ERR_SOCK_TIMEDOUT
UDINT 16#20A Operation timed out
ERR_SOCK_HOSTNOTFOUND
UDINT 16#20B The host has NOT been found
ERR_SOCK_HOSTUNREACHABLE
UDINT 16#20C Host is unreachable
ERR_SOCK_ISCONNECTED
UDINT 16#20D Socket is already connected
ERR_SOCK_NOTCONNECTED
UDINT 16#20E The socket is NOT connected
ERR_SOCK_SHUTDOWN
UDINT 16#20F Shutdown has been called on the socket
ERR_SOCK_MSGSIZE
UDINT 16#210 FOR sockets OF TYPE DGRAM. The package TO send exceeds the maximum package size
ERR_SOCK_CLOSED
UDINT 16#211 Socket has been gracefully closed. No more send/receives allowed
ERR_L7_TAG_MISSING
UDINT 16#300 Tag missing in online communication buffer
ERR_L7_UNKNOWNCMDGROUP
UDINT 16#301 Unknown command group
ERR_L7_UNKNOWNCMD
UDINT 16#302 Unknown command (within a valid command group)
ERR_L7_INCOMPLETE
UDINT 16#303 Level 7 service incomplete