
Chapter
4
Reference Manual
IVC-2D
190
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
Communication
Write Ethernet String
This tool is used for sending a string to another device over an Ethernet connection.
The maximum length of the string to send is 4095 charactes when using the TCP protocol.
When using the UDP protocol, the maximum number of characters to send is 1472.
Only the characters that are contained in the string are sent. No delimiting character –
such as a NUL or end-of-line character – is appended to the string.
In order to send strings to a device, a connection to that device must have been opened
with the 'Open Ethernet Raw' tool. The program step in which the connection was opened
is used as the parameter
Open Step
.
Input Parameters
01=Open step
The program step in which the connection was opened.
02=Timeout
The time in milliseconds during which the camera will try to send
data. This includes the time it takes to establish the connection, if
necessary.
03= String
The string to send.
Returned Values
01=Sent bytes
The number of characters (bytes) that were sent.
Error Messages
Err. = 1
The program step referred to by
01=Open step
is not an 'Open
Ethernet Raw' step.
Err. = 8000
Connection timed out.
Err. = 8001
Connection is broken.
Err. = 8002
Not possible to connect to the specified device
Err. = 8003
The specified connection is for receiving data only.
Err. =8006
The string to send is too long (more than 4095 characters when
using TCP, more than 1472 characters when using UDP)
The Emulator does
not emulate this
tool. See section
Handling the
Emulator for more
information.