Dreamine.IO.Fastech.Ethernet
1.0.1
Dreamine.IO.Fastech.Ethernet 산업 자동화 및 I/O 기능을 제공합니다.
Toggle main menu visibility
로딩중...
검색중...
일치하는것 없음
UnsupportedFastechEthernetIoProtocol.cs
이 파일의 문서화 페이지로 가기
1
using
Dreamine.IO.Abstractions.Models;
2
using
Dreamine.IO.Abstractions.Results;
3
4
namespace
Dreamine.IO.Fastech.Ethernet.Protocol
;
5
22
public
sealed
class
UnsupportedFastechEthernetIoProtocol
:
IFastechEthernetIoProtocol
23
{
32
private
const
string
Message
=
"This Fastech Ethernet I/O model is not supported by the selected protocol. Provide an IFastechEthernetIoProtocol implementation verified against the target device manual and hardware."
;
33
66
public
byte
[]
BuildReadDigitalInputs
(IReadOnlyList<IoPoint> points)
67
{
68
throw
new
NotSupportedException(
Message
);
69
}
70
103
public
IoResult<bool[]>
ParseDigitalInputs
(IReadOnlyList<byte> responseFrame,
int
count)
104
{
105
return
IoResult<bool[]>.Failure(
Message
);
106
}
107
140
public
byte
[]
BuildReadDigitalOutputs
(IReadOnlyList<IoPoint> points)
141
{
142
throw
new
NotSupportedException(
Message
);
143
}
144
177
public
IoResult<bool[]>
ParseDigitalOutputs
(IReadOnlyList<byte> responseFrame,
int
count)
178
{
179
return
IoResult<bool[]>.Failure(
Message
);
180
}
181
214
public
byte
[]
BuildWriteDigitalOutputs
(IReadOnlyDictionary<IoPoint, bool> values)
215
{
216
throw
new
NotSupportedException(
Message
);
217
}
218
251
public
byte
[]
BuildReadAnalogInputs
(IReadOnlyList<AnalogIoPoint> points)
252
{
253
throw
new
NotSupportedException(
Message
);
254
}
255
288
public
IoResult<double[]>
ParseAnalogInputs
(IReadOnlyList<byte> responseFrame,
int
count)
289
{
290
return
IoResult<double[]>.Failure(
Message
);
291
}
292
325
public
byte
[]
BuildReadAnalogOutputs
(IReadOnlyList<AnalogIoPoint> points)
326
{
327
throw
new
NotSupportedException(
Message
);
328
}
329
362
public
IoResult<double[]>
ParseAnalogOutputs
(IReadOnlyList<byte> responseFrame,
int
count)
363
{
364
return
IoResult<double[]>.Failure(
Message
);
365
}
366
399
public
byte
[]
BuildWriteAnalogOutputs
(IReadOnlyDictionary<AnalogIoPoint, double> values)
400
{
401
throw
new
NotSupportedException(
Message
);
402
}
403
428
public
IoResult
ParseWriteResponse
(IReadOnlyList<byte> responseFrame)
429
{
430
return
IoResult.Failure(
Message
);
431
}
432
}
Dreamine.IO.Fastech.Ethernet.Protocol
Definition
FastechPlusE16PointProtocol.cs:4
Dreamine.IO.Fastech.Ethernet.Protocol.IFastechEthernetIoProtocol
Definition
IFastechEthernetIoProtocol.cs:15
Dreamine.IO.Fastech.Ethernet.Protocol.UnsupportedFastechEthernetIoProtocol
Definition
UnsupportedFastechEthernetIoProtocol.cs:23
Dreamine.IO.Fastech.Ethernet.Protocol.UnsupportedFastechEthernetIoProtocol.BuildReadAnalogInputs
byte[] BuildReadAnalogInputs(IReadOnlyList< AnalogIoPoint > points)
Definition
UnsupportedFastechEthernetIoProtocol.cs:251
Dreamine.IO.Fastech.Ethernet.Protocol.UnsupportedFastechEthernetIoProtocol.Message
const string Message
Definition
UnsupportedFastechEthernetIoProtocol.cs:32
Dreamine.IO.Fastech.Ethernet.Protocol.UnsupportedFastechEthernetIoProtocol.BuildWriteDigitalOutputs
byte[] BuildWriteDigitalOutputs(IReadOnlyDictionary< IoPoint, bool > values)
Definition
UnsupportedFastechEthernetIoProtocol.cs:214
Dreamine.IO.Fastech.Ethernet.Protocol.UnsupportedFastechEthernetIoProtocol.BuildReadDigitalInputs
byte[] BuildReadDigitalInputs(IReadOnlyList< IoPoint > points)
Definition
UnsupportedFastechEthernetIoProtocol.cs:66
Dreamine.IO.Fastech.Ethernet.Protocol.UnsupportedFastechEthernetIoProtocol.ParseWriteResponse
IoResult ParseWriteResponse(IReadOnlyList< byte > responseFrame)
Definition
UnsupportedFastechEthernetIoProtocol.cs:428
Dreamine.IO.Fastech.Ethernet.Protocol.UnsupportedFastechEthernetIoProtocol.ParseDigitalInputs
IoResult< bool[]> ParseDigitalInputs(IReadOnlyList< byte > responseFrame, int count)
Definition
UnsupportedFastechEthernetIoProtocol.cs:103
Dreamine.IO.Fastech.Ethernet.Protocol.UnsupportedFastechEthernetIoProtocol.ParseAnalogOutputs
IoResult< double[]> ParseAnalogOutputs(IReadOnlyList< byte > responseFrame, int count)
Definition
UnsupportedFastechEthernetIoProtocol.cs:362
Dreamine.IO.Fastech.Ethernet.Protocol.UnsupportedFastechEthernetIoProtocol.BuildReadAnalogOutputs
byte[] BuildReadAnalogOutputs(IReadOnlyList< AnalogIoPoint > points)
Definition
UnsupportedFastechEthernetIoProtocol.cs:325
Dreamine.IO.Fastech.Ethernet.Protocol.UnsupportedFastechEthernetIoProtocol.BuildWriteAnalogOutputs
byte[] BuildWriteAnalogOutputs(IReadOnlyDictionary< AnalogIoPoint, double > values)
Definition
UnsupportedFastechEthernetIoProtocol.cs:399
Dreamine.IO.Fastech.Ethernet.Protocol.UnsupportedFastechEthernetIoProtocol.ParseAnalogInputs
IoResult< double[]> ParseAnalogInputs(IReadOnlyList< byte > responseFrame, int count)
Definition
UnsupportedFastechEthernetIoProtocol.cs:288
Dreamine.IO.Fastech.Ethernet.Protocol.UnsupportedFastechEthernetIoProtocol.BuildReadDigitalOutputs
byte[] BuildReadDigitalOutputs(IReadOnlyList< IoPoint > points)
Definition
UnsupportedFastechEthernetIoProtocol.cs:140
Dreamine.IO.Fastech.Ethernet.Protocol.UnsupportedFastechEthernetIoProtocol.ParseDigitalOutputs
IoResult< bool[]> ParseDigitalOutputs(IReadOnlyList< byte > responseFrame, int count)
Definition
UnsupportedFastechEthernetIoProtocol.cs:177
Protocol
UnsupportedFastechEthernetIoProtocol.cs
다음에 의해 생성됨 :
1.17.0