# plugin **Repository Path**: baymin_gitee/plugin ## Basic Information - **Project Name**: plugin - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-05 - **Last Updated**: 2023-12-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 插件 操作使用说明 > 插件测试后,如果有问题需要把D:\Log目录打包给开发,里面默认记录插件的所有信息 > 插件统一返回类型 ```csharp public class PluginResult { /// /// 返回状态 /// public Status Status { get; set; } = Status.Continue; /// /// 错误信息 /// public string ErrorMsg { get; set; } = ""; } public enum Status { Wait, // 设备需要等待 Stop, // 设备需要停止运行 ReDo, // 需要重新执行 Continue, // 设备可以继续进行 Alarm, // 设备报警,并提醒异常 } ``` ## 插件加载流程图 ![流程](AOI插件调用流程.png) ``` │ AOI插件调用流程.png │ README.md └─说明和测试数据 AoiPcbs.cs tagBadBoard.cs tagBarcodeGetMode.cs tagBarcodeInfo.cs 加载的测试数据.json 条码说明.docx ``` ## 1. 打卡插件管理,并选择需要加载的插件 ### 1.1 打开插件管理 > ![打开插件管理](docs/1.png) ### 1.2 根据插件说明选择对应的插件,并启用该插件 > ![选择插件](docs/2.png) ### 1.3 启用插件后会默认执行初始化,并打开插件自有的参数设置,此处以`立讯`的参数为例 > 设置相应的基础参数 > ![插件参数设置](docs/4.png) ## 2. 选择一笔已经复判的数据 >* 注意了!此处需要选择`repair.json`的数据,文件路径就在设备的Power-Ftp目录下 ## 3. 模拟AOI流程 > AOI流程说明 >* Init, 插件初始化 加载插件的时候执行 >* Start, 开始流程 >* BeforeProductIn, 产品进板前 >* ProductIn, 产品进板 >* AfterProductIn, 产品进板后 >* BeforeProductOut, 产品出板前 >* ProductOut, 产品出板 >* AfterProductOut, 产品出板后 >* Done, 结束流程 >* Setting, 打开插件的设置页面 ![模拟流程](docs/6.png) ![执行完成](docs/7.png) ![执行完成](docs/8.png) ## 4. 重复模拟流程 > 可以多次模拟流程。只需要再次打开插件设置,更改一个大板号等,关闭窗口,返回首页继续模拟即可