Skip to content

Commit

Permalink
Update to v0.4.1
Browse files Browse the repository at this point in the history
- Changed to execute the main programe from __main__.sce
- Fixed the spindle on value on startup
  • Loading branch information
Chris K.Y. FUNG committed Jun 5, 2017
1 parent 85ebfa7 commit f54457f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
6 changes: 2 additions & 4 deletions ControlPanel.sce
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@

//mode(0);
//lines(0);
pathname = get_absolute_file_path('ControlPanel.sce');
chdir(pathname);
exec ("commands.sce", -1);


function form = new_form()
form = figure( "visible", "off", "menubar_visible", "off", "toolbar_visible", "off", "infobar_visible", "off");
form.figure_position = [ 805 , 222];
form.figure_position = [ 100 , 222];
form.axes_size = [ 684 , 438];
form.figure_name = "MDX-15/20 Control Panel - Craftweeks";
form.tag = "form";
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ A custom control panel developed for Roland MODELA MDX-15/20 desktop CNC milling

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

Expand Down
4 changes: 4 additions & 0 deletions __main__.sce
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pathname = get_absolute_file_path('__main__.sce');
chdir(pathname);
exec ("commands.sce", -1);
exec ('ControlPanel.sce', -1);
10 changes: 5 additions & 5 deletions commands.sce
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Y = %nan;
Z = %nan;
z0 = %nan;
V = 15;
SON = 0;
XMAX = 233.2;
YMAX = 156.4;
SON = 1;
XMAX = 203.2;
YMAX = 152.4;
ZMAX = 60.5;
isReset = 0;
isDirectGo = 0; // get(handles.checkbox1, 'value');
Expand Down Expand Up @@ -368,8 +368,8 @@ endfunction

function setAsMDX20_callback()
global XMAX YMAX
XMAX = 232.2;
YMAX = 156.6;
XMAX = 203.2;
YMAX = 152.4;
updateAxisXY(0,0)
set(handles.radiobuttonMDX15, 'Enable','off')
endfunction
Expand Down

0 comments on commit f54457f

Please sign in to comment.