-
Notifications
You must be signed in to change notification settings - Fork 0
/
Script_EmergencyStop.html
105 lines (82 loc) · 3.78 KB
/
Script_EmergencyStop.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://www.w3.org/2005/10/profile">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<title>Emergency Stop</title>
<link rel="stylesheet" href="ajxmenu.css" type="text/css">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="en-us" http-equiv="Content-Language" />
<link href="gemini-2.css" rel="stylesheet" title="light" type="text/css">
<link href="gemini-2-dark.css" rel="stylesheet" title="dark" type="text/css">
<script src="style_switcher.js"></script>
<link href="theme-selector.css" rel="stylesheet" type="text/css">
<script src="w3data.js"></script>
</head>
<body onload="set_style_from_cookie()">
<div w3-include-html="header.html"></div>
<div class="AJXMenueDFaTFD" w3-include-html="navigation.html"></div>
<script>
w3IncludeHTML();
</script>
<table align="center" style="max-width: 900px; min-width: 200px;">
<tr>
<td class="h3">A sample script to do an Emergency Stop of all movement</td>
</tr>
</table>
<table align="center" style="max-width: 900px; min-width: 200px;">
<tr>
<td class="style6">Here is a simple script for Emergency Stop.</td>
</tr>
</table>
<table align="center" style="max-width: 900px; min-width: 200px;">
<tr>
<td class="style6">
This script is based on Microsofts Visual basic, but you do not have to have Microsoft Visual basic to run or compile it, as Microsoft will directly execute it from the desktop. You will have to have the ASCOM Gemini.net driver up and connected
to the mount for it to work. Just use Notepad to write the script and save it as a .vbs file. It uses one of the Gemini-2 serial commands (in this case :Q#) that are listed
<a href="web/L6V02serial.html" target="_self">
here</a>. Note that the Web interface on your Gemini-2 has a page that shows all the serial commands.</td>
</tr>
</table>
<table align="center" style="max-width: 900px; min-width: 200px;">
<tr>
<td class="style6">
<br /> ------- script below this line -------
<br />
<span class="style3"> <br />
dim scope<br />
Set Scope = CreateObject("ASCOM.GeminiTelescope.Telescope")<br />
scope.connected = True<br />
scope.CommandBlind">:Q#", False<br />
wscript.Sleep 1000<br />
scope.connected = True<br />
wscript.quit<br /></span>
<br /> ------- script above this line -------
<br />
<br />
</td>
</tr>
<tr>
<td class="style7whiteborder">
</td>
</tr>
<tr>
<td class="style7whiteborder">
to download a zipped copy of the EmergencyStop.vbs click <a href="javascript:localURL('downloads/VBscripts/EmergencyStop.zip')">
here</a>.</td>
</tr>
</table>
<table align="center" style="max-width: 900px; min-width: 200px;">
<tr>
<td class="style7">
<a href="scripting_examples.html" target="_self">Return to Scripting Commands</a></td>
</tr>
</table>
<link rel="stylesheet" href="ajxmenu_bottom.css" type="text/css">
<div w3-include-html="footer.html"></div>
</body>