IPlcManager Interface

Interface used by HES to call PLC manager methods.

Definition

Namespace: OddPrg.Communication.Plc
Assembly: OddPrg.Communication.Plc (in OddPrg.Communication.Plc.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public interface IPlcManager : IDisposable
Implements
IDisposable

Methods

DataRequest Sends data to PLC.
Get432Address Returns current 432 address of meter with specified serial number.
GetHoursWithoutDataIndication Returns number of hours elapsed without DataIndication call. It can indicate that PLC driver is irresponsive and should be restarted.
GetMeters Returns connected meters.
GetRequestsWithoutResponse Returns count of requests without any response. This number may indicate that PLC driver is irresponsive and should be restarted.
GetSerialNo Returns PRIME serial number usding 432 address.
Start Starts PLC manager. This method should block until all manager threads are successfully started. This method shoud not log any information or error, it should throw an exception. Debug log can be used.
Stop Stops PLC manager. This method should block until all manager threads are successfully aborted. This method shoud not log any information or error, it should throw an exception. Debug log can be used.

See Also