
Reference Manual
Chapter
5
IVC-2D
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
225
Communication Setup
If the value from the IVC device is outside the value range for a parameter, the IVC device
will either round or truncate the value, or issue an error, depending on the settings in the
'Communication setup' tool. For example, the result from trying to publish the following
values from a table in the working memory depends on what was selected in the 'Commu-
nication setup' interactive setup:
Value in IVC table
Buffer
parameter
Stop with error
Round/truncate
314
SINT
Err = 8103
127
-65 536
INT
Err = 8103
-32 768
1.7
SINT
Err = 8103
2
“A string”
INT
Err = 8104
Err = 8104
“An extremely long
string with more than
61 characters for
demonstrating.”
SSTRING
Err = 8103
“An extremely long
string with more than
61 characters for
dem”
Note that the maximum length of strings in the buffer is either 61 characters (SSTRING) or
497 characters (LSTRING), but when read from the buffer by an external device, the
strings will occupy 64 bytes and 500 bytes respectively. The format of the strings when
read from the buffer is shown in the following figure:
Figure – Format of strings in the buffer
OPC
To use the OPC protocol for reading and writing data on an IVC device, the OPC server
from SICK must be running on a PC in the network. The OPC server is included with the
installation of IVC Studio, and the setup file is stored in the folder
OPC Server
in the
installation folder for IVC Studio. Note that IVC Studio must be installed on a PC for the OPC
server setup to be available.
When reading and writing values using OPC, the parameters are referred to by the name
specified in the Communication setup interactive setup. Before these names can be used
with the OPC server, they must first be exported from IVC Studio, and then imported to the
OPC server.
The names are exported by clicking
Export OPC mappings
on the OPC tab in the Communi-
cation setup interactive setup. For information on how to import the names to the OPC
server, see the documentation that comes with the server software.
Length,
2 bytes
Characters,
max 61 (SSTRING) or 497 (LSTRING)
Terminating null
characters,
at least 1