I_IOManager.cs 962 字节
using DeviceLibrary;
using OnlineStore.Common;
using OnlineStore.DeviceLibrary.IO;
using OnlineStore.LoadCSVLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace DeviceLibrary
{
    public interface I_IOManager
    {

         bool ConnectionIOList(List<string> dIODeviceNameList);

         void ReadAllDI(string deviceName, byte slaveId); 

         void ReadAllDO(string deviceName, byte slaveId);

         void WriteSingleDO(string deviceName, byte slaveId, ushort index, IO_VALUE value, int time);

         void WriteSingleDO(string deviceName, byte slaveId, ushort index, IO_VALUE value);


         IO_VALUE GetDIValue(string deviceName, byte slaveID, ushort v);


         IO_VALUE GetDOValue(string deviceName, byte slaveID, ushort v);
         

         IO_VALUE GetIOValue(ConfigIO configIO);

         void CloseAllDO();


         void CloseAllConnection();

    }
}