PlcPointAddress.cs 6.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace TeamAAS_VP.Models.PLC
  7. {
  8. public class PlcPointAddress
  9. {
  10. //描述
  11. public string Description { get; set; }
  12. public PlcAddress X_Position_Start { get; set; }
  13. public PlcAddress X_Velocity_Start { get;set; }
  14. public PlcAddress X_Position_Stop { get; set; }
  15. public PlcAddress X_Velocity_Stop { get; set; }
  16. public PlcAddress Y_Position_Start { get; set; }
  17. public PlcAddress Y_Velocity_Start { get; set; }
  18. public PlcAddress Y_Position_Stop { get; set; }
  19. public PlcAddress Y_Velocity_Stop { get; set; }
  20. public PlcAddress Z_Position_Start { get; set; }
  21. public PlcAddress Z_Velocity_Start { get; set; }
  22. public PlcAddress Z_Position_Stop { get; set; }
  23. public PlcAddress Z_Velocity_Stop { get; set; }
  24. public PlcAddress U_Position_Start { get; set; }
  25. public PlcAddress U_Velocity_Start { get; set; }
  26. public PlcAddress U_Position_Stop { get; set; }
  27. public PlcAddress U_Velocity_Stop { get; set; }
  28. public PlcAddress V_Position_Start { get; set; }
  29. public PlcAddress V_Velocity_Start { get; set; }
  30. public PlcAddress V_Position_Stop { get; set; }
  31. public PlcAddress V_Velocity_Stop { get; set; }
  32. public PlcAddress W_Position_Start { get; set; }
  33. public PlcAddress W_Velocity_Start { get; set; }
  34. public PlcAddress W_Position_Stop { get; set; }
  35. public PlcAddress W_Velocity_Stop { get; set; }
  36. public PlcAddress Enable_Start_Node { get; set; }
  37. public PlcAddress Enable_Pulse { get; set; }
  38. public PlcAddress Enable_3D { get; set; }
  39. public PlcAddress Enable_Wait_Finish { get; set; }
  40. public PlcAddress Enable_Light1 { get; set; }
  41. public PlcAddress Enable_Light2 { get; set; }
  42. public PlcAddress Enable_Light3 { get; set; }
  43. public PlcAddress Enable_Light4 { get; set; }
  44. public PlcAddress R_Position { get; set; }
  45. public PlcAddress R_Velocity { get; set; }
  46. public PlcAddress Torque { get; set; }
  47. public PlcAddress Feeder { get; set; }
  48. public PlcAddress ScrewProNum { get; set; }
  49. public PlcPointAddress()
  50. {
  51. Description = "点位地址";
  52. X_Position_Start = new PlcAddress() { Description = "X轴位置起始地址",DataType="float" };
  53. X_Velocity_Start = new PlcAddress() { Description = "X轴速度起始地址", DataType = "float" };
  54. X_Position_Stop = new PlcAddress() { Description = "X轴位置终点地址", DataType = "float" };
  55. X_Velocity_Stop = new PlcAddress() { Description = "X轴速度终点地址", DataType = "float" };
  56. Y_Position_Start = new PlcAddress() { Description = "Y轴位置起始地址", DataType = "float" };
  57. Y_Velocity_Start = new PlcAddress() { Description = "Y轴速度起始地址", DataType = "float" };
  58. Y_Position_Stop = new PlcAddress() { Description = "Y轴位置终点地址", DataType = "float" };
  59. Y_Velocity_Stop = new PlcAddress() { Description = "Y轴速度终点地址", DataType = "float" };
  60. Z_Position_Start = new PlcAddress() { Description = "Z轴起始位置地址", DataType = "float" };
  61. Z_Velocity_Start = new PlcAddress() { Description = "Z轴起始速度地址", DataType = "float" };
  62. Z_Position_Stop = new PlcAddress() { Description = "Z轴停止位置地址", DataType = "float" };
  63. Z_Velocity_Stop = new PlcAddress() { Description = "Z轴停止速度地址", DataType = "float" };
  64. U_Position_Start = new PlcAddress() { Description = "U轴位置起始地址", DataType = "float" };
  65. U_Velocity_Start = new PlcAddress() { Description = "U轴速度起始地址", DataType = "float" };
  66. U_Position_Stop = new PlcAddress() { Description = "U轴位置终点地址", DataType = "float" };
  67. U_Velocity_Stop = new PlcAddress() { Description = "U轴速度终点地址", DataType = "float" };
  68. V_Position_Start = new PlcAddress() { Description = "V轴位置起始地址", DataType = "float" };
  69. V_Velocity_Start = new PlcAddress() { Description = "V轴速度起始地址", DataType = "float" };
  70. V_Position_Stop = new PlcAddress() { Description = "V轴位置终点地址", DataType = "float" };
  71. V_Velocity_Stop = new PlcAddress() { Description = "V轴速度终点地址", DataType = "float" };
  72. W_Position_Start = new PlcAddress() { Description = "W轴位置起始地址", DataType = "float" };
  73. W_Velocity_Start = new PlcAddress() { Description = "W轴速度起始地址", DataType = "float" };
  74. W_Position_Stop = new PlcAddress() { Description = "W轴位置终点地址", DataType = "float" };
  75. W_Velocity_Stop = new PlcAddress() { Description = "W轴速度终点地址", DataType = "float" };
  76. Enable_Start_Node = new PlcAddress() { Description = "启用本起始位节点地址", DataType = "int16" };
  77. Enable_Pulse = new PlcAddress() { Description = "使能脉冲地址", DataType = "int16" };
  78. Enable_3D = new PlcAddress() { Description = "使能3D地址", DataType = "int16" };
  79. Enable_Wait_Finish = new PlcAddress() { Description = "使能等待完成地址", DataType = "int16" };
  80. Enable_Light1 = new PlcAddress() { Description = "使能灯1地址", DataType = "int16" };
  81. Enable_Light2 = new PlcAddress() { Description = "使能灯2地址", DataType = "int16" };
  82. Enable_Light3 = new PlcAddress() { Description = "使能灯3地址", DataType = "int16" };
  83. Enable_Light4 = new PlcAddress() { Description = "使能灯4地址", DataType = "int16" };
  84. //R_Position = new PlcAddress() { Description = "R轴位置地址", DataType = "float" };
  85. //R_Velocity = new PlcAddress() { Description = "R轴速度地址", DataType = "float" };
  86. //Torque = new PlcAddress() { Description = "扭矩地址", DataType = "float" };
  87. //Feeder = new PlcAddress() { Description = "送料器地址", DataType = "int16" };
  88. //ScrewProNum = new PlcAddress() { Description = "螺杆程序号地址", DataType = "int16" };
  89. }
  90. }
  91. }