588,100 active members*
5,165 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > EdgeCam > Edgecam PCI problem
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2012
    Posts
    13

    Edgecam PCI problem

    I am making a custom PCI for a bar feeder we have that needs some variables set at the beginning. I was able to make a dialog that asks for everything, and then outputs the NC code.

    My problem comes in when I'm trying to output a line that has logic, but the PCI thinks it's trying to use a variable.
    The line in question is:

    IF[#525EQ2]GOTO999

    The PCI thinks that [#525EQ2] is a variable, so it keeps outputting a 0 in place of the code.

    Is there anyway to make that know it's a string and not a variable. I know in javascript you can add a \ in front of certain things to make sure they are output, but whenever I tried to save as a JS instead of PCI the file was blank.

    Another question I have is how to force output to have ".0" at the end if it is a whole number. I have "Force '.' on integers" checked in the Format Table, but I guess that isn't translating to the Insert NC Code dialog.

  2. #2
    Join Date
    Mar 2007
    Posts
    53
    Hi MikeHTech,

    I have this code in a Mazak "Sub Spindle Dock Running" constructor
    it checks for and sets the B pickoff position #100 on the first part.

    ;CODE:#USESUB = 1
    ;CODE:#SBNUM=#SBNUM+10
    ;CODE:#USER2=#SBNUM
    ;CODE:#USER3=#SBNUM+1
    ;CODE:#USER4=#SPEED
    ;CODE:$USER1=$TOOLDESCRIPTION

    (SET B PICK POSITION)
    N[USER-2] IF [#100NE0] GOTO [USER-3]
    G28 U0 (MOVE TO X HOME)
    M5 M205 M305[<C>CHUCK2-OPEN] (STOP OPEN SUB)
    [C_RELEASE][SUBRELEASE] (SPINDLES FREE)
    M0 (PROGRAM STOP)

    (MANUALLY MOVE B TO PICK POSITION)
    #100=#5024 (SET B PICK POS)
    #102=#100+[PARTLENGTH] (SET G50 Z OFFSET)
    M5 M205 M305[<C>CHUCK2-OPEN] (STOP OPEN SUB)
    N[USER-3]
    ;CODE:%IF #BARFEED = 1 %THEN %GOTO @TRSBAR

    (TRANSFER CHUCK RUNNING)
    [DELETE][BLKNUM] G28 U0 (HOME X)
    [DELETE][BLKNUM] M540 M511 (TRS CHK-SYNC START)
    [DELETE][BLKNUM] M302 (MAIN SPINDLE SELECT)
    [DELETE][BLKNUM] M3 M303[<C>REVS] (SPEED)
    [DELETE][BLKNUM] M380 (SYNC ON)
    [DELETE][BLKNUM][<C>CHUCK2-OPEN] (OPEN SUB)
    [DELETE][BLKNUM] B[#100] (B MOVE TO PICK OFF POS)
    [DELETE][BLKNUM] M307 (CLOSE SUB)
    [DELETE][BLKNUM] M3 M303 S2500 (START SPINDLES)

    ;CODE:%GOTO @DONE
    ;CODE:@TRSBAR

    (TRANSFER BAR RUNNING)
    [DELETE][BLKNUM] G28 U0 (HOME X)
    [DELETE][BLKNUM] M540 M511 (TRS BAR-SYNC START)
    [DELETE][BLKNUM] M302
    [DELETE][BLKNUM] M3 M303[<C>REVS] (SPEED)
    [DELETE][BLKNUM] M380 (SYNC ON)
    [DELETE][BLKNUM][<C>CHUCK2-OPEN] (OPEN SUB)
    [DELETE][BLKNUM] B[#100] (B MOVE TO PICK OFF POS)
    [DELETE][BLKNUM][CHUCK2-CLOSE] (CLOSE SUB)
    [DELETE][BLKNUM] M543 M511 (TRS BAR END)

    ;CODE:#SPEED=#USER4
    [DELETE][BLKNUM]([USER-STRING-1])
    [DELETE][BLKNUM][<C>CSSGCODE][SPEED]
    ;CODE:@DONE

Similar Threads

  1. Edgecam code wizard problem
    By Dahlberg in forum EdgeCam
    Replies: 2
    Last Post: 05-13-2014, 06:26 AM
  2. edgecam
    By ohbuckley in forum Post Processors for MC
    Replies: 1
    Last Post: 01-09-2013, 12:51 PM
  3. Edgecam Mach3 post problem
    By mrjoesnow in forum EdgeCam
    Replies: 5
    Last Post: 12-16-2011, 05:34 PM
  4. EdgeCAM 2010 R1 installation problem
    By CadEngineer in forum EdgeCam
    Replies: 2
    Last Post: 08-17-2011, 09:27 AM
  5. Very new to edgecam
    By abr5 in forum EdgeCam
    Replies: 14
    Last Post: 04-14-2008, 07:35 PM

Posting Permissions

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