Chapter
4
Reference Manual
IVC-2D
180
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
Communication
Open Ethernet Raw
This tool is used for setting up a connection to a device over Ethernet. This connection can
be used later in the program for either sending or receiving data from that device.
It is possible to have several connections open at the same time. When sending or receiv-
ing data over the connection, the program step where the connection is opened is used as
one of the parameters.
The
Transport Protocol
parameter specifies which type of connection to open:
Outgoing TCP
Connects to another device using the TCP protocol.
Incoming TCP
Waits for other devices to connect using the TCP protocol.
UDP
Sends and receives data using the UDP protocol.
The connection can be set up for communication using either the TCP or UDP protocol. A
TCP connection can always be used for both sending and receiving data. An UCP connection
can be limited to either sending or receiving by setting the other parameters for the tool.
Please note that the UDP protocol is not safe in that sense that there is no indication
whether or not the data was actually received by the other device.
When establishing a connection using TCP between two devices, one of the devices
initiates the connection by sending a connection request to the other device. If the other
device replies to the request, the connection can be established.
If the device should initiate the connection, the connection type should be set to Outgo-
ing TCP in the 'Open Ethernet Raw' step.
If the device should wait for other devices to connect, the connection type should be
set to Incoming TCP in the 'Open Ethernet Raw' step. A connection will be established
with any device that requests a connection.
For an outgoing connection to be established successfully, the device to which to connect
must be waiting for an incoming connection. If the device is an IVC-2D or IVC-3D camera,
this means that the camera must have executed an 'Open Ethernet Raw' tool with the
Transport Protocol
parameter set to
Incoming TCP
.
Device B
Device C
Incoming TCP
Port: 2610
Device A
Outgoing TCP
Port: 2610
Outgoing TCP
Port: 2610
Connection
requests
Connection
1
2
3
1. Device A requests a connection to device B on the specified port.
2. If the device is waiting for incoming connections, the connection is established and
the devices can send and receive data over the connection.
3. If another device tries to connect to the same device and on the same port, it will fail
since the connection is already busy. The connection must be closed by device B
before device C can establish a connection.
The Emulator does
not emulate this
tool. See section
Handling the
Emulator for more
information.