aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Stubs Collection
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-04-20 19:48:40 +0300
committerShlomo Hecht <shlomo@twine-s.com>2020-04-20 19:48:40 +0300
commit050b4cef6dec4cd18121081a802a2a5e0cf0d774 (patch)
treeac5a89ecfac64f917d3ffbf5b24a58e8a7766dd0 /Software/Stubs Collection
parent106fdd749e24f589afba0fb7ffdd712d6ef567ff (diff)
downloadTango-050b4cef6dec4cd18121081a802a2a5e0cf0d774.tar.gz
Tango-050b4cef6dec4cd18121081a802a2a5e0cf0d774.zip
dispenser eeprom implementation
Diffstat (limited to 'Software/Stubs Collection')
-rw-r--r--Software/Stubs Collection/stubs/dye sequence stubs.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/Software/Stubs Collection/stubs/dye sequence stubs.cs b/Software/Stubs Collection/stubs/dye sequence stubs.cs
new file mode 100644
index 000000000..8aaf3a823
--- /dev/null
+++ b/Software/Stubs Collection/stubs/dye sequence stubs.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Text;
+using System.Linq;
+using System.Drawing;
+using System.Diagnostics;
+using System.Windows.Forms;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Collections.Generic;
+using Tango.PMR.Stubs;
+using Tango.Stubs;
+
+public void OnExecute(StubManager stubManager)
+{
+
+//"Set WFCF Value
+ int WCFvalue = 40;
+ProgressRequest progressRequest = new ProgressRequest();
+progressRequest.Amount = 0xE3;
+progressRequest.Delay = WCFvalue;
+
+var response = stubManager.Run<ProgressResponse>(progressRequest);
+
+//Set WFCF build to waste Time Value
+int WCFBuildTime = 20000;
+
+progressRequest.Amount = 0xE4;
+progressRequest.Delay = WCFBuildTime;
+
+response = stubManager.Run<ProgressResponse>(progressRequest);
+
+// Set special dispensers true (close valve) or false (open valve)
+int ClosedValve = 1; //closed
+
+progressRequest.Amount = 0xE5;
+progressRequest.Delay = ClosedValve;
+
+response = stubManager.Run<ProgressResponse>(progressRequest);
+
+} \ No newline at end of file