machinekit / machinekit-cnc

CNC stack split out into a separate package
Other
60 stars 36 forks source link

Maximum number of tools #28

Open ArcEye opened 6 years ago

ArcEye commented 6 years ago

Issue by machinekoder Mon Jul 11 13:41:43 2016 Originally opened as https://github.com/machinekit/machinekit/issues/989


The maximum number of tools is currently hard coded and limited to 56 (see https://github.com/machinekit/machinekit/blob/master/src/emc/nml_intf/emctool.h#L23). Would it make any problems to raise the number of supported tools to 100?

ArcEye commented 6 years ago

Comment by ArcEye Mon Jul 11 15:41:45 2016


See this from someone you know in US :smile: http://permalink.gmane.org/gmane.linux.distributions.emc.devel/14329

It would be worth chasing down the whole thread, Andy Pugh looked at the whole tool table issue some while back with a view to changing it to SQL or similar.

Looks like the only real issue is ensuring the buffers are large enough to accommodate the increased structure size.

shulter commented 5 years ago

quoting from https://github.com/LinuxCNC/linuxcnc/issues/411

to increase the tool amount you need to edit two files, i.e. 256 tools:

/configs/common/linuxcnc.nml change: emcStatus from 16384 to 33792 toolSts from 8192 to 33792

and /src/emc/nml_intf/emctool.h CANON_POCKETS_MAX to 257