Chapter
4
Reference Manual
IVC-2D
166
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
System
Save Data Block to Flash
This tool writes a data block in the working memory to the flash memory. The flash memory
holds that data even if the power to the device is shut off.
When saved to the flash memory, the data is contained in a file whose name is specified in
the
File Name
parameter.
This tool is useful for example in combination with the ‘Shape Locator’, and ‘Add Shape
Runtime’ tools in the Matching category. These tools store data about an object in a data
block in the working memory. ‘Save Data Block‘ to flash allows this memory block to be in
the flash memory and be used by the ‘Shape Locator’ tool later – or in other programs –
without having to teach the object again.
Note:
If a data block already exists on the flash with the same name as the one being
written, the existing one will be replaced by the new data block, and the amount of dead
space on the flash disk will increase with the size of the previous data block. For details
see section on page 242 in the Troubleshooting guide.
Note:
This tool may perform an automatic defragmentation of the flash disk if the amount
of dead space exceeds the specified threshold. Please refer to section
in the appendix for information on how to set this threshold. This will signifi-
cantly increase the execution time of the tool. Note also that this is only the case when the
camera is running, not when executing the tool with F5/F8. In the latter situation, an error
code will be returned indicating that it is time to defragment the flash.
Input Parameters
01 = Data block
The number of the data block in working memory in which the
data to be saved is stored.
02 = File name
Name of the file in which to save the data.
Returned Values
None
Error Messages
ITF Error = 2
Timeout. The execution time to save the data block on
flash is too long. Increase the timeout limit (
Options
Æ
Configuration
on the IVC Studio menu bar).
Err. = 8960
The amount of dead space on the flash exceeds the
specified threshold. Please defragment the disk by using
the Clear Unused Memory option on the Flash menu in the
Device list.
Err. = 8961
The automatic defragmentation failed. The camera may
need to be restarted to restore the flash.