1234567891011121314151617181920212223242526272829303132333435 |
- using System.Collections.ObjectModel;
- using Aitex.Core.UI.MVVM;
- using EfemSimulator.SimulatorIo;
- using MECF.Framework.Common.IOCore;
- namespace EfemSimulator.Views
- {
- public class IoViewModelBase : TimerViewModelBase
- {
- public SimulatorCard Plc { get; set; }
- public ObservableCollection<NotifiableIoItem> DiItemList { get; set; }
- public ObservableCollection<NotifiableIoItem> DoItemList { get; set; }
- public ObservableCollection<NotifiableIoItem> AiItemList { get; set; }
- public ObservableCollection<NotifiableIoItem> AoItemList { get; set; }
- public IoViewModelBase(int port, string source, string ioMapPathFile) : base(nameof(IoViewModelBase))
- {
- Plc = new SimulatorCard(port, source, ioMapPathFile);
- DiItemList = Plc.DiItemList;
- DoItemList = Plc.DoItemList;
- AiItemList = Plc.AiItemList;
- AoItemList = Plc.AoItemList;
- }
- protected override void Poll()
- {
- }
- }
- }
|