Example URLs
http://192.168.1.110/LockLog
http://192.168.1.110/LockLog?Unlock
Retrieve a logged image without overlay graphics:
http://192.168.1.110/LogImage.jpg?00
Retrieve a logged image with overlay graphics:
http://192.168.1.110/LogImage.jpg?00&ShowOverlay
Retrieve a logged image with simplified overlay graphics:
http://192.168.1.110/LogImage.jpg?00&SimplifiedOverlay
3.2.5
Statistics
To retrieve statistics using the command channel, execute the following command:
gSTAT
Statistics can also be retrieved using the URL:
http://<IP-address>/CmdChannel?gSTAT
The response is
rgSTAT 0
followed by an XML formatted string. To read the response in an
web browser, change the view in the web browser to reflect the source code.
Note
The statistic response is only for the active reference object.
3.3
Control the sensor via Web API
The Web API supports using the command channel for reading and updating parts of the
device configuration.
The Web API also supports the functionality to do a backup of the device configuration to a
file and to restore the configuration again. This is a convenient way to handle configurations
without installing and using
SOPAS Engineering Tool (ET)
.
3.3.1
Basic principles
The command channel has a set of basic principles:
• Only one command at a time can be executed.
• Inspector PIM60 responds to each command with a response that includes the result of
the command as well as error codes.
• A specific task to control the Inspector PIM60 includes the command together with its
parameters, see list of command types and parameters in Appendix B, “
• Writing a parameter can typically only be done when the device is in Edit mode. Reading
a parameter can be done in both Edit and Run mode.
• It is possible to block configuration changes by deselecting
Allow changes via Web Server
in
the
Web Server
tab in the dialog
Interfaces and I/O Settings
in
InspectorPIM60
menu.
3.3.2
Command syntax
The Web API command channel has the following syntax:
http://<IP-address>/CmdChannel?<command>_<identifier>_<argument
1>_<argument 2>..._<argument N>
The
ACK
message has the following syntax:
<ACK Command> <identifier> <errorCode> <returnValue1> <returnValue2> ...
<returnValueN> <errorMessage>
The command is sent as an ASCII string. The combination of a command with its parameters
will either change the device configuration or fetch information from the device. For more
15
©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: ......