diff options
Diffstat (limited to 'Software/Stubs Collection/Procedures/WHS loopp control.txt')
| -rw-r--r-- | Software/Stubs Collection/Procedures/WHS loopp control.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Software/Stubs Collection/Procedures/WHS loopp control.txt b/Software/Stubs Collection/Procedures/WHS loopp control.txt new file mode 100644 index 000000000..3638af2a5 --- /dev/null +++ b/Software/Stubs Collection/Procedures/WHS loopp control.txt @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using Google.Protobuf; +using Tango.BL.Enumerations; +using Tango.PMR.Stubs; +using Tango.PMR.Diagnostics; +using Tango.FSE.Common.Diagnostics; +using Tango.FSE.Procedures; + +public class Program +{ + public void OnExecute(IProcedureContext context) + { + + int ControlLoopEnable = context.GetInput<int>("WasteControlLoop"); + + ProgressRequest progressRequest = new ProgressRequest(); + progressRequest.Amount = 0x3e8; + progressRequest.Delay = ControlLoopEnable*0x1000+2700; + + var response = context.Send<ProgressResponse>(progressRequest); + context.AddResult(ResultType.Passed, "Success", response.Progress); + + } +}
\ No newline at end of file |
