Welcome, Guest. Please login or register.
Did you miss your activation email?
July 22, 2014, 10:09:26 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
  Show Posts
Pages: 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 »
1  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: July 21, 2014, 06:53:30 AM
Could be nice for monitoring during cycle runs, thanks

also I have found that gauges does not seem to work on some computers as the gauge display does not update properly.
2  Mach Discussion / Mach4 General Discussion / Re: Is Scaling Supported by Mach4 on: July 20, 2014, 05:10:32 PM
is this what your looking for?

http://www.machsupport.com/forum/index.php/topic,27162.msg193798.html#msg193798
3  Mach Discussion / Mach4 General Discussion / Re: Signal Scripts on: July 20, 2014, 04:15:20 PM
Ya, I'm thinking mach4 has to read the machine.ini file to address the signal name correctly, thus the need for a restart. Hopefully these little details will be covered in the documentation.
4  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: July 20, 2014, 03:59:55 PM
Good job Freeman, I'd like to see this thread full of ideas and contributions.  Smiley so I second it, keep em coming.

Scott, you have a Nice work area, and you get to sit down at a desk to program. I'm either standing, sitting on a rolling stool or worse the floor.

Now if we can get those code monkeys to work out the mach4 core details.  Roll Eyes
5  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: July 18, 2014, 11:45:45 AM
Took Scott's modbus and the DL06 idea and made some changes so the buttons and inputs follow the display logic

Sorry... the photos not that great, it is taken with a "go pro" snap shot and it's little dark in the shop

So to manually set an output I just toggle a bit button
6  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: July 13, 2014, 12:55:05 PM
Major pita to format control items, but did get it to move incrementally and continuously  (b axis does not increment, slight bug in the core i'd say).

Update: seems that B- incremental just gets ignored but B+ incremental puts the wizzard in a state that needs a Close (not exit) to get it to restart correctly, all the buttons take on the same last commanded move so every button press does the same thing. Odd as hell.  Huh

Few items to work out yet but its getting closer. Have to admit Widgets are a tough lesson to learn.

And sure hope someday they create a GUI program to create prettier screens.

Still pretty amazing what can be written in Lua to add features to interact with Mach4.
7  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: July 11, 2014, 07:28:25 AM
Was up late last night working with Steve on the new release, 1889 fixes several of my issues.  Kiss

Also got my MPG wizzard buttons to control the axis.  Grin

so I had good day, but missed a lot of sleep Wink

thanks Steve
8  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: July 08, 2014, 07:13:11 AM
How to pass a number to a function and get or set variables. Note: Your dro names have to be consistent to write to them, because I am using the concant feature to add the number to the dro's name. I have a read function in the PLC and a write function button
Lot of messing with, but now its just one line of code to add new ones in the future.

Code:
function SCR_getset(varnum)
    local inst = mc.mcGetInstance();
    local varvalue = 0;
    varvalue = mc.mcCntlGetPoundVar(inst, varnum);
    scr.SetProperty('drovar'..varnum, 'Value', tostring(varvalue)); --Concant dro&number
end

function GetVariablePoundDouble(varnum)
     local inst = mc.mcGetInstance();
     local varvalue = 0;
     local val = 0;
     varvalue = mc.mcProfileGetDouble(inst , 'drovar'..varnum , tostring(varnum), val);
     mc.mcCntlSetPoundVar(inst, tonumber(varnum), varvalue);
end

function GetVariablePoundInt(varnum)
     local inst = mc.mcGetInstance();
     local varvalue = 0;
     local val = 0;
     varvalue = mc.mcProfileGetInt(inst , 'drovar'..varnum , tostring(varnum), val);
     mc.mcCntlSetPoundVar(inst, tonumber(varnum), varvalue);
end

function SetVariablePoundDouble(varnum)
    local inst = mc.mcGetInstance();
    local varvalue = 0;
    varvalue = mc.mcCntlGetPoundVar(inst, tonumber(varnum));
    mc.mcProfileWriteDouble(inst ,'drovar'..varnum, tostring(varnum),varvalue);
end

function SetVariablePoundInt(varnum)
    local inst = mc.mcGetInstance();
    local varvalue = 0;
    varvalue = mc.mcCntlGetPoundVar(inst, tonumber(varnum));
    mc.mcProfileWriteInt(inst ,'drovar'..tostring(varnum),tostring(varnum),varvalue);
end

function GetPoundDroVariables()
    SCR_getset(1); --pass number to function
    SCR_getset(3901);
end

function VariableRead()
     GetVariablePoundDouble(1);
     GetVariablePoundInt(3901);
end

function VariableWrite()
     SetVariablePoundDouble(1);
     SetVariablePoundInt(3901);
end
9  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: July 06, 2014, 01:01:56 PM
As a note to all:
Under the History button there is a 'Save' option button
Found that I had to create a history.txt file in the mach4 root folder for it to write to the file.

Update: This has been addressed and fixed in the latest versions.
10  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: July 06, 2014, 11:44:46 AM
Been working on a universal function that writes to a file either the lathe or mill tool tables, based on mode.

(note: to nick) all mach4 tool data starts at variable 7781; so 7781-7790 is tool #1

the numbers in my graphics tables don't mean anything in this case, I just used them as fillers to get the routine to work.
but it does include any tool that has a description


//Tool Numbering
#define TOOLS_START 7781      //Start of Tools in Parameter list
#define TOOL_INC 10           //Inc from tool to tool in the param list

#define TOOL_MILL_X           0 //X offset
#define TOOL_MILL_X_W         1 //X Wear offset
#define TOOL_MILL_Y           2 //Y offset
#define TOOL_MILL_Y_W         3 //Y Wear offset
#define TOOL_MILL_HEIGHT      4 //Tool height offset
#define TOOL_MILL_HEIGHT_W    5 //Height wear Offset
#define TOOL_MILL_POCKET      6 //Tool changer pocket
#define TOOL_MILL_RAD         7 //Rad for comp
#define TOOL_MILL_RAD_W       8 //wear offset for comp

#define TOOL_LATHE_X          0 //X offset
#define TOOL_LATHE_X_W        1 //X Wear offset
#define TOOL_LATHE_Y          2 //Y offset
#define TOOL_LATHE_Y_W        3 //Y Wear offset
#define TOOL_LATHE_Z          4 //Z offset
#define TOOL_LATHE_Z_W        5 //Z wear offset
#define TOOL_LATHE_POCKET     6 //Pocket # (may not be needed)
#define TOOL_LATHE_TIPRAD     7 //Tip Rad for comp
#define TOOL_LATHE_TIPDIR     8 //Tool tip DIR
#define TOOL_LATHE_TOOLSLIDE  9 //AxisSlide number  and - for reversed
Pages: 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 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!