Page 1 of 2

Still struggling to get hand wheels operational.

Posted: Wed Feb 10, 2021 11:37 am
by Chas
Hi, i have modified the plc program as per Tom Blough's post of Sat Sept 5th but still no life in the hand wheels. I have rechecked the wiring and everything is as it should be. hand wheels are connected to axis 3 & 4 inputs. I'm guessing i'm missing a step somewhere in getting them to act for Axis 1 (Z) and axis 2 (X). Any suggestions greatly appreciated.
Report attached.
Thanks
Chas

Re: Still struggling to get hand wheels operational.

Posted: Wed Feb 10, 2021 1:25 pm
by cncsnw
If you made necessary changes in your PLC program source, did you then compile the new PLC program into mpu.plc?

Re: Still struggling to get hand wheels operational.

Posted: Thu Feb 11, 2021 6:22 am
by Chas
Hi, er no I didn’t. Is it simply a matter of removing the standard oak src file and pasting in the revised one.
Many thanks

Re: Still struggling to get hand wheels operational.

Posted: Thu Feb 11, 2021 8:20 am
by tblough
All the Centroid manuals are located here: https://www.centroidcnc.com/centroid_di ... nuals.html

This one will show the PLC compile and installation procedure: https://www.centroidcnc.com/centroid_di ... manual.pdf

Re: Still struggling to get hand wheels operational.

Posted: Sat Feb 20, 2021 6:10 pm
by Chas
Soory guys but still struggling with this. Have altered the Centroid Lathe-Standard-Oak-r4.src file and the MPU.plc file to match but still no joy. I believe the software brings up an alert when a change is made to the program but i don't see that so i assume i haven't made the changes correctly. i have noted that the mpg button on the vcp cannot be changed but that may just be that it only functions when a centroid handheld pendant is attached, i don't know. The handwheels are operational as if i switch axis 3 and 4 on i get readouts from both when i turn the handles. Very frustrating as everything else works great now. Report and copy of modified src file attached.

Re: Still struggling to get hand wheels operational.

Posted: Sat Feb 20, 2021 7:18 pm
by cncsnw
You don't edit mpu.plc in a text editor.

You edit your source file in a text editor, then compile it.

Suppose you have decided to name your new, revised PLC program source "Centroid-Lathe-Standard-handwheels_v3.src". Then, with a command prompt window open, and in the c:\cnct directory (so the prompt in front of your cursor reads "C:\cnct>") you would enter the command:

Code: Select all

mpucomp  Centroid-Lathe-Standard-handwheels_v3.src  mpu.plc

Re: Still struggling to get hand wheels operational.

Posted: Sat Feb 20, 2021 7:28 pm
by cncsnw
After you type the "mpucomp" command, then look to see whether the resulting messages include something like:

Code: Select all

Input file : Centroid-Lathe-Standard-handwheels_v3.src
Output file: mpu.plc
Compilation successful
... plus some statistics about program complexity and size.

If you don't see "Compilation successful", or the output file is not "mpu.plc", then your changes are not going to take effect.

Re: Still struggling to get hand wheels operational.

Posted: Sun Feb 21, 2021 2:38 pm
by Chas
Apologies, but i must still be doing something wrong. Went through the procedure as explained but i get the response as in the attached photo. Any suggestions.

Re: Still struggling to get hand wheels operational.

Posted: Sun Feb 21, 2021 4:11 pm
by tblough
cd c:\cnct
mpucomp Centroid-Lathe-Standard-handwheels_v3.src mpu.plc

Two different commands. First changes to the cnct directory. Second compiles the plc program.

Re: Still struggling to get hand wheels operational.

Posted: Mon Feb 22, 2021 10:23 am
by Chas
Thanks guys, got there in the end with your help. Handwheels along with everything else now fully operational .
Many thanks.
Chas