Skip to main content

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​
Declaration
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​
Declaration
IOList<IOLine> IOLines { get; }

Outputs​

The devices output Lines (if it has any) indexed by IOLineNumber e.g. DOUT0, DOUT1, DOUT2

View Source​
Declaration
IOList<IOLine> Outputs { get; }

Inputs​

The devices input Lines (if it has any) indexed by IOLineNumber e.g. DIN0, DIN1, DIN2

View Source​
Declaration
IOList<IOLine> Inputs { get; }

AInputs​

The devices analog input lines (if it has any) indexed by IOLineNumber e.g. AIN0, AIN1, AIN2

View Source​
Declaration
IOList<IOLine> AInputs { get; }

AOutputs​

The device analog output lines (if it has any) indexed by IOLineNumber e.g AOUT0, AOUT1, AOUT2

View Source​
Declaration
IOList<IOLine> AOutputs { get; }

Methods​

SendCommand(string)​

Send a command to the Brainboxes Remote IO device using the supplied protocol.

View Source​
Declaration
string SendCommand(string command)
Returns​

System.String: Response or null if no response

Parameters​
TypeNameDescription
System.Stringcommandcommand 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​
Declaration
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​
Declaration
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​
Declaration
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​
Declaration
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​
Declaration
event IOLineChangedEventHandler IOLineCount
Event Type​

Brainboxes.IO.IOLineChangedEventHandler