Connector.Connect (METH) ¶ METHOD Connect : ERROR Connects to a server and returns a tcp stream; Call this function until an Error <> PENDING OR Error <> NO_ERROR is returned or pStream is set InOut: Scope Name Type Comment Input sIPAddress STRING IP address of the server uiPort UINT Port on which the server is listening Return Connect ERROR Output pStream POINTER TO Stream If the connection is established, pStream is != 0
Connector.Disconnect (METH) ¶ METHOD Disconnect : ERROR Disconnects the stream from the server InOut: Scope Name Type Return Disconnect ERROR
Connector.IPAddress (PROP) ¶ PROPERTY IPAddress : STRING IP Address of a listener the connector shall connect to
Connector.Port (PROP) ¶ PROPERTY Port : UINT // Port of a listener the connector shall connect to
Connector.Reset (METH) ¶ METHOD PUBLIC Reset
Connector.ResolveHostName (METH) ¶ METHOD ResolveHostName : ERROR Resolves the host name to an ip address. Attention! This function is blocking until the host name is resolved or an error occurred! InOut: Scope Name Type Input sHostName STRING Return ResolveHostName ERROR Output sIPAddress STRING
Listener (FB) ¶ FUNCTION_BLOCK Listener Listener fb opens a socket on a port and listens for new incomming streams. Represents a TCP Server. Order of calls: Start: Binds the listening socket and starts listening on it. Listen: This method may be called at any time after start. The new Streams are appended to the already listening streams. Accept: Returns a new connected TCP Stream. Stop: Stops listening on the port. Properties: IPAddress Port Socket Methods: Accept Listen Start Stop Structure: Accept (Method) IPAddress (Property) Listen (Method) Port (Property) Socket (Property) Start (Method) Stop (Method)
SysTimeLock (FUN) ¶ FUNCTION SysTimeLock : WORD <description>Function to lock the actual timestamp for all IEC timers.</description> <result><p>RESULT: Returns always 0</p></result> InOut: Scope Name Type Comment Return SysTimeLock WORD Input ulTick TIME <param name=”ulTick” type=”IN”>Actual tick value for the timer to lock</param> tTimeout TIME <param name=”tTimeout” type=”IN”>Timeout in milliseconds until the lock is released at least!</param>
SysTimeSet (FUN) ¶ FUNCTION SysTimeSet : WORD <description>Function to set the actual timestamp for all IEC timers. Differnt to SysTimeLock, the timer continues</description> <result><p>RESULT: Returns always 0</p></result> InOut: Scope Name Type Comment Return SysTimeSet WORD Input ulTick TIME <param name=”ulTick” type=”IN”>Actual tick value for the timer to set</param> tTimeout TIME <param name=”tTimeout” type=”IN”>Timeout in milliseconds until the setting is released at least!</param>
SysTimeUnSet (FUN) ¶ FUNCTION SysTimeUnSet : WORD <description>Function to un-set the actual timestamp for all IEC timers.</description> <result><p>RESULT: Returns always 0</p></result> InOut: Scope Name Type Return SysTimeUnSet WORD