diff options
| author | Mirta <mirta@twine-s.com> | 2020-12-30 16:39:52 +0200 |
|---|---|---|
| committer | Mirta <mirta@twine-s.com> | 2020-12-30 16:39:52 +0200 |
| commit | 00a491d93733d4625ad329b2ba8237f445364b3f (patch) | |
| tree | 4b24c6fa78d7648f4bb7cefafa464bb0b063fec4 /Software/Stubs Collection/stubs/Scripts/12345.cs | |
| parent | 124ad4150f80c6846fdee41dbbda9848c105f6e5 (diff) | |
| download | Tango-00a491d9.tar.gz Tango-00a491d9.zip | |
merge
Diffstat (limited to 'Software/Stubs Collection/stubs/Scripts/12345.cs')
| -rw-r--r-- | Software/Stubs Collection/stubs/Scripts/12345.cs | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/Software/Stubs Collection/stubs/Scripts/12345.cs b/Software/Stubs Collection/stubs/Scripts/12345.cs deleted file mode 100644 index 354c349cc..000000000 --- a/Software/Stubs Collection/stubs/Scripts/12345.cs +++ /dev/null @@ -1,63 +0,0 @@ -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; - - -/*** Dryer Motors ***/ -const Int32 F1_MOTO_DRYER_LOADARM_A1_TX_00 = 0x60000240 ; -const Int32 F1_MOTO_DRYER_LOADARM_A1_TX_01 = 0x60000242 ; -const Int32 F1_MOTO_DRYER_LOADARM_A1_RX_00 = 0x60000244 ; -const Int32 F1_MOTO_DRYER_LOADARM_A1_RX_01 = 0x60000246 ; - - -const Int32 x_ABS_POS = 0x01; -const Int32 x_EL_POS = 0x02; -const Int32 x_MARK = 0x03; -const Int32 x_SPEED = 0x04; -const Int32 x_GET_PARAM = 0x20; -const Int32 x_MOVE_PARAM = 0x40; - - - - -public void OnExecute(StubManager stubManager) -{ - -// Request ---- -// UInt32 : Address -// UInt32 : Value - -// Response ---- -// String : Status -// UInt32 : StatusWord - -stubManager.Run<StubFpgaWriteRegResponse>("StubFpgaWriteRegRequest" ,F1_MOTO_DRYER_LOADARM_A1_TX_01,0); -stubManager.Run<StubFpgaWriteRegResponse>("StubFpgaWriteRegRequest" ,F1_MOTO_DRYER_LOADARM_A1_TX_00,(x_GET_PARAM | x_ABS_POS)<<8); - - - -var response = stubManager.Run<StubFpgaReadRegResponse>("StubFpgaReadRegRequest" ,F1_MOTO_DRYER_LOADARM_A1_RX_00); - response = stubManager.Run<StubFpgaReadRegResponse>("StubFpgaReadRegRequest" ,F1_MOTO_DRYER_LOADARM_A1_RX_01); - -stubManager.Run<StubFpgaWriteRegResponse>("StubFpgaWriteRegRequest" ,F1_MOTO_DRYER_LOADARM_A1_TX_01,0); -stubManager.Run<StubFpgaWriteRegResponse>("StubFpgaWriteRegRequest" ,F1_MOTO_DRYER_LOADARM_A1_TX_00,0); - - - -response = stubManager.Run<StubFpgaReadRegResponse>("StubFpgaReadRegRequest" ,F1_MOTO_DRYER_LOADARM_A1_RX_00); - response = stubManager.Run<StubFpgaReadRegResponse>("StubFpgaReadRegRequest" ,F1_MOTO_DRYER_LOADARM_A1_RX_01); - - - - - - -}
\ No newline at end of file |
