Realtime feed rate for THC #839
Replies: 3 comments 3 replies
-
| 
         Complement files :  | 
  
Beta Was this translation helpful? Give feedback.
-
        
 
  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Compilation ok but the sender fails to open COM port.  | 
  
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I plan to use the actual feed rate (real time) to fine tune my THC.
I run GrblHAL on a T41E5XBB board from Ph. Barrett.
I want to use I2C to send it to my MEGA 2560 THC at 20 Hz frequency or more. Serial could be an other choice but not my question for now.
I made some working code (with AI help !) but it always lead to errors in the sender (bCNC, ioSender, etc.), code errors 1, 2, 25, etc. (gcode syntax pb caused by communication issue I suppose).
I think it's caused by ISR usage but my understading is lost in GrblHAL code structure and hook functions usage.
I tried to use :
1/ st_get_realtime_rate();
2/ stepper->exec_segment->current_rate;
Any advice to implement this trivial plugin ?
Here is a video of a working test of R03 plugin attached :
https://drive.google.com/file/d/1qO-Ugua_VGeInPjc2vxdHsw699LDRHlS/view?usp=drive_link
Many thanks for your kind help.
P.S. files attachement refused (CPP, C, H) so I converted to txt ;o)
my_plugin_c_R03.txt
my_plugin.txt
Beta Was this translation helpful? Give feedback.
All reactions