IEDDevice Interface |
Namespace: Brainboxes.IO
The IEDDevice type exposes the following members.
Name | Description | |
---|---|---|
AInputs |
The devices analog input lines (if it has any) indexed by IOLineNumber e.g. AIN0, AIN1, AIN2
| |
AOutputs |
The device analog output lines (if it has any) indexed by IOLineNumber e.g AOUT0, AOUT1, AOUT2
| |
Connection |
The connection to this device
(Inherited from IDeviceC, P.) | |
Inputs |
The devices input Lines (if it has any) indexed by IOLineNumber e.g. DIN0, DIN1, DIN2
| |
IOLines |
IOLines indexed by their logical line number as described on the brainboxes product label
| |
IsAvailable |
Whether the connection to this Brainboxes Device is available, e.g. online or offline.
In case of network TCP connection: this is if the device is pingable on the network.
In case of serial connection: this is if the device COM port is listed on the system and not open by another process.
(Inherited from IDeviceC, P.) | |
IsConnected |
Whether the Brainboxes Device has an active connection from this connection instance
(Inherited from IDeviceC, P.) | |
Outputs |
The devices output Lines (if it has any) indexed by IOLineNumber e.g. DOUT0, DOUT1, DOUT2
| |
Protocol |
The protocol used to communicate which this device
(Inherited from IDeviceC, P.) |
Name | Description | |
---|---|---|
Connect |
Open Connection to a Brainboxes Device, must be called before SendCommand
Throws exception on connection failure
(Inherited from IDeviceC, P.) | |
Disconnect |
Disconnect from Brainboxes Device, will be automatically called when class is disposed
(Inherited from IDeviceC, P.) | |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
SendCommand |
Send a command to the Brainboxes Remote IO device using the supplied protocol.
|
Name | Description | |
---|---|---|
DeviceStatusChangedEvent |
Event called when the status of the device changes, either the IsConnected Property
or the IsAvailable property
(Inherited from IDeviceC, P.) | |
IOLineChanged |
Register an event with this handler to be notified when the state of
an input or output line changes
| |
IOLineCount |
Register an event with this handler to be notified when the state of
an input changes increment the count of the IOLine
| |
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
| |
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
| |
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
|