Reference Manual
Chapter
4
IVC-2D
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
187
Communication
Write Ethernet Bytes
This tool is used for sending bytes – integer values between 0–255 – to another device
over an Ethernet connection.
The tool sends the values in the table starting at row number
Table index
and the following
rows, until
Number of bytes
values has been sent. If a value is outside the valid range (0–
255), the least significant byte of that value will be sent.
In order to send data 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= Table index
Table row in which the first value to send is stored.
04= Number of bytes
The number of values to send.
Returned Values
01=Sent bytes
The number of bytes that was 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. = 7601
Some of the table entries that should be sent had an in-
compatible type (only numeric values are allowed).
The Emulator does
not emulate this
tool. See section
Handling the
Emulator for more
information.