1234567891011121314151617181920212223242526272829303132333435363738 |
- using Aitex.Common.Util;
- using Aitex.Core.UI.MVVM;
- using MECF.Framework.Common.IOCore;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace athosSimulator.IO
- {
- class IOSimulatorViewModel : TimerViewModelBase
- {
- public SimulatorPlc Plc { get; set; }
- public ObservableCollection<NotifiableIoItem> DIs { get; set; }
- public ObservableCollection<NotifiableIoItem> DOs { get; set; }
- public ObservableCollection<NotifiableIoItem> AIs { get; set; }
- public ObservableCollection<NotifiableIoItem> AOs { get; set; }
- public IOSimulatorViewModel(int port, string source, string ioMapPathFile, string module) : base("")
- {
- //Plc = new SimulatorPlc(6375, "Simulator->IO", PathManager.GetCfgDir() + "_ioDefineCardNew.xml", "IO");
- //
- //DIs = Plc.DiItemList;
- //DOs = Plc.DoItemList;
- //AIs = Plc.AiItemList;
- //AOs = Plc.AoItemList;
- }
- protected override void Poll()
- {
- }
- }
- }
|