On Sun, Feb 22, 2015 at 4:25 PM, Kirk Wallace <kwall...@wallacecompany.com>
wrote:

> On 02/22/2015 01:11 PM, andy pugh wrote:
> ... snip
>
>> I abandoned it to a large extent because it was only half of what I wanted
>> to do. For instance it has none of the extra capability that the proposed
>> database layout in the wiki page has.
>> (Possibly worth mentioning that that database layout was largely thrashed
>> out in discussion with Tormach).
>>
> ... snip
>
> The attached shows 254 tools. I wasn't involved with this, but I can look
> into it or you can ask Rogge.
>
>
Here's the patch to make the tool table larger. A downside to this is that
it makes the status structure larger.
Change the two pertinent NML buffer sizes and the number of tool pockets.

diff --git a/configs/common/linuxcnc.nml b/configs/common/linuxcnc.nml
index 3d8c730..d6e610d 100644
--- a/configs/common/linuxcnc.nml
+++ b/configs/common/linuxcnc.nml
@@ -7,12 +7,12 @@

 # Top-level buffers to EMC
 B emcCommand            SHMEM   localhost       8192    0       0
  1       16 1001 TCP=5005 xdr
-B emcStatus             SHMEM   localhost       16384   0       0
  2       16 1002 TCP=5005 xdr
+B emcStatus             SHMEM   localhost       33792   0       0
  2       16 1002 TCP=5005 xdr
 B emcError              SHMEM   localhost       8192    0       0
  3       16 1003 TCP=5005 xdr queue

 # These are for the IO controller, EMCIO
 B toolCmd               SHMEM   localhost       1024    0       0
  4       16 1004 TCP=5005 xdr
-B toolSts               SHMEM   localhost       8192    0       0
  5       16 1005 TCP=5005 xdr
+B toolSts               SHMEM   localhost       33792    0       0
   5       16 1005 TCP=5005 xdr

 # Processes
 # Name          Buffer          Type    Host            Ops
server? timeout master? cnum
diff --git a/src/emc/nml_intf/emctool.h b/src/emc/nml_intf/emctool.h
index 7891a0e..d06b935 100644
--- a/src/emc/nml_intf/emctool.h
+++ b/src/emc/nml_intf/emctool.h
@@ -20,7 +20,7 @@
 #include "emcpos.h"

 /* Tools are numbered 1..CANON_TOOL_MAX, with tool 0 meaning no tool. */
-#define CANON_POCKETS_MAX 56   // max size of carousel handled
+#define CANON_POCKETS_MAX 257  // max size of carousel handled
 #define CANON_TOOL_ENTRY_LEN 256       // how long each file line can be

 struct CANON_TOOL_TABLE {

-- 

Jason
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to