Hello Guest it is April 24, 2024, 05:25:26 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

81
Mach4 General Discussion / Re: 4612 Build
« on: March 08, 2021, 03:14:17 PM »
Very strange behavior.  Changed the tool length for tool1 from 0 to 1.  Ran fine.  Changed it to .25, ran as expected.  Changed it to .001. ran as expected.  Changed it back to 0 and it ran as expected.  Since no tool had been defined is the tool table empty?

RT

82
Mach4 General Discussion / Re: 4612 Build
« on: March 08, 2021, 02:54:48 PM »
Ok, this has nothing to do with g31.  Went to surface a block with incremental (g91) moves and got the same message.  There is a setting somewhere that this new build has defaulted to.

g0x0y0
m98 p1234 L1
m30

o1234
g91
g1 f5   z-.005
g1 f15 x-5
g1 f5   z-.005
g1 f15 x5
g90
m99


RT

83
Mach4 General Discussion / Re: 4612 Build
« on: March 08, 2021, 02:21:25 PM »
g31 now will not execute, getting: Capping Z Minimum to 0.0000 based on parameter 1801.  I have changed #1801 to -2.000

g91 g31 z1 f2 works
but g91 g31 z-1 f2 gives the above error message.

TIA

RT

Tested this with pokeys57cnc and Sim.  With old and new wx4 screen sets.  Same results.  What does the error message indicate?

84
Mach4 General Discussion / Re: Mach4 Lathe
« on: March 08, 2021, 01:48:13 PM »
Found another doc with enum list, code should be:

local inst=mc.mcGetInstance()
rc=mc.mcCntlSetPoundVar(inst, mc.SV_CUR_TOOL_NUMBER,0)
rc=mc.mcCntlSetPoundVar(inst, mc.SV_CUR_LENGTH_INDEX,0)

85
Mach4 General Discussion / Re: Mach4 Lathe
« on: March 08, 2021, 01:05:48 PM »
At the end of your homing script add:
rc = mc.mcToolSetCurrent(inst,0)
This will set the current tool to tool zero but it will not set the offset.  There is an api call to get the current offset but not one to set it :(

In theory you should be able to set the register for that which is supposed to be #2032 and the tool #2029 according to some docs that spell out the pound variables.  However the following code always shows zero for each entry and when you display the variables through the diagnostics menu those values don't change so I don't know what are the real registers currently.  build 4612.

local inst=mc.mcGetInstance()
local val
local rc = mc.mcToolSetCurrent(inst,2)   
val,rc=mc.mcCntlGetPoundVar(inst,2029)
val,rc=mc.mcCntlGetPoundVar(inst,2032)
rc = mc.mcToolSetCurrent(inst,0)
val,rc=mc.mcCntlGetPoundVar(inst,2029)
val,rc=mc.mcCntlGetPoundVar(inst,2032)

HTH

RT

86
Mach4 General Discussion / Re: 4612 Build
« on: March 07, 2021, 02:39:17 PM »
g31 now will not execute, getting: Capping Z Minimum to 0.0000 based on parameter 1801.  I have changed #1801 to -2.000

g91 g31 z1 f2 works
but g91 g31 z-1 f2 gives the above error message.

TIA

RT

87
Mach4 General Discussion / Re: X Box here we come!
« on: March 05, 2021, 12:40:29 PM »
Is anyone working on this to correct the errors I posted above?  I have now tried it on 3 different configurations, Sim, pmdx411 and PoKeys75cnc and have the same behavior on each machine.  I also ran 4612 and it did not pick up the settings from the profile.

RT

88
Mach4 Plugins / Re: Sending Email with mCode
« on: February 24, 2021, 10:40:12 AM »
maybe post the code sans password and email address and then we can help.

89
Mach4 General Discussion / Re: Read DRO from Lua
« on: February 21, 2021, 03:13:26 PM »
   
   local TempZ = mc.mcAxisGetPos (inst, 2) -- Get work position of Z-Axis
   local TempA = mc.mcAxisGetPos (inst, 3) -- Get work position of A-Axis

90
Mach4 General Discussion / Re: 4612 Build
« on: February 20, 2021, 08:15:46 PM »
Right you are. Sorry I didn't pick up on it.