Page 1 of 2
**RESOLVED** DRO counts backward on X (cnc11)
Posted: Wed Jan 26, 2011 10:12 pm
by AnthonyOhio
Y & Z axis are working correctly and home correctly.
I am only having trouble with the X
The encoder counts positve when turned ccw.
X motor turns ccw to move - (table right)
---
Motor parameter settings: X- limit parameter set to 2, X+ to 1
Results:
DRO Count is positive when moving the tool - (table right)
Trips X- limit (input 2) and will not back-off
----
Motor parameter settings: Changed X- limit parameter to 1, x+ to 2
Results:
Can jog off limit input 2 (X-)
Message "X+ limit tripped" is wrong.
Count is still reversed
---
Motor parameter settings: Reversed X, X- limit parameter to 1, X+ to 2
DRO count is correct
Will not back off limit input 2
Message "X+ limit tripped" is wrong.
X Jog control reversed
---
Motor parameter settings: Reversed X, X- limit parameter changed to 2, X+ to 1
Results:
Can jog off limit 2 (X-)
Message X- limit tripped is correct
DRO count is correct
X Jog control reversed
---
Re: DRO counts backward on X (cnc11)
Posted: Tue Feb 01, 2011 9:51 am
by AnthonyOhio
I installed the pendant yesterday morning.
All axis jog properly with the pendant. So it is only the x keyboard jogging that is reversed.
Is this a simple parameter change or key assignment?
Re: DRO counts backward on X (cnc11)
Posted: Wed Feb 02, 2011 12:39 pm
by diycncscott
I'll have to check to see if somebody changed something in the default k'board jogging PLC
Re: DRO counts backward on X (cnc11)
Posted: Sat Feb 12, 2011 12:54 pm
by AnthonyOhio
Scott,
Any luck finding out why my keyboard jog is backward? Can we fix this in the PLC also, or is this a parameter change?
Anthony
Re: DRO counts backward on X (cnc11)
Posted: Sun Feb 13, 2011 2:44 am
by cncsnw
From what I have seen, the backwards jogging is a bug in many of the factory PLC programs.
Look for lines like:
Code: Select all
;KbJogAx1Plus_M: Right arrow
if Kb_Left && AllowKbInput_M && KbJpActive_M THEN (KbJogAx1Plus_M)
;KbJogAx1Minus_M: Right arrow
if Kb_Right && AllowKbInput_M && KbJpActive_M THEN (KbJogAx1Minus_M)
Change them to read:
Code: Select all
;KbJogAx1Plus_M: Right arrow
if Kb_Right && AllowKbInput_M && KbJpActive_M THEN (KbJogAx1Plus_M)
;KbJogAx1Minus_M: Left arrow
if Kb_Left && AllowKbInput_M && KbJpActive_M THEN (KbJogAx1Minus_M)
Save your changes and recompile.
Re: DRO counts backward on X (cnc11)
Posted: Sun Feb 13, 2011 12:09 pm
by AnthonyOhio
Thank you!
I will fix this as soon as i learn how to compile the PLC.
It will be nice to get everything working correctly.
Anthony
Re: DRO counts backward on X (cnc11)
Posted: Mon Feb 14, 2011 8:12 pm
by cncsnw
I will fix this as soon as i learn how to compile the PLC.
Exactly how you do that depends on whether you are running Linux or Windows.
In general terms:
1) Go to a command prompt.
2) Make sure you are in the control software directory (/cncroot/c/cncm on Linux, c:\cncm in Windows).
3) Enter a command like:
edit nameofsource.src
4) Save your changes and exit the editor.
5) Enter a command like:
mpucomp nameofsource.src mpu.plc
6) Close the command prompt, shut down the control, and cycle the power.
You can find the name of your PLC program source file on the F7/Utility -> F8/Options display.
Re: DRO counts backward on X (cnc11)
Posted: Tue Feb 15, 2011 9:35 am
by AnthonyOhio
Great!
I will try to look at this today and let you know how it works out.
Re: DRO counts backward on X (cnc11)
Posted: Mon Feb 21, 2011 7:05 am
by diycncscott
Anthony,
I assume everything is straightened out after our phone conversation?
Re: DRO counts backward on X (cnc11)
Posted: Tue Feb 22, 2011 9:52 am
by AnthonyOhio
Good Morning Scott,
I Arrived at the shop yesterday morning, fired up the machine and CNC11 was working in demo mode, as it should be. I compiled the new PLC; but forgot to test the keyboard jogging changes that you made.
I will add those to my list for today.
Thank You for reminding me!