
Chapter
4
Reference Manual
IVC-2D
196
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
Communication
Get from FTP
This tool retrieves a data block, an image, or a number of table rows from a file that is
stored on an external FTP of the camera.
Note that the information is only stored in the working memory of the camera (i.e. the
table, an image bank or a data block). The tools for saving information to flash (‘Save Data
Block to Flash’, ‘Save Image to Flash’, and ‘Write Table to Flash’) shall be used if the data
retrieved by this tool shall be persistently stored on the camera flash.
The camera will log on to the FTP server using the supplied user name and password. If
there is a firewall between the camera and the FTP server and there are problems connec-
ting to the FTP server, setting
Passive mode
to
True
may help.
Note:
the parameter
Timeout
refers to interruptions during the transfer of FTP data. E.g. if
the parameter is set to 1000 ms (1 second), the transfer will still be successful even if the
total time of the transfer exceeds 1 second. The transfer will in this case report timeout
only if the time between two consecutive data packets containing the image exceeds 1
second.
The tool can only retrieve one type of data from the specified file, e.g. if an image shall be
retrieved, the parameters
Data block
, and
Table index
shall be set to -1. If more than one
of these parameters have values that are not -1, an error will be reported.
The tool can also be used to transfer a file from an FTP server directly to the flash disk of
the camera. In this case, the parameters
Image bank
,
Table index
and
Data block
shall be
set to -1. The file will be copied to the flash with the same name as on the FTP server. The
length of the file name is limited to 15 characters (including extension) for the flash. Note
that the file will overwritten if it already exists in the flash. This behavior is controlled by the
parameter
Save Mode
.
Note:
For IVC-2D grayscale bitmaps (*.bmp) and raw images (*.raw or *.img) are suppor-
ted by the tool, and for IVC-3D only raw (*.raw or *.img) images are supported.
Input Parameters
01=IP address
The IP address of the FTP server to connect to.
02=Port
The port number used on the FTP server to connect to.
03=User name
A user name used for connecting to the FTP server.
04=Password
The password for the user on the FTP server.
05=Timeout
Timeout in milliseconds for connection and transmission
of the data.
06=Passive mode
Specifies whether or not to use passive mode when
connecting to the FTP server.
07=Directory
The directory on the FTP server where the file is stored.
08=Filename
The name of the file in which the information is stored.
09=Data block
The number of the data block in working memory in
which the information shall be stored. Set to -1 if not
used.
10=Image bank
The index of the image bank where to store the image
file. Set to -1 if not used.
11=Table index
The index of the table where the elements from the file
shall be stored. Set to -1 if not used.
The Emulator does
not emulate this
tool. See section
Handling the
Emulator for more
information.