首次上传

This commit is contained in:
hanqiangqiang
2026-06-15 10:56:30 +08:00
commit b0213b94d6
4160 changed files with 736101 additions and 0 deletions
@@ -0,0 +1,33 @@
using System.Collections.ObjectModel;
using Aitex.Core.UI.MVVM;
using MECF.Framework.Common.IOCore;
namespace MECF.Framework.Simulator.Core.IoProviders
{
public class IOViewModel : TimerViewModelBase
{
public SimulatorIO 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 IOViewModel(int port, string source, string ioMapPathFile) : base(nameof(IOViewModel))
{
Plc = new SimulatorIO(port, source, ioMapPathFile);
DiItemList = Plc.DiItemList;
DoItemList = Plc.DoItemList;
AiItemList = Plc.AiItemList;
AoItemList = Plc.AoItemList;
}
protected override void Poll()
{
}
}
}