<< 点击显示目录 >> 主页 mappVision帮助助手 > 机器视觉帮助 > mapp Vision > 编程 > 视觉功能 > 像素计数器 > 像素计数器数据(循环读取) |
本节指定的参数是硬件模块 I/O 映射的一部分,可通过 AS 软件访问。
UINT |
0 至 65535 |
错误类别寄存器 |
R |
|
|
BOOL |
0 或 1 |
图像处理执行状态 |
R |
|
|
USINT |
0 至 255 |
找到的结果数 |
R |
|
|
UINT |
0 至 65535 |
视觉函数的处理时间(微秒 |
R |
|
|
USINT |
0 至 255 |
找到的结果的型号 |
R |
|
|
UDINT |
0 至 4294967295 |
模型中配置对应的像素数 |
R |
|
|
USINT |
0 至 255 |
结果中的最低灰度值 |
R |
|
|
USINT |
0 至 255 |
结果中的最高灰度值 |
R |
|
|
UINT |
0 至 2550 |
结果灰度值的算术平均值 |
R |
|
|
UINT |
0 至 2550 |
结果灰度值的标准偏差 |
R |
|
|
USINT |
0 至 255 |
结果灰度值的中值 |
R |
|
|
UDINT |
0 至 4294967295 |
模型的大小(面积),以像素为单位 |
R |
|
|
UINT |
0 至 65535 |
结果中不连续区域的数量 |
R |
|
|
DINT |
-2622400 至 2622400 |
图像中的 X 位置(中心点),增量为 1/100 像素 |
R |
|
|
数字 |
-2622400 至 2622400 |
图像中的 Y 位置(中心点),增量为 1/100 像素 |
R |
|
值 |
信息 |
|
---|---|---|
UINT |
0x0001 |
vision_os_error:保留,当前未设置 |
0x0002 |
VISION_OS_xxx:保留,当前未设置 |
|
0x0004 |
vision_runtime_error:VisionServiceManager 发生异常。 |
|
0x0008 |
VISION_LIBRARY_ERROR:Vision 函数返回的 ErrorID < 10000。 |
|
0x0010 |
VISION_FUNCTION_ERROR:Vision 函数正在返回 ErrorID > 10000。 |
|
0x0020 |
VISION_FILE_ERROR:保存当前图像出错 |
|
0x0040 |
INVALID_VISION_FUNCTION:视觉函数出现异常 |
|
0x0080 至 0x8000 |
当前未使用 |
信息:
带有错误 ID 的错误信息将在 AS 软件日志记录器 "Vision "下输出。
信息:
通常情况下,每个型号有一个结果。但是,如果 NumSearchMax 小于模型数,则会按升序对模型名称进行排序,并使用前 X 个模型(X= NumSearchMax 的值)进行评估。
该参数指定视觉功能的处理时间,因此与处理器忙于图像处理的时间相对应。
找到的结果的型号。根据参数NumResults 的计算值,该参数(指数为 01、02 等)会出现 n 次。参数 ModelNumber 在 I/O 映射中引入了一个新的参数块,并带有相应的索引 (n)。
模型中与配置相对应的像素数。位于 "模型 ROI "范围内且符合灰度值配置范围标准的所有像素都会被计算到每个模型中。
以像素为单位的模型大小(区域),即 "模型 ROI "的像素数。如果结果中计算了 ROI 中的所有像素,则该值与 NumPixels 相同。
根据图像内容的不同,结果中的像素可能与 8 个相连的像素邻域不连续,因此可能被视为结果中的独立区域。
值 |
信息 |
|
---|---|---|
数据 |
-2622400 至 2622400 |
以 1/100 像素为增量的 X 位置。因此可以选择 -26224.00 至 26223.99 像素的位置。 2622400 = 超出范围 |
信息:
根据参数 NumSearchMax 的计算值,该参数(索引 01、02 等)会出现 n 次。
值 |
信息 |
|
---|---|---|
数据 |
-2622400 至 2622400 |
以 1/100 像素为增量的 Y 位置。因此可以选择 -26224.00 至 26223.99 像素的位置。 2622400 = 超出范围 |
信息:
根据参数 NumSearchMax 的计算值,该参数(索引 01、02 等)会出现 n 次。
The parameters specified in this section are part of the I/O mapping of the hardware module that can be accessed via Automation Studio.
UINT |
0 to 65535 |
Register of error classes |
R |
|
|
BOOL |
0 or 1 |
Status of image processing execution |
R |
|
|
USINT |
0 to 255 |
Number of results found |
R |
|
|
UINT |
0 to 65535 |
Processing time of the vision function in microseconds |
R |
|
|
USINT |
0 to 255 |
Model number of the result found |
R |
|
|
UDINT |
0 to 4294967295 |
Number of pixels that correspond to the configuration in the model |
R |
|
|
USINT |
0 to 255 |
Lowest grayscale value in the result |
R |
|
|
USINT |
0 to 255 |
Highest grayscale value in the result |
R |
|
|
UINT |
0 to 2550 |
Arithmetic mean value of the grayscale values of the result |
R |
|
|
UINT |
0 to 2550 |
Standard deviation of the grayscale values of the result |
R |
|
|
USINT |
0 to 255 |
Median of the grayscale values of the result |
R |
|
|
UDINT |
0 to 4294967295 |
Size (area) of the model in pixels |
R |
|
|
UINT |
0 to 65535 |
Number of non-contiguous areas of the result |
R |
|
|
DINT |
-2622400 to 2622400 |
X-position (center point) in the image in increments of 1/100 pixel |
R |
|
|
DINT |
-2622400 to 2622400 |
Y-position (center point) in the image in increments of 1/100 pixel |
R |
|
Values |
Information |
|
---|---|---|
UINT |
0x0001 |
VISION_OS_ERROR: Reserved, currently not set |
0x0002 |
VISION_OS_xxx: Reserved, currently not set |
|
0x0004 |
VISION_RUNTIME_ERROR: An exception has occurred in VisionServiceManager. |
|
0x0008 |
VISION_LIBRARY_ERROR: The vision function is returning an ErrorID < 10000. |
|
0x0010 |
VISION_FUNCTION_ERROR: The vision function is returning an ErrorID > 10000. |
|
0x0020 |
VISION_FILE_ERROR: Error saving the current image |
|
0x0040 |
INVALID_VISION_FUNCTION: Exception by the vision function |
|
0x0080 to 0x8000 |
Currently not in use |
Information:
Error messages with an error ID are output in the Automation Studio Logger under "Vision".
The status bit indicates whether image processing is currently being performed or not.
Number of results found. The value then corresponds to the maximum value of counter variable n.
Information:
Normally, there is one result per model. If NumSearchMax is less than the number of models, however, the model names are sorted in ascending order and the first X models (X= value of NumSearchMax) are used for evaluation.
This parameter specifies the processing time for the vision function, and thus corresponds to the time in which the processor is busy for image processing.
Values |
Information |
|
---|---|---|
UINT |
0 to 65535 |
Value for a processing time of 1 ms to 65.5 s in 1 ms steps. |
Model number of the result found. Depending on the calculated value of parameter NumResults , this parameter (with indices 01, 02, etc.) occurs n times. Parameter ModelNumber introduces a new block of parameters in the I/O mapping with the corresponding index (n).
Number of pixels that correspond to the configuration in the model. All pixels that are located within the "Model ROI" and also meet the criteria of the configured range of grayscale values are counted per model.
Values |
Information |
|
---|---|---|
UDINT |
0 to 4294967295 |
Number of pixels that correspond to the configuration in the model. With a value of 0, the grayscale values of the other results have no significance. |
Lowest grayscale value in the result.
Highest grayscale value in the result.
Arithmetic mean value of the grayscale values of all the pixels in the result.
Values |
Information |
|
---|---|---|
UINT |
0 to 2550 |
Arithmetic mean value of the grayscale values of the result. |
Standard deviation of the grayscale values of the result.
Values |
Information |
|
---|---|---|
UINT |
0 to 2550 |
Standard deviation of the grayscale values of the result. |
Median of the grayscale values of all pixels of the result.
Size (area) of the model in pixels, i.e. the number of pixels of the "Model ROI". If all pixels in the ROI are counted for the result, the value is the same as for NumPixels.
Number of non-contiguous areas of the result.
Depending on the image content, the pixels of the result may not be contiguous with regard to 8-connected pixel neighbors and may thus be considered as separate areas of a result.
X-position (of the found object) in the image. Top left = 0
Values |
Information |
|
---|---|---|
DINT |
-2622400 to 2622400 |
X position in increments of 1/100 pixel. A position from -26224.00 to 26223.99 pixels can therefore be selected. 2622400 = Out of range |
Information:
Depending on the calculated value of parameter NumSearchMax, this parameter (with indices 01, 02, etc.) occurs n times.
Y-position (of the found object) in the image. Top left = 0
Values |
Information |
|
---|---|---|
DINT |
-2622400 to 2622400 |
Y position in increments of 1/100 pixel. A position from -26224.00 to 26223.99 pixels can therefore be selected. 2622400 = Out of range |
Information:
Depending on the calculated value of parameter NumSearchMax, this parameter (with indices 01, 02, etc.) occurs n times.