603,978 active members*
2,250 visitors online*
Register for free
Login

Thread: PCI request

Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2010
    Posts
    60

    PCI request

    Im still struggling to understand recorded PCI´s and can still not make my own really.
    Therefore i now hope someone has code to share.
    It does not need to complete all i want, if you have a part of this to share im happy for this too.

    What do i want to do?
    Background:
    When i make a cnc-program my code is output without information about the stock. Today i have to hand code in comments about size of the stock to be used.
    My wish:
    A PCI that would ask me to select a box like the stock, and from this make a comment with its max and min values in XYZ.
    I could from this also generate better start block for our heidenhain simulation as a spinoff.

  2. #2
    Join Date
    Aug 2005
    Posts
    80
    I have only done some simple PCI:s but I started reading a little and maybe you could use %Query together with %ASKDIGINFO or something similar to get information about the stock.

    Your going to need the PCI manual, found one through google. But I think they ship the documentation together with edgecam, that will give you a much more current document.

    PCI manual:
    ftp://www.itisvinci.com/Docenti/Leva...20PDFs/PCI.pdf

  3. #3
    Join Date
    Mar 2007
    Posts
    53

    Sample PCI code

    * ASKDIG will return the location of the screen digitize (snap) only
    * not always a precision input

    %ASKDIG=Digitize for an X value=TEMP
    %calc=My_X=[&XSnap]

    %IF ABS[My_X]<0.0001
    %calc=My_X=0.0
    %ENDIF

    %calc=My_X=[My_X]*10000
    %calc=My_X=INT([My_X])
    %calc=My_X=[My_X]/10000

    %messagebox=X location is [My_X]

    %END


    * INITDIGINFO creates a buffer to hold information
    * ASKDIGINFO puts entity info into the buffer
    * QUERYDIGINFO assigns the buffer element info to system variables
    * FREEDIGINFO clears the buffer X-Line

    %INITDIGINFO=X_Line
    %ASKDIGINFO=howTerm,NumDig=Digitize an X axis line=[X_Line],[#ENTITYDIG],1,0,[#false]
    %ADDFINISHDIG=[X_Line],[#FINISH]
    %QUERYDIGINFO=nret=[X_Line],0

    %calc=Xstart=[&XSTART]
    %calc=Xend=[&XEND]

    %messagebox=X Start is [Xstart], X End is [Xend]

    %FREEDIGINFO=[X_Line]

    %END

Similar Threads

  1. Quote Request [SA]
    By BananaBoat in forum RFQ (Request for Quote)
    Replies: 0
    Last Post: 06-19-2009, 08:14 AM
  2. RFO (request for opinion)
    By Shanghyd in forum Employment Opportunity
    Replies: 3
    Last Post: 11-19-2008, 07:50 PM
  3. EZ-CNC problem and request for SW.
    By kimfmx in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 0
    Last Post: 01-27-2008, 06:46 PM
  4. A request for help from the forumites
    By Cold Fusion in forum Community Club House
    Replies: 0
    Last Post: 12-03-2007, 06:50 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
  •