586,923 active members*
2,940 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > EdgeCam > Add token in code constructor
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Apr 2014
    Posts
    18

    Re: Add token in code constructor

    thanks meegers

  2. #2
    Join Date
    Jun 2008
    Posts
    125

    Re: Add token in code constructor

    This is some code from a cgs we use ......

    **** Header of CGS

    * ;TEMPLATE=AUTOLATHE=EXAMPLE 1

    ;TEMPLATE=AUTOLATHE=G&L VTC2500 EXTENSION

    ;VERSION^CGE include file^2013.10.02^30/08/13^MME

    ************************************************** ********

    **** New variable can be declared (must be outside macros, procedures...)

    %DECLARE=#AUTOTOOLCHANGE,#WINTOOLONLY

    ************************************************** ******
    **** New Machine declaration for Qxxx declaration
    * No replacement, only addition

    %MACHINE=LATHE=G&L VTC2500
    Q525=_radio=Toolchange Type^Auto^Manual[15]
    Q526=_radio=WinTool Only or Output^Output^Don't Output[15]
    %ENDMACH

    ************************************************** ********
    **** Macro/Procedure replacement

    %MACRO=15=TL=Toolchange=8,12,13,24,80,47,48,16,15, 201,202,203,206,525,526,
    $SPC=" "; Reset trace spacing
    #MACRO=15
    %IF #NCSUPPRESS=1 %THEN MASK=1
    #AUTOTOOLCHANGE=UNVAR525
    #WINTOOLONLY=UNVAR526
    %CALL=PMACRO-15
    %ENDM

    %MACRO=165=TL=Toolchange=8,12,13,24,80,47,48,16,15 ,201,202,203,206,525,526
    $SPC=" "; Reset trace spacing
    #MACRO=165
    %IF #NCSUPPRESS=1 %THEN MASK=1
    #AUTOTOOLCHANGE=UNVAR525
    #WINTOOLONLY=UNVAR526
    %CALL=PMACRO-165
    %ENDM


    Save this as a CGS file. Then open up code wizard and 'compile CGE'. Code Wiz will then create a CGE from your CGS.
    I'd then close down the Code Wiz and restart it. Open up your post that you want to add/modify and then chose the 'Import CGE' option from the File menu, and then compile.

Similar Threads

  1. Replies: 51
    Last Post: 09-16-2020, 01:28 AM
  2. TOKEN Chairman visit Sharpecnc today
    By leo zhu in forum News Announcements
    Replies: 0
    Last Post: 05-24-2010, 03:15 PM
  3. Replies: 2
    Last Post: 11-12-2008, 02:17 PM
  4. lead token for thread turning...where is it?
    By inflateable in forum EdgeCam
    Replies: 2
    Last Post: 07-23-2008, 11:56 AM
  5. Token, header/ footer OOOmy
    By cncadmin in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 0
    Last Post: 05-06-2004, 08:00 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •