|
|
@@ -188,7 +188,7 @@ namespace TeamAAS_VP.Models.PLC
|
|
|
get { return _FixedCameracheckStatus; }
|
|
|
set { SetProperty(ref _FixedCameracheckStatus, value); }
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
private PlcAddress _Out_CameraDone = new PlcAddress();
|
|
|
/// <summary>
|
|
|
/// 相机坐标拟合完成
|
|
|
@@ -209,6 +209,15 @@ namespace TeamAAS_VP.Models.PLC
|
|
|
set { SetProperty(ref _MesStatus, value); }
|
|
|
}
|
|
|
|
|
|
+ private PlcAddress _QrCodePhotoResault = new PlcAddress();
|
|
|
+ /// <summary>
|
|
|
+ /// pc发送二维码拍照点位成功后 =1 失败=2 未执行=0
|
|
|
+ /// </summary>
|
|
|
+ public PlcAddress Out_QrCodePhotoResault
|
|
|
+ {
|
|
|
+ get { return _QrCodePhotoResault; }
|
|
|
+ set { SetProperty(ref _QrCodePhotoResault, value); }
|
|
|
+ }
|
|
|
private PlcPointAddress _PickCamera = new PlcPointAddress();
|
|
|
/// <summary>
|
|
|
/// 取料拍照点位参数
|
|
|
@@ -279,6 +288,16 @@ namespace TeamAAS_VP.Models.PLC
|
|
|
set { SetProperty(ref _Out_ScrewTeachNum, value); }
|
|
|
}
|
|
|
|
|
|
+ private PlcPointAddress _QrCodeCamera = new PlcPointAddress();
|
|
|
+ /// <summary>
|
|
|
+ /// 二维码拍照点位参数
|
|
|
+ /// </summary>
|
|
|
+ public PlcPointAddress Out_QrCodeCamera
|
|
|
+ {
|
|
|
+ get { return _QrCodeCamera; }
|
|
|
+ set { SetProperty(ref _QrCodeCamera, value); }
|
|
|
+ }
|
|
|
+
|
|
|
private PlcAddress _Out_ScrewTeachOk;
|
|
|
/// <summary>
|
|
|
/// 下相机矫正披头的结果,1:OK,2:NG
|
|
|
@@ -416,6 +435,15 @@ namespace TeamAAS_VP.Models.PLC
|
|
|
set { SetProperty(ref _In_Code, value); }
|
|
|
}
|
|
|
|
|
|
+ private PlcAddress _Cam_code_mode;
|
|
|
+
|
|
|
+ public PlcAddress Cam_code_mode
|
|
|
+ {
|
|
|
+ get { return _Cam_code_mode; }
|
|
|
+ set { SetProperty(ref _Cam_code_mode, value); }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
private PlcAddress _In_MesCheck = new PlcAddress();
|
|
|
/// <summary>
|
|
|
/// Mes交互 =1 获取过站信息当站是否生产,=2 上传本站数据
|
|
|
@@ -576,6 +604,16 @@ namespace TeamAAS_VP.Models.PLC
|
|
|
set { SetProperty(ref _In_FixedCameracheckExe, value); }
|
|
|
}
|
|
|
|
|
|
+ private PlcAddress _In_QrCodePhotoRequest = new PlcAddress();
|
|
|
+ /// <summary>
|
|
|
+ /// 二维码拍照请求
|
|
|
+ /// </summary>
|
|
|
+ public PlcAddress In_QrCodePhotoRequest
|
|
|
+ {
|
|
|
+ get { return _In_QrCodePhotoRequest; }
|
|
|
+ set { SetProperty(ref _In_QrCodePhotoRequest, value); }
|
|
|
+ }
|
|
|
+
|
|
|
private PlcAddress _In_ProductNum = new PlcAddress();
|
|
|
/// <summary>
|
|
|
/// 正在锁附/组装编号
|
|
|
@@ -773,6 +811,11 @@ namespace TeamAAS_VP.Models.PLC
|
|
|
Out_MesStatus.DataType = "int16";
|
|
|
Out_MesStatus.Description = Lang.过站信息1允许工作2本站放行3数据上传完成;
|
|
|
|
|
|
+ Out_QrCodePhotoResault = Ensure(Out_QrCodePhotoResault);
|
|
|
+ Out_QrCodePhotoResault.Address = "ns=4;s=DB_Communication|FromPC.photo_dwon";
|
|
|
+ Out_QrCodePhotoResault.DataType = "int16";
|
|
|
+ Out_QrCodePhotoResault.Description = "pc发送二维码拍照点位 1=成功 2=失败";
|
|
|
+
|
|
|
Check_ScrewTorque = Ensure(Check_ScrewTorque);
|
|
|
Check_ScrewTorque.Address = "ns=4;s=DB_DriveControl|ScrewCtrl[1].Cmd.ManuStart";
|
|
|
Check_ScrewTorque.DataType = "Bool";
|
|
|
@@ -951,6 +994,25 @@ namespace TeamAAS_VP.Models.PLC
|
|
|
Out_CheckCamera.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].Feeder";
|
|
|
Out_CheckCamera.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].ScrewProNum";
|
|
|
|
|
|
+ // Out_QrCodeCamera(二维码拍照点位)初始化并赋地址
|
|
|
+ Out_QrCodeCamera = EnsurePoint(Out_QrCodeCamera);
|
|
|
+ Out_QrCodeCamera.Description = Lang.二维码拍照点位参数;
|
|
|
+ Out_QrCodeCamera.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Photo_Positipn[{0}].X_Position";
|
|
|
+ Out_QrCodeCamera.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Photo_Positipn[{0}].X_Velocity";
|
|
|
+ Out_QrCodeCamera.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Photo_Positipn[{0}].Y_Position";
|
|
|
+ Out_QrCodeCamera.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Photo_Positipn[{0}].Y_Velocity";
|
|
|
+ Out_QrCodeCamera.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Photo_Positipn[{0}].Z_Position_Start";
|
|
|
+ Out_QrCodeCamera.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Photo_Positipn[{0}].Z_Velocity_Start";
|
|
|
+ Out_QrCodeCamera.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Photo_Positipn[{0}].Z_Position_Stop";
|
|
|
+ Out_QrCodeCamera.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Photo_Positipn[{0}].Z_Velocity_Stop";
|
|
|
+ Out_QrCodeCamera.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Photo_Positipn[{0}].U_Position";
|
|
|
+ Out_QrCodeCamera.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Photo_Positipn[{0}].U_Velocity";
|
|
|
+ Out_QrCodeCamera.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Photo_Positipn[{0}].R_Position";
|
|
|
+ Out_QrCodeCamera.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Photo_Positipn[{0}].R_Velocity";
|
|
|
+ Out_QrCodeCamera.Torque.Address = "ns=4;s=DB_Communication|FromPC.Photo_Positipn[{0}].Torque";
|
|
|
+ Out_QrCodeCamera.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Photo_Positipn[{0}].Feeder";
|
|
|
+ Out_QrCodeCamera.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Photo_Positipn[{0}].ScrewProNum";
|
|
|
+
|
|
|
Out_ScrewTeachNum = Ensure(Out_ScrewTeachNum);
|
|
|
Out_ScrewTeachNum.Address = "ns=4;s=DB_Communication|FromPC.ScrewTeachNum";
|
|
|
Out_ScrewTeachNum.DataType = "int16";
|
|
|
@@ -1053,6 +1115,11 @@ namespace TeamAAS_VP.Models.PLC
|
|
|
In_FixedCameracheckExe.DataType = "int16";
|
|
|
In_FixedCameracheckExe.Description = Lang.固定相机检测拍照触发;
|
|
|
|
|
|
+ In_QrCodePhotoRequest = Ensure(In_QrCodePhotoRequest);
|
|
|
+ In_QrCodePhotoRequest.Address = "ns=4;s=DB_Communication|ToPC.photo_request";
|
|
|
+ In_QrCodePhotoRequest.DataType = "int16";
|
|
|
+ In_QrCodePhotoRequest.Description = Lang.二维码拍照请求;
|
|
|
+
|
|
|
In_ProductNum = Ensure(In_ProductNum);
|
|
|
In_ProductNum.Address = "ns=4;s=DB_Communication|ToPC.ProductNum";
|
|
|
In_ProductNum.DataType = "int16";
|
|
|
@@ -1088,6 +1155,13 @@ namespace TeamAAS_VP.Models.PLC
|
|
|
In_PickINC.DataType = "int16";
|
|
|
In_PickINC.Description = Lang.取一颗螺丝触发信号;
|
|
|
|
|
|
+ //ns=4;s=DB_HMI|Cam_code_mode 读取plc模式 0普通读取plc寄存器的二维码询问mes 1由上位机拍照获取二维码上传mes
|
|
|
+
|
|
|
+ Cam_code_mode = Ensure(Cam_code_mode);
|
|
|
+ Cam_code_mode.Address = "ns=4;s=DB_HMI|Cam_code_mode";
|
|
|
+ Cam_code_mode.DataType = "Bool";
|
|
|
+ Cam_code_mode.Description = "PLC二维码读取模式";
|
|
|
+
|
|
|
// 说明:若项目中 PlcAddress 的实际属性名或类型与此不同(例如使用枚举、不同字段名),
|
|
|
// 请根据实际类型调整赋值。本方法主要提供合理的默认字符串地址、数据类型及描述,便于后续从配置覆盖。
|
|
|
}
|