IOSimulatorViewModel.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Aitex.Common.Util;
  2. using Aitex.Core.UI.MVVM;
  3. using MECF.Framework.Common.IOCore;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Collections.ObjectModel;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace athosSimulator.IO
  11. {
  12. class IOSimulatorViewModel : TimerViewModelBase
  13. {
  14. public SimulatorPlc Plc { get; set; }
  15. public ObservableCollection<NotifiableIoItem> DIs { get; set; }
  16. public ObservableCollection<NotifiableIoItem> DOs { get; set; }
  17. public ObservableCollection<NotifiableIoItem> AIs { get; set; }
  18. public ObservableCollection<NotifiableIoItem> AOs { get; set; }
  19. public IOSimulatorViewModel(int port, string source, string ioMapPathFile, string module) : base("")
  20. {
  21. //Plc = new SimulatorPlc(6375, "Simulator->IO", PathManager.GetCfgDir() + "_ioDefineCardNew.xml", "IO");
  22. //
  23. //DIs = Plc.DiItemList;
  24. //DOs = Plc.DoItemList;
  25. //AIs = Plc.AiItemList;
  26. //AOs = Plc.AoItemList;
  27. }
  28. protected override void Poll()
  29. {
  30. }
  31. }
  32. }