Interfaces
16
Web interface
command examples see Section B.1, "Command syntax" (page 52) and Section B.6, "Com-
mand examples" (page 75).
Note
The command syntax differs from other interfaces where the initial part
is added and all space characters (" ") are replaced by an underscore
dress>/CmdChannel?
character ("_"). The ACK messages still contain spaces.
Example URL
The successful execution of the following command
http://192.168.1.110/CmdChannel?sINT_1_1
will perform the command (to select reference object with index 1) and then return the fol-
lowing string:
rsINT 1 0
while a failed command may return:
rsINT 1 8101 Ref bank index is not used.
3.3.3
Current reference object
The reference image of the current reference object can be retrieved using the URL:
http://<IP-address>/ActiveReferenceImage.jpg
The response to the request is a JPEG image.
The reference image of any reference object in the Inspector can be retrieved using the URL:
http://<IP-address>/getRefObject?0
where the argument "0" is the index of the reference object. The object index that corresponds
to each reference object can be found in the Reference object list in the Main view.
The response to the request is a JPEG image. An empty image with a smaller size than a
normal image is returned if no reference object is available for a certain position.
Example URL
http://192.168.1.110/ActiveReferenceImage.jpg
http://192.168.1.110/getRefObject?1
3.3.4
Backup and restore configuration
It is possible to backup and restore the device configuration through the Web API. This is the
same functionality also available through the standard web pages of the Web Server interface.
The backup data contains the device name and reference objects including corresponding
inspection and interface settings.
Note
The backup and restore functionality of the Web Server and the Web API corresponds to the
Export Sopas Parameter backup and Import Sopas Parameter backup in the InspectorPIM60 menu.
The backup data used by the Web API is saved as
exported from SOPAS Single Device. The Web API can not use
Backup configuration
The URL to export a configuration is
Example URL:
http://192.168.1.110/backup_config?config1
The result of the request is an .spb file containing the device configuration. This file can be
stored in the file system of the receiving unit and used later in the restore procedure.
©SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
Subject to change without notice
files, which can be imported to and
.sbp
.sdv
http://<IP-address>/backup_config?config1
Reference Manual
Inspector PIM
http://<IP-ad-
files.
8015726/2013-11
Need help?
Do you have a question about the Inspector PIM60 and is the answer not in the manual?
Questions and answers