Interface IEDDevice
Remote Ethernet IO interface These devices use a command response protocol, almost every command sent to the device receives a response
Assembly: Brainboxes.IO.dll
View Source
public interface IEDDevice : IDevice<IConnection, IIOProtocol>, IDisposable
Properties
IOLines
IOLines indexed by their logical line number as described on the brainboxes product label
View Source
IOList<IOLine> IOLines { get; }
Outputs
The devices output Lines (if it has any) indexed by IOLineNumber e.g. DOUT0, DOUT1, DOUT2
View Source
IOList<IOLine> Outputs { get; }
Inputs
The devices input Lines (if it has any) indexed by IOLineNumber e.g. DIN0, DIN1, DIN2
View Source
IOList<IOLine> Inputs { get; }
AInputs
The devices analog input lines (if it has any) indexed by IOLineNumber e.g. AIN0, AIN1, AIN2
View Source
IOList<IOLine> AInputs { get; }
AOutputs
The device analog output lines (if it has any) indexed by IOLineNumber e.g AOUT0, AOUT1, AOUT2
View Source
IOList<IOLine> AOutputs { get; }
Methods
SendCommand(string)
Send a command to the Brainboxes Remote IO device using the supplied protocol.
View Source
string SendCommand(string command)
Returns
System.String: Response or null if no response
Parameters
| Type | Name | Description |
|---|---|---|
System.String | command | command to send |
Events
IOLinesChanged
Register an event with this handler to be notified when the state of one or more IOLines change within a polling interval This is useful when a state in the program is dependent on 2 or more ioLine states
View Source
event IOLinesChangedEventHandler IOLinesChanged
Event Type
Brainboxes.IO.IOLinesChangedEventHandler
IOLineChanged
Register an event with this handler to be notified when the state of an input or output line changes
View Source
event IOLineChangedEventHandler IOLineChanged
Event Type
Brainboxes.IO.IOLineChangedEventHandler
IOLineRisingEdge
Register an event with this handler to be notified when the state of an input or output line goes from 0 -> 1 / low to high / closed to open
View Source
event IOLineChangedEventHandler IOLineRisingEdge
Event Type
Brainboxes.IO.IOLineChangedEventHandler
IOLineFallingEdge
Register an event with this handler to be notified when the state of an input or output line goes from 1 -> 0 / high to low / open to closed
View Source
event IOLineChangedEventHandler IOLineFallingEdge
Event Type
Brainboxes.IO.IOLineChangedEventHandler
IOLineCount
Register an event with this handler to be notified when the state of an input changes increment the count of the IOLine
View Source
event IOLineChangedEventHandler IOLineCount