101 lines
4.1 KiB
PHP
101 lines
4.1 KiB
PHP
<!DOCTYPE HTML>
|
|
<head>
|
|
<style type="text/css">td { text-align: center; } </style>
|
|
</head>
|
|
|
|
<html>
|
|
|
|
<h2>RepRap:
|
|
<?php print(getMyName()); ?>
|
|
<?php if(gotPassword()) echo ' <a href="http://reprappro.com" target="_blank"><img src="logo.png" alt="RepRapPro logo"></a>'; ?>
|
|
</h2><br><br>
|
|
<?php if(printLinkTable()) echo '<table><tr>
|
|
<td> <a href="control.php">Control</a> </td>
|
|
|
|
<td> <a href="print.php">Print</a> </td>
|
|
|
|
<td> <a href="http://reprap.org/wiki/RepRapPro_RepRap_Firmware" target="_blank">Help</a> </td>
|
|
|
|
|
|
<td> <a href="settings.php">Settings</a> </td>
|
|
|
|
<td> <a href="messages.php">Messages</a> </td>
|
|
|
|
<td> <a href="logout.php">Logout</a> </td>
|
|
|
|
</tr></table>
|
|
<br><br>'; ?>
|
|
|
|
<table border="1"><div align="center">
|
|
|
|
|
|
<tr>
|
|
<th colspan="9">Move X Y Z</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td rowspan="2"><button type="button" onclick="return homea()">Home<br>All</button></td>
|
|
<td colspan="4">- mm</td>
|
|
<td colspan="4">+ mm</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>-100</td>
|
|
<td>-10</td>
|
|
<td>-1</td>
|
|
<td>-0.1</td>
|
|
<td>0.1</td>
|
|
<td>1</td>
|
|
<td>10</td>
|
|
<td>100</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><button type="button" onclick="return home('X')">Home X</button></td>
|
|
<td><button type="button" onclick="return move('X', -100)"><--- X</button></td>
|
|
<td><button type="button" onclick="return move('X', -10)"><-- X</button></td>
|
|
<td><button type="button" onclick="return move('X', -1)"><- X</button></td>
|
|
<td><button type="button" onclick="return move('X', -0.1)">< X</button></td>
|
|
<td><button type="button" onclick="return move('X', 0.1)">X ></button></td>
|
|
<td><button type="button" onclick="return move('X', 1)">X --></button></td>
|
|
<td><button type="button" onclick="return move('X', 10)">X --></button></td>
|
|
<td><button type="button" onclick="return move('X', 100)">X ---></button></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><button type="button" onclick="return home('Y')">Home Y</button></td>
|
|
<td><button type="button" onclick="return move('Y', -100)"><--- Y</button></td>
|
|
<td><button type="button" onclick="return move('Y', -10)"><-- Y</button></td>
|
|
<td><button type="button" onclick="return move('Y', -1)"><- Y</button></td>
|
|
<td><button type="button" onclick="return move('Y', -0.1)">< Y</button></td>
|
|
<td><button type="button" onclick="return move('Y', 0.1)">Y ></button></td>
|
|
<td><button type="button" onclick="return move('Y', 1)">Y -></button></td>
|
|
<td><button type="button" onclick="return move('Y', 10)">Y --></button></td>
|
|
<td><button type="button" onclick="return move('Y', 100)">Y ---></button></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><button type="button" onclick="return home('Z')">Home Z</button></td>
|
|
<td><button type="button" onclick="return move('Z', -100)"><--- Z</button></td>
|
|
<td><button type="button" onclick="return move('Z', -10)"><-- Z</button></td>
|
|
<td><button type="button" onclick="return move('Z', -1)"><- Z</button></td>
|
|
<td><button type="button" onclick="return move('Z', -0.1)">< Z</button></td>
|
|
<td><button type="button" onclick="return move('Z', 0.1)">Z ></button></td>
|
|
<td><button type="button" onclick="return move('Z', 1)">Z -></button></td>
|
|
<td><button type="button" onclick="return move('Z', 10)">Z --></button></td>
|
|
<td><button type="button" onclick="return move('Z', 100)">Z ---></button></td>
|
|
</tr>
|
|
|
|
</div></table>
|
|
|
|
<br><br><form name="input" action="gather.asp" method="get">Send a G Code: <input type="text" name="gcode"><input type="submit" value="Send"></form>
|
|
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
|
|
function homea(){ window.location.href = "control.php?gcode=G28";}
|
|
function home(axis){ window.location.href = "control.php?gcode=G28%20" + axis + "0";}
|
|
function move(axis, d){ window.location.href = "control.php?gcode=G91%0AG1%20" + axis + d + "%0AG90";}
|
|
|
|
</script>
|
|
<br><br></html>
|