PlcPointAddress.cs 5.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 Enable_Start_Node { get; set; }
  29. public PlcAddress Enable_Pulse { get; set; }
  30. public PlcAddress Enable_3D { get; set; }
  31. public PlcAddress Enable_Wait_Finish { get; set; }
  32. public PlcAddress Enable_Light1 { get; set; }
  33. public PlcAddress Enable_Light2 { get; set; }
  34. public PlcAddress Enable_Light3 { get; set; }
  35. public PlcAddress Enable_Light4 { get; set; }
  36. public PlcAddress R_Position { get; set; }
  37. public PlcAddress R_Velocity { get; set; }
  38. public PlcAddress Torque { get; set; }
  39. public PlcAddress Feeder { get; set; }
  40. public PlcAddress ScrewProNum { get; set; }
  41. public PlcPointAddress()
  42. {
  43. Description = "点位地址";
  44. X_Position_Start = new PlcAddress() { Description = "X轴位置起始地址",DataType="float" };
  45. X_Velocity_Start = new PlcAddress() { Description = "X轴速度起始地址", DataType = "float" };
  46. X_Position_Stop = new PlcAddress() { Description = "X轴位置终点地址", DataType = "float" };
  47. X_Velocity_Stop = new PlcAddress() { Description = "X轴速度终点地址", DataType = "float" };
  48. Y_Position_Start = new PlcAddress() { Description = "Y轴位置起始地址", DataType = "float" };
  49. Y_Velocity_Start = new PlcAddress() { Description = "Y轴速度起始地址", DataType = "float" };
  50. Y_Position_Stop = new PlcAddress() { Description = "Y轴位置终点地址", DataType = "float" };
  51. Y_Velocity_Stop = new PlcAddress() { Description = "Y轴速度终点地址", DataType = "float" };
  52. Z_Position_Start = new PlcAddress() { Description = "Z轴起始位置地址", DataType = "float" };
  53. Z_Velocity_Start = new PlcAddress() { Description = "Z轴起始速度地址", DataType = "float" };
  54. Z_Position_Stop = new PlcAddress() { Description = "Z轴停止位置地址", DataType = "float" };
  55. Z_Velocity_Stop = new PlcAddress() { Description = "Z轴停止速度地址", DataType = "float" };
  56. U_Position_Start = new PlcAddress() { Description = "U轴位置起始地址", DataType = "float" };
  57. U_Velocity_Start = new PlcAddress() { Description = "U轴速度起始地址", DataType = "float" };
  58. U_Position_Stop = new PlcAddress() { Description = "U轴位置终点地址", DataType = "float" };
  59. U_Velocity_Stop = new PlcAddress() { Description = "U轴速度终点地址", DataType = "float" };
  60. Enable_Start_Node = new PlcAddress() { Description = "启用本起始位节点地址", DataType = "int16" };
  61. Enable_Pulse = new PlcAddress() { Description = "使能脉冲地址", DataType = "int16" };
  62. Enable_3D = new PlcAddress() { Description = "使能3D地址", DataType = "int16" };
  63. Enable_Wait_Finish = new PlcAddress() { Description = "使能等待完成地址", DataType = "int16" };
  64. Enable_Light1 = new PlcAddress() { Description = "使能灯1地址", DataType = "int16" };
  65. Enable_Light2 = new PlcAddress() { Description = "使能灯2地址", DataType = "int16" };
  66. Enable_Light3 = new PlcAddress() { Description = "使能灯3地址", DataType = "int16" };
  67. Enable_Light4 = new PlcAddress() { Description = "使能灯4地址", DataType = "int16" };
  68. //R_Position = new PlcAddress() { Description = "R轴位置地址", DataType = "float" };
  69. //R_Velocity = new PlcAddress() { Description = "R轴速度地址", DataType = "float" };
  70. //Torque = new PlcAddress() { Description = "扭矩地址", DataType = "float" };
  71. //Feeder = new PlcAddress() { Description = "送料器地址", DataType = "int16" };
  72. //ScrewProNum = new PlcAddress() { Description = "螺杆程序号地址", DataType = "int16" };
  73. }
  74. }
  75. }