<< 点击显示目录 >> 主页 mappVision帮助助手 > 机器视觉帮助 > mapp Vision > 编程 > 视觉功能 > 测量 > 测量数据(循环读取) |
本节指定的参数是硬件模块 I/O 映射的一部分,可通过 AS 软件访问。
UINT |
0 至 65535 |
错误类别寄存器 |
R |
|
|
BOOL |
0 或 1 |
图像处理执行状态 |
R |
|
|
DINT |
-2,147,483,648 至 2,147,483,647 |
以 1 μs 为单位的净时间 |
R |
|
|
USINT |
0 至 255 |
测量次数 |
R |
|
|
UINT |
0 至 65535 |
视觉功能的处理时间(微秒 |
R |
|
|
DINT |
-2,147,483,648 至 2,147,483,647 |
测量值。根据操作符的不同,可以在数组中返回角度、方向、长度或距离值,或这些值的组合。 |
R |
|
|
USINT |
0 至 255 |
在机器视觉 HMI 应用程序中配置的与结果匹配的 OperationId。 |
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 "下输出。
指定图像采集的净时间(多路采集 > 1 时为第一幅图像的净时间),图像处理结果在此时间内有效。
时间戳也会成为图像文件的名称。
该参数用于指定视觉功能的处理时间,因此与处理器忙于图像处理的时间相对应。
测量值。根据操作符的不同,可返回角度、方向、长度或距离值,或以数组形式返回这些值的组合。
信息:
如果运算符角度应用于无效模型(例如圆和圆心模型),则返回值为-999。
信息:
从 mapp Vision 5.21 版开始,如果在当前图像中无法检测到任何模型,Result(n) 不再返回错误信息。
信息:
根据参数 NumSearchMax 的计算值,该参数(指数为 01、02 等)会出现 n 次。
该参数输出与结果匹配的 OperationId,该 OperationId 由用户配置(在机器视觉 HMI 应用程序中)。
信息:
如果配置了该参数,结果的处理方式将发生变化,部分结果也会输出。因此,不一定要找到所有操作才能得到结果。
例如,如果已教授的四个测量操作中只有三个可以测量,那么现在就可以只输出这些部分结果。
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 |
|
|
DINT |
-2,147,483,648 to 2,147,483,647 |
NetTime in 1 μs steps |
R |
|
|
USINT |
0 to 255 |
Number of measurements |
R |
|
|
UINT |
0 to 65535 |
Processing time of the vision function in microseconds |
R |
|
|
DINT |
-2,147,483,648 to 2,147,483,647 |
Measurement values. Depending on the operator, it is possible to return angle, orientation, length or distance values, or a combination of any of these in an array. |
R |
|
|
USINT |
0 to 255 |
OperationId configured in machine vision HMI application that matches the result. |
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.
Specifies the NetTime of the image acquisition (with MultiCapture > 1 that of the first image) for which the results of the image processing are valid.
The timestamp also becomes the name of the image file.
Values |
Information |
|
---|---|---|
DINT |
-2,147,483,648 to 2,147,483,647 |
NetTime timestamp from 1 µs to 4294 s in increments of 1 µs (absolute NetTime). |
Number of measurements. The value then corresponds to the maximum value of counter variable n.
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. |
Measurement values. Depending on the operator, it is possible to return angle, orientation, length or distance values, or a combination of any of these in an array.
Information:
If the operator angle is applied to an invalid model (e.g. a circle and a center model), the value -999 is returned.
Information:
Starting with mapp Vision 5.21, Result(n) no longer returns an error if no models can be detected in the current image.
Information:
Depending on the calculated value of parameter NumSearchMax, this parameter (with indices 01, 02, etc.) occurs n times.
This parameter outputs the OperationId that matches the result and was configured by the user (in the machine vision HMI application).
Information:
If this parameter is configured, the handling of the results is changed and partial results are also output. All operations therefore do not have to be found to get results.
If only three of the four measurement operations that have been taught can be measured, for example, it is now possible to output just these partial results.