The Web Server standard web pages requires a login to perform a backup. A login is not re-
quired when doing a backup through the Web API.
Restore configuration
The restore operation takes a device configuration created with the backup functionality and
replaces the current configuration with the configuration in the backup file.
The operation is a multiple step procedure that requires a login. The details of the procedure
is described in Appendix C, “
Restore configuration over Web API
The operation may take several minutes and the Inspector PIM60 is automatically restarted
after the configuration has been transferred to the Inspector PIM60.
Warning
During the restore operation the device is set in a special restore mode only expecting restore
operation requests. Operations and requests via other interfaces like field buses,
SOPAS En-
gineering Tool (ET)
, or other web browsers shall then be avoided since they may interfere with
the restore operation.
3.4
Create custom web pages
When creating customized web pages to be stored on and served by the Inspector, you use
the Web API to display images, retrieve results and settings, and change parameters in the
Inspector.
The functions that use the command channel (retrieving results, and getting and setting
parameters) returns the result in text strings, which you need to parse in order to extract the
information that you are interested in. To make this easier, the Inspector PIM60 provides a
JavaScript that you can use in your web pages, and that helps parsing the results.
You use the functions by including the script file
inspector.js
in your page, and then create
an
Inspector
object in your own script.
Note
The inspector.js script uses JQuery, so you need to also include the provided
jquery.js
script. For more information on JQuery, see www.jquery.com.
<html>
<head>
<title>Custom page</title>
<script type="text/javascript" src="/jquery.js"></script>
<script type="text/javascript" src="/inspector.js"></script>
<script type="text/javascript">
//<!--
var inspector = new Inspector();
...
//-->
</script>
...
The
Inspector
object has methods that correspond to the commands that can be sent over
the command channel. The available methods are listed in Table 3.1, “Methods in inspect-
or.js” (page 19). When using these methods, you pass the same arguments as when using
the "raw" command channel commands, as described in Appendix B, “
The Inspector object returns the (parsed) command response through a callback function.
To use the response, you define a function that takes a single argument – the response object
– and pass that function as an argument to the Inspector's method. In the function you can
17
©SICK AG • Identification & Measuring • www.sick.com • All rights reserved
Subject to change without notice
8015726/ZPP7/2018-
09
Interfaces
Web interface
Reference Manual
Inspector PIM
Содержание Inspector PIM60
Страница 1: ...Inspector PIM60 ver 2 0 Vision sensor REFERENCE MANUAL...
Страница 5: ...Introduction...
Страница 7: ...Interfaces...
Страница 38: ...Appendix...
Страница 83: ......