Skip to content

Commit f54457f

Browse files
author
Chris K.Y. FUNG
committed
Update to v0.4.1
- Changed to execute the main programe from __main__.sce - Fixed the spindle on value on startup
1 parent 85ebfa7 commit f54457f

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

ControlPanel.sce

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44

55
//mode(0);
66
//lines(0);
7-
pathname = get_absolute_file_path('ControlPanel.sce');
8-
chdir(pathname);
9-
exec ("commands.sce", -1);
7+
108

119
function form = new_form()
1210
form = figure( "visible", "off", "menubar_visible", "off", "toolbar_visible", "off", "infobar_visible", "off");
13-
form.figure_position = [ 805 , 222];
11+
form.figure_position = [ 100 , 222];
1412
form.axes_size = [ 684 , 438];
1513
form.figure_name = "MDX-15/20 Control Panel - Craftweeks";
1614
form.tag = "form";

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ A custom control panel developed for Roland MODELA MDX-15/20 desktop CNC milling
2727

2828
## How To Use
2929
1. Launch Scilab
30-
2. Choose **File** > **Execute**, and then select **ControlPanel.sce** in the file selection dialog
30+
2. Choose **File** > **Execute**, and then select **__main__.sce** (v0.4 or later) in the file selection dialog
31+
- Execute **ControlPanel.sce** for v0.3
3132
3. Press **Reset** to zero out z-axis
3233
4. Press **Home** to zero out x- and y-axes
3334

__main__.sce

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pathname = get_absolute_file_path('__main__.sce');
2+
chdir(pathname);
3+
exec ("commands.sce", -1);
4+
exec ('ControlPanel.sce', -1);

commands.sce

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Y = %nan;
44
Z = %nan;
55
z0 = %nan;
66
V = 15;
7-
SON = 0;
8-
XMAX = 233.2;
9-
YMAX = 156.4;
7+
SON = 1;
8+
XMAX = 203.2;
9+
YMAX = 152.4;
1010
ZMAX = 60.5;
1111
isReset = 0;
1212
isDirectGo = 0; // get(handles.checkbox1, 'value');
@@ -368,8 +368,8 @@ endfunction
368368

369369
function setAsMDX20_callback()
370370
global XMAX YMAX
371-
XMAX = 232.2;
372-
YMAX = 156.6;
371+
XMAX = 203.2;
372+
YMAX = 152.4;
373373
updateAxisXY(0,0)
374374
set(handles.radiobuttonMDX15, 'Enable','off')
375375
endfunction

0 commit comments

Comments
 (0)