Reference Manual
Chapter
4
IVC-2D
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
181
Communication
For
Outgoing TCP
connections, the
Associated IP
specifies which device to communi-
cate with and the
Associated Port
specifies which port the other device will listen on. The
IVC Device Port
can be set to 0, in which case the camera’s port number will be set auto-
matically.
For
Incoming TCP
connections, the
IVC Device Port
must be set, while the parameters
Associated IP
and
Associated Port
are ignored. This means that the camera will accept a
connection from any other device that connects to the
IVC Device Port
.
For
UDP
connections, setting the
IVC Device Port
to 0 will prevent the camera from receiv-
ing data over this connection. Likewise, leaving
Associated IP
empty and setting
Associ-
ated Port
to 0 will prevent the camera from sending data over the connection. If the
Asso-
ciated IP
is set, the camera will only receive data from that device.
If an
Outgoing TCP
or
Incoming TCP
connection could not be established before the
timeout, the camera will try to re-establish the connection on every subsequent read or
write operation. Furthermore, if a connection is closed for any reason, it cannot be used
again until it is closed (by using the 'Close Ethernet raw' tool) and reopened again.
Input Parameters
01=Timeout
The time in milliseconds during which the camera will try to
establish the connection.
02=Transport Protocol
Type of connection to be established and protocol (TCP or
UDP) for the connection.
Outgoing TCP
Incoming TCP
UDP
03=IVC Device Port
The port number on which the camera will send or receive
data. Valid port numbers are
1500
–
65535
.
For
Outgoing TCP
, this parameter can be set to 0. In this
case the port number will be set automatically.
For
UDP
, if this parameter is set to 0 the camera will not be
able to receive data on this connection.
04=Associated IP
The IP address of the device to which to establish the
connection. If this parameter is set, the
Associated Port
must also be set.
For
Incoming TCP
, this parameter is ignored and can be
left empty.
For
UDP
, if this parameter is empty the camera will not be
able to send data on this connection.
05=Associated Port
The port number used on the device to which to connect. If
this parameter is set, the
Associated IP
must also be set.
Valid port numbers are
1
–
65535
, however port numbers
1–1023 are usually reserved for the system
For
Incoming TCP
, this parameter is ignored and can be
left empty.
For
UDP
, if this parameter is 0 the camera will not be able to
send data on this connection.
Returned Values
None.
Error Messages
Err. = 8002
No connection possible to the associated address.