A
Result output formatting
A.1
XML based formatting
The formatting of the result string is defined by a formatting string written in XML. It is possible
to mix XML tags and free text in the formatting string. The text parts will appear as is in the
result string, whereas the XML tags will be replaced by the appropriate values. All white
spaces in the formatting strings are ignored. In order to include whitespace in the result string
use the tags <SPACE/>, <TAB/> and <NEWLINE/>.
The tags are either container tags or value tags. The container tags do not generate any text
on their own. It is the value tags inside the container tags that generate the text. The following
container tags are valid in the Inspector PIM60:
Explanation
Container tag
Used to present values concerning the
Object locator
OBJECT_LOC
Used to present values for a found blob in a blob ROI. The index
points out the found blob in accordance with the blob sorting
order. If no index is given this is the same as index = 0.
BLOB
Used to present values concerning inspections.
PIXEL_COUNTER, PATTERN,
EDGE_PIXEL_COUNTER
Used to present values concerning a defined
Polygon
POLYGON
Container tag within the <POLYGON> tag for presenting values
concerning the polygon corners. See example:
CORNERS
<POLYGON>
<CORNERS>
<X/>,<Y/>
</CORNERS>
</POLYGON>
The XML based formatting string is entered in the
Formatting string for Ethernet Output
part of
the
Ethernet Result Output
dialog. To get a default string for the current chosen reference object
click
Create default formatting string
. Click
Validate output string
to validate the formatting string.
The output that will be sent over Ethernet or errors are reported in the
Current output string
part
of the
Ethernet Result Output
dialog.
Note
When using binary transfer, the
Validate output string
button will only show how many bytes
that will be sent for the current analyzed image and whether the formatting was correct or
not.
The maximum size of the XML buffer is 7900 ASCII characters. This means it will not be
possible to e.g. paste an XML string into to the input field if it's too large. For a larger config-
uration it might not be possible to configure as much output information as wanted due to
this limitation.
A.2
XML formatting
The content of the Ethernet output is configured using an XML-based formatting string. The
available tags can be categorized into two groups:
• container tags: <OBJECT_LOC>, <POLYGON>, <BLOB>, ...
• value tags: <X/>, <PIXELS/>, <NEWLINE/>, <TIME/>,...
39
©SICK AG • Identification & Measuring • www.sick.com • All rights reserved
Subject to change without notice
8015726/ZPP7/2018-
09
Appendix
Result output formatting
Reference Manual
Inspector PIM
Содержание Inspector PIM60
Страница 1: ...Inspector PIM60 ver 2 0 Vision sensor REFERENCE MANUAL...
Страница 5: ...Introduction...
Страница 7: ...Interfaces...
Страница 38: ...Appendix...
Страница 83: ......