Hello Guest it is March 28, 2024, 10:22:17 PM

Author Topic: Screen Set Ideas  (Read 183757 times)

0 Members and 1 Guest are viewing this topic.

Re: Screen Set Ideas
« Reply #100 on: July 30, 2014, 06:41:52 PM »
Very timely since I'm trying to find where the current fixture # (not coordinates) are stored.  I'm trying to display which of G54-59 is current in effect.

#4012
Re: Screen Set Ideas
« Reply #101 on: July 30, 2014, 06:58:33 PM »
My Latest "Program Run" screen

this particular laptop does not display the blue horizontal graphic display correctly for program file run time position.
Not sure why my other laptop does ???
Lenovo G550 & G560 both running Win 7 Ultra 32bit

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Screen Set Ideas
« Reply #102 on: July 30, 2014, 07:03:03 PM »
very nice hope you going to let people have a copy or sale on Mach web site
Re: Re: Screen Set Ideas
« Reply #103 on: July 31, 2014, 12:40:47 AM »

#4012

Ooooo thanks Craig.

I'll have to update my screen set tomorrow. I just got done with a big push on a project at work and I need to bleed the stress off a bit before I try to make progress on my screen set. I don't want playing with my toys to be confused with work stress, takes all the fun out of it.

-Freeman

Sent from my Xoom using Tapatalk
I'm not a complete idiot...
    there are some parts missing.
Re: Screen Set Ideas
« Reply #104 on: July 31, 2014, 12:09:12 PM »
Freeman that sounded like a good idea to display that info, but I found there was a few issues with the fixture offsets and the associated table past G59.
Brian was very receptive in fixing the issues and should be resolved in one of the next releases. Thanks Brain  ;)

machine variable #15127 is the pnumber in g54.1p3

  
Code: [Select]
   local var4012 = mc.mcCntlGetPoundVar(inst, 4012);
    local var15127 = mc.mcCntlGetPoundVar(inst, 15127);

    fixtureNum = (53 + var4012)
    fixtureNum2 = (var15127)

    scr.SetProperty('droFixture', 'Value', tostring(fixtureNum));

    if (fixtureNum2 >= 0) then
        scr.SetProperty('txtFixture', 'Label', 'G54.1P' .. tostring(fixtureNum2));
    else
        scr.SetProperty('txtFixture', 'Label', 'G' .. tostring(fixtureNum));
    end
« Last Edit: July 31, 2014, 02:28:51 PM by Ya-Nvr-No »
Re: Screen Set Ideas
« Reply #105 on: August 02, 2014, 01:11:22 PM »
Figured out a way to make a gradient temperature scale.
was wishing the gauge control had a way to change colors but was informed it wont happen till microsoft makes it possible.
(makes me wonder now; how all this will port over to the Mac or Linux OS)  ???

uses DRO's and the 'Z order' function. (finally found a very good use for that feature)
Re: Screen Set Ideas
« Reply #106 on: August 05, 2014, 01:48:47 PM »
Added in a parts counter by adding in a increment for the #3901 in the M30 macro then in the PLC script added in a if statement so the count updates.
in M30 function of the M30 macro
Code: [Select]
   local var = mc.mcCntlGetPoundVar(inst, 3901);
    mc.mcCntlSetPoundVar(inst, 3901, var + 1);
In PLC script

Code: [Select]
elseif (inCycle ==0 and machStateOld ~= machstate) then
    local var = mc.mcCntlGetPoundVar(inst, 3901);
    scr.SetProperty('lblPartsCnt','Label',tostring(var));

end

Glenn
Re: Screen Set Ideas
« Reply #107 on: August 05, 2014, 10:27:07 PM »
Took scotts idea of imbedding code and having a button to call a compiled wizzard

Here is a popup 6 axis MPG and variable search all, wizzard.

put the (MPG_Module.mcc) in the modules folder "c:/Mach4Hobby/MODULES" and
add this these iRegs0 variables or paste them in the machine.ini file for your profile
this gives you control of the axis positions with the buttons and updates the DRO's
the [iReg#] number is just the ones in my machine.ini file


[iReg9]
Name=Xvalue
Desc=Save X
InitialValue=0
[iReg10]
Name=Yvalue
Desc=Save Y
InitialValue=0
[iReg11]
Name=Zvalue
Desc=Save Z
InitialValue=0
[iReg12]
Name=Avalue
Desc=Save A
InitialValue=0
[iReg13]
Name=Bvalue
Desc=Save B
InitialValue=0
[iReg14]
Name=Cvalue
Desc=Save C
InitialValue=0

then create a button and put the below script under the clicked option. (make sure your path for the module is correct)
when the button is used the module loads into memory and pops up. (least it should)

package.path = "./?.lua;c:/Mach4Hobby/MODULES/?.mcc;" --where the module file is.  
local MP = require "MPG_Module";--load the module file

myMPG()
« Last Edit: August 05, 2014, 10:38:51 PM by Ya-Nvr-No »
Re: Screen Set Ideas
« Reply #108 on: August 09, 2014, 09:39:09 PM »
Starting to work on the MPG functions and features.
Re: Screen Set Ideas
« Reply #109 on: August 21, 2014, 02:01:42 PM »
Working on adding tool pocket location tracking and tool usage times using pound variables for storage and retrieval.