**RESOLVED** DRO counts backward on X (cnc11)

All things related to Centroid Oak, Allin1DC, MPU11 and Legacy products

Moderator: cnckeith

AnthonyOhio
Posts: 23
Joined: Sat Jan 22, 2011 1:19 pm
Allin1DC CNC Controller: Yes
CNC Control System Serial Number: 929100262
More than 1 system
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: No
Location: Northern Ohio

**RESOLVED** DRO counts backward on X (cnc11)

Post 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

---
-Anthony
AnthonyOhio
Posts: 23
Joined: Sat Jan 22, 2011 1:19 pm
Allin1DC CNC Controller: Yes
CNC Control System Serial Number: 929100262
More than 1 system
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: No
Location: Northern Ohio

Re: DRO counts backward on X (cnc11)

Post 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?
-Anthony
diycncscott

Re: DRO counts backward on X (cnc11)

Post by diycncscott »

I'll have to check to see if somebody changed something in the default k'board jogging PLC
AnthonyOhio
Posts: 23
Joined: Sat Jan 22, 2011 1:19 pm
Allin1DC CNC Controller: Yes
CNC Control System Serial Number: 929100262
More than 1 system
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: No
Location: Northern Ohio

Re: DRO counts backward on X (cnc11)

Post 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
-Anthony
cncsnw
Posts: 3898
Joined: Wed Mar 24, 2010 5:48 pm

Re: DRO counts backward on X (cnc11)

Post 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.
AnthonyOhio
Posts: 23
Joined: Sat Jan 22, 2011 1:19 pm
Allin1DC CNC Controller: Yes
CNC Control System Serial Number: 929100262
More than 1 system
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: No
Location: Northern Ohio

Re: DRO counts backward on X (cnc11)

Post 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
-Anthony
cncsnw
Posts: 3898
Joined: Wed Mar 24, 2010 5:48 pm

Re: DRO counts backward on X (cnc11)

Post 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.
AnthonyOhio
Posts: 23
Joined: Sat Jan 22, 2011 1:19 pm
Allin1DC CNC Controller: Yes
CNC Control System Serial Number: 929100262
More than 1 system
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: No
Location: Northern Ohio

Re: DRO counts backward on X (cnc11)

Post by AnthonyOhio »

Great!

I will try to look at this today and let you know how it works out.
-Anthony
diycncscott

Re: DRO counts backward on X (cnc11)

Post by diycncscott »

Anthony,

I assume everything is straightened out after our phone conversation?
AnthonyOhio
Posts: 23
Joined: Sat Jan 22, 2011 1:19 pm
Allin1DC CNC Controller: Yes
CNC Control System Serial Number: 929100262
More than 1 system
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: No
Location: Northern Ohio

Re: DRO counts backward on X (cnc11)

Post 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!
-Anthony
Locked