Novakon Mill Conversion - Getting Started

More
14 Mar 2024 23:34 - 15 Mar 2024 01:21 #295924 by PCW
Pin 14 is a PWMgen for compatiblity with the C11G breakout
(it would be PWMgen 0 in the hal file)

The stepgens are addressed as stepgen 0,1,2 etc in hal
These go to appropriate C11G pins (look at the pinout file
or the results of a readhmid command)
For example, Stepgen 0 is connected to DB25 pins 2 and 3 (step and dir respectively)

The optional qcount can be ignored, just use the GPIO inputs

IO Connections for P3
Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir

 1      0   IOPort       None
14      1   IOPort       PWMGen           0        PWM             (Out)
 2      2   IOPort       StepGen          0        Step            (Out)
15      3   IOPort       None
 3      4   IOPort       StepGen          0        Dir             (Out)
16      5   IOPort       None
 4      6   IOPort       StepGen          1        Step            (Out)
17      7   IOPort       StepGen          4        Step            (Out)
 5      8   IOPort       StepGen          1        Dir             (Out)
 6      9   IOPort       StepGen          2        Step            (Out)
 7     10   IOPort       StepGen          2        Dir             (Out)
 8     11   IOPort       StepGen          3        Step            (Out)
 9     12   IOPort       StepGen          3        Dir             (Out)
10     13   IOPort       QCount           0        Quad-A          (In)
11     14   IOPort       QCount           0        Quad-B          (In)
12     15   IOPort       QCount           0        Quad-IDX        (In)
13     16   IOPort       None

I should add that if you are creating a hal/ini file set from scratch with pncconf
you should use pncconfs discover option and set:

encoders=0
stepgens=4
pwmgens=0

and then all the required GPIO will be available to setup in pncconf
Last edit: 15 Mar 2024 01:21 by PCW.

Please Log in or Create an account to join the conversation.

More
21 Mar 2024 21:59 #296506 by Whizbang
I am going to first start this off with a huge thank you for the consistent feedback and answers. And secondly an apology for so many basic and somewhat repetitive questions.

I understand the motor setups and stepgens and can follow those in the hal file (mostly). But I am still a bit confused on things.

My C11G board is currently wired to my Novakon and is fully functional with MACH3. My goal is to plug into the C11G board as is already wired to the mill; so when I read the pin assignments from the C11gx2 pin file and the hal file, I have concerns on the functionality of the Axis homes and E Stop. My X, Y homes and E Stop are are physically wired to the pins that are listed as optional QCount in the pin file and when in PNC config I don't have enough GPIO options to assign these otherwise. What I am trying to understand is how to account for X home, Y home and my E stop when they are wired into the board already to pins I can't assign but are also not the correct function....

Do I need to create a hal/ini file from scratch ?

Please Log in or Create an account to join the conversation.

More
17 Apr 2024 23:50 #298513 by Whizbang
So, I got distracted with some other projects and am now coming back to this. 

I finally bit the bullet and plugged the computer into the existing C11G board and tried to move the machine, and I got nothing, I had lights on the C11G board (no idea what they mean), and everything was clearly powered, but zero communication between Linux CNC and the actual machine.......The screen indicated something should have been moving but nothing physically moved.

So does this mean I need to create a custom hal/ini file since clearly something doesn't align with the existing pinout file? Or is there perhaps something else going on?

Lights on C11G board:
Attachments:

Please Log in or Create an account to join the conversation.

More
18 Apr 2024 00:21 #298515 by tommylight
At this stage, check the bottom row of LED's on the C11 if they light up when you jog the machine, some should just light very dimly, some should be full on when jogging in one direction and full off when jogging on the other direction.

Please Log in or Create an account to join the conversation.

More
19 Apr 2024 12:14 #298612 by Whizbang
There were no lights whatsoever on the bottom row, so no actual communication/connection to the C11G board?

Please Log in or Create an account to join the conversation.

More
19 Apr 2024 14:50 #298621 by tommylight
After another look at the picture, it is there, staring at us, yet i failed to see it, it has a charge pump on pin17! :)
So edit the existing config using StepConf wizard or make a new one (you can have as many configs as you like/need) and add a charge pump on pin 17, that should kick things ...

Please Log in or Create an account to join the conversation.

More
19 Apr 2024 15:09 #298623 by PCW
Are you using C11G firmware?

If you disable the encoder in pncconf, (setting the number of encoders to 0)
then the associated GPIO pins will become available as inputs

Please Log in or Create an account to join the conversation.

Moderators: cncbasher
Time to create page: 0.437 seconds
Powered by Kunena Forum