SysSockGetLastErrorΒΆ

This function block calls the function getlasterror of the operating system, which returns the error code of the last error occurred at the given socket.

Input Variable Data type Description
diSocket DINT

Descriptor of the socket, returned by SysSockCreate

(corresponding parameter e.g. in Win32: s)

bEnable BOOL Rising edge: the function block starts the action.
Output Variable Data type Description
bDone BOOL TRUE indicates that the function block has completed processing.
bBusy BOOL TRUE indicates that the function block is still processing.
bError BOOL TRUE indicates that an error has occured.
wErrorId WORD Error number
dwLastError DWORD Return value of getlasterror of operating system.