mpg hand wheels <Resolved>

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

Moderator: cnckeith

jfavre
Posts: 49
Joined: Tue Oct 15, 2019 6:51 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

mpg hand wheels <Resolved>

Post by jfavre »

I have wired the two mpg hand wheels pictured to the two db9 plugs and would like to use them to jog X and Y axis. Would like to keep the WMPG functional as well. I can see the feedback from one of the channels on the sixth axis. Is there available info on how to do this?
Attachments
report_0008DC111213-1212241633_2025-02-26_11-27-46.zip
(7.52 MiB) Downloaded 8 times
20250106_handwheels.jpg


cnckeith
Posts: 8680
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Contact:

Re: mpg hand wheels

Post by cnckeith »

cnc12 operator manual describes the parameters that are used to define encoder inputs for use with mpg and which axis they will move.
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html


jfavre
Posts: 49
Joined: Tue Oct 15, 2019 6:51 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: mpg hand wheels

Post by jfavre »

Cannot compile file. Where is the compile button? Unsuccessful after cmd prompt attempt and using Notepad++. What am I missing here. I'm sure its something simple.
Attachments
20250306_121105.jpg
20250306_121040.jpg
20250306_115017.jpg


centroid467
Posts: 708
Joined: Thu Apr 14, 2022 2:46 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: mpg hand wheels

Post by centroid467 »

Looks to me like the spaces in the filename are causing issues. They may need to be escaped or replaced with underscores or dashes.

WMPG and USBBOB config is doable although I do not know what PLC work is required.

Try P348 = 15 for WMPG encoder and then 349 and 350 both = 100. Basically, set the WMPG up as normal.
Assuming you are using H8 and H9 on the USBBOB, you would set P470 = 22 and P473 = 23. Also set P444 and P445 to assign the correct axis to the USBBOB MPGs.


jfavre
Posts: 49
Joined: Tue Oct 15, 2019 6:51 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: mpg hand wheels

Post by jfavre »

After watching PLC programming videos on Centroid's youtube channel and some reading I am now able to compile successfully. Boy did I mess that one up. I set the appropriate parameters as pictured and uncommented some lines in the .src file at the mpg function section. After compiling I reviewed the mpu.plc file and the modifications to the .src file did compile successfully. Still cant get the handwheels working. Any help would be awesome! Is there any more info i can provide?
Attachments
report_0008DC111213-1212241633_2025-03-10_12-36-05.zip
(7.61 MiB) Downloaded 6 times
20250310_param.jpg
20250310_mpg.jpg


centroid467
Posts: 708
Joined: Thu Apr 14, 2022 2:46 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: mpg hand wheels

Post by centroid467 »

Are you using CNC12 V5.00? USBBOB support was officially added in V5.20.

You'll need to update to at least V5.20 and update the PLC program to the latest and then modify it to incorporate the USBBOB MPG inputs. The AcornSix or Hickory stock PLC programs would make a good example for how that should work.


jfavre
Posts: 49
Joined: Tue Oct 15, 2019 6:51 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: mpg hand wheels

Post by jfavre »

Was using CNC12 V5.00 but updated to V5.3 today. I am not using a USB-BOB interface. Hand wheels are plugged into encoder ports 5 and 6 as pictured. I am looking for the specifics on the PLC program interaction as noted below in the cnc12 operator manual .

"Note: PLC program interaction is needed to enable an MPG or handwheel. A typical value is one (P348=1) for MPG ON"


centroid467
Posts: 708
Joined: Thu Apr 14, 2022 2:46 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: mpg hand wheels

Post by centroid467 »

I'm sorry, that was my mistake.

Setting P348 = 1 tells CNC12 and the PLC that it would be looking at Encoder #1 as a handwheel.

The wired MPG header is Encoder #15 and so is the WMPG so it should be set as such in P348.

P351 should be 5 for Encoder #5 and P354 should be 6.

P442 should be set to 1 or 2 depending on whether you want the MPG wired to encoder input 5 to control X or Y. P443 should be set to the other value.

I'll see if I can find a good example of the PLC changes needed to give the MPG functionality.


centroid467
Posts: 708
Joined: Thu Apr 14, 2022 2:46 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: mpg hand wheels

Post by centroid467 »

I think this attached stock PLC program will be a good reference for your application.

You'll want to look at the parts that reference "HandWheel_M". You can probably copy and paste most of those lines although you'll need to assign "HandWheel_M" to a different unused memory bit. Comment out the old lines you are replacing so you can compare or go back easily if it doesn't work.
Attachments
Centroid_OAK_Lathe_JoyStickJog-r3.src
(167.06 KiB) Downloaded 2 times


jfavre
Posts: 49
Joined: Tue Oct 15, 2019 6:51 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: mpg hand wheels

Post by jfavre »

I confirmed that the present mpu.plc matched the MPG stage .src file that was sent to me. The issue was the parameter settings for P351,P354,P442 and P443. All is functioning!! Was unsure of "you'll need to assign "HandWheel_M" to a different unused memory bit" but did not seem to need to be done. Not to familiar wit PLC programming and definitions but after watching Centroid's youtube videos, reading manuals and interaction with the plc program starting to understand more of it. Many thanks for the assistance and have a great weekend!!


Post Reply