Welcome, Guest. Please login or register.
Did you miss your activation email?
October 24, 2014, 04:19:47 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 73 74 75 76 77 »
1  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: October 21, 2014, 12:42:50 PM
I'm now letting the Arduino do all the tracking and just passing the results thru Modbus for the mpg's

In this case using 0.001 per step 18 clicks gives me 0.018 increments Changing the step increment, automatically updates the step value for all mpg's

now to get the other two mpg's hooked in with the switches and LCD on the remote enclosure.

Lot of reading, coding and trial and error in this adventure.  Grin
2  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: October 18, 2014, 06:09:53 PM
Looks like TCP modbus, Ardrino Ethernet and the MPG's will work  Cool
3  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: October 16, 2014, 10:30:45 AM
As a heads up to all:
Noticed that the machine units DRO display in the setup units only.

I had set up Mach4 in inch and MDI changed using g21 (metric) to run a test program. Found that I needed to create a new popup Wizzard that displays the Fixture & Machine DRO's in the units I am running in. As a side note also found that using the Jog Step feature increments to the setup units, so I guess I will have to address that by using a scaling function.

Scott suggested I compute to a more accurate value then the standard 25.4 (thou my wood don't seem to care  Roll Eyes)

local metricval = 25.4000508001016
if (defaultunits == 200 and currentunits1 == 210) then
    WriteReg("iRegs0/XMachineValue", XMachineVal*metricval); --convert to metric
    WriteReg("iRegs0/YMachineValue", YMachineVal*metricval);
    WriteReg("iRegs0/ZMachineValue", ZMachineVal*metricval);
    WriteReg("iRegs0/Xvalue", Xval*metricval);
    WriteReg("iRegs0/Yvalue", Yval*metricval);
    WriteReg("iRegs0/Zvalue", Zval*metricval);
elseif (defaultunits == 210 and currentunits1 == 200) then
    WriteReg("iRegs0/XMachineValue", XMachineVal/metricval); --convert to inch
    WriteReg("iRegs0/YMachineValue", YMachineVal/metricval);
    WriteReg("iRegs0/ZMachineValue", ZMachineVal/metricval);
    WriteReg("iRegs0/Xvalue", Xval/metricval);
    WriteReg("iRegs0/Yvalue", Yval/metricval);
    WriteReg("iRegs0/Zvalue", Zval/metricval);
else
    WriteReg("iRegs0/XMachineValue", XMachineVal);
    WriteReg("iRegs0/YMachineValue", YMachineVal);
    WriteReg("iRegs0/ZMachineValue", ZMachineVal);
    WriteReg("iRegs0/Xvalue", Xval);
    WriteReg("iRegs0/Yvalue", Yval);
    WriteReg("iRegs0/Zvalue", Zval);
end


This had a fixture offset of x=1" y=1" just to check values
4  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: October 13, 2014, 07:44:18 AM
See latest update I posted:  Smiley

http://www.machsupport.com/forum/index.php/topic,27162.msg194707.html#msg194707
5  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: October 08, 2014, 09:13:18 AM
Sorry had to move this, Scott did not want me to post this in his thread. Asked me to remove it.   Cry
whatever  Huh

Cool, thanks guys
Added them to a panel script and used the fit too feature (that Freeman & Scott wrote)

now to get them associated to actual movement

Here are the images at 100x100
6  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: October 06, 2014, 01:38:43 PM
Had to make some upgrades to the mpg buttons, as only having three encoders available I had to come up with a way to map and limit the selections.  It is amazing how much coding and time goes into a compare and limit routine. So the top set of buttons are used, double duty I can map an encoder to any one of the axis's or I can add an encoder and map more than one encoder for each selected axis. Each button basically has one line of code that just passes the data to the functions() and they check status and conditions and sort out the details.

The bottom buttons are mapped for the 1-3 encoders x-z and then a-c same encoders numbers, but choosing a like encoder turns off the other associated mapped axis that might have been selected. Hope that makes sense, cause it was a pita to get straight.  Roll Eyes

Using color coding helped for the three encoders I can map an axis to the encoder and visual see whats active and know what encoder to use

Also pressing any one of the buttons puts it in the MPG mode.  Pressing Jogmode turns off all the mapping.

Starting coding for Shuttle Mode, but find its not ready for prime time. Hope one of the next few revisions will address that issue and I can finish this.

Lua is  Evil  but it does do some functional things very fast.
7  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: October 05, 2014, 06:14:46 AM
Thanks

Now if Steve or Brian could map the Steps per, for each axis, We could set them up with something like  X at .001 Y at .0001 and Z at .01
The way I have the buttons programmed now I can do it, as the data gets passed to the functions on selection of an axis. So by changing the steps per between axis selection the next axis is passed that new step value. Little convoluted but is possible.

Makes it nice in so many ways, but would put a lot more responsibility on the operator to Pay Attention. One of the most dangerous features of using hand dials is setting the steps per. Snap a cutter off mighty quick, as a step of 1" would surely make short use of small cutters or could ruin your workpiece.

Now to figure a way to get a remote LCD display. Would like Ethernet for control and display. Anyone have suggestions and/or examples Huh   Maybe something like Peter Homann, ModIO only TSP Ethernet as opposed to serial.
8  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: October 04, 2014, 02:07:32 PM
With Arts fine Darwin upgrades I now have the ability to have up to three MPG encoders to either control separate axis's with each or map one per dial.

Using the slider I can assign an encoder/MPG to an axis, so encoder 1 = Y encoder 2 = Z and encoder 3 = B

or using the buttons below Each MPG will be mapped to each axis selected

Max selection is three and that seems like enough to keep track of Grin

My intentions is to be able to replace the hand dials on one of my mills with mpg dials
9  Mach Discussion / Mach4 General Discussion / Re: Read write to a DRO ?? on: September 23, 2014, 01:22:20 PM
looks like your not one to read all the fine details I and others have posted, lol

http://www.machsupport.com/forum/index.php/topic,27162.msg191822.html#msg191822


but you might also try a adding a     -e   to the end of the autoload  it goes into the edit mode first.

C:\Mach4Hobby1953\Mach4GUI.exe /p Mach4Mill -e
10  Mach Discussion / Mach4 General Discussion / Re: Mach 4 Feature Request on: September 22, 2014, 04:16:09 PM
Its been over a week and I have been very surprised that this was the first IMTS has been mentioned.

I did not want to be the first, as wasn't sure it was my place. But have to agree with Steve. Machmotion had a strong presence  and some impressive setups and showings. I would advise if anyone is looking at upgrading to Mach4 and also a control upgrade to look seriously at Machmotion as their connection with Artsoft is very strong and you should have a good, to great transition.  Very professional and willing to help in any way.

Their screenset was very impressive (thou, at the time lacked a 4th axis). I'm sure by the first of the next year they will have a sweet system available.

 Cheesy and no I'm not their spokesmen, just an outside observer.
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 73 74 75 76 77 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!