When adding new commands, some of these things are a bit obscure to me. This 
doesn't affect me personally but for others who want to add new gcodes it might 
help to document the following:

1.) How to tell what the debug address should be, for example in that commit: 
configs/sim/axis/lathe.ini and also, LOG_LEVEL is a bit confusing at first 
glance. Generally a log level is between 0 and 9, not in the tens of thousands. 
What is the parameter range for LOG_LEVEL and what does this directly affect?

2.) In src/emc/rs274ngc/interp_array.cc there is "const int Interp::_gees[] ={" 
-- What is the difference between -1 and 1, and why does 640 start with a 13? 
What does 13 mean?

3.) In src/emc/rs274ngc/interp_internal.hh -- G_71 is defined as 710. Why 710 
and what is 710 referring to? A bit further down there is startx, startz, endx, 
endz, etc. however in that one commit, that is the only instance of those, as 
well as the only reference to lathe_canned_cycle_profile_struct.

4.) In src/emc/rs274ngc/rs274ngc_pre.cc -- At the bottom is the "initialization 
stuff for G71 control." Why is _setup.g71_start_block and _setup.g71_end_block 
set at -1? Why not 0 or 1? What if start_block is at -1 and end_block is at 1 
or 0? How do you know what to use?

The rest I can make sense out of as it's pretty straight forward. The answers 
to these questions should help others out interested in adding new commands.


Thanks!

Alec


_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to