| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402 |
- using Prism.Mvvm;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using TeamAAS_VP.Models.PLC;
- namespace TeamAAS_VP.Models.PLC
- {
- public class PlcAddressConfig : BindableBase
- {
- #region 写入到PLC的地址
- private int _PlcNo;
- public int PlcNo
- {
- get { return _PlcNo; }
- set { SetProperty(ref _PlcNo, value); }
- }
- private PlcAddress _Out_ProductLoadMode;
- /// <summary>
- /// 产品切换类型
- /// </summary>
- public PlcAddress Out_ProductLoadMode
- {
- get { return _Out_ProductLoadMode; }
- set { SetProperty(ref _Out_ProductLoadMode, value); }
- }
- private PlcAddress _Out_WorkMode = new PlcAddress();
- /// <summary>
- /// 工作模式 =1 拍1打1 =2 拍1打所有
- /// </summary>
- public PlcAddress Out_WorkMode
- {
- get { return _Out_WorkMode; }
- set { SetProperty(ref _Out_WorkMode, 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 _QrCodeCamera = new PlcPointAddress();
- /// <summary>
- /// 二维码拍照点位参数
- /// </summary>
- public PlcPointAddress Out_QrCodeCamera
- {
- get { return _QrCodeCamera; }
- set { SetProperty(ref _QrCodeCamera, value); }
- }
- private PlcAddress _PickPointNum = new PlcAddress();
- /// <summary>
- /// 取料位置 =0 不需要取料 =1 需要取料
- /// </summary>
- public PlcAddress Out_PickPointNum
- {
- get { return _PickPointNum; }
- set { SetProperty(ref _PickPointNum, value); }
- }
- private PlcAddress _DowmCameraNum = new PlcAddress();
- /// <summary>
- /// 下相机拍照次数=0 无
- /// </summary>
- public PlcAddress Out_DowmCameraNum
- {
- get => _DowmCameraNum;
- set => SetProperty(ref _DowmCameraNum, value);
- }
- private PlcAddress _UpCameraPickNum = new PlcAddress();
- /// <summary>
- /// 上相机取料拍照次数=0 无
- /// </summary>
- public PlcAddress Out_UpCameraPickNum
- {
- get => _UpCameraPickNum;
- set => SetProperty(ref _UpCameraPickNum, value);
- }
- private PlcAddress _UpCameraPutNum = new PlcAddress();
- /// <summary>
- /// 上相机放料拍照次数=0 无
- /// </summary>
- public PlcAddress Out_UpCameraPutNum
- {
- get => _UpCameraPutNum;
- set => SetProperty(ref _UpCameraPutNum, value);
- }
- private PlcAddress _UPCameracheckNum = new PlcAddress();
- /// <summary>
- /// 上相机锁附/组装次数=0 无
- /// </summary>
- public PlcAddress Out_UPCameracheckNum
- {
- get => _UPCameracheckNum;
- set => SetProperty(ref _UPCameracheckNum, value);
- }
- private PlcAddress _FixedCameraPickNum = new PlcAddress();
- /// <summary>
- /// 取料固定位置拍产品相机数量 =0 无
- /// </summary>
- public PlcAddress Out_FixedCameraPickNum
- {
- get => _FixedCameraPickNum;
- set => SetProperty(ref _FixedCameraPickNum, value);
- }
- private PlcAddress _FixedCameraPutNum = new PlcAddress();
- /// <summary>
- /// 锁附/组装固定位置拍产品相机数量 =0 无
- /// </summary>
- public PlcAddress Out_FixedCameraPutNum
- {
- get => _FixedCameraPutNum;
- set => SetProperty(ref _FixedCameraPutNum, value);
- }
- private PlcAddress _FixedCameracheckNum = new PlcAddress();
- /// <summary>
- /// 固定相机检测锁附/组装次数=0 无
- /// </summary>
- public PlcAddress Out_FixedCameracheckNum
- {
- get => _FixedCameracheckNum;
- set => SetProperty(ref _FixedCameracheckNum, value);
- }
- private PlcAddress _WorkNum = new PlcAddress();
- /// <summary>
- /// 锁附/组装数量
- /// </summary>
- public PlcAddress Out_WorkNum
- {
- get { return _WorkNum; }
- set { SetProperty(ref _WorkNum, value); }
- }
- private PlcAddress _DownCameraStatus = new PlcAddress();
- /// <summary>
- /// 下相机拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK
- /// </summary>
- public PlcAddress Out_DownCameraStatus
- {
- get { return _DownCameraStatus; }
- set { SetProperty(ref _DownCameraStatus, value); }
- }
- private PlcAddress _UpCameraPickStatus = new PlcAddress();
- /// <summary>
- /// 上相机取料拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK
- /// </summary>
- public PlcAddress Out_UpCameraPickStatus
- {
- get { return _UpCameraPickStatus; }
- set { SetProperty(ref _UpCameraPickStatus, value); }
- }
- private PlcAddress _UpCameraPutStatus = new PlcAddress();
- /// <summary>
- /// 上相机锁附/组装拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK
- /// </summary>
- public PlcAddress Out_UpCameraPutStatus
- {
- get { return _UpCameraPutStatus; }
- set { SetProperty(ref _UpCameraPutStatus, value); }
- }
- private PlcAddress _UPCameracheckStatus = new PlcAddress();
- /// <summary>
- /// 上相机检测拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK
- /// </summary>
- public PlcAddress Out_UPCameracheckStatus
- {
- get { return _UPCameracheckStatus; }
- set { SetProperty(ref _UPCameracheckStatus, value); }
- }
- private PlcAddress _FixedCameraPickStatus = new PlcAddress();
- /// <summary>
- /// 固定相机取料拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK
- /// </summary>
- public PlcAddress Out_FixedCameraPickStatus
- {
- get { return _FixedCameraPickStatus; }
- set { SetProperty(ref _FixedCameraPickStatus, value); }
- }
- private PlcAddress _FixedCameraPutStatus = new PlcAddress();
- /// <summary>
- /// 固定相机锁附/组装拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK
- /// </summary>
- public PlcAddress Out_FixedCameraPutStatus
- {
- get { return _FixedCameraPutStatus; }
- set { SetProperty(ref _FixedCameraPutStatus, value); }
- }
- private PlcAddress _FixedCameracheckStatus = new PlcAddress();
- /// <summary>
- /// 固定相机检测拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK
- /// </summary>
- public PlcAddress Out_FixedCameracheckStatus
- {
- get { return _FixedCameracheckStatus; }
- set { SetProperty(ref _FixedCameracheckStatus, value); }
- }
- private PlcAddress _Out_CameraDone = new PlcAddress();
- /// <summary>
- /// 相机坐标拟合完成
- /// </summary>
- public PlcAddress Out_CameraDone
- {
- get { return _Out_CameraDone; }
- set { SetProperty(ref _Out_CameraDone, value); }
- }
- private PlcAddress _MesStatus = new PlcAddress();
- /// <summary>
- /// 过站信息 =1 允许工作 =2 本站放行 =3 数据上传完成
- /// </summary>
- public PlcAddress Out_MesStatus
- {
- get { return _MesStatus; }
- set { SetProperty(ref _MesStatus, value); }
- }
- private PlcPointAddress _PickCamera = new PlcPointAddress();
- /// <summary>
- /// 取料拍照点位参数
- /// </summary>
- public PlcPointAddress Out_PickCamera
- {
- get { return _PickCamera; }
- set { SetProperty(ref _PickCamera, value); }
- }
- private PlcPointAddress _Pick = new PlcPointAddress();
- /// <summary>
- /// 取料点位参数
- /// </summary>
- public PlcPointAddress Out_Pick
- {
- get { return _Pick; }
- set { SetProperty(ref _Pick, value); }
- }
- private PlcPointAddress _SecPosCamera = new PlcPointAddress();
- /// <summary>
- /// 下相机二次定位点位参数
- /// </summary>
- public PlcPointAddress Out_SecPosCamera
- {
- get { return _SecPosCamera; }
- set { SetProperty(ref _SecPosCamera, value); }
- }
- private PlcPointAddress _ScrewCamera = new PlcPointAddress();
- /// <summary>
- /// 锁附拍照点位参数
- /// </summary>
- public PlcPointAddress Out_ScrewCamera
- {
- get { return _ScrewCamera; }
- set { SetProperty(ref _ScrewCamera, value); }
- }
- private PlcPointAddress _Screw = new PlcPointAddress();
- /// <summary>
- /// 锁附点位参数
- /// </summary>
- public PlcPointAddress Out_Screw
- {
- get { return _Screw; }
- set { SetProperty(ref _Screw, value); }
- }
- private PlcPointAddress _CheckCamera = new PlcPointAddress();
- /// <summary>
- /// 复检点位参数
- /// </summary>
- public PlcPointAddress Out_CheckCamera
- {
- get { return _CheckCamera; }
- set { SetProperty(ref _CheckCamera, value); }
- }
- private PlcPointAddress _IndependentCamer = new PlcPointAddress();
- /// <summary>
- /// 独立移动相机点位参数
- /// </summary>
- public PlcPointAddress Out_IndependentCamer
- {
- get { return _IndependentCamer; }
- set { SetProperty(ref _IndependentCamer, value); }
- }
- private PlcPointAddress _Out_RemovePos = new PlcPointAddress();
- /// <summary>
- /// 撕膜点位参数
- /// </summary>
- public PlcPointAddress Out_RemovePos
- {
- get { return _Out_RemovePos; }
- set { SetProperty(ref _Out_RemovePos, value); }
- }
- private PlcPointAddress _Out_PressurePlace = new PlcPointAddress();
- /// <summary>
- /// 压力组装点位参数
- /// </summary>
- public PlcPointAddress Out_PressurePlace
- {
- get { return _Out_PressurePlace; }
- set { SetProperty(ref _Out_PressurePlace, value); }
- }
- private PlcAddress _Out_ScrewTeachNum;
- /// <summary>
- /// 披头矫正的模式,1:初始化时矫正,2:每个产品矫正一次,3:每颗螺丝矫正一次
- /// </summary>
- public PlcAddress Out_ScrewTeachNum
- {
- get { return _Out_ScrewTeachNum; }
- set { SetProperty(ref _Out_ScrewTeachNum, value); }
- }
- private PlcAddress _Out_ScrewTeachOk;
- /// <summary>
- /// 下相机矫正披头的结果,1:OK,2:NG
- /// </summary>
- public PlcAddress Out_ScrewTeachOk
- {
- get { return _Out_ScrewTeachOk; }
- set { SetProperty(ref _Out_ScrewTeachOk, value); }
- }
- private PlcAddress _Out_ScrewFeederIsChanged;
- /// <summary>
- /// 螺丝供料器发生改变
- /// </summary>
- public PlcAddress Out_ScrewFeederIsChanged
- {
- get { return _Out_ScrewFeederIsChanged; }
- set { SetProperty(ref _Out_ScrewFeederIsChanged, value); }
- }
- private PlcAddress _Out_PartCode;
- /// <summary>
- /// 零件的扫码编号写入到PLC
- /// </summary>
- public PlcAddress Out_PartCode
- {
- get { return _Out_PartCode; }
- set { SetProperty(ref _Out_PartCode, value); }
- }
- private PlcAddress _Out_PartCode2;
- /// <summary>
- /// 零件的扫码编号2写入到PLC
- /// </summary>
- public PlcAddress Out_PartCode2
- {
- get { return _Out_PartCode2; }
- set { SetProperty(ref _Out_PartCode2, value); }
- }
- private PlcAddress _Out_RemovePos_Num = new PlcAddress();
- /// <summary>
- ///撕膜点位个数
- /// </summary>
- public PlcAddress Out_RemovePos_Num
- {
- get { return _Out_RemovePos_Num; }
- set { SetProperty(ref _Out_RemovePos_Num, value); }
- }
- #endregion
- #region 从PLC读取的地址
- 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_QrCodeCamera_ScanNum = new PlcAddress();
- /// <summary>
- /// 二维码拍照请求
- /// </summary>
- public PlcAddress In_QrCodeCamera_ScanNum
- {
- get { return _In_QrCodeCamera_ScanNum; }
- set { SetProperty(ref _In_QrCodeCamera_ScanNum, value); }
- }
- private PlcAddress _In_Code = new PlcAddress();
- /// <summary>
- /// 产品编码
- /// </summary>
- public PlcAddress In_Code
- {
- get { return _In_Code; }
- set { SetProperty(ref _In_Code, value); }
- }
- private PlcAddress _In_MesCheck = new PlcAddress();
- /// <summary>
- /// Mes交互 =1 获取过站信息当站是否生产,=2 上传本站数据
- /// </summary>
- public PlcAddress In_MesCheck
- {
- get { return _In_MesCheck; }
- set { SetProperty(ref _In_MesCheck, value); }
- }
- private PlcAddress _In_Result = new PlcAddress();
- /// <summary>
- /// 产品的最终结果
- /// </summary>
- public PlcAddress In_Result
- {
- get { return _In_Result; }
- set { SetProperty(ref _In_Result, value); }
- }
- private PlcAddress _In_DowmCameraNum = new PlcAddress();
- /// <summary>
- /// 下相机拍照编号
- /// </summary>
- public PlcAddress In_DowmCameraNum
- {
- get { return _In_DowmCameraNum; }
- set { SetProperty(ref _In_DowmCameraNum, value); }
- }
- private PlcAddress _In_DowmCameraExe = new PlcAddress();
- /// <summary>
- /// 下相机拍照触发
- /// </summary>
- public PlcAddress In_DowmCameraExe
- {
- get { return _In_DowmCameraExe; }
- set { SetProperty(ref _In_DowmCameraExe, value); }
- }
- private PlcAddress _In_UpCameraPickNum = new PlcAddress();
- /// <summary>
- /// 上相机取料拍照编号
- /// </summary>
- public PlcAddress In_UpCameraPickNum
- {
- get { return _In_UpCameraPickNum; }
- set { SetProperty(ref _In_UpCameraPickNum, value); }
- }
- private PlcAddress _In_UpCameraPickExe = new PlcAddress();
- /// <summary>
- /// 上相机取料拍照触发
- /// </summary>
- public PlcAddress In_UpCameraPickExe
- {
- get { return _In_UpCameraPickExe; }
- set { SetProperty(ref _In_UpCameraPickExe, value); }
- }
- private PlcAddress _In_UpCameraPutNum = new PlcAddress();
- /// <summary>
- /// 上相机锁附/组装拍照编号
- /// </summary>
- public PlcAddress In_UpCameraPutNum
- {
- get { return _In_UpCameraPutNum; }
- set { SetProperty(ref _In_UpCameraPutNum, value); }
- }
- private PlcAddress _In_UpCameraPutExe = new PlcAddress();
- /// <summary>
- /// 上相机锁附/组装拍照触发
- /// </summary>
- public PlcAddress In_UpCameraPutExe
- {
- get { return _In_UpCameraPutExe; }
- set { SetProperty(ref _In_UpCameraPutExe, value); }
- }
- private PlcAddress _In_UPCameracheckNum = new PlcAddress();
- /// <summary>
- /// 上相机检测拍照编号
- /// </summary>
- public PlcAddress In_UPCameracheckNum
- {
- get { return _In_UPCameracheckNum; }
- set { SetProperty(ref _In_UPCameracheckNum, value); }
- }
- private PlcAddress _In_UPCameracheckExe = new PlcAddress();
- /// <summary>
- /// 上相机检测拍照触发
- /// </summary>
- public PlcAddress In_UPCameracheckExe
- {
- get { return _In_UPCameracheckExe; }
- set { SetProperty(ref _In_UPCameracheckExe, value); }
- }
- private PlcAddress _In_FixedCameraPickNum = new PlcAddress();
- /// <summary>
- /// 固定相机取料拍照编号
- /// </summary>
- public PlcAddress In_FixedCameraPickNum
- {
- get { return _In_FixedCameraPickNum; }
- set { SetProperty(ref _In_FixedCameraPickNum, value); }
- }
- private PlcAddress _In_FixedCameraPickExe = new PlcAddress();
- /// <summary>
- /// 固定相机取料拍照触发
- /// </summary>
- public PlcAddress In_FixedCameraPickExe
- {
- get { return _In_FixedCameraPickExe; }
- set { SetProperty(ref _In_FixedCameraPickExe, value); }
- }
- private PlcAddress _In_FixedCameraPutNum = new PlcAddress();
- /// <summary>
- /// 固定相机锁附/组装拍照编号
- /// </summary>
- public PlcAddress In_FixedCameraPutNum
- {
- get { return _In_FixedCameraPutNum; }
- set { SetProperty(ref _In_FixedCameraPutNum, value); }
- }
- private PlcAddress _In_FixedCameraPutExe = new PlcAddress();
- /// <summary>
- /// 固定相机锁附/组装拍照触发
- /// </summary>
- public PlcAddress In_FixedCameraPutExe
- {
- get { return _In_FixedCameraPutExe; }
- set { SetProperty(ref _In_FixedCameraPutExe, value); }
- }
- private PlcAddress _In_FixedCameracheckNum = new PlcAddress();
- /// <summary>
- /// 固定相机检测拍照编号
- /// </summary>
- public PlcAddress In_FixedCameracheckNum
- {
- get { return _In_FixedCameracheckNum; }
- set { SetProperty(ref _In_FixedCameracheckNum, value); }
- }
- private PlcAddress _In_FixedCameracheckExe = new PlcAddress();
- /// <summary>
- /// 固定相机检测拍照触发
- /// </summary>
- public PlcAddress In_FixedCameracheckExe
- {
- get { return _In_FixedCameracheckExe; }
- set { SetProperty(ref _In_FixedCameracheckExe, value); }
- }
- private PlcAddress _In_ProductNum = new PlcAddress();
- /// <summary>
- /// 正在锁附/组装编号
- /// </summary>
- public PlcAddress In_ProductNum
- {
- get { return _In_ProductNum; }
- set { SetProperty(ref _In_ProductNum, value); }
- }
- private PlcAddress _In_RequestPosition = new PlcAddress();
- /// <summary>
- /// 请求目标位置
- /// </summary>
- public PlcAddress In_RequestPosition
- {
- get { return _In_RequestPosition; }
- set { SetProperty(ref _In_RequestPosition, value); }
- }
- private PlcAddress _In_WorkStart = new PlcAddress();
- /// <summary>
- /// 锁附/组装开始 =1
- /// </summary>
- public PlcAddress In_WorkStart
- {
- get { return _In_WorkStart; }
- set { SetProperty(ref _In_WorkStart, value); }
- }
- private PlcAddress _In_WorkDone = new PlcAddress();
- /// <summary>
- /// 锁附/组装结束 =1OK =2NG
- /// </summary>
- public PlcAddress In_WorkDone
- {
- get { return _In_WorkDone; }
- set { SetProperty(ref _In_WorkDone, value); }
- }
- private PlcAddress _In_PressureValue = new PlcAddress();
- /// <summary>
- /// 压力值
- /// </summary>
- public PlcAddress In_PressureValue
- {
- get { return _In_PressureValue; }
- set { SetProperty(ref _In_PressureValue, value); }
- }
- private PlcAddress _In_PressureLastValue = new PlcAddress();
- /// <summary>
- /// 最终压力值
- /// </summary>
- public PlcAddress In_PressureLastValue
- {
- get { return _In_PressureLastValue; }
- set { SetProperty(ref _In_PressureLastValue, value); }
- }
- private PlcAddress _In_ScrewTeachExe;
- /// <summary>
- /// 触发披头视觉矫正
- /// </summary>
- public PlcAddress In_ScrewTeachExe
- {
- get { return _In_ScrewTeachExe; }
- set { SetProperty(ref _In_ScrewTeachExe, value); }
- }
- private PlcAddress _In_PickINC;
- /// <summary>
- /// 取一颗螺丝出发信号
- /// </summary>
- public PlcAddress In_PickINC
- {
- get { return _In_PickINC; }
- set { SetProperty(ref _In_PickINC, value); }
- }
- private PlcAddress _In_DryMode;
- /// <summary>
- /// 空跑模式
- /// </summary>
- public PlcAddress In_DryMode
- {
- get { return _In_DryMode; }
- set { SetProperty(ref _In_DryMode, value); }
- }
- private PlcAddress _PUT_Down_Time;
- /// <summary>
- /// 组装保压时间
- /// </summary>
- public PlcAddress PUT_Down_Time
- {
- get { return _PUT_Down_Time; }
- set { SetProperty(ref _PUT_Down_Time, value); }
- }
- private PlcAddress _PUT_WetOut_Num;
- /// <summary>
- /// 组装保压最大值
- /// </summary>
- public PlcAddress PUT_WetOut_Num
- {
- get { return _PUT_WetOut_Num; }
- set { SetProperty(ref _PUT_WetOut_Num, value); }
- }
- private PlcAddress _PUT_WetOut_Num_max;
- /// <summary>
- /// 组装保压最大值
- /// </summary>
- public PlcAddress PUT_WetOut_Num_max
- {
- get { return _PUT_WetOut_Num_max; }
- set { SetProperty(ref _PUT_WetOut_Num_max, value); }
- }
- private PlcAddress _Down_Time;
- /// <summary>
- /// 后保压时间
- /// </summary>
- public PlcAddress Down_Time
- {
- get { return _Down_Time; }
- set { SetProperty(ref _Down_Time, value); }
- }
- private PlcAddress _Down_WetOut_Num;
- /// <summary>
- /// 后保压压力
- /// </summary>
- public PlcAddress Down_WetOut_Num
- {
- get { return _Down_WetOut_Num; }
- set { SetProperty(ref _Down_WetOut_Num, value); }
- }
- private PlcAddress _Down_WetOut_Num_max;
- /// <summary>
- /// 后保压最大值
- /// </summary>
- public PlcAddress Down_WetOut_Num_max
- {
- get { return _Down_WetOut_Num_max; }
- set { SetProperty(ref _Down_WetOut_Num_max, value); }
- }
- private PlcAddress _In_PartCode;
- /// <summary>
- /// 从PLC中读取当前产品上传对应的零件号
- /// </summary>
- public PlcAddress In_PartCode
- {
- get { return _In_PartCode; }
- set { SetProperty(ref _In_PartCode, value); }
- }
- private PlcAddress _In_PartCode2;
- /// <summary>
- /// 从PLC中读取当前产品上传对应的零件号
- /// </summary>
- public PlcAddress In_PartCode2
- {
- get { return _In_PartCode2; }
- set { SetProperty(ref _In_PartCode2, value); }
- }
- private PlcAddress _In_Throw;
- /// <summary>
- /// 抛料信号
- /// </summary>
- public PlcAddress In_Throw
- {
- get { return _In_Throw; }
- set { SetProperty(ref _In_Throw, value); }
- }
- private PlcAddress _RunMode;
- public PlcAddress RunMode
- {
- get { return _RunMode; }
- set { SetProperty(ref _RunMode, value); }
- }
- private PlcAddress _AutoRunning;
- public PlcAddress AutoRunning
- {
- get { return _AutoRunning; }
- set { SetProperty(ref _AutoRunning, value); }
- }
- private PlcAddress _ManualMode;
- public PlcAddress ManualMode
- {
- get { return _ManualMode; }
- set { SetProperty(ref _ManualMode, value); }
- }
- private PlcAddress _ClearMode;
- public PlcAddress ClearMode
- {
- get { return _ClearMode; }
- set { SetProperty(ref _ClearMode, value); }
- }
- private PlcAddress _Fault;
- public PlcAddress Fault
- {
- get { return _Fault; }
- set { SetProperty(ref _Fault, value); }
- }
- private PlcAddress _WorkCt;
- /// <summary>
- /// 触发读取PLC记录CT
- /// </summary>
- public PlcAddress WorkCt
- {
- get { return _WorkCt; }
- set { SetProperty(ref _WorkCt, value); }
- }
- private PlcAddress _In_CycleTimeBefor = new PlcAddress();
- /// <summary>
- /// PLC记录CT时长
- /// </summary>
- public PlcAddress In_CycleTimeBefor
- {
- get { return _In_CycleTimeBefor; }
- set { SetProperty(ref _In_CycleTimeBefor, value); }
- }
- #endregion
- public PlcAddressConfig()
- {
- }
- // 初始默认值
- public void SetDefaultValue()
- {
- // 1. PlcNo 默认
- PlcNo = 1;
- // 辅助局部函数:确保 PlcAddress 实例存在
- PlcAddress Ensure(PlcAddress a)
- {
- if (a == null) return new PlcAddress();
- return a;
- }
- // 辅助局部函数:确保 PlcPointAddress 实例存在
- PlcPointAddress EnsurePoint(PlcPointAddress p)
- {
- if (p == null) return new PlcPointAddress();
- return p;
- }
- // Out_QrCodeCamera(二维码拍照点位)初始化并赋地址
- Out_QrCodeCamera = EnsurePoint(Out_QrCodeCamera);
- Out_QrCodeCamera.Description = "二维码拍照点位参数";
- Out_QrCodeCamera.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Camera_Scan[{0}].X_Position";
- Out_QrCodeCamera.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Camera_Scan[{0}].X_Velocity";
- Out_QrCodeCamera.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Camera_Scan[{0}].Y_Position";
- Out_QrCodeCamera.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Camera_Scan[{0}].Y_Velocity";
- Out_QrCodeCamera.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_Camera_Scan[{0}].Z_Position_Start";
- Out_QrCodeCamera.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_Camera_Scan[{0}].Z_Velocity_Start";
- Out_QrCodeCamera.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_Camera_Scan[{0}].Z_Position_Stop";
- Out_QrCodeCamera.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_Camera_Scan[{0}].Z_Velocity_Stop";
- Out_QrCodeCamera.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Camera_Scan[{0}].U_Position";
- Out_QrCodeCamera.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Camera_Scan[{0}].U_Velocity";
- Out_QrCodeCamera.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Camera_Scan[{0}].R_Position";
- Out_QrCodeCamera.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Camera_Scan[{0}].R_Velocity";
- Out_QrCodeCamera.Torque.Address = "ns=4;s=DB_Communication|FromPC.Point_Camera_Scan[{0}].Torque";
- Out_QrCodeCamera.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Point_Camera_Scan[{0}].Feeder";
- Out_QrCodeCamera.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Point_Camera_Scan[{0}].ScrewProNum";
- In_QrCodePhotoRequest = Ensure(In_QrCodePhotoRequest);
- In_QrCodePhotoRequest.Address = "ns=4;s=DB_Communication|ToPC.Camera_ScanExe";
- In_QrCodePhotoRequest.DataType = "int16";
- In_QrCodePhotoRequest.Description = "二维码拍照请求";
- In_QrCodeCamera_ScanNum = Ensure(In_QrCodeCamera_ScanNum);
- In_QrCodeCamera_ScanNum.Address = "ns=4;s=DB_Communication|Camera_ScanNum";
- In_QrCodeCamera_ScanNum.DataType = "int16";
- In_QrCodeCamera_ScanNum.Description = "二维码拍照编号";
- Out_QrCodePhotoResault = Ensure(Out_QrCodePhotoResault);
- Out_QrCodePhotoResault.Address = "ns=4;s=DB_Communication|FromPC.Camera_ScanStatus";
- Out_QrCodePhotoResault.DataType = "int16";
- Out_QrCodePhotoResault.Description = "二维码拍照结果";
- // 2. 按 JSON 提供的数据设置默认值(以当前属性名为准)
- Out_ProductLoadMode = Ensure(Out_ProductLoadMode);
- Out_ProductLoadMode.Address = "ns=4;s=DB_Communication|FromPC.ProductLoadMode";
- Out_ProductLoadMode.DataType = "int16";
- Out_ProductLoadMode.Description = "产品切换类型";
- Out_WorkMode = Ensure(Out_WorkMode);
- Out_WorkMode.Address = "ns=4;s=DB_Communication|FromPC.WorkMode";
- Out_WorkMode.DataType = "int16";
- Out_WorkMode.Description = "工作模式 =1 拍1打1 =2 拍1打所有";
- Out_PickPointNum = Ensure(Out_PickPointNum);
- Out_PickPointNum.Address = "ns=4;s=DB_Communication|FromPC.PickPointNum";
- Out_PickPointNum.DataType = "int16";
- Out_PickPointNum.Description = "取料位置 =0 不需要取料 =1 需要取料";
- Out_DowmCameraNum = Ensure(Out_DowmCameraNum);
- Out_DowmCameraNum.Address = "ns=4;s=DB_Communication|FromPC.DowmCameraNum";
- Out_DowmCameraNum.DataType = "int16";
- Out_DowmCameraNum.Description = "下相机拍照次数=0 无";
- Out_UpCameraPickNum = Ensure(Out_UpCameraPickNum);
- Out_UpCameraPickNum.Address = "ns=4;s=DB_Communication|FromPC.UpCameraPickNum";
- Out_UpCameraPickNum.DataType = "int16";
- Out_UpCameraPickNum.Description = "上相机取料拍照次数=0 无";
- Out_UpCameraPutNum = Ensure(Out_UpCameraPutNum);
- Out_UpCameraPutNum.Address = "ns=4;s=DB_Communication|FromPC.UpCameraPutNum";
- Out_UpCameraPutNum.DataType = "int16";
- Out_UpCameraPutNum.Description = "上相机放料拍照次数=0 无";
- Out_UPCameracheckNum = Ensure(Out_UPCameracheckNum);
- Out_UPCameracheckNum.Address = "ns=4;s=DB_Communication|FromPC.UPCameracheckNum";
- Out_UPCameracheckNum.DataType = "int16";
- Out_UPCameracheckNum.Description = "上相机锁附/组装次数=0 无";
- Out_FixedCameraPickNum = Ensure(Out_FixedCameraPickNum);
- Out_FixedCameraPickNum.Address = "ns=4;s=DB_Communication|FromPC.FixedCameraPickNum";
- Out_FixedCameraPickNum.DataType = "int16";
- Out_FixedCameraPickNum.Description = "取料固定位置拍产品相机数量 =0 无";
- Out_FixedCameraPutNum = Ensure(Out_FixedCameraPutNum);
- Out_FixedCameraPutNum.Address = "ns=4;s=DB_Communication|FromPC.FixedCameraPutNum";
- Out_FixedCameraPutNum.DataType = "int16";
- Out_FixedCameraPutNum.Description = "锁附/组装固定位置拍产品相机数量 =0 无";
- Out_FixedCameracheckNum = Ensure(Out_FixedCameracheckNum);
- Out_FixedCameracheckNum.Address = "ns=4;s=DB_Communication|FromPC.FixedCameracheckNum";
- Out_FixedCameracheckNum.DataType = "int16";
- Out_FixedCameracheckNum.Description = "固定相机检测锁附/组装次数=0 无";
- Out_PickCamera = EnsurePoint(Out_PickCamera);
- // 3. 为其余 Out_* 设置合理默认(基于注释)
- Out_WorkNum = Ensure(Out_WorkNum);
- Out_WorkNum.Address = "ns=4;s=DB_Communication|FromPC.WorkNum";
- Out_WorkNum.DataType = "int16";
- Out_WorkNum.Description = "锁附/组装数量";
- Out_DownCameraStatus = Ensure(Out_DownCameraStatus);
- Out_DownCameraStatus.Address = "ns=4;s=DB_Communication|FromPC.DownCameraStatus";
- Out_DownCameraStatus.DataType = "int16";
- Out_DownCameraStatus.Description = "下相机拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK";
- Out_UpCameraPickStatus = Ensure(Out_UpCameraPickStatus);
- Out_UpCameraPickStatus.Address = "ns=4;s=DB_Communication|FromPC.UpCameraPickStatus";
- Out_UpCameraPickStatus.DataType = "int16";
- Out_UpCameraPickStatus.Description = "上相机取料拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK";
- Out_UpCameraPutStatus = Ensure(Out_UpCameraPutStatus);
- Out_UpCameraPutStatus.Address = "ns=4;s=DB_Communication|FromPC.UpCameraPutStatus";
- Out_UpCameraPutStatus.DataType = "int16";
- Out_UpCameraPutStatus.Description = "上相机锁附/组装拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK";
- Out_UPCameracheckStatus = Ensure(Out_UPCameracheckStatus);
- Out_UPCameracheckStatus.Address = "ns=4;s=DB_Communication|FromPC.UPCameracheckStatus";
- Out_UPCameracheckStatus.DataType = "int16";
- Out_UPCameracheckStatus.Description = "上相机检测拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK";
- Out_FixedCameraPickStatus = Ensure(Out_FixedCameraPickStatus);
- Out_FixedCameraPickStatus.Address = "ns=4;s=DB_Communication|FromPC.FixedCameraPickStatus";
- Out_FixedCameraPickStatus.DataType = "int16";
- Out_FixedCameraPickStatus.Description = "固定相机取料拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK";
- Out_FixedCameraPutStatus = Ensure(Out_FixedCameraPutStatus);
- Out_FixedCameraPutStatus.Address = "ns=4;s=DB_Communication|FromPC.FixedCameraPutStatus";
- Out_FixedCameraPutStatus.DataType = "int16";
- Out_FixedCameraPutStatus.Description = "固定相机锁附/组装拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK";
- Out_FixedCameracheckStatus = Ensure(Out_FixedCameracheckStatus);
- Out_FixedCameracheckStatus.Address = "ns=4;s=DB_Communication|FromPC.FixedCameracheckStatus";
- Out_FixedCameracheckStatus.DataType = "int16";
- Out_FixedCameracheckStatus.Description = "固定相机检测拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK";
- Out_CameraDone = Ensure(Out_CameraDone);
- Out_CameraDone.Address = "ns=4;s=DB_Communication|FromPC.CameraDone";
- Out_CameraDone.DataType = "int16";
- Out_CameraDone.Description = "相机坐标拟合完成";
- Out_MesStatus = Ensure(Out_MesStatus);
- Out_MesStatus.Address = "ns=4;s=DB_Communication|FromPC.MesStatus[{0}]";
- Out_MesStatus.DataType = "int16";
- Out_MesStatus.Description = "过站信息 =1 允许工作 =2 本站放行 =3 数据上传完成";
- // Out_PickCamera 初始化并赋地址
- Out_PickCamera = EnsurePoint(Out_PickCamera);
- Out_PickCamera.Description = "取料拍照点位参数";
- Out_PickCamera.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].X_Position";
- Out_PickCamera.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].X_Velocity";
- Out_PickCamera.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].Y_Position";
- Out_PickCamera.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].Y_Velocity";
- Out_PickCamera.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].Z_Position_Start";
- Out_PickCamera.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].Z_Velocity_Start";
- Out_PickCamera.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].Z_Position_Stop";
- Out_PickCamera.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].Z_Velocity_Stop";
- Out_PickCamera.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].U_Position";
- Out_PickCamera.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].U_Velocity";
- Out_PickCamera.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].R_Position";
- Out_PickCamera.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].R_Velocity";
- Out_PickCamera.Torque.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].Torque";
- Out_PickCamera.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].Feeder";
- Out_PickCamera.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].ScrewProNum";
- // Out_Pick(取料点位)初始化并赋地址
- Out_Pick = EnsurePoint(Out_Pick);
- Out_Pick.Description = "取料点位参数";
- Out_Pick.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].X_Position";
- Out_Pick.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].X_Velocity";
- Out_Pick.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].Y_Position";
- Out_Pick.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].Y_Velocity";
- Out_Pick.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].Z_Position_Start";
- Out_Pick.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].Z_Velocity_Start";
- Out_Pick.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].Z_Position_Stop";
- Out_Pick.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].Z_Velocity_Stop";
- Out_Pick.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].U_Position";
- Out_Pick.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].U_Velocity";
- Out_Pick.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].R_Position";
- Out_Pick.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].R_Velocity";
- Out_Pick.Torque.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].Torque";
- Out_Pick.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].Feeder";
- Out_Pick.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].ScrewProNum";
- // Out_SecPosCamera(下相机二次定位)初始化并赋地址
- Out_SecPosCamera = EnsurePoint(Out_SecPosCamera);
- Out_SecPosCamera.Description = "下相机二次定位点位参数";
- Out_SecPosCamera.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].X_Position";
- Out_SecPosCamera.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].X_Velocity";
- Out_SecPosCamera.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].Y_Position";
- Out_SecPosCamera.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].Y_Velocity";
- Out_SecPosCamera.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].Z_Position_Start";
- Out_SecPosCamera.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].Z_Velocity_Start";
- Out_SecPosCamera.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].Z_Position_Stop";
- Out_SecPosCamera.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].Z_Velocity_Stop";
- Out_SecPosCamera.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].U_Position";
- Out_SecPosCamera.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].U_Velocity";
- Out_SecPosCamera.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].R_Position";
- Out_SecPosCamera.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].R_Velocity";
- Out_SecPosCamera.Torque.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].Torque";
- Out_SecPosCamera.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].Feeder";
- Out_SecPosCamera.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].ScrewProNum";
- // Out_ScrewCamera(锁附拍照点位)初始化并赋地址
- Out_ScrewCamera = EnsurePoint(Out_ScrewCamera);
- Out_ScrewCamera.Description = "锁附拍照点位参数";
- Out_ScrewCamera.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].X_Position";
- Out_ScrewCamera.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].X_Velocity";
- Out_ScrewCamera.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].Y_Position";
- Out_ScrewCamera.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].Y_Velocity";
- Out_ScrewCamera.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].Z_Position_Start";
- Out_ScrewCamera.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].Z_Velocity_Start";
- Out_ScrewCamera.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].Z_Position_Stop";
- Out_ScrewCamera.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].Z_Velocity_Stop";
- Out_ScrewCamera.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].U_Position";
- Out_ScrewCamera.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].U_Velocity";
- Out_ScrewCamera.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].R_Position";
- Out_ScrewCamera.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].R_Velocity";
- Out_ScrewCamera.Torque.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].Torque";
- Out_ScrewCamera.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].Feeder";
- Out_ScrewCamera.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].ScrewProNum";
- // Out_Screw(锁附点位)初始化并赋地址
- Out_Screw = EnsurePoint(Out_Screw);
- Out_Screw.Description = "锁附点位参数";
- Out_Screw.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].X_Position";
- Out_Screw.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].X_Velocity";
- Out_Screw.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].Y_Position";
- Out_Screw.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].Y_Velocity";
- Out_Screw.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].Z_Position_Start";
- Out_Screw.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].Z_Velocity_Start";
- Out_Screw.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].Z_Position_Stop";
- Out_Screw.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].Z_Velocity_Stop";
- Out_Screw.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].U_Position";
- Out_Screw.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].U_Velocity";
- Out_Screw.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].R_Position";
- Out_Screw.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].R_Velocity";
- Out_Screw.Torque.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].Torque";
- Out_Screw.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].Feeder";
- Out_Screw.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].ScrewProNum";
- // Out_CheckCamera(复检点位)初始化并赋地址
- Out_CheckCamera = EnsurePoint(Out_CheckCamera);
- Out_CheckCamera.Description = "复检点位参数";
- Out_CheckCamera.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].X_Position";
- Out_CheckCamera.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].X_Velocity";
- Out_CheckCamera.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].Y_Position";
- Out_CheckCamera.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].Y_Velocity";
- Out_CheckCamera.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].Z_Position_Start";
- Out_CheckCamera.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].Z_Velocity_Start";
- Out_CheckCamera.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].Z_Position_Stop";
- Out_CheckCamera.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].Z_Velocity_Stop";
- Out_CheckCamera.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].U_Position";
- Out_CheckCamera.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].U_Velocity";
- Out_CheckCamera.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].R_Position";
- Out_CheckCamera.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].R_Velocity";
- Out_CheckCamera.Torque.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].Torque";
- 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_IndependentCamer(独立移动相机点位)初始化并赋地址
- Out_IndependentCamer = EnsurePoint(Out_IndependentCamer);
- Out_IndependentCamer.Description = "独立移动相机点位参数";
- Out_IndependentCamer.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Fixed_camera[{0}].X_Position";
- Out_IndependentCamer.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Fixed_camera[{0}].X_Velocity";
- Out_IndependentCamer.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Fixed_camera[{0}].Y_Position";
- Out_IndependentCamer.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Fixed_camera[{0}].Y_Velocity";
- Out_IndependentCamer.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_Fixed_camera[{0}].Z_Position_Start";
- Out_IndependentCamer.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_Fixed_camera[{0}].Z_Velocity_Start";
- Out_IndependentCamer.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_Fixed_camera[{0}].Z_Position_Stop";
- Out_IndependentCamer.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_Fixed_camera[{0}].Z_Velocity_Stop";
- Out_IndependentCamer.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Fixed_camera[{0}].U_Position";
- Out_IndependentCamer.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Fixed_camera[{0}].U_Velocity";
- Out_IndependentCamer.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Fixed_camera[{0}].R_Position";
- Out_IndependentCamer.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Fixed_camera[{0}].R_Velocity";
- Out_IndependentCamer.Torque.Address = "ns=4;s=DB_Communication|FromPC.Point_Fixed_camera[{0}].Torque";
- Out_IndependentCamer.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Point_Fixed_camera[{0}].Feeder";
- Out_IndependentCamer.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Point_Fixed_camera[{0}].ScrewProNum";
- //撕膜点位
- Out_RemovePos = EnsurePoint(Out_RemovePos);
- Out_RemovePos.Description = "撕膜点位参数";
- Out_RemovePos.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Remove[{0}].X_Position";
- Out_RemovePos.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Remove[{0}].X_Velocity";
- Out_RemovePos.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Remove[{0}].Y_Position";
- Out_RemovePos.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Remove[{0}].Y_Velocity";
- Out_RemovePos.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_Remove[{0}].Z_Position_Start";
- Out_RemovePos.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_Remove[{0}].Z_Velocity_Start";
- Out_RemovePos.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_Remove[{0}].Z_Position_Stop";
- Out_RemovePos.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_Remove[{0}].Z_Velocity_Stop";
- Out_RemovePos.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Remove[{0}].U_Position";
- Out_RemovePos.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Remove[{0}].U_Velocity";
- Out_RemovePos.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Remove[{0}].R_Position";
- Out_RemovePos.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Remove[{0}].R_Velocity";
- Out_RemovePos.Torque.Address = "ns=4;s=DB_Communication|FromPC.Point_Remove[{0}].Torque";
- Out_RemovePos.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Point_Remove[{0}].Feeder";
- Out_RemovePos.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Point_Remove[{0}].ScrewProNum";
- //压力组装点位
- Out_PressurePlace = EnsurePoint(Out_PressurePlace);
- Out_PressurePlace.Description = "压力组装点位参数";
- Out_PressurePlace.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Wetout[{0}].X_Position";
- Out_PressurePlace.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Wetout[{0}].X_Velocity";
- Out_PressurePlace.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Wetout[{0}].Y_Position";
- Out_PressurePlace.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Wetout[{0}].Y_Velocity";
- Out_PressurePlace.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_Wetout[{0}].Z_Position_Start";
- Out_PressurePlace.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_Wetout[{0}].Z_Velocity_Start";
- Out_PressurePlace.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_Wetout[{0}].Z_Position_Stop";
- Out_PressurePlace.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_Wetout[{0}].Z_Velocity_Stop";
- Out_PressurePlace.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Wetout[{0}].U_Position";
- Out_PressurePlace.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Wetout[{0}].U_Velocity";
- Out_PressurePlace.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Wetout[{0}].R_Position";
- Out_PressurePlace.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Wetout[{0}].R_Velocity";
- Out_PressurePlace.Torque.Address = "ns=4;s=DB_Communication|FromPC.Point_Wetout[{0}].Torque";
- Out_PressurePlace.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Point_Wetout[{0}].Feeder";
- Out_PressurePlace.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Point_Wetout[{0}].ScrewProNum";
- // Out_CheckCamera(附加轴点位)初始化并赋地址,
- Out_ScrewTeachNum = Ensure(Out_ScrewTeachNum);
- Out_ScrewTeachNum.Address = "ns=4;s=DB_Communication|FromPC.ScrewTeachNum";
- Out_ScrewTeachNum.DataType = "int16";
- Out_ScrewTeachNum.Description = "披头矫正的模式,1:初始化时矫正,2:每个产品矫正一次,3:每颗螺丝矫正一次";
- Out_ScrewTeachOk = Ensure(Out_ScrewTeachOk);
- Out_ScrewTeachOk.Address = "ns=4;s=DB_Communication|FromPC.ScrewTeachOK";
- Out_ScrewTeachOk.DataType = "int16";
- Out_ScrewTeachOk.Description = "下相机矫正披头的结果,1:OK,2:NG";
- Out_ScrewFeederIsChanged = Ensure(Out_ScrewFeederIsChanged);
- Out_ScrewFeederIsChanged.Address = "ns=4;s=DB_Communication|FromPC.PickNumChange";
- Out_ScrewFeederIsChanged.DataType = "int16";
- Out_ScrewFeederIsChanged.Description = "供料器发生改变";
- Out_RemovePos_Num = Ensure(Out_RemovePos_Num);
- Out_RemovePos_Num.Address = "ns=4;s=DB_Communication|FromPC.Point_Remove_Num";
- Out_RemovePos_Num.DataType = "int16";
- Out_RemovePos_Num.Description = "撕膜点位个数";
- // 4. In_* 默认(假定从 PLC 读到 PC,使用 ToPC 前缀)
- In_Code = Ensure(In_Code);
- In_Code.Address = "ns=4;s=DB_Communication|ToPC.Mes[{0}].Code";
- In_Code.DataType = "string";
- In_Code.Description = "产品编码";
- In_MesCheck = Ensure(In_MesCheck);
- In_MesCheck.Address = "ns=4;s=DB_Communication|ToPC.Mes[{0}].Check";
- In_MesCheck.DataType = "int16";
- In_MesCheck.Description = "Mes交互 =1 获取过站信息当站是否生产,=2 上传本站数据";
- In_Result = Ensure(In_Result);
- In_Result.Address = "ns=4;s=DB_Communication|ToPC.Mes[{0}].Product_Status";
- In_Result.DataType = "int16";
- In_Result.Description = "产品的最终结果,1:OK; 2:NG";
- In_DowmCameraNum = Ensure(In_DowmCameraNum);
- In_DowmCameraNum.Address = "ns=4;s=DB_Communication|ToPC.DowmCameraNum";
- In_DowmCameraNum.DataType = "int16";
- In_DowmCameraNum.Description = "下相机拍照编号";
- In_DowmCameraExe = Ensure(In_DowmCameraExe);
- In_DowmCameraExe.Address = "ns=4;s=DB_Communication|ToPC.DowmCameraExe";
- In_DowmCameraExe.DataType = "int16";
- In_DowmCameraExe.Description = "下相机拍照触发";
- In_UpCameraPickNum = Ensure(In_UpCameraPickNum);
- In_UpCameraPickNum.Address = "ns=4;s=DB_Communication|ToPC.UpCameraPickNum";
- In_UpCameraPickNum.DataType = "int16";
- In_UpCameraPickNum.Description = "上相机取料拍照编号";
- In_UpCameraPickExe = Ensure(In_UpCameraPickExe);
- In_UpCameraPickExe.Address = "ns=4;s=DB_Communication|ToPC.UpCameraPickExe";
- In_UpCameraPickExe.DataType = "int16";
- In_UpCameraPickExe.Description = "上相机取料拍照触发";
- In_UpCameraPutNum = Ensure(In_UpCameraPutNum);
- In_UpCameraPutNum.Address = "ns=4;s=DB_Communication|ToPC.UpCameraPutNum";
- In_UpCameraPutNum.DataType = "int16";
- In_UpCameraPutNum.Description = "上相机锁附/组装拍照编号";
- In_UpCameraPutExe = Ensure(In_UpCameraPutExe);
- In_UpCameraPutExe.Address = "ns=4;s=DB_Communication|ToPC.UpCameraPutExe";
- In_UpCameraPutExe.DataType = "int16";
- In_UpCameraPutExe.Description = "上相机锁附/组装拍照触发";
- In_UPCameracheckNum = Ensure(In_UPCameracheckNum);
- In_UPCameracheckNum.Address = "ns=4;s=DB_Communication|ToPC.UPCameracheckNum";
- In_UPCameracheckNum.DataType = "int16";
- In_UPCameracheckNum.Description = "上相机检测拍照编号";
- In_UPCameracheckExe = Ensure(In_UPCameracheckExe);
- In_UPCameracheckExe.Address = "ns=4;s=DB_Communication|ToPC.UPCameracheckExe";
- In_UPCameracheckExe.DataType = "int16";
- In_UPCameracheckExe.Description = "上相机检测拍照触发";
- In_FixedCameraPickNum = Ensure(In_FixedCameraPickNum);
- In_FixedCameraPickNum.Address = "ns=4;s=DB_Communication|ToPC.FixedCameraPickNum";
- In_FixedCameraPickNum.DataType = "int16";
- In_FixedCameraPickNum.Description = "固定相机取料拍照编号";
- In_FixedCameraPickExe = Ensure(In_FixedCameraPickExe);
- In_FixedCameraPickExe.Address = "ns=4;s=DB_Communication|ToPC.FixedCameraPickExe";
- In_FixedCameraPickExe.DataType = "int16";
- In_FixedCameraPickExe.Description = "固定相机取料拍照触发";
- In_FixedCameraPutNum = Ensure(In_FixedCameraPutNum);
- In_FixedCameraPutNum.Address = "ns=4;s=DB_Communication|ToPC.FixedCameraPutNum";
- In_FixedCameraPutNum.DataType = "int16";
- In_FixedCameraPutNum.Description = "固定相机锁附/组装拍照编号";
- In_FixedCameraPutExe = Ensure(In_FixedCameraPutExe);
- In_FixedCameraPutExe.Address = "ns=4;s=DB_Communication|ToPC.FixedCameraPutExe";
- In_FixedCameraPutExe.DataType = "int16";
- In_FixedCameraPutExe.Description = "固定相机锁附/组装拍照触发";
- In_FixedCameracheckNum = Ensure(In_FixedCameracheckNum);
- In_FixedCameracheckNum.Address = "ns=4;s=DB_Communication|ToPC.FixedCameracheckNum";
- In_FixedCameracheckNum.DataType = "int16";
- In_FixedCameracheckNum.Description = "固定相机检测拍照编号";
- In_FixedCameracheckExe = Ensure(In_FixedCameracheckExe);
- In_FixedCameracheckExe.Address = "ns=4;s=DB_Communication|ToPC.FixedCameracheckExe";
- In_FixedCameracheckExe.DataType = "int16";
- In_FixedCameracheckExe.Description = "固定相机检测拍照触发";
- In_ProductNum = Ensure(In_ProductNum);
- In_ProductNum.Address = "ns=4;s=DB_Communication|ToPC.ProductNum";
- In_ProductNum.DataType = "int16";
- In_ProductNum.Description = "正在锁附/组装编号";
- In_RequestPosition = Ensure(In_RequestPosition);
- In_RequestPosition.Address = "ns=4;s=DB_Communication|ToPC.RequestPosition";
- In_RequestPosition.DataType = "int16";
- In_RequestPosition.Description = "请求目标位置";
- In_WorkStart = Ensure(In_WorkStart);
- In_WorkStart.Address = "ns=4;s=DB_Communication|ToPC.WorkStart[{0}]";
- In_WorkStart.DataType = "int16";
- In_WorkStart.Description = "锁附/组装开始 =1";
- In_WorkDone = Ensure(In_WorkDone);
- In_WorkDone.Address = "ns=4;s=DB_Communication|ToPC.WorkDone[{0}]";
- In_WorkDone.DataType = "int16";
- In_WorkDone.Description = "锁附/组装结束 =1OK =2NG";
- In_PressureValue = Ensure(In_PressureValue);
- In_PressureValue.Address = "ns=4;s=DB_DriveControl|AICtrl[{0}].Status.UserData";
- In_PressureValue.DataType = "float";
- In_PressureValue.Description = "压力值";
- In_PressureLastValue = Ensure(In_PressureLastValue);
- In_PressureLastValue.Address = "ns=4;s=DB_DriveControl|AICtrl[{0}].Status.EndValue";
- In_PressureLastValue.DataType = "float";
- In_PressureLastValue.Description = "最终压力值";
- In_ScrewTeachExe = Ensure(In_ScrewTeachExe);
- In_ScrewTeachExe.Address = "ns=4;s=DB_Communication|ToPC.ScrewTeachExe";
- In_ScrewTeachExe.DataType = "bool";
- In_ScrewTeachExe.Description = "触发披头视觉矫正";
- In_PickINC = Ensure(In_PickINC);
- In_PickINC.Address = "ns=4;s=DB_Communication|ToPC.PickINC";
- In_PickINC.DataType = "int16";
- In_PickINC.Description = "取一颗螺丝触发信号";
- In_DryMode = Ensure(In_DryMode);
- In_DryMode.Address = "ns=4;s=DB_Control|Mode.Status.DryMode";
- In_DryMode.DataType = "bool";
- In_DryMode.Description = "空跑模式";
- PUT_Down_Time = Ensure(PUT_Down_Time);
- PUT_Down_Time.Address = "ns=4;s=DB_other|PUT_Down_Time";
- PUT_Down_Time.DataType = "int32";
- PUT_Down_Time.Description = "组装保压时间";
- PUT_WetOut_Num = Ensure(PUT_WetOut_Num);
- PUT_WetOut_Num.Address = "ns=4;s=DB_other|PUT_WetOut_Num";
- PUT_WetOut_Num.DataType = "float";
- PUT_WetOut_Num.Description = "组装保压压力";
- PUT_WetOut_Num_max = Ensure(PUT_WetOut_Num_max);
- PUT_WetOut_Num_max.Address = "ns=4;s=DB_other|PUT_WETOUT_NUM_MAX";
- PUT_WetOut_Num_max.DataType = "float";
- PUT_WetOut_Num_max.Description = "组装保压压力最大值";
- Down_Time = Ensure(Down_Time);
- Down_Time.Address = "ns=4;s=DB_other|Down_Time";
- Down_Time.DataType = "int32";
- Down_Time.Description = "后保压时间";
- Down_WetOut_Num = Ensure(Down_WetOut_Num);
- Down_WetOut_Num.Address = "ns=4;s=DB_other|WetOut_Num";
- Down_WetOut_Num.DataType = "float";
- Down_WetOut_Num.Description = "后保压压力";
- Down_WetOut_Num_max = Ensure(Down_WetOut_Num_max);
- Down_WetOut_Num_max.Address = "ns=4;s=DB_other|WetOut_MAX";
- Down_WetOut_Num_max.DataType = "float";
- Down_WetOut_Num_max.Description = "后保压压力最大值";
- Out_PartCode = Ensure(Out_PartCode);
- Out_PartCode.Address = "ns=4;s=DB_Communication|FromPC_code[0]";
- Out_PartCode.DataType = "string";
- Out_PartCode.Description = "零件的扫码编号写入到PLC";
- Out_PartCode2 = Ensure(Out_PartCode2);
- Out_PartCode2.Address = "ns=4;s=DB_Communication|FromPC_code2[0]";
- Out_PartCode2.DataType = "string";
- Out_PartCode2.Description = "零件的扫码编号写入到PLC";
- In_PartCode = Ensure(In_PartCode);
- In_PartCode.Address = "ns=4;s=DB_Communication|ToPC_code[0]";
- In_PartCode.DataType = "string";
- In_PartCode.Description = "从PLC中读取当前产品上传对应的零件号";
- In_PartCode2 = Ensure(In_PartCode2);
- In_PartCode2.Address = "ns=4;s=DB_Communication|ToPC_code2[0]";
- In_PartCode2.DataType = "string";
- In_PartCode2.Description = "从PLC中读取当前产品上传对应的零件号";
- In_Throw = Ensure(In_Throw);
- In_Throw.Address = "ns=4;s=DB_Communication|Throw[0]";
- In_Throw.DataType = "Bool";
- In_Throw.Description = "抛料信号";
- AutoRunning = Ensure(AutoRunning);
- AutoRunning.Address = "ns=4;s=DB_Control|Mode.Status.AutoRunning";
- AutoRunning.DataType = "Bool";
- AutoRunning.Description = "生产模式";
- ManualMode = Ensure(ManualMode);
- ManualMode.Address = "ns=4;s=DB_Control|Mode.Status.ManualMode";
- ManualMode.DataType = "Bool";
- ManualMode.Description = "维修模式";
- ClearMode = Ensure(ClearMode);
- ClearMode.Address = "ns=4;s=DB_Control|Mode.Status.ClearMode";
- ClearMode.DataType = "Bool";
- ClearMode.Description = "流线模式";
- WorkCt = Ensure(WorkCt);
- WorkCt.Address = "ns=4;s=DB_Communication|ToPC.WorkCt";
- WorkCt.DataType = "Bool";
- WorkCt.Description = "触发读取PLC记录CT";
- In_CycleTimeBefor = Ensure(In_CycleTimeBefor);
- In_CycleTimeBefor.Address = "ns=4;s=DB_Communication|ToPC.CycleTimeBefor";
- In_CycleTimeBefor.DataType = "int32";
- In_CycleTimeBefor.Description = "PLC记录CT时长";
- // 说明:若项目中 PlcAddress 的实际属性名或类型与此不同(例如使用枚举、不同字段名),
- // 请根据实际类型调整赋值。本方法主要提供合理的默认字符串地址、数据类型及描述,便于后续从配置覆盖。
- }
- }
- }
|