PlcAddressConfig.cs 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833
  1. using Prism.Mvvm;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using TeamAAS_VP.Models.PLC;
  8. namespace TeamAAS_VP.Models.PLC
  9. {
  10. public class PlcAddressConfig : BindableBase
  11. {
  12. #region 写入到PLC的地址
  13. private int _PlcNo;
  14. public int PlcNo
  15. {
  16. get { return _PlcNo; }
  17. set { SetProperty(ref _PlcNo, value); }
  18. }
  19. private PlcAddress _WorkMode = new PlcAddress();
  20. /// <summary>
  21. /// 工作模式 =1 拍1打1 =2 拍1打所有
  22. /// </summary>
  23. public PlcAddress Out_WorkMode
  24. {
  25. get { return _WorkMode; }
  26. set { SetProperty(ref _WorkMode, value); }
  27. }
  28. private PlcAddress _PickPointNum = new PlcAddress();
  29. /// <summary>
  30. /// 取料位置 =0 不需要取料 =1 需要取料
  31. /// </summary>
  32. public PlcAddress Out_PickPointNum
  33. {
  34. get { return _PickPointNum; }
  35. set { SetProperty(ref _PickPointNum, value); }
  36. }
  37. private PlcAddress _DowmCameraNum = new PlcAddress();
  38. /// <summary>
  39. /// 下相机拍照次数=0 无
  40. /// </summary>
  41. public PlcAddress Out_DowmCameraNum
  42. {
  43. get => _DowmCameraNum;
  44. set => SetProperty(ref _DowmCameraNum, value);
  45. }
  46. private PlcAddress _UpCameraPickNum = new PlcAddress();
  47. /// <summary>
  48. /// 上相机取料拍照次数=0 无
  49. /// </summary>
  50. public PlcAddress Out_UpCameraPickNum
  51. {
  52. get => _UpCameraPickNum;
  53. set => SetProperty(ref _UpCameraPickNum, value);
  54. }
  55. private PlcAddress _UpCameraPutNum = new PlcAddress();
  56. /// <summary>
  57. /// 上相机放料拍照次数=0 无
  58. /// </summary>
  59. public PlcAddress Out_UpCameraPutNum
  60. {
  61. get => _UpCameraPutNum;
  62. set => SetProperty(ref _UpCameraPutNum, value);
  63. }
  64. private PlcAddress _UPCameracheckNum = new PlcAddress();
  65. /// <summary>
  66. /// 上相机锁附/组装次数=0 无
  67. /// </summary>
  68. public PlcAddress Out_UPCameracheckNum
  69. {
  70. get => _UPCameracheckNum;
  71. set => SetProperty(ref _UPCameracheckNum, value);
  72. }
  73. private PlcAddress _FixedCameraPickNum = new PlcAddress();
  74. /// <summary>
  75. /// 取料固定位置拍产品相机数量 =0 无
  76. /// </summary>
  77. public PlcAddress Out_FixedCameraPickNum
  78. {
  79. get => _FixedCameraPickNum;
  80. set => SetProperty(ref _FixedCameraPickNum, value);
  81. }
  82. private PlcAddress _FixedCameraPutNum = new PlcAddress();
  83. /// <summary>
  84. /// 锁附/组装固定位置拍产品相机数量 =0 无
  85. /// </summary>
  86. public PlcAddress Out_FixedCameraPutNum
  87. {
  88. get => _FixedCameraPutNum;
  89. set => SetProperty(ref _FixedCameraPutNum, value);
  90. }
  91. private PlcAddress _FixedCameracheckNum = new PlcAddress();
  92. /// <summary>
  93. /// 固定相机检测锁附/组装次数=0 无
  94. /// </summary>
  95. public PlcAddress Out_FixedCameracheckNum
  96. {
  97. get => _FixedCameracheckNum;
  98. set => SetProperty(ref _FixedCameracheckNum, value);
  99. }
  100. private PlcAddress _WorkNum = new PlcAddress();
  101. /// <summary>
  102. /// 锁附/组装数量
  103. /// </summary>
  104. public PlcAddress Out_WorkNum
  105. {
  106. get { return _WorkNum; }
  107. set { SetProperty(ref _WorkNum, value); }
  108. }
  109. private PlcAddress _DownCameraStatus = new PlcAddress();
  110. /// <summary>
  111. /// 下相机拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK
  112. /// </summary>
  113. public PlcAddress Out_DownCameraStatus
  114. {
  115. get { return _DownCameraStatus; }
  116. set { SetProperty(ref _DownCameraStatus, value); }
  117. }
  118. private PlcAddress _UpCameraPickStatus = new PlcAddress();
  119. /// <summary>
  120. /// 上相机取料拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK
  121. /// </summary>
  122. public PlcAddress Out_UpCameraPickStatus
  123. {
  124. get { return _UpCameraPickStatus; }
  125. set { SetProperty(ref _UpCameraPickStatus, value); }
  126. }
  127. private PlcAddress _UpCameraPutStatus = new PlcAddress();
  128. /// <summary>
  129. /// 上相机锁附/组装拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK
  130. /// </summary>
  131. public PlcAddress Out_UpCameraPutStatus
  132. {
  133. get { return _UpCameraPutStatus; }
  134. set { SetProperty(ref _UpCameraPutStatus, value); }
  135. }
  136. private PlcAddress _UPCameracheckStatus = new PlcAddress();
  137. /// <summary>
  138. /// 上相机检测拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK
  139. /// </summary>
  140. public PlcAddress Out_UPCameracheckStatus
  141. {
  142. get { return _UPCameracheckStatus; }
  143. set { SetProperty(ref _UPCameracheckStatus, value); }
  144. }
  145. private PlcAddress _FixedCameraPickStatus = new PlcAddress();
  146. /// <summary>
  147. /// 固定相机取料拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK
  148. /// </summary>
  149. public PlcAddress Out_FixedCameraPickStatus
  150. {
  151. get { return _FixedCameraPickStatus; }
  152. set { SetProperty(ref _FixedCameraPickStatus, value); }
  153. }
  154. private PlcAddress _FixedCameraPutStatus = new PlcAddress();
  155. /// <summary>
  156. /// 固定相机锁附/组装拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK
  157. /// </summary>
  158. public PlcAddress Out_FixedCameraPutStatus
  159. {
  160. get { return _FixedCameraPutStatus; }
  161. set { SetProperty(ref _FixedCameraPutStatus, value); }
  162. }
  163. private PlcAddress _FixedCameracheckStatus = new PlcAddress();
  164. /// <summary>
  165. /// 固定相机检测拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK
  166. /// </summary>
  167. public PlcAddress Out_FixedCameracheckStatus
  168. {
  169. get { return _FixedCameracheckStatus; }
  170. set { SetProperty(ref _FixedCameracheckStatus, value); }
  171. }
  172. private PlcAddress _Out_CameraDone = new PlcAddress();
  173. /// <summary>
  174. /// 相机坐标拟合完成
  175. /// </summary>
  176. public PlcAddress Out_CameraDone
  177. {
  178. get { return _Out_CameraDone; }
  179. set { SetProperty(ref _Out_CameraDone, value); }
  180. }
  181. private PlcAddress _MesStatus = new PlcAddress();
  182. /// <summary>
  183. /// 过站信息 =1 允许工作 =2 本站放行 =3 数据上传完成
  184. /// </summary>
  185. public PlcAddress Out_MesStatus
  186. {
  187. get { return _MesStatus; }
  188. set { SetProperty(ref _MesStatus, value); }
  189. }
  190. private PlcPointAddress _PickCamera = new PlcPointAddress();
  191. /// <summary>
  192. /// 取料拍照点位参数
  193. /// </summary>
  194. public PlcPointAddress Out_PickCamera
  195. {
  196. get { return _PickCamera; }
  197. set { SetProperty(ref _PickCamera, value); }
  198. }
  199. private PlcPointAddress _Pick = new PlcPointAddress();
  200. /// <summary>
  201. /// 取料点位参数
  202. /// </summary>
  203. public PlcPointAddress Out_Pick
  204. {
  205. get { return _Pick; }
  206. set { SetProperty(ref _Pick, value); }
  207. }
  208. private PlcPointAddress _SecPosCamera = new PlcPointAddress();
  209. /// <summary>
  210. /// 下相机二次定位点位参数
  211. /// </summary>
  212. public PlcPointAddress Out_SecPosCamera
  213. {
  214. get { return _SecPosCamera; }
  215. set { SetProperty(ref _SecPosCamera, value); }
  216. }
  217. private PlcPointAddress _ScrewCamera = new PlcPointAddress();
  218. /// <summary>
  219. /// 锁附拍照点位参数
  220. /// </summary>
  221. public PlcPointAddress Out_ScrewCamera
  222. {
  223. get { return _ScrewCamera; }
  224. set { SetProperty(ref _ScrewCamera, value); }
  225. }
  226. private PlcPointAddress _Screw = new PlcPointAddress();
  227. /// <summary>
  228. /// 锁附点位参数
  229. /// </summary>
  230. public PlcPointAddress Out_Screw
  231. {
  232. get { return _Screw; }
  233. set { SetProperty(ref _Screw, value); }
  234. }
  235. private PlcPointAddress _CheckCamera = new PlcPointAddress();
  236. /// <summary>
  237. /// 复检点位参数
  238. /// </summary>
  239. public PlcPointAddress Out_CheckCamera
  240. {
  241. get { return _CheckCamera; }
  242. set { SetProperty(ref _CheckCamera, value); }
  243. }
  244. #endregion
  245. #region 从PLC读取的地址
  246. private PlcAddress _In_Code = new PlcAddress();
  247. /// <summary>
  248. /// 产品编码
  249. /// </summary>
  250. public PlcAddress In_Code
  251. {
  252. get { return _In_Code; }
  253. set { SetProperty(ref _In_Code, value); }
  254. }
  255. private PlcAddress _In_MesCheck = new PlcAddress();
  256. /// <summary>
  257. /// Mes交互 =1 获取过站信息当站是否生产,=2 上传本站数据
  258. /// </summary>
  259. public PlcAddress In_MesCheck
  260. {
  261. get { return _In_MesCheck; }
  262. set { SetProperty(ref _In_MesCheck, value); }
  263. }
  264. private PlcAddress _In_DowmCameraNum = new PlcAddress();
  265. /// <summary>
  266. /// 下相机拍照编号
  267. /// </summary>
  268. public PlcAddress In_DowmCameraNum
  269. {
  270. get { return _In_DowmCameraNum; }
  271. set { SetProperty(ref _In_DowmCameraNum, value); }
  272. }
  273. private PlcAddress _In_DowmCameraExe = new PlcAddress();
  274. /// <summary>
  275. /// 下相机拍照触发
  276. /// </summary>
  277. public PlcAddress In_DowmCameraExe
  278. {
  279. get { return _In_DowmCameraExe; }
  280. set { SetProperty(ref _In_DowmCameraExe, value); }
  281. }
  282. private PlcAddress _In_UpCameraPickNum = new PlcAddress();
  283. /// <summary>
  284. /// 上相机取料拍照编号
  285. /// </summary>
  286. public PlcAddress In_UpCameraPickNum
  287. {
  288. get { return _In_UpCameraPickNum; }
  289. set { SetProperty(ref _In_UpCameraPickNum, value); }
  290. }
  291. private PlcAddress _In_UpCameraPickExe = new PlcAddress();
  292. /// <summary>
  293. /// 上相机取料拍照触发
  294. /// </summary>
  295. public PlcAddress In_UpCameraPickExe
  296. {
  297. get { return _In_UpCameraPickExe; }
  298. set { SetProperty(ref _In_UpCameraPickExe, value); }
  299. }
  300. private PlcAddress _In_UpCameraPutNum = new PlcAddress();
  301. /// <summary>
  302. /// 上相机锁附/组装拍照编号
  303. /// </summary>
  304. public PlcAddress In_UpCameraPutNum
  305. {
  306. get { return _In_UpCameraPutNum; }
  307. set { SetProperty(ref _In_UpCameraPutNum, value); }
  308. }
  309. private PlcAddress _In_UpCameraPutExe = new PlcAddress();
  310. /// <summary>
  311. /// 上相机锁附/组装拍照触发
  312. /// </summary>
  313. public PlcAddress In_UpCameraPutExe
  314. {
  315. get { return _In_UpCameraPutExe; }
  316. set { SetProperty(ref _In_UpCameraPutExe, value); }
  317. }
  318. private PlcAddress _In_UPCameracheckNum = new PlcAddress();
  319. /// <summary>
  320. /// 上相机检测拍照编号
  321. /// </summary>
  322. public PlcAddress In_UPCameracheckNum
  323. {
  324. get { return _In_UPCameracheckNum; }
  325. set { SetProperty(ref _In_UPCameracheckNum, value); }
  326. }
  327. private PlcAddress _In_UPCameracheckExe = new PlcAddress();
  328. /// <summary>
  329. /// 上相机检测拍照触发
  330. /// </summary>
  331. public PlcAddress In_UPCameracheckExe
  332. {
  333. get { return _In_UPCameracheckExe; }
  334. set { SetProperty(ref _In_UPCameracheckExe, value); }
  335. }
  336. private PlcAddress _In_FixedCameraPickNum = new PlcAddress();
  337. /// <summary>
  338. /// 固定相机取料拍照编号
  339. /// </summary>
  340. public PlcAddress In_FixedCameraPickNum
  341. {
  342. get { return _In_FixedCameraPickNum; }
  343. set { SetProperty(ref _In_FixedCameraPickNum, value); }
  344. }
  345. private PlcAddress _In_FixedCameraPickExe = new PlcAddress();
  346. /// <summary>
  347. /// 固定相机取料拍照触发
  348. /// </summary>
  349. public PlcAddress In_FixedCameraPickExe
  350. {
  351. get { return _In_FixedCameraPickExe; }
  352. set { SetProperty(ref _In_FixedCameraPickExe, value); }
  353. }
  354. private PlcAddress _In_FixedCameraPutNum = new PlcAddress();
  355. /// <summary>
  356. /// 固定相机锁附/组装拍照编号
  357. /// </summary>
  358. public PlcAddress In_FixedCameraPutNum
  359. {
  360. get { return _In_FixedCameraPutNum; }
  361. set { SetProperty(ref _In_FixedCameraPutNum, value); }
  362. }
  363. private PlcAddress _In_FixedCameraPutExe = new PlcAddress();
  364. /// <summary>
  365. /// 固定相机锁附/组装拍照触发
  366. /// </summary>
  367. public PlcAddress In_FixedCameraPutExe
  368. {
  369. get { return _In_FixedCameraPutExe; }
  370. set { SetProperty(ref _In_FixedCameraPutExe, value); }
  371. }
  372. private PlcAddress _In_FixedCameracheckNum = new PlcAddress();
  373. /// <summary>
  374. /// 固定相机检测拍照编号
  375. /// </summary>
  376. public PlcAddress In_FixedCameracheckNum
  377. {
  378. get { return _In_FixedCameracheckNum; }
  379. set { SetProperty(ref _In_FixedCameracheckNum, value); }
  380. }
  381. private PlcAddress _In_FixedCameracheckExe = new PlcAddress();
  382. /// <summary>
  383. /// 固定相机检测拍照触发
  384. /// </summary>
  385. public PlcAddress In_FixedCameracheckExe
  386. {
  387. get { return _In_FixedCameracheckExe; }
  388. set { SetProperty(ref _In_FixedCameracheckExe, value); }
  389. }
  390. private PlcAddress _In_ProductNum = new PlcAddress();
  391. /// <summary>
  392. /// 正在锁附/组装编号
  393. /// </summary>
  394. public PlcAddress In_ProductNum
  395. {
  396. get { return _In_ProductNum; }
  397. set { SetProperty(ref _In_ProductNum, value); }
  398. }
  399. private PlcAddress _In_RequestPosition = new PlcAddress();
  400. /// <summary>
  401. /// 请求目标位置
  402. /// </summary>
  403. public PlcAddress In_RequestPosition
  404. {
  405. get { return _In_RequestPosition; }
  406. set { SetProperty(ref _In_RequestPosition, value); }
  407. }
  408. private PlcAddress _In_WorkStart = new PlcAddress();
  409. /// <summary>
  410. /// 锁附/组装开始 =1
  411. /// </summary>
  412. public PlcAddress In_WorkStart
  413. {
  414. get { return _In_WorkStart; }
  415. set { SetProperty(ref _In_WorkStart, value); }
  416. }
  417. private PlcAddress _In_WorkDone = new PlcAddress();
  418. /// <summary>
  419. /// 锁附/组装结束 =1OK =2NG
  420. /// </summary>
  421. public PlcAddress In_WorkDone
  422. {
  423. get { return _In_WorkDone; }
  424. set { SetProperty(ref _In_WorkDone, value); }
  425. }
  426. private PlcAddress _In_PressureValue = new PlcAddress();
  427. /// <summary>
  428. /// 压力值
  429. /// </summary>
  430. public PlcAddress In_PressureValue
  431. {
  432. get { return _In_PressureValue; }
  433. set { SetProperty(ref _In_PressureValue, value); }
  434. }
  435. #endregion
  436. public PlcAddressConfig()
  437. {
  438. }
  439. // 初始默认值
  440. public void SetDefaultValue()
  441. {
  442. // 1. PlcNo 默认
  443. PlcNo = 1;
  444. // 辅助局部函数:确保 PlcAddress 实例存在
  445. PlcAddress Ensure(PlcAddress a)
  446. {
  447. if (a == null) return new PlcAddress();
  448. return a;
  449. }
  450. // 辅助局部函数:确保 PlcPointAddress 实例存在
  451. PlcPointAddress EnsurePoint(PlcPointAddress p)
  452. {
  453. if (p == null) return new PlcPointAddress();
  454. return p;
  455. }
  456. // 2. 按 JSON 提供的数据设置默认值(以当前属性名为准)
  457. Out_WorkMode = Ensure(Out_WorkMode);
  458. Out_WorkMode.Address = "ns=4;s=DB_Communication|FromPC.WorkMode";
  459. Out_WorkMode.DataType = "int16";
  460. Out_WorkMode.Description = "工作模式 =1 拍1打1 =2 拍1打所有";
  461. Out_PickPointNum = Ensure(Out_PickPointNum);
  462. Out_PickPointNum.Address = "ns=4;s=DB_Communication|FromPC.PickPointNum";
  463. Out_PickPointNum.DataType = "int16";
  464. Out_PickPointNum.Description = "取料位置 =0 不需要取料 =1 需要取料";
  465. Out_DowmCameraNum = Ensure(Out_DowmCameraNum);
  466. Out_DowmCameraNum.Address = "ns=4;s=DB_Communication|FromPC.DowmCameraNum";
  467. Out_DowmCameraNum.DataType = "int16";
  468. Out_DowmCameraNum.Description = "下相机拍照次数=0 无";
  469. Out_UpCameraPickNum = Ensure(Out_UpCameraPickNum);
  470. Out_UpCameraPickNum.Address = "ns=4;s=DB_Communication|FromPC.UpCameraPickNum";
  471. Out_UpCameraPickNum.DataType = "int16";
  472. Out_UpCameraPickNum.Description = "上相机取料拍照次数=0 无";
  473. Out_UpCameraPutNum = Ensure(Out_UpCameraPutNum);
  474. Out_UpCameraPutNum.Address = "ns=4;s=DB_Communication|FromPC.UpCameraPutNum";
  475. Out_UpCameraPutNum.DataType = "int16";
  476. Out_UpCameraPutNum.Description = "上相机放料拍照次数=0 无";
  477. Out_UPCameracheckNum = Ensure(Out_UPCameracheckNum);
  478. Out_UPCameracheckNum.Address = "ns=4;s=DB_Communication|FromPC.UPCameracheckNum";
  479. Out_UPCameracheckNum.DataType = "int16";
  480. Out_UPCameracheckNum.Description = "上相机锁附/组装次数=0 无";
  481. Out_FixedCameraPickNum = Ensure(Out_FixedCameraPickNum);
  482. Out_FixedCameraPickNum.Address = "ns=4;s=DB_Communication|FromPC.FixedCameraPickNum";
  483. Out_FixedCameraPickNum.DataType = "int16";
  484. Out_FixedCameraPickNum.Description = "取料固定位置拍产品相机数量 =0 无";
  485. Out_FixedCameraPutNum = Ensure(Out_FixedCameraPutNum);
  486. Out_FixedCameraPutNum.Address = "ns=4;s=DB_Communication|FromPC.FixedCameraPutNum";
  487. Out_FixedCameraPutNum.DataType = "int16";
  488. Out_FixedCameraPutNum.Description = "锁附/组装固定位置拍产品相机数量 =0 无";
  489. Out_FixedCameracheckNum = Ensure(Out_FixedCameracheckNum);
  490. Out_FixedCameracheckNum.Address = "ns=4;s=DB_Communication|FromPC.FixedCameracheckNum";
  491. Out_FixedCameracheckNum.DataType = "int16";
  492. Out_FixedCameracheckNum.Description = "固定相机检测锁附/组装次数=0 无";
  493. Out_PickCamera = EnsurePoint(Out_PickCamera);
  494. // 3. 为其余 Out_* 设置合理默认(基于注释)
  495. Out_WorkNum = Ensure(Out_WorkNum);
  496. Out_WorkNum.Address = "ns=4;s=DB_Communication|FromPC.WorkNum";
  497. Out_WorkNum.DataType = "int16";
  498. Out_WorkNum.Description = "锁附/组装数量";
  499. Out_DownCameraStatus = Ensure(Out_DownCameraStatus);
  500. Out_DownCameraStatus.Address = "ns=4;s=DB_Communication|FromPC.DownCameraStatus";
  501. Out_DownCameraStatus.DataType = "int16";
  502. Out_DownCameraStatus.Description = "下相机拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK";
  503. Out_UpCameraPickStatus = Ensure(Out_UpCameraPickStatus);
  504. Out_UpCameraPickStatus.Address = "ns=4;s=DB_Communication|FromPC.UpCameraPickStatus";
  505. Out_UpCameraPickStatus.DataType = "int16";
  506. Out_UpCameraPickStatus.Description = "上相机取料拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK";
  507. Out_UpCameraPutStatus = Ensure(Out_UpCameraPutStatus);
  508. Out_UpCameraPutStatus.Address = "ns=4;s=DB_Communication|FromPC.UpCameraPutStatus";
  509. Out_UpCameraPutStatus.DataType = "int16";
  510. Out_UpCameraPutStatus.Description = "上相机锁附/组装拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK";
  511. Out_UPCameracheckStatus = Ensure(Out_UPCameracheckStatus);
  512. Out_UPCameracheckStatus.Address = "ns=4;s=DB_Communication|FromPC.UPCameracheckStatus";
  513. Out_UPCameracheckStatus.DataType = "int16";
  514. Out_UPCameracheckStatus.Description = "上相机检测拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK";
  515. Out_FixedCameraPickStatus = Ensure(Out_FixedCameraPickStatus);
  516. Out_FixedCameraPickStatus.Address = "ns=4;s=DB_Communication|FromPC.FixedCameraPickStatus";
  517. Out_FixedCameraPickStatus.DataType = "int16";
  518. Out_FixedCameraPickStatus.Description = "固定相机取料拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK";
  519. Out_FixedCameraPutStatus = Ensure(Out_FixedCameraPutStatus);
  520. Out_FixedCameraPutStatus.Address = "ns=4;s=DB_Communication|FromPC.FixedCameraPutStatus";
  521. Out_FixedCameraPutStatus.DataType = "int16";
  522. Out_FixedCameraPutStatus.Description = "固定相机锁附/组装拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK";
  523. Out_FixedCameracheckStatus = Ensure(Out_FixedCameracheckStatus);
  524. Out_FixedCameracheckStatus.Address = "ns=4;s=DB_Communication|FromPC.FixedCameracheckStatus";
  525. Out_FixedCameracheckStatus.DataType = "int16";
  526. Out_FixedCameracheckStatus.Description = "固定相机检测拍照结果 =1 拍照OK =2 拍照NG =3 取图拍照OK";
  527. Out_CameraDone = Ensure(Out_CameraDone);
  528. Out_CameraDone.Address = "ns=4;s=DB_Communication|FromPC.CameraDone";
  529. Out_CameraDone.DataType = "int16";
  530. Out_CameraDone.Description = "相机坐标拟合完成";
  531. Out_MesStatus = Ensure(Out_MesStatus);
  532. Out_MesStatus.Address = "ns=4;s=DB_Communication|FromPC.MesStatus[0]";
  533. Out_MesStatus.DataType = "int16";
  534. Out_MesStatus.Description = "过站信息 =1 允许工作 =2 本站放行 =3 数据上传完成";
  535. // Out_PickCamera 初始化并赋地址
  536. Out_PickCamera = EnsurePoint(Out_PickCamera);
  537. Out_PickCamera.Description = "取料拍照点位参数";
  538. Out_PickCamera.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].X_Position";
  539. Out_PickCamera.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].X_Velocity";
  540. Out_PickCamera.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].Y_Position";
  541. Out_PickCamera.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].Y_Velocity";
  542. Out_PickCamera.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].Z_Position_Start";
  543. Out_PickCamera.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].Z_Velocity_Start";
  544. Out_PickCamera.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].Z_Position_Stop";
  545. Out_PickCamera.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].Z_Velocity_Stop";
  546. Out_PickCamera.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].U_Position";
  547. Out_PickCamera.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].U_Velocity";
  548. Out_PickCamera.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].R_Position";
  549. Out_PickCamera.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].R_Velocity";
  550. Out_PickCamera.Torque.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].Torque";
  551. Out_PickCamera.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].Feeder";
  552. Out_PickCamera.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Point_PickCamera[{0}].ScrewProNum";
  553. // Out_Pick(取料点位)初始化并赋地址
  554. Out_Pick = EnsurePoint(Out_Pick);
  555. Out_Pick.Description = "取料点位参数";
  556. Out_Pick.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].X_Position";
  557. Out_Pick.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].X_Velocity";
  558. Out_Pick.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].Y_Position";
  559. Out_Pick.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].Y_Velocity";
  560. Out_Pick.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].Z_Position_Start";
  561. Out_Pick.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].Z_Velocity_Start";
  562. Out_Pick.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].Z_Position_Stop";
  563. Out_Pick.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].Z_Velocity_Stop";
  564. Out_Pick.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].U_Position";
  565. Out_Pick.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].U_Velocity";
  566. Out_Pick.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].R_Position";
  567. Out_Pick.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].R_Velocity";
  568. Out_Pick.Torque.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].Torque";
  569. Out_Pick.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].Feeder";
  570. Out_Pick.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Point_Pick[{0}].ScrewProNum";
  571. // Out_SecPosCamera(下相机二次定位)初始化并赋地址
  572. Out_SecPosCamera = EnsurePoint(Out_SecPosCamera);
  573. Out_SecPosCamera.Description = "下相机二次定位点位参数";
  574. Out_SecPosCamera.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].X_Position";
  575. Out_SecPosCamera.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].X_Velocity";
  576. Out_SecPosCamera.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].Y_Position";
  577. Out_SecPosCamera.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].Y_Velocity";
  578. Out_SecPosCamera.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].Z_Position_Start";
  579. Out_SecPosCamera.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].Z_Velocity_Start";
  580. Out_SecPosCamera.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].Z_Position_Stop";
  581. Out_SecPosCamera.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].Z_Velocity_Stop";
  582. Out_SecPosCamera.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].U_Position";
  583. Out_SecPosCamera.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].U_Velocity";
  584. Out_SecPosCamera.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].R_Position";
  585. Out_SecPosCamera.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].R_Velocity";
  586. Out_SecPosCamera.Torque.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].Torque";
  587. Out_SecPosCamera.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].Feeder";
  588. Out_SecPosCamera.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Point_SecPosCamera[{0}].ScrewProNum";
  589. // Out_ScrewCamera(锁附拍照点位)初始化并赋地址
  590. Out_ScrewCamera = EnsurePoint(Out_ScrewCamera);
  591. Out_ScrewCamera.Description = "锁附拍照点位参数";
  592. Out_ScrewCamera.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].X_Position";
  593. Out_ScrewCamera.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].X_Velocity";
  594. Out_ScrewCamera.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].Y_Position";
  595. Out_ScrewCamera.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].Y_Velocity";
  596. Out_ScrewCamera.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].Z_Position_Start";
  597. Out_ScrewCamera.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].Z_Velocity_Start";
  598. Out_ScrewCamera.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].Z_Position_Stop";
  599. Out_ScrewCamera.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].Z_Velocity_Stop";
  600. Out_ScrewCamera.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].U_Position";
  601. Out_ScrewCamera.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].U_Velocity";
  602. Out_ScrewCamera.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].R_Position";
  603. Out_ScrewCamera.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].R_Velocity";
  604. Out_ScrewCamera.Torque.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].Torque";
  605. Out_ScrewCamera.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].Feeder";
  606. Out_ScrewCamera.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Point_ScrewCamera[{0}].ScrewProNum";
  607. // Out_Screw(锁附点位)初始化并赋地址
  608. Out_Screw = EnsurePoint(Out_Screw);
  609. Out_Screw.Description = "锁附点位参数";
  610. Out_Screw.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].X_Position";
  611. Out_Screw.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].X_Velocity";
  612. Out_Screw.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].Y_Position";
  613. Out_Screw.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].Y_Velocity";
  614. Out_Screw.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].Z_Position_Start";
  615. Out_Screw.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].Z_Velocity_Start";
  616. Out_Screw.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].Z_Position_Stop";
  617. Out_Screw.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].Z_Velocity_Stop";
  618. Out_Screw.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].U_Position";
  619. Out_Screw.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].U_Velocity";
  620. Out_Screw.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].R_Position";
  621. Out_Screw.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].R_Velocity";
  622. Out_Screw.Torque.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].Torque";
  623. Out_Screw.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].Feeder";
  624. Out_Screw.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Point_Screw[{0}].ScrewProNum";
  625. // Out_CheckCamera(复检点位)初始化并赋地址
  626. Out_CheckCamera = EnsurePoint(Out_CheckCamera);
  627. Out_CheckCamera.Description = "复检点位参数";
  628. Out_CheckCamera.X_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].X_Position";
  629. Out_CheckCamera.X_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].X_Velocity";
  630. Out_CheckCamera.Y_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].Y_Position";
  631. Out_CheckCamera.Y_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].Y_Velocity";
  632. Out_CheckCamera.Z_Position_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].Z_Position_Start";
  633. Out_CheckCamera.Z_Velocity_Start.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].Z_Velocity_Start";
  634. Out_CheckCamera.Z_Position_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].Z_Position_Stop";
  635. Out_CheckCamera.Z_Velocity_Stop.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].Z_Velocity_Stop";
  636. Out_CheckCamera.U_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].U_Position";
  637. Out_CheckCamera.U_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].U_Velocity";
  638. Out_CheckCamera.R_Position.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].R_Position";
  639. Out_CheckCamera.R_Velocity.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].R_Velocity";
  640. Out_CheckCamera.Torque.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].Torque";
  641. Out_CheckCamera.Feeder.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].Feeder";
  642. Out_CheckCamera.ScrewProNum.Address = "ns=4;s=DB_Communication|FromPC.Point_CheckCamera[{0}].ScrewProNum";
  643. // 4. In_* 默认(假定从 PLC 读到 PC,使用 ToPC 前缀)
  644. In_Code = Ensure(In_Code);
  645. In_Code.Address = "ns=4;s=DB_Communication|ToPC.Mes[0].Code";
  646. In_Code.DataType = "string";
  647. In_Code.Description = "产品编码";
  648. In_MesCheck = Ensure(In_MesCheck);
  649. In_MesCheck.Address = "ns=4;s=DB_Communication|ToPC.Mes[0].Check";
  650. In_MesCheck.DataType = "int16";
  651. In_MesCheck.Description = "Mes交互 =1 获取过站信息当站是否生产,=2 上传本站数据";
  652. In_DowmCameraNum = Ensure(In_DowmCameraNum);
  653. In_DowmCameraNum.Address = "ns=4;s=DB_Communication|ToPC.DowmCameraNum";
  654. In_DowmCameraNum.DataType = "int16";
  655. In_DowmCameraNum.Description = "下相机拍照编号";
  656. In_DowmCameraExe = Ensure(In_DowmCameraExe);
  657. In_DowmCameraExe.Address = "ns=4;s=DB_Communication|ToPC.DowmCameraExe";
  658. In_DowmCameraExe.DataType = "int16";
  659. In_DowmCameraExe.Description = "下相机拍照触发";
  660. In_UpCameraPickNum = Ensure(In_UpCameraPickNum);
  661. In_UpCameraPickNum.Address = "ns=4;s=DB_Communication|ToPC.UpCameraPickNum";
  662. In_UpCameraPickNum.DataType = "int16";
  663. In_UpCameraPickNum.Description = "上相机取料拍照编号";
  664. In_UpCameraPickExe = Ensure(In_UpCameraPickExe);
  665. In_UpCameraPickExe.Address = "ns=4;s=DB_Communication|ToPC.UpCameraPickExe";
  666. In_UpCameraPickExe.DataType = "int16";
  667. In_UpCameraPickExe.Description = "上相机取料拍照触发";
  668. In_UpCameraPutNum = Ensure(In_UpCameraPutNum);
  669. In_UpCameraPutNum.Address = "ns=4;s=DB_Communication|ToPC.UpCameraPutNum";
  670. In_UpCameraPutNum.DataType = "int16";
  671. In_UpCameraPutNum.Description = "上相机锁附/组装拍照编号";
  672. In_UpCameraPutExe = Ensure(In_UpCameraPutExe);
  673. In_UpCameraPutExe.Address = "ns=4;s=DB_Communication|ToPC.UpCameraPutExe";
  674. In_UpCameraPutExe.DataType = "int16";
  675. In_UpCameraPutExe.Description = "上相机锁附/组装拍照触发";
  676. In_UPCameracheckNum = Ensure(In_UPCameracheckNum);
  677. In_UPCameracheckNum.Address = "ns=4;s=DB_Communication|ToPC.UPCameracheckNum";
  678. In_UPCameracheckNum.DataType = "int16";
  679. In_UPCameracheckNum.Description = "上相机检测拍照编号";
  680. In_UPCameracheckExe = Ensure(In_UPCameracheckExe);
  681. In_UPCameracheckExe.Address = "ns=4;s=DB_Communication|ToPC.UPCameracheckExe";
  682. In_UPCameracheckExe.DataType = "int16";
  683. In_UPCameracheckExe.Description = "上相机检测拍照触发";
  684. In_FixedCameraPickNum = Ensure(In_FixedCameraPickNum);
  685. In_FixedCameraPickNum.Address = "ns=4;s=DB_Communication|ToPC.FixedCameraPickNum";
  686. In_FixedCameraPickNum.DataType = "int16";
  687. In_FixedCameraPickNum.Description = "固定相机取料拍照编号";
  688. In_FixedCameraPickExe = Ensure(In_FixedCameraPickExe);
  689. In_FixedCameraPickExe.Address = "ns=4;s=DB_Communication|ToPC.FixedCameraPickExe";
  690. In_FixedCameraPickExe.DataType = "int16";
  691. In_FixedCameraPickExe.Description = "固定相机取料拍照触发";
  692. In_FixedCameraPutNum = Ensure(In_FixedCameraPutNum);
  693. In_FixedCameraPutNum.Address = "ns=4;s=DB_Communication|ToPC.FixedCameraPutNum";
  694. In_FixedCameraPutNum.DataType = "int16";
  695. In_FixedCameraPutNum.Description = "固定相机锁附/组装拍照编号";
  696. In_FixedCameraPutExe = Ensure(In_FixedCameraPutExe);
  697. In_FixedCameraPutExe.Address = "ns=4;s=DB_Communication|ToPC.FixedCameraPutExe";
  698. In_FixedCameraPutExe.DataType = "int16";
  699. In_FixedCameraPutExe.Description = "固定相机锁附/组装拍照触发";
  700. In_FixedCameracheckNum = Ensure(In_FixedCameracheckNum);
  701. In_FixedCameracheckNum.Address = "ns=4;s=DB_Communication|ToPC.FixedCameracheckNum";
  702. In_FixedCameracheckNum.DataType = "int16";
  703. In_FixedCameracheckNum.Description = "固定相机检测拍照编号";
  704. In_FixedCameracheckExe = Ensure(In_FixedCameracheckExe);
  705. In_FixedCameracheckExe.Address = "ns=4;s=DB_Communication|ToPC.FixedCameracheckExe";
  706. In_FixedCameracheckExe.DataType = "int16";
  707. In_FixedCameracheckExe.Description = "固定相机检测拍照触发";
  708. In_ProductNum = Ensure(In_ProductNum);
  709. In_ProductNum.Address = "ns=4;s=DB_Communication|ToPC.ProductNum";
  710. In_ProductNum.DataType = "int16";
  711. In_ProductNum.Description = "正在锁附/组装编号";
  712. In_RequestPosition = Ensure(In_RequestPosition);
  713. In_RequestPosition.Address = "ns=4;s=DB_Communication|ToPC.RequestPosition";
  714. In_RequestPosition.DataType = "int16";
  715. In_RequestPosition.Description = "请求目标位置";
  716. In_WorkStart = Ensure(In_WorkStart);
  717. In_WorkStart.Address = "ns=4;s=DB_Communication|ToPC.WorkStart";
  718. In_WorkStart.DataType = "int16";
  719. In_WorkStart.Description = "锁附/组装开始 =1";
  720. In_WorkDone = Ensure(In_WorkDone);
  721. In_WorkDone.Address = "ns=4;s=DB_Communication|ToPC.WorkDone";
  722. In_WorkDone.DataType = "int16";
  723. In_WorkDone.Description = "锁附/组装结束 =1OK =2NG";
  724. In_PressureValue = Ensure(In_PressureValue);
  725. In_PressureValue.Address = "ns=4;s=DB_DriveControl|AICtrl[1].Status.UserData";
  726. In_PressureValue.DataType = "float";
  727. In_PressureValue.Description = "压力值";
  728. // 说明:若项目中 PlcAddress 的实际属性名或类型与此不同(例如使用枚举、不同字段名),
  729. // 请根据实际类型调整赋值。本方法主要提供合理的默认字符串地址、数据类型及描述,便于后续从配置覆盖。
  730. }
  731. }
  732. }