PlcPointAddress.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 { get; set; }
  13. public PlcAddress X_Velocity { get;set; }
  14. public PlcAddress Y_Position { get; set; }
  15. public PlcAddress Y_Velocity { get; set; }
  16. public PlcAddress Z_Position_Start { get; set; }
  17. public PlcAddress Z_Velocity_Start { get; set; }
  18. public PlcAddress Z_Position_Stop { get; set; }
  19. public PlcAddress Z_Velocity_Stop { get; set; }
  20. public PlcAddress U_Position { get; set; }
  21. public PlcAddress U_Velocity { get; set; }
  22. public PlcAddress R_Position { get; set; }
  23. public PlcAddress R_Velocity { get; set; }
  24. public PlcAddress Torque { get; set; }
  25. public PlcAddress Feeder { get; set; }
  26. public PlcAddress ScrewProNum { get; set; }
  27. public PlcPointAddress()
  28. {
  29. Description = "点位地址";
  30. X_Position = new PlcAddress() { Description = "X轴位置地址",DataType="float" };
  31. X_Velocity = new PlcAddress() { Description = "X轴速度地址", DataType = "float" };
  32. Y_Position = new PlcAddress() { Description = "Y轴位置地址", DataType = "float" };
  33. Y_Velocity = new PlcAddress() { Description = "Y轴速度地址", DataType = "float" };
  34. Z_Position_Start = new PlcAddress() { Description = "Z轴起始位置地址", DataType = "float" };
  35. Z_Velocity_Start = new PlcAddress() { Description = "Z轴起始速度地址", DataType = "float" };
  36. Z_Position_Stop = new PlcAddress() { Description = "Z轴停止位置地址", DataType = "float" };
  37. Z_Velocity_Stop = new PlcAddress() { Description = "Z轴停止速度地址", DataType = "float" };
  38. U_Position = new PlcAddress() { Description = "U轴位置地址", DataType = "float" };
  39. U_Velocity = new PlcAddress() { Description = "U轴速度地址", DataType = "float" };
  40. R_Position = new PlcAddress() { Description = "R轴位置地址", DataType = "float" };
  41. R_Velocity = new PlcAddress() { Description = "R轴速度地址", DataType = "float" };
  42. Torque = new PlcAddress() { Description = "扭矩地址", DataType = "float" };
  43. Feeder = new PlcAddress() { Description = "送料器地址", DataType = "int16" };
  44. ScrewProNum = new PlcAddress() { Description = "螺杆程序号地址", DataType = "int16" };
  45. }
  46. }
  47. }