ITcpClient.Connect (METH)
METHOD Connect : ERROR_ID
Method to establish a TCP connection to a server
- InOut:
Scope
Name
Type
Initial
Comment
Return
ConnectInput
EthBYTE0
Declaration of used ethernet interface
IpAddrSTRING(16)‘192.168.0.10’
Target IP address of the server that should be connected to
PortWORD9000
Target port server
TlsParametersTls parameter - as default set to Standard socket
itfTlsCertification0
Interface for Tls Certification
TimeoutTIMETIME#1m0s0ms
Timeout
Output
AddErrNoRTS_IEC_RESULTAdditional error number gives information about error from SysSock2Close –> please see CmpErrors.Errors