ITcpClient.Connect (METH)

METHOD Connect : ERROR_ID

Method to establish a TCP connection to a server

InOut:

Scope

Name

Type

Initial

Comment

Return

Connect

ERROR_ID

Input

Eth

BYTE

0

Declaration of used ethernet interface

IpAddr

STRING(16)

‘192.168.0.10’

Target IP address of the server that should be connected to

Port

WORD

9000

Target port server

TlsParameters

TLS_PARAMETERS

Tls parameter - as default set to Standard socket

itfTlsCertification

ITlsCertification

0

Interface for Tls Certification

Timeout

TIME

TIME#1m0s0ms

Timeout

Output

AddErrNo

RTS_IEC_RESULT

Additional error number gives information about error from SysSock2Close –> please see CmpErrors.Errors