Hello Guest it is April 26, 2024, 02:06:09 AM

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

521
name needs changed

522
Mach4 General Discussion / Re: Homing
« on: September 04, 2015, 12:48:42 AM »
I tried daz`s homeimg code with changing the code to reflect A instead of Y it worked as it should under test condition`s I could not try on the machine it was being used

523
have a look in the examples folder, stuff what is pasted to a forum page does not work it changes the symbols

 Activate Output

524
This looks great I'm just not sure where to put what value. In the variables section it looks like it's looking for an input To trigger this as opposed to M code. Then it says "local hReg = 0 " is that where I would put the output that I want to turn on?

Could someone modify that example to show where you would put the M code that would activate it and the output that you are triggering?

For example if this was triggered by m120 and turned on output number 5 for 3 seconds.

Thanks for the continued help KingKerf

dan
function m120() --Save the name of the Signal (as stored inside of Mach4)
local inst = mc.mcGetInstance() --Get the instance of Mach4
ActivateSignalTime = 5000 --Time in milliseconds that we want the signal to be active.
local hReg = mc.OSIG_OUTPUT0 --The handle to the signal  OUTPUT0  = output 0 if you wonted output 5 you would have mc.OSIG_ OUTPUT5
-----------------------------

hReg = mc.mcIoGetHandle(inst, IOName)
if hReg == 0 then
   wx.wxMessageBox("Could not locate signal!")
else
   local rc = mc.mcIoGetState(hReg)
   if rc == 1 then --If rc equals 1, then the signal is active.
      wx.wxMessageBox("Signal is already active!")
   else --If rc does not equal 1, then the signal is not active.
      mc.mcIoSetState(hReg, true) --Activate a signal.
      wx.wxMilliSleep(ActivateSignalTime) --Sleep for the commanded time (so that the output stays on as long as we want).
      mc.mcIoSetState(hReg, false) --Set the state of the signal back to false.
   end
end

525
Mach4 General Discussion / Re: Homing
« on: September 03, 2015, 03:17:35 PM »
push it then hit E stop it will put out the start of homing, it is meant to come up a certain way

526
General Mach Discussion / Re: Mach3 tablet controller
« on: September 02, 2015, 02:02:08 AM »

527
General Mach Discussion / Re: Sqauring the Axis
« on: September 01, 2015, 04:04:47 AM »
it`s done boy`s let it go

528
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: August 31, 2015, 09:54:12 PM »

cnctom bring up logging when you hit ref all home it shows what mach is doing it help`s to nail problems down just keep a copy of it so when you try upgrading again you can compare working with not working

529
Mach4 General Discussion / Re: Homing
« on: August 31, 2015, 04:45:05 PM »
KingKerf run logging and hit ref all home button and post what comes up it will help nail down the problem

530
General Mach Discussion / Re: Sqauring the Axis
« on: August 31, 2015, 01:08:29 AM »
being like that to a community forum you will get what.

for a start more info, some pic`s and squire it first. doing it in software will only get you so far, is the X axis squire to the Y axis just sitting there on the right and left side.

also is it calibrated. check all that and post back