AX58100

More
20 Aug 2025 01:31 #333704 by COFHAL
Replied by COFHAL on topic AX58100 last firmware
Thanks for your support. One thing I'm still unsure about is the speed of each axis. On my PC, it's limited to a maximum of 30. If I set it higher in the INI, it causes a following error, and that's a limitation when using servomotors that can operate at higher speeds.

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

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
20 Aug 2025 09:14 #333724 by Hakan
Replied by Hakan on topic AX58100 last firmware
I could repeat that.
It was MaxAcceleration that had a too low value 1e6, now 1e8.
This only matters if one gets gravel sound from the motors.
Setting MaxAcceleration slightly above real max acceleration reduces that significantly.
Otherwise, there is no harm to set it very high. Set too low and it can't accelerate up to speed fast enough.
Pushed a commit, please update the eeprom. Firmware is the same.

I also added an axis_mm.ini config for metric units for testing. 

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

  • vibram
  • Away
  • Senior Member
  • Senior Member
More
13 Nov 2025 14:37 #338315 by vibram
Replied by vibram on topic AX58100
Hello Hakan and thank you for all your work.
If I want to create a small PCB in order to add encoders, compatible with LinuxCNC, which version of your project would you advise in order to modify it?

Thanks

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

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
13 Nov 2025 17:27 #338320 by Hakan
Replied by Hakan on topic AX58100
I would start looking at
- encoders. With the current stm32f407 the quadrature counters are tied to certain pins, and max 4 such hardware counters. Code is in E3000, would copy that.
- EtherCAT chip, would base it on LAN9252 (which most of the cards use) due to Ax58100 limit of 2x16 pdos. Don't know of a limit for LAN9252, it's not less than 2x16. 
- Opto-couplers, would revisit.

If you are thinking of stepper generator with encoder inputs, say for four of them, would base it on E3000 for the user code and extend to four encoders, code is already there. soes library from E7000. Hardware will be based on E3000 around stm32, around E7000 for EtherCAT.

One can think of one card supporting 1 drive. Or 2 stepper drives. And use multiple cards

In linuxcnc 2.10 there is 64-bit integers, so no risk for encoders overflowing. 32-bit isn't quite enough at least for spindles.

Is it just an idea, or are you going to do it?
.

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

  • vibram
  • Away
  • Senior Member
  • Senior Member
More
14 Nov 2025 08:27 #338346 by vibram
Replied by vibram on topic AX58100
Hello,
Thank you for your reply
Ideally, I would like to integrate the project from PedPex which is a COS SIN converter (with IC-NV chip) for heidenhain glass scale directly as an ethercat module. It would receive COS SIN signal, convert it to quadrature, read by the STM32 then sent to Ethercat.
But this is a little bit out of my league knowledge wise, even if you did most of the job regarding ethercat and Pedpex most of the job regarding COS SIN conversion

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

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
14 Nov 2025 10:47 - 14 Nov 2025 11:22 #338352 by Hakan
Replied by Hakan on topic AX58100
I don't know much about cos sin. The whole processor is available for you to do all sorts of processing.
The ethercat part is the easy one I would say.
Every cycle you calculate a new encoder value, set a pdo variable and the soes library does the rest.

Edit. But I checked quickly. So you need to take in two analogue signals and calculate the phase angle.
Absolutely doable, could be a nice application.
Start a project thread and I'll give you a hand with the ethercat stuff.

Edit 2. The ADCs on STM32F4 are only 12-bit, you may need 16-bit ADC for this. Another processor? 
External 16-bit ADC unit?

Edit 3. IC-NV instead of ADCs of course.
Last edit: 14 Nov 2025 11:22 by Hakan.

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

  • vibram
  • Away
  • Senior Member
  • Senior Member
More
14 Nov 2025 12:56 #338355 by vibram
Replied by vibram on topic AX58100
IC-NV are here for the conversion, not easy to setup but Pedpex, a member from the forum did the stuff.
My goal is to merge his project to yours basically.

I will prepare all the work environment and when the schematic will be done or almost I will open a thread. Maybe i should start with a prototype PCB from you as I already get a pcb from pedpex and when everything is running, I do the merge

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

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
14 Nov 2025 13:27 #338356 by Hakan
Replied by Hakan on topic AX58100
I found Pedpex's work, awesome.
Maybe that is what you have in mind, but I would put his circuitry on the same board as ethercat
to have it neatly packaged.
One thought I got is if one can skip the quadrature part in some way. Are there sin cos chips
that can deliver a value over spi or i2c for example?
The built-in quadrature encoder in stm32f4 can read with at least 3 MHz so maybe not a big problem.
I have code to extend numbers over the 16-bit and 32-bit boundary.
Code for encoder counting is in E3000 project. 
Best to base HW on E7000 project, clear out pins and I2C and add encoder inputs.
 

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

  • vibram
  • Away
  • Senior Member
  • Senior Member
More
14 Nov 2025 14:33 #338358 by vibram
Replied by vibram on topic AX58100
Yes this is my goal, everything on a same board.
IC-NV part is not easy but one from PEdpex is working so I should use the same.
There is not much chip that can do this as good as IC-NV so I might stick to this one.
And STM32F4 works good for encoders so it should be a good match.
I will try to start from your E7000 then thank you

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

  • vibram
  • Away
  • Senior Member
  • Senior Member
More
19 Nov 2025 08:59 #338708 by vibram
Replied by vibram on topic AX58100
@Hakan certainly a stupid question but I did not understood why you did not managed to get the encoder work on the ethercat devboard here?



I wanted to test the encoder on the devboard before doing a custom board
Thank you for the clarification

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

Time to create page: 0.165 seconds
Powered by Kunena Forum