Hello Guest it is April 26, 2024, 01:01:58 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dude1

731
don't ya girl friend know shes ya mistress the mill`s the wife

732
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: June 02, 2015, 12:55:46 AM »
its a random bug I have had it a couple of times

733
poppa bear and YaNvNo and secret helper plus the other boys have done a shed load of good stuff, what I think is good they don't always give answers just good pointers to the answer.

734
Mach4 General Discussion / Re: need a little bit of help
« on: June 02, 2015, 12:51:09 AM »
it cool you rants are fine

the stupid thing I tried the while loop yesterday same as I have it, it would not work then buttons on screen with code in them stopped working had to replace them now its all fine just one of those random bug`s. it`s fun when things work

735
Mach4 General Discussion / Re: need a little bit of help
« on: June 01, 2015, 11:46:06 PM »
here it is it`s not quite right yet you don't see any DRO movement on screen I have tested it on a machine and it does work so use at own risk

Code: [Select]
--Laser Zero
------------------------turn output on/off------------------------------------
local inst = mc.mcGetInstance();--Get the instance of the controller
local out5= mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT5);--Get the out5 handle
local outstate = mc.mcSignalGetState(out5);--Output TOGGLE
   if (outstate == 1) then
       mc.mcSignalSetState(out5, false);
     else
       mc.mcSignalSetState(out5, true);
    end
wx.wxMilliSleep(10);
--------------------------Move to work zero------------------------------------

local inst = 0;
local rc = 0;
local Xmove = "X20"; --set to x offset from spindle
local Ymove = "Y30"; --set to y offset from spindle
mc.mcCntlGcodeExecute(inst, "G91 G0" .. Xmove .. " \n" .. Ymove.."\n G90 \n");--run some g-code
    wx.wxMilliSleep(10);  --this is here other wise it`s to fast to see anything on DRO`S in editor
    mcState = mc.mcCntlGetState(inst);
    while (mcState ~= mc.MC_STATE_IDLE) do --This part is so it will Zero axis`s after movement
    mcState = mc.mcCntlGetState(inst);
    wx.wxMilliSleep(10);
end
mc.mcAxisSetPos(inst, 0, 0.000) --zero x axis
mc.mcAxisSetPos(inst, 1, 0.000) --zero y axis 

736
Mach4 General Discussion / Re: need a little bit of help
« on: June 01, 2015, 11:33:47 PM »
thanks to everyone`s help it is working now you have to in cress the wx.wxMilliSleep(10); if you wont to see it moving the DRO`S in editor, in a button you see no movement on screen but I have tested it on a machine and it works

by truck its fast as in blink I will post here for you boys to look at it and if anyone has anything to added please do. I will be adding in credit to who helped and post it to tool box at end of the week

737
Mach4 General Discussion / Re: need a little bit of help
« on: June 01, 2015, 11:00:22 PM »
this was suggest to try it did not work, now for some reason it does will play some more and post back. if I can get it to work I will stick it in tool box

local inst = mc.mcGetInstance();
mc.mcCntlGcodeExecute(inst, "G1 X10 Y10 F50");--run some g-code
wx.wxMilliSleep(10);
mcState = mc.mcCntlGetState(inst);
while (mcState ~= mc.MC_STATE_IDLE) do
mcState = mc.mcCntlGetState(inst);
wx.wxMilliSleep(10);
end
mc.mcAxisSetPos(inst, 0, 0.000)
mc.mcAxisSetPos(inst, 1, 0.000)
mc.mcAxisSetPos(inst, 2, 0.000)

738
Mach4 General Discussion / Re: need a little bit of help
« on: June 01, 2015, 10:52:20 PM »
more to learn then, I will see if I can find something to make the code wait something was suggested but could not get that to work. silly question what are semaphores

739
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: June 01, 2015, 10:48:25 PM »
click on M4 to start it and gearrotic no start comes up with the send error report thing. if I put in a new version of Darwin on M4 2136 it crashes M4

version 2461 and 2472 just wont start come`s up with the send error report thing what`s the default window`s error thing that has diagnose, cancel, send error report


740
Mach4 General Discussion / Re: need a little bit of help
« on: June 01, 2015, 09:22:01 PM »
right have the output on off working the move works but the silly zero axis code still zero`s the axis first before the move takes places does anyone know how to make the zero axis code run last this is what I have

--Laser Zero

------------------------turn output on/off------------------------------------
local inst = mc.mcGetInstance();--Get the instance of the controller
local out5= mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT5);--Get the out5 handle
local outstate = mc.mcSignalGetState(out5);--Output TOGGLE
   if (outstate == 1) then
       mc.mcSignalSetState(out5, false);
     else
       mc.mcSignalSetState(out5, true);
    end

--------------------------Move to work zero------------------------------------

local inst = 0;
local rc = 0;
local Xmove = "X2";
local Ymove = "Y3";
    rc = mc.mcCntlGcodeExecute(inst, "G91 G0" .. Xmove .. "\n" .. Ymove.."\n G90 \n");
    if rc ~= mc.MERROR_NOERROR then return "GCode failed",false end

local inst = 0;
local XAxisPos = 0;
local YAxisPos = 0;
local AxisNumber = X_AXIS
local AxisNumber = Y_AXIS
 mc.mcAxisSetPos(inst, 0, 0.000)
 mc.mcAxisSetPos(inst, 1, 0.000)
   
    if (mc.mcInEditor() == 1) then
end