12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- using System.Threading.Tasks;
- namespace Team.Utility
- {
- public interface IRobotControlService
- {
-
-
-
-
-
- Task<bool> SavePointAsync(int id);
-
-
-
-
- bool Connect();
-
-
-
-
-
-
- Task<bool> ReadAsync(int address, int bitNo);
-
-
-
-
-
- void SetConnectTimeout(int duration);
- bool IsConnect { get; }
-
-
-
-
-
-
- Task<bool> WriteShortAsync(int id,int value);
- Task<bool> WriteUshortAsync(int id, ushort value);
- Task<bool> WriteIntAsync(int id, int value);
- Task<bool> WriteUintAsync(int id, uint value);
- Task<bool> WriteFloatAsync(int id, float value);
- Task<bool> WriteDoubleAsync(int id, double value);
- Task<bool> WriteStringAsync(int id, string value);
-
-
-
-
-
- Task<int> ReadInt32Async(int address);
-
-
-
-
-
- Task<uint> ReadUintAsync(int address);
-
-
-
-
-
- Task<float> ReadFloatAsync(int address);
-
-
-
-
-
- Task<double> ReadDoubleAsync(int address);
-
-
-
-
-
- Task<short> ReadShortAsync(int address);
-
-
-
-
-
- Task<ushort> ReadUshortAsync(int address);
-
-
-
-
-
-
- Task<string> ReadStringAsync(int address, ushort length);
- }
- }
|