Hello Guest it is September 19, 2019, 02:27:32 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 - rrc1962

1
Mach4 General Discussion / mc.mcJogIncStart
« on: October 13, 2018, 04:29:35 PM »
Wondering if anyone has seen this.  I'm using mcJogIncStart to initiate an incremental jog and retrieving the increment from the system.  Everything works great as long as the number I pass to mcJogIncStart is a decimal, like .1, .01, .001.  If I pass a 1, it seems to go haywire.  It moves but not 1" and never the same distance twice.  An incremental jog from the screenset works fine using 1".   Code is below.  Anyone seen this?

mc.mcJogIncStart(inst, mc.Y_AXIS, mc.mcJogGetInc(inst, 1))

Thanks

2
Mach4 General Discussion / User range of pound variables
« on: February 21, 2018, 06:25:57 PM »
Is there a range of pound vars that are not used by the system?  Or would I just choose a few that I know I won't need and set their values to suit my needs.

Thanks

3
Mach4 General Discussion / Re: Coordinate Rotation
« on: February 07, 2018, 05:15:10 PM »
So M14 has the same issue with this code...

CodeLine2 = 'G00 Z' .. PierceHeight .. '\n'
CodeLine2 = CodeLine2 .. 'F' .. ProgramFeedrate
mc.mcCntlGcodeExecuteWait(inst, CodeLine2)

Looks like mcCntlGcodeExecuteWait sends the Z up but it also sends X and Y to their respective un-rotated coordinates.  The problem appears to be with mcCntlGcodeExecuteWait and mcCntlGcodeExecute.

4
Mach4 General Discussion / Re: Coordinate Rotation
« on: February 07, 2018, 12:33:52 PM »
G68 is modal and should stay in effect until cancelled by G69. That being said, the rotation can sometimes become stacked. I noticed that a g code file I was using would rotate an addition 90 degrees if I stopped the code mid-run, rewound it, and then tried again. I can't say that's what you're seeing, but it may be a funny effect of G68. If you'd like to post your g code, I can take a look for you.

I submitted a ticket with the profile attached. 

5
Mach4 General Discussion / Re: Coordinate Rotation
« on: February 07, 2018, 12:18:25 PM »
I found the offending line of code, but can't explain why it's cancelling the rotation.  In my M15 I have the following...

CodeLine1 = 'G00 Z' .. SafeZ .. '\n'
mc.mcCntlGcodeExecute(inst, CodeLine1)

If I comment these lines of code, the program runs properly oriented.  IS there something in mc.mcCntlGcodeExecute that is cancelling rotation?

6
Mach4 General Discussion / Re: Coordinate Rotation
« on: January 22, 2018, 10:56:55 PM »
I’m out of town for a couple weeks.  I’ll do this when I get back.

7
Mach4 General Discussion / Re: Coordinate Rotation
« on: January 18, 2018, 06:03:50 PM »
Here is the code.  The G68 is happening before the program runs.  The operator sets the rotation, then runs the program.  G69 is not called until the operator presses a button to reset to zero rotation.

Code: [Select]
G20
G90
G91.1
M1100 (Rapid Z to safe Z)
M1111 (Apply G52 offset, which for us is always zero)
M1116 (Turns on an output)
G00 X2.44 Y2.35 (Rapids to un-rotated coordinate)
M14 A0 B100 C1 (Initiates start of cut sequence)
M1101 (Turn on THC)
G01 X2.59 (Feedrate moves are correctly oriented to the rotated coordinate system)
G01 Y9.85
G03 X2.29 Y9.85 I-0.15 J0
G01 Y2.35
G03 X2.59 Y2.35 I0.15 J0
M15 A0 B100 C1 (Stop cycle)
M01
G00 X4.88 Y2.35 (Rapids to un-rotated coordinate)
M14 A0 B100 C1
M1101
G01 X5.03
G01 Y9.85
G03 X4.73 Y9.85 I-0.15 J0
G01 Y2.35
G03 X5.03 Y2.35 I0.15 J0
M15 A0 B100 C1
M01
G00 X7.32 Y2.35
M14 A0 B100 C1
M1101
G01 X7.47
G01 Y9.85
G03 X7.17 Y9.85 I-0.15 J0
G01 Y2.35
G03 X7.47 Y2.35 I0.15 J0
M15 A0 B100 C1
M01
G00 X9.76 Y2.35
M14 A0 B100 C1
M1101
G01 X9.91
G01 Y9.85
G03 X9.61 Y9.85 I-0.15 J0
G01 Y2.35
G03 X9.91 Y2.35 I0.15 J0
M15 A0 B100 C1
M01
G00 X0 Y-0.5
M14 A0 B100 C1
M1101
G01 X0 Y0
G01 X0 Y12.2
G01 X12.2 Y12.2
G01 X12.2 Y0
G01 X-0.25 Y0
M15 A0 B100 C1
M01
M1109 (reset G52 offset, G52X0Y0)
M1105 (Rapid Z up)
G00 X0 Y0 (Return to zero)
M30
%

8
Mach4 General Discussion / Coordinate Rotation
« on: January 18, 2018, 02:52:24 PM »
If I rotate the coordinate system using G68, I'm noticing that all feed rate moves follow the rotated program correctly, but all rapids seem to ignore the rotation and go to the un-rotated position. Is there a Gcode I should be posting in the header to make M4 rapid to the correct rotated coordinates.

Thanks

9
Mach4 General Discussion / Version Update Issue
« on: November 30, 2017, 04:51:32 PM »
So I've been working with M4 on version 4.2.0.3233 and ESS build 209.  I've installed and uploaded my profile on a few PC's. Today I downloaded M4 version 4.2.0.3481 with ESS build 216.  I imported the same profile that has been working with M4 3233 and ESS 209 and I get the attached errors.  There is a function called EnableAxis() in the Screen Load Script and it looks fine.  M4 is is installed in the same C:\Mach4Hobby folder that the older versions are in.

Anyone have any ideas?  I'd like to use the latest version.   Thanks

10
Mach4 General Discussion / Re: Stop CV on Angles?
« on: October 31, 2017, 09:06:06 PM »
Your CVTuningWizard is awesome.  That should do the trick.  Thanks.