<< 点击显示目录 >> 主页
mappVision帮助助手 > 机器视觉帮助 > mapp Vision > 编程 > 库 > 核心库 > ViBase > 功能块 功能块 ViBaseSaveDiagData |
摄像机图像评估功能的诊断数据集可通过功能块 ViBaseSaveDiagData 保存到 PLC 中。存储位置由用户指定。
保存的诊断数据集和 AS 项目必须提交给 B&R 技术支持部门进行分析。
信息:
在此功能块工作期间,不允许对摄像机执行任何其他操作。
可选参数
I/O |
名称 |
数据类型 |
说明 |
---|---|---|---|
输入 |
MpLink |
指向ViComponentType的指针 |
用于存储诊断数据的视觉组件指针。 |
IN |
执行 |
BOOL |
在该输入的上升沿开始执行功能块。 |
输入 |
设备名称 |
指向 STRING[50] 的指针 |
设备名称指针。指向 AS 或功能块 DevLink 中创建的现有文件设备(如 "HD0")的名称。 |
输入 |
文件名 |
指向 STRING[255] 的指针 |
文件名指针。文件名由路径和文件名组成(如 "dir1/package1.tar.gz")。路径指定指的是指定的文件设备。 如果没有指定文件名,则使用 <Nettime>.tar.gz。 |
输出 |
完成 |
BOOL |
执行成功。功能块执行完毕。 |
出 |
忙 |
BOOL |
功能块处于活动状态,必须继续调用。 |
出错 |
错误 |
BOOL |
执行过程中出错。 |
输出 |
状态 ID |
DINT |
状态信息 |
表功能块 ViBaseSaveDiagData 的输入和输出
数据类型为 ViComponentType 的变量为内部变量。在创建视觉组件时,将自动创建一个相关的 "ViComponentType "变量。可以通过视觉组件的名称来引用该变量。
•功能说明
•状态编号
A diagnostic data set for the image evaluation function of a camera can be saved to the PLC with function block ViBaseSaveDiagData. The storage location is specified by the user.
The saved diagnostics data set and Automation Studio project must be submitted to B&R Support for analysis.
Information:
No other actions are permitted to be performed on the camera while this function block is working.
Optional parameters
I/O |
Name |
Data type |
Description |
---|---|---|---|
IN |
MpLink |
Pointer to ViComponentType |
Pointer to the vision component from which diagnostic data should be stored. |
IN |
Execute |
BOOL |
Execution of the function block begins on a rising edge of this input. |
IN |
DeviceName |
Pointer to STRING[50] |
Pointer to the device name. Points to the name of an existing file device (e.g. "HD0") that was created in AS or with function block DevLink. |
IN |
FileName |
Pointer to STRING[255] |
Pointer to the filename. The filename consists of the path and filename (e.g. "dir1\package1.tar.gz"). The path specification refers to the specified file device. If no name is specified, <Nettime>.tar.gz is used. |
OUT |
Done |
BOOL |
Execution successful. The function block is finished. |
OUT |
Busy |
BOOL |
The function block is active and must continue to be called. |
OUT |
Error |
BOOL |
Error during execution. |
OUT |
StatusID |
DINT |
Status information |
Table: Inputs and outputs of function block ViBaseSaveDiagData
Variables of data type ViComponentType are internal variables. During the creation of a vision component, an associated "ViComponentType" variable will be automatically created. This can be referenced by the name of the vision component.