Hello Guest it is April 20, 2024, 02:22:02 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 - rhtuttle

71
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

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

73
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

74
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

75
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

76
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

77
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.

78
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!

79
Mach4 General Discussion / Re: 4612 Build
« on: March 08, 2021, 05:31:21 PM »
FWIW, in this profile there is a file called parameters.ini.  In it there is an entry for 1801 -
[1801]
Desc=OEM parameter 1801
Type=2
Value=0

If I change it to NIL all is well.
I have know idea how or when this gets changed. Wizard/Post Processor?  Anyone know?

RT

80
Mach4 General Discussion / Re: 4612 Build
« on: March 08, 2021, 05:05:07 PM »
Tracked this down to something within the profile I am using.  I have a laptop that I use for development and another one for actual cutting.  If I start with a clean profile it runs as expected.  This profile was from a previous build and has few screen modifications.  I assumed that you could continue to use your old profiles.  When I packaged the cutting machines profile and put on the laptop it would not work there either so somewhere there is a missing setting or a bad setting.  Soft limits are not enabled but it wont let the z axis below zero. I have no idea how to tracking it down.