SysFileGetPos (FUN) ¶ FUNCTION SysFileGetPos : DINT InOut: Scope Name Type Return SysFileGetPos DINT Input File DWORD
SysFileGetSize (FUN) ¶ FUNCTION SysFileGetSize : DINT InOut: Scope Name Type Return SysFileGetSize DINT Inout Const FileName STRING
SysFileGetTime (FUN) ¶ FUNCTION SysFileGetTime : BOOL InOut: Scope Name Type Return SysFileGetTime BOOL Inout Const FileName STRING Input ftFileTime POINTER TO FILETIME
SysFileOpen (FUN) ¶ FUNCTION SysFileOpen : DWORD InOut: Scope Name Type Comment Return SysFileOpen DWORD Inout Const FileName STRING Mode STRING(20) Use ‘w’ (write), ‘r’ (read) or ‘rw’ (read and write)
SysFileRead (FUN) ¶ FUNCTION SysFileRead : DWORD InOut: Scope Name Type Comment Return SysFileRead DWORD Input File DWORD Buffer DWORD Address (ADR) to Buffer Size DWORD
SysSockListen (FUN) ¶ FUNCTION SysSockListen : RTS_IEC_RESULT Listen on a TCP server socket for new connection. InOut: Scope Name Type Comment Return SysSockListen RTS_IEC_RESULT Runtime system error code (see CmpErrors.library). Input hSocket RTS_IEC_HANDLE Handle to the socket diMaxConnections DINT Maximum number of connections allowed
SysSockNtohl (FUN) ¶ FUNCTION SysSockNtohl : UDINT Convert a UDINT value from ethernet byte order into host format. InOut: Scope Name Type Comment Return SysSockNtohl UDINT Converted UDINT value Input ulNet UDINT Ethernet value
SysSockNtohs (FUN) ¶ FUNCTION SysSockNtohs : WORD Convert a WORD value from ethernet byte order into host format. InOut: Scope Name Type Comment Return SysSockNtohs WORD Converted WORD value Input usNet WORD Ethernet value
SysSockPing (FUN) ¶ FUNCTION SysSockPing : RTS_IEC_RESULT Check the availability of the communication partner with a ping request. InOut: Scope Name Type Comment Return SysSockPing RTS_IEC_RESULT Runtime system error code (see CmpErrors.library): ERR_OK: Partner available ERR_FAILED: Partner cannot be reached All other results: Ping could not be sent because of other errors, so we don’t know, if the partner is available. Input szIPAddress REFERENCE TO STRING IP address of the communication partner as string ulTimeout UDINT Timeout in milliseconds to wait until reply pulReplyTime POINTER TO UDINT Pointer to get average reply time of the ping request in milliseconds
SysSockRecv (FUN) ¶ FUNCTION SysSockRecv : __XINT Receive data from a TCP socket. InOut: Scope Name Type Comment Return SysSockRecv __XINT Number of bytes received. 0 if failed. Input hSocket RTS_IEC_HANDLE Handle to the socket pbyBuffer POINTER TO BYTE Buffer to read data from the socket diBufferSize __XINT Maximum length of the buffer diFlags DINT The flags parameter can be used to influence the behavior of the function beyond the options specified for the associated socket. The semantics of this function are determined by the socket options and the flags parameter. The latter is constructed by using the bitwise OR operator with any of the SOCKET_MSG values. See category “Message flags”. pResult POINTER TO RTS_IEC_RESULT Pointer to runtime system error code (see CmpErrors.library)