PlcPointAddress.cs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using TeamAAS_VP.Resources.Languages;
  7. namespace TeamAAS_VP.Models.PLC
  8. {
  9. public class PlcPointAddress
  10. {
  11. //描述
  12. public string Description { get; set; }
  13. public PlcAddress X_Position { get; set; }
  14. public PlcAddress X_Velocity { get;set; }
  15. public PlcAddress Y_Position { get; set; }
  16. public PlcAddress Y_Velocity { get; set; }
  17. public PlcAddress Z_Position_Start { get; set; }
  18. public PlcAddress Z_Velocity_Start { get; set; }
  19. public PlcAddress Z_Position_Stop { get; set; }
  20. public PlcAddress Z_Velocity_Stop { get; set; }
  21. public PlcAddress U_Position { get; set; }
  22. public PlcAddress U_Velocity { get; set; }
  23. public PlcAddress R_Position { get; set; }
  24. public PlcAddress R_Velocity { get; set; }
  25. public PlcAddress Torque { get; set; }
  26. public PlcAddress Feeder { get; set; }
  27. public PlcAddress ScrewProNum { get; set; }
  28. public PlcPointAddress()
  29. {
  30. Description = Lang.点位地址;
  31. X_Position = new PlcAddress() { Description = Lang.X轴位置地址,DataType="float" };
  32. X_Velocity = new PlcAddress() { Description = Lang.X轴速度地址, DataType = "float" };
  33. Y_Position = new PlcAddress() { Description = Lang.Y轴位置地址, DataType = "float" };
  34. Y_Velocity = new PlcAddress() { Description = Lang.Y轴速度地址, DataType = "float" };
  35. Z_Position_Start = new PlcAddress() { Description = Lang.Z轴起始位置地址, DataType = "float" };
  36. Z_Velocity_Start = new PlcAddress() { Description = Lang.Z轴起始速度地址, DataType = "float" };
  37. Z_Position_Stop = new PlcAddress() { Description = Lang.Z轴停止位置地址, DataType = "float" };
  38. Z_Velocity_Stop = new PlcAddress() { Description = Lang.Z轴停止速度地址, DataType = "float" };
  39. U_Position = new PlcAddress() { Description = Lang.U轴位置地址, DataType = "float" };
  40. U_Velocity = new PlcAddress() { Description = Lang.U轴速度地址, DataType = "float" };
  41. R_Position = new PlcAddress() { Description = Lang.R轴位置地址, DataType = "float" };
  42. R_Velocity = new PlcAddress() { Description = Lang.R轴速度地址, DataType = "float" };
  43. Torque = new PlcAddress() { Description = Lang.扭矩地址, DataType = "float" };
  44. Feeder = new PlcAddress() { Description = Lang.送料器地址, DataType = "int16" };
  45. ScrewProNum = new PlcAddress() { Description = Lang.螺杆程序号地址, DataType = "int16" };
  46. }
  47. }
  48. }