End of container for polygon
Result of validating output string with a Polygon
The result of validating the example formatting output string with output format ASCII will be
as follows:
Polygon_1
Corners: 4
(X,Y): (329.15,235.70)
(X,Y): (371.31,235.60)
(X,Y): (372.58,314.97)
(X,Y): (329.82,315.22)
The result of validating the example formatting output string for a polygon with output format
binary will be as follows:
Binary output OK. Number of bytes: 39
Example of a JSON formatted string
It is possible to get an example string in JSON
1
format. This is typically used in conjugation
with web based HMIs for easier result extraction.
{"MESSAGE": {
"IMAGE_NUMBER":"<IMAGE_NUMBER/>",<SPACE/>
"Pixel_counter_1": {<PIXEL_COUNTER name="Pixel counter 1">
"DECISION":"<DECISION/>",<SPACE/>
"PIXELS":"<PIXELS/>"
</PIXEL_COUNTER>
}}}
{"MESSAGE":{"IMAGE_NUMBER":"2975780", "Pixel_counter_1":{"DECISION":"1", "PIXELS":"5433"}}}
4.3
Control the sensor via Ethernet Raw
The Inspector has a command channel accessible via the Ethernet Raw interface. The com-
mand channel makes it possible to read and write a defined set of configuration parameters,
and to trigger image acquisition, via UDP or TCP. This section describes how to setup image
triggering and command channel settings in
SOPAS Engineering Tool (ET)
, as well as the syntax
of the command channel.
4.3.1
Basic principles
The command channel has a set of basic principles:
• Only one command at a time can be executed.
• Each command is followed by a return message (ACK) that includes 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 the setting
Allow changes via
EthernetRaw
in the
EthernetRaw
tab in the dialog
InterfacesandI/OSettings
in the
InspectorPIM60
menu.
4.3.2
Command syntax
The commands have the following syntax:
1
JSON (JavaScript Object Notation) in accordance with RFC 4627
8015726/ZPP7/2018-
09
©SICK AG • Identification & Measuring • www.sick.com • All rights reserved
Subject to change without notice
26
Reference Manual
Ethernet Raw
Interfaces
Inspector PIM
Содержание Inspector PIM60
Страница 1: ...Inspector PIM60 ver 2 0 Vision sensor REFERENCE MANUAL...
Страница 5: ...Introduction...
Страница 7: ...Interfaces...
Страница 38: ...Appendix...
Страница 83: ......