Hello Guest it is October 03, 2023, 04:02:24 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 - rhtuttle

61
PoKeys / Pokeys57CNC - wiring SSR
« on: April 01, 2021, 01:30:29 PM »
I'm electronically challenged. >:(
I have a 3-32vdc input 5-60vdc output SSR
I want to drive a 12v pneumatic switch for a misting.
What pins/connector will work for this?

TIA

RT

62
As always you are correct.  My more recent macros and scripts are better-ish about checking return codes.  Sometimes I'm just lazy.
And yes, lathe.  Lathe gets no love.  Not enough of us using it to make it worthwhile for NFS and vendors to test all features.  Still love tweaking M4 to suit my needs.  No other software makes it so easy to customize.  Of course that means more mistakes and less hair!

RT

63
Steve, thank you for taking time to look at this, it is much appreciated.
The G91 has no meaning in lathe mode, ergo the g0 h15 moves the spindle 15 degrees relative to where it is at which is enough to move it off of the optical slot.
I added the 'mcineditor' trying to find a way to get this to work, which it didn't, so originally just had the function definition and the call to it in the button script.  Took it out after my initial post.  I will try adding your example to the screen load script when I get some free time and am ready to go back to 6412. 

RT

64
As I said in my initial.post this is in a left up button script

65
Yes it is to Home the C axis.  My spindle has a timing gear that I have a belt for one motor to spin and another belt to change out and have it powered by a stepper so as to act as an indexer.  The other profile code was to try and disable the motor so it would stop sending Home C switch activated signals when not in use as a C axis.  The Home signal shares the slotted disc on the spindle for speed recognition.
The problem is that this worked for over a year with a couple of different builds but now with 4612 it does not.  I reverted to an earlier build and it works again. I submitted a ticket with my profile packaged Saturday.
Thanks for taking a look at this.

RT

66
Mach4 General Discussion / Re: Mach4 Lathe Tool Probing (Help)
« on: March 21, 2021, 12:53:29 PM »
Have a look at this video from Newfangled Solutions: https://www.youtube.com/watch?v=SDuZWZHVU0s
You will probably have to watch it several times since the presenter is clicking things before he tells you what he is doing.
If you have set up a pin gauge with an insulating sleeve you could attach a probe wire to the pin and one to your tool and use a probe command for touch and then use the set tool offset buttons.  Read the lathe manual on tool setting and get familiar with the tool table and all of the input methods since it is different than working on a mill.

HTH
RT

RT

67
This is code that has worked prior to updating to 4612.  This homes my C axis (rotary) in the left up script.  When I step through the code in debugger it homes but when clicked no homing takes place.  Last message is output, 'Homing: 0.0'.

Any Ideas?

Code: [Select]
local function myHomeC()
  local inst=mc.mcGetInstance()
  local sState
  local pos=-1

mc.mcCntlEnable(inst,0)
mc.mcCntlConfigStart(inst)
  local hSigH=mc.mcSignalGetHandle(inst,mc.ISIG_MOTOR3_HOME)
  rc=mc.mcSignalEnable(hSigH,1)
  mc.mcProfileWriteInt(inst,'Signal68','Enabled',1)
  mc.mcProfileSave(inst)
  mc.mcProfileFlush(inst)
mc.mcCntlConfigStop(inst)
mc.mcCntlEnable(inst,1)

  local hSig,rc=mc.mcSignalGetHandle(inst,mc.ISIG_INDEX)
  if rc==mc.MERROR_SIGNAL_NOT_FOUND  then
    wx.wxMessageBox('wrong Signal')
  end
  sState=mc.mcSignalGetState(hSig)
  if sState==1 then  -- sitting on the slot so move off it
    mc.mcCntlGcodeExecuteWait(inst,'g0 f20000 h15\n')--g1 h366 f5000')
  end
  rc=mc.mcAxisHome(inst,mc.C_AXIS)
 
--this never gets executed
 mc.mcCntlSetLastError(inst,'Homing')
 
  repeat
    wx.wxMilliSleep(1000)
    rc= mc.mcAxisIsHoming(inst,mc.C_AXIS)
    mc.mcCntlSetLastError(inst,'Homing: '..tostring(rc))
  until rc==0 
  rc=mc.mcSignalEnable(hSigH,0)
  mc.mcProfileFlush(inst)
end

if (mc.mcInEditor() == 1) then
  myHomeC() 
end

TIA

RT

68
Mach4 General Discussion / Re: X Box here we come!
« on: March 17, 2021, 12:36:38 PM »
I get Motion Underrun from pmdx 411 any time I use the joystick at a very slow speed

69
Mach4 General Discussion / Re: Mach4 Lathe
« on: March 12, 2021, 02:45:02 PM »
It's in the screen load script: RefAllHome()  which is called when you hit the Ref All Button.  If your not familiar with screen editing Brianna has a video in the section above.

70
Mach4 General Discussion / Re: 4612 Build
« on: March 11, 2021, 11:07:59 AM »
Love the multi-mdi!  Don't have to:
Load file
edit file
save
close
edit file
save
close
edit file
save
close

Like you said, you can have both!