EasyManua.ls Logo

SICK Inspector PIM60 User Manual

SICK Inspector PIM60
82 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #19 background imageLoading...
Page #19 background image
Table 3.1 Methods in inspector.js
Response attributesCorresponding com-
mand
Method
protocolVersiongVERgetVersion(callback)
modegMODgetMode(callback)
values[0]sMODsetMode(mode, callback)
identifier
values[0 ... n]
gINTgetInt(identifier, arg1, ..., argn, callback)
identifier
values[0 ... n]
sINTsetInt(identifier, arg1, ..., argn, callback)
identifier
value
gSTRgetString(identifier, arg1, ..., argn, callback)
identifieraACTperformAction(identifier, args, callback)
-TRIGtrig(callback)
resultStringgRESgetResult(callback)
-/LockLoglockLog(callback)
-/LockLog?UnlockunlockLog(callback)
The result string returned by the getResult() method is the same string that is output over
Ethernet, and which is defined in the Ethernet Results Output dialog.
Note
Do not make another call to the Inspector before the current call has returned a response.
If you do, the current command will be interrupted and will not return any response at all,
making it difficult to figure out whether or not the command was performed on the Inspector.
Normally, this is not a problem, but if you are using timed triggers, you should make sure
that the triggered functions don't interrupt any commands that may currently be performed
on the Inspector.
3.4.1 Example: Display live image
To display the current live image, simply include the image from /LiveImage.jpg on your
web page:
...
<image src="/LiveImage.jpg"/>
..
This image will not update automatically, so you could add some JavaScript that makes the
live image refresh with a certain interval.
...
<script type="text/javascript">
//<!--
function refreshLiveImage() {
var image = document.getElementById("liveImage");
image.src = "/LiveImage.jpg?ShowOverlay" + (new Date()).getTime() );
// The (new Date()...) is a trick to make the browser
// retrieve the image from the Inspector and not from cache
setTimeout(refreshLiveImage, 500);
};
19
©SICK AG Advanced Industrial Sensors www.sick.com All rights reserved
Subject to change without notice
8015726/2013-11
Interfaces
Web interface
Reference Manual
Inspector PIM

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the SICK Inspector PIM60 and is the answer not in the manual?

SICK Inspector PIM60 Specifications

General IconGeneral
BrandSICK
ModelInspector PIM60
CategoryAccessories
LanguageEnglish

Summary

WARNING

VSPM-6F2113 (Inspector PIM60), VSPM-6B2113 (Inspector PIM60 Base)

Inspector has LED illumination, Risk Group 1 (low risk) per IEC 62471:2006.

VSPM-6F2313 (Inspector PIM60-LUT)

Inspector has LED illumination, Risk Group 1 (low risk) per IEC 62471:2006.

VSPM-6F2413 (Inspector PIM60-IR), VSPM-6B2413 (Inspector PIM60-IR Base)

Inspector has LED illumination, Risk Group 0/Free Group (exempt risk) per IEC 62471:2006.

2 I/O Extension Box

2.2 IP Address Configuration

Configuring the IP address for the I/O extension box for Inspector operation.

2.3 SOPAS Single Device Setup

Setting up the I/O extension box within the SOPAS Single Device application.

2.5 Troubleshooting

Covers common issues like LED flashing, loss of contact, and unanswered requests.

3 Web Interface

3.2 Get Results via Web API

Retrieving live images, detailed results, logged images, and statistics using the Web API.

3.3 Control Sensor via Web API

Managing device configuration, backup, and restore using the Web API command channel.

4 Ethernet Raw

4.2 Get Results via Ethernet Raw

Configuring TCP/UDP, ASCII/binary output, attributes, and example formatting strings.

4.3 Control Sensor via Ethernet Raw

Setting up image triggering, command syntax, reference object selection, and single port solution.

5 EtherNet/IP

Appendix B Command Channel

Appendix C Restore Configuration over Web API

Related product manuals