Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
HMI-with-WPF-part-2-Navigation-with-PRISM/SimpleHmi/Designer/DesignPlcService.cs
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
90 lines (75 sloc)
1.81 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using SimpleHmi.PlcService; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace SimpleHmi.Designer | |
{ | |
class DesignPlcService : IPlcService | |
{ | |
public ConnectionStates ConnectionState | |
{ | |
get | |
{ | |
return ConnectionStates.Online; | |
} | |
} | |
public bool HighLimit | |
{ | |
get { return false; } | |
} | |
public int InletPumpSpeed | |
{ | |
get { return 1; } | |
} | |
public bool LowLimit | |
{ | |
get { return true; } | |
} | |
public int OutletPumpSpeed | |
{ | |
get { return 2; } | |
} | |
public bool PumpState | |
{ | |
get { return true; } | |
} | |
public TimeSpan ScanTime | |
{ | |
get | |
{ | |
return TimeSpan.FromMilliseconds(2550); | |
} | |
} | |
public int TankLevel | |
{ | |
get { return 21; } | |
} | |
public event EventHandler ValuesRefreshed { add { } remove { } } // avoid warning CS0067 | |
public void Connect(string ipAddress, int rack, int slot) | |
{ | |
throw new NotImplementedException(); | |
} | |
public void Disconnect() | |
{ | |
throw new NotImplementedException(); | |
} | |
public Task WriteSpeedInletPump(short speed) | |
{ | |
throw new NotImplementedException(); | |
} | |
public Task WriteSpeedOutletPump(short speed) | |
{ | |
throw new NotImplementedException(); | |
} | |
public Task WriteStart() | |
{ | |
throw new NotImplementedException(); | |
} | |
public Task WriteStop() | |
{ | |
throw new NotImplementedException(); | |
} | |
} | |
} |