Class SimplCommunicationsAdapter
- Namespace
- Dgi_SimplCommunicationsAdapter
- Assembly
- DGI.Framework.Communications.Generic.SimplCommunicationsAdapter.dll
Adapter to connect a DGI Framework drivers that have a DgiCommunication interface to a SIMPL+ module.
public class SimplCommunicationsAdapter : IDgiCommunication, IDgiLogger
- Inheritance
-
objectSimplCommunicationsAdapter
- Implements
-
IDgiCommunicationIDgiLogger
Properties
- ClassLogger
Serilog ILogger Property. Defaults to Global Logger if not assigned
- ComDriverCommunicationType
Prperty that will be set in SIMPL+ to indicate the type of communication to the implementing driver.
Methods
- ComDriverConnectFeedback(ushort)
Method that SIMPL+ will call when the connecting communication adapter reports its connection state
The method will be exposed in SIMPL+ to an input join labeled ComDriverConnectFeedback,
that in turn will connect to the Connect-F output join of the corresponding SIMPL+ communication module
- ComDriverReceived(string)
Method that SIMPL+ will call when the connecting communication adapter reports its connection status
The method will be exposed in SIMPL+ to an input join labeled ComDriverStatusFeedback,
that in turn will connect to the Status output join of the corresponding SIMPL+ communication module
- ComDriverStatus(ushort)
Method that SIMPL+ will call when the connecting communication adapter reports its connection status
The method will be exposed in SIMPL+ to an input join labeled ComDriverStatusFeedback,
that in turn will connect to the Status output join of the corresponding SIMPL+ communication module Connection Status Codes:
0 = NotConnected
1 = Waiting
2 = Connected
3 = ConnectionFailed
4 = BrokenRemotely
5 = BrokenLocally
6 = DnsLookup
7 = DnsFailed
8 = DnsResolved
9 = Retrying
10 = Error
11 = AuthenticationFailed
12 = Idle
13 = Starting
14 = Listening
Events
- ComDriverConnectChanged
Event that will be triggered when the implementing driver needs to connect to the ComDriver communications module.
This event will be wired in SIMPL+ to a join labeled ComDriverConnect,
that in turn will connect to the Connect join of the corresponding SIMPL+ communication module
- ComDriverTransmitChanged
Event that will be triggered when the implementing driver needs to send data out of the communications module.
This event will be wired in SIMPL+ to a join labeled ComDriverTransmi,
that in turn will connect to the TX$ join of the corresponding SIMPL+ communication module