I_IOManager.cs 982 字节
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 ConnectionIO();

        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);
        short GetADIOValue(string deviceName, byte slaveID, ushort index);

        IO_VALUE GetIOValue(ConfigIO configIO);

        void CloseAllDO();


        void CloseAllConnection();

    }
}