Welcome, Guest. Please login or register.
Did you miss your activation email?
November 28, 2014, 06:59:04 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 78 79 80 81 82 83 84 85 »
1  General CNC Chat / Show"N"Tell ( What you have made with your CNC machine.) / Re: I'm in Hog Heaven on: November 28, 2014, 06:28:54 PM
Few more photos, also added roller bearings to the focus head for alignment. Sure works smooth now.
2  Mach Discussion / Mach4 General Discussion / Re: Gcode Editor on: November 28, 2014, 08:30:20 AM
I think adding a "Tab Order" for each Main and Operational Tab would solve all this.


As a side note: Here is a script for telling what tab is current, (placed at the end of the plc script)
just shows you want tab is currently active
also notice that the line of code can be put on multiple lines, makes it easier for me to read and format in the script.

local rc;
local tabMain, rc = scr.GetProperty("MainTabs", "Current Tab")
local tabOp, rc = scr.GetProperty("Operation", "Current Tab")

mc.mcCntlSetLastError(inst,
' rc= '.. tostring(rc) ..
' tabMain= ' .. tostring(tabMain)..
' tabOp= '.. tostring(tabOp));

For those that don't know: I posted an image that shows where the "Current Tab" field is being read from. (this option list is where an added "Tab Order" field would need to be added)
3  Mach Discussion / Mach4 General Discussion / Re: Gcode Editor on: November 28, 2014, 06:57:47 AM
Craig try using an LED (square) behind it instead of a bitmap. I have had some success that way(0 should be easier to control with on /off of the led. In each tab page turn on the LED on open and turn OFF the led on close.

I might try that but I like DRO's better, as I can choose more colors, but without having the ability to know what group I am presently in, I can't find a way to set background colors conditionally. More testing.  If I can find that, might be able to functionally use the tabbing feature.
(finding the page I'm on, I can test for, but groups within the page is alluding me) Huh

I thought something like might work at the end of my plc script to see if values changed if I picked different items on the screen.
local t1, t2, t3 = scr.GetProperty("MainTabs", "tabProgramRun", "grpAxisAxisControl")
mc.mcCntlSetLastError(inst, 'testing      = ' .. tostring(t1)..'     '.. tostring(t2)..'     '.. tostring(t3));

Also, tabbing scrolls thru the page buttons but have not found a way to know what button is currently active. Might be able to change the color of the button to show it has been selected using that feature (I can see the dotted lines around the button text). Interesting avenue you have sent me on again Terry.


as far as setting your led states:
try this, just replace the myled with the name you gave yours:
 
scr.SetProperty('myled', 'Value', '1'); --turn on
scr.SetProperty('myled', 'Value', '0'); --turn off
4  Mach Discussion / Mach4 General Discussion / Re: Gcode Editor on: November 27, 2014, 10:13:27 PM
the groups are "transparent" i.e. show the color of the page that they are sitting on.....  so make a BitMap with the color (and size) that matches the group size, and place it beneath the group, you may have to diddle with the Z level of the bitmap to make it a background (under the group).

I messed with this a little and had NO luck, could not detect the group I was in, or could not set a bitmap to a background. Z level settings made no difference.
5  Mach Discussion / FAQs / Re: LImit and home switches on: November 27, 2014, 10:06:08 AM
I 'd made up this spreadsheet to help me. Taken from the same page that Ian linked too.
6  General CNC Chat / Share Your GCode / Re: Searching for zodiac *.dxf files on: November 26, 2014, 09:54:27 PM
Had me wondering what you provided. Wink
Thanks

Converted to dxf but did not clean it up or check it out closely.
7  Mach Discussion / Mach4 General Discussion / Re: Gcode Editor on: November 26, 2014, 01:25:47 PM
That can be done with scripting in the plc script, looks where its at and sets colors based on your conditional statements. More coding but it is possible.
8  Mach Discussion / Mach4 General Discussion / Re: Gcode Editor on: November 26, 2014, 11:32:19 AM
Tabbing order is based on the structure of when items were created. You can use a program that edits xml files to rearrange them. But it is pretty intense and can screw things up permanently if your not paying attention.
9  Mach Discussion / Mach4 General Discussion / Re: Gcode Editor on: November 25, 2014, 10:49:54 PM
Sounds like you better start coding and find out what you can do. no reason you cant put condition statement in your hotkey scripts. How you want your environment is up to you.
10  Mach Discussion / Mach4 General Discussion / Re: Gcode Editor on: November 25, 2014, 10:09:43 PM
Signals are global, anytime you hit a hot key no matter where your at, it should do what its associated to do.

no reason to deactivate, as the scripts are run and then forgot.

You make too much out of all this Magic  Cheesy  Not rocket science, just a new skill/craft to learn.

now spend a thousand hours of coding.  Tongue
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 78 79 80 81 82 83 84 85 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!