SysTimerMaxTimer (FUN) ¶ FUNCTION SysTimerMaxTimer : RTS_IEC_RESULT <description>This function returns the maximal number of timers</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTimerMaxTimer RTS_IEC_RESULT Input pulMaxTimer POINTER TO UDINT <param name=”pulMaxTimer” type=”out”>Number of Timers</param>
SysTimerStart (FUN) ¶ FUNCTION SysTimerStart : RTS_IEC_RESULT <description>This function starts a timer</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTimerStart RTS_IEC_RESULT Input hTimer RTS_IEC_HANDLE <param name=”hTimer” type=”IN”>Handle of the timer</param> ulType UDINT <param name=”ulType” type=”IN”>Type of timer</param>
SysTimerStop (FUN) ¶ FUNCTION SysTimerStop : RTS_IEC_RESULT <description>This function stops a timer</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTimerStop RTS_IEC_RESULT Input hTimer RTS_IEC_HANDLE <param name=”hTimer” type=”IN”>Handle of the timer</param>
TCP Library Documentation ¶ Company 3S - Smart Software Solutions GmbH Title TCP Version 3.5.19.0 Categories Intern|Networking Namespace TCP Author 3S - Smart Software Solutions GmbH Placeholder TCP Description 1 ¶ Encapsulates socket calls in an easy to use TCP library Contents: ¶ TCP Enums Function Blocks Functions GlobalConstants Structs Indices and tables ¶ 1 Based on TCP.library, last modified 02.03.2023, 10:51:59. LibDoc 4.4.0.0-b.27 The content file TCP.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 02.03.2023, 10:52:01.
Enums ¶ ERROR (Enum) STREAM_STATE (Enum)
TCP ¶ Enums ERROR (Enum) STREAM_STATE (Enum) Function Blocks Connector (FunctionBlock) Connect (Method) Disconnect (Method) IPAddress (Property) Port (Property) Reset (Method) ResolveHostName (Method) Listener (FunctionBlock) Accept (Method) IPAddress (Property) Listen (Method) Port (Property) Socket (Property) Start (Method) Stop (Method) Select (FunctionBlock) Check (Method) CheckError (Method) CheckReceive (Method) CheckSend (Method) Stream (FunctionBlock) CheckConnectivity (Method) CheckReceive (Method) CheckSend (Method) Close (Method) Create (Method) FdIsSet (Method) FdSet (Method) GetOption (Method) IoControl (Method) Properties IPAddress (Property) Socket (Property) State (Property) Receive (Method) Reset (Method) Send (Method) SetOption (Method) Functions UDINT_TO_IPSTRING (Function) GlobalConstants Constants (GVL) Structs SockAddr (Struct)
ERROR (ENUM) ¶ TYPE ERROR : Attributes: qualified_only InOut: Name Comment NO_ERROR No Error: Everything worked fine. TIME_OUT Call timed out PENDING Still pending INVALID_HANDLE Detected an invalid handle/null pointer INVALID_IPADDRESS The given address is not valid CONNECT_FAILED Failed to connect to Listener HOST_NOT_FOUND Listener could not be found TCP_OPEN_ERROR Could not open tcp connection NO_STREAMS_TO_LISTEN There are no streams to listen to ADDR_NOT_AVAILABLE Address not available on this plc CONNECTION_LOST Connection lost. Check cables STREAM_STATE_ERROR Stream already created GET_OPTION_FAILED Could not get option. Maybe it is not supported by OS SET_OPTION_FAILED Could not set option. Maybe it is not supported by OS IOCTL_FAILED IO-Control failed RECEIVE_ERROR Error receiving a stream SEND_ERROR Error sending a stream FD_SET_INIT_FAILED Could not init fd set
STREAM_STATE (ENUM) ¶ TYPE STREAM_STATE : InOut: Name Initial Comment CLOSED 0 Stream is closed CONNECTING Stream is connecting LISTENING Stream is listening OPEN Stream is open. Ready to send/receive data FAILED Opening the stream failed.
Function Blocks ¶ Connector (FunctionBlock) Connect (Method) Disconnect (Method) IPAddress (Property) Port (Property) Reset (Method) ResolveHostName (Method) Listener (FunctionBlock) Accept (Method) IPAddress (Property) Listen (Method) Port (Property) Socket (Property) Start (Method) Stop (Method) Select (FunctionBlock) Check (Method) CheckError (Method) CheckReceive (Method) CheckSend (Method) Stream (FunctionBlock) CheckConnectivity (Method) CheckReceive (Method) CheckSend (Method) Close (Method) Create (Method) FdIsSet (Method) FdSet (Method) GetOption (Method) IoControl (Method) Properties IPAddress (Property) Socket (Property) State (Property) Receive (Method) Reset (Method) Send (Method) SetOption (Method)
Connector (FB) ¶ FUNCTION_BLOCK Connector Connector fb opens a tcp socket to a tcp server and initializes the given tcp stream. Represents a TCP Client. Properties: IPAddress Port Methods: Connect Disconnect Reset ResolveHostName Structure: Connect (Method) Disconnect (Method) IPAddress (Property) Port (Property) Reset (Method) ResolveHostName (Method)