DPRNT to Rotary Indexer macro


Results 1 to 4 of 4

Thread: DPRNT to Rotary Indexer macro

  1. #1
    Registered
    Join Date
    May 2003
    Location
    New Hampshire
    Posts
    9
    Downloads
    0
    Uploads
    0

    Default DPRNT to Rotary Indexer macro

    Hello everyone,
    Looked through all posts with DPRNT info but nothing has worked for us.
    Any ideas on what might help will be much appreciated

    Hardinge VMC 600 II with Fanuc 0M-D and Yukiwa AC4-10 indexer control.

    The following code works for us (ex. 90 deg incremental index
    RRR is character string, G50 is incremental, A90000 is index
    angle- controller needs to see 90000):

    POPEN
    DPRNT [RRR G50 A90000]
    M90 (index command)
    M91 (complete signal)
    PCLOS

    Controller displays angle as 90.000

    What we want to do is in the Main program have
    a G code call a macro program to control indexer.

    Here is what we have tried:

    O0001
    G15 B90.
    M30

    O9010:
    #2=#2*1000
    POPEN
    DPRNT [ RRR G50 A#2[60]]
    M90
    M91
    PCLOS
    M99

    What happens is indexer unclamps but does not move.
    Have tried adding a feed rate but has no effect.
    Thanks for any help,
    Blaine

    Similar Threads:


  2. #2
    Registered
    Join Date
    Feb 2008
    Location
    USA
    Posts
    7
    Downloads
    0
    Uploads
    0

    Default Re: DPRNT to Rotary Indexer macro

    Hi,
    Not sure if this will help you directly, but it may give you some ideas.
    The following G-code snippet is what I use w/ my Haas MiniMill w/ a Tsudakoma / TPCjr indexer setup:

    G103 P1
    DPRNT[/MOVA180.]
    M21
    G04 P1.
    G103 P0

    G103 P1 <- set look ahead to one line only
    DPRNT[/MOVA###] <- cmd to be sent to indexer
    M21 <- causes the command to be sent
    G04 P1. <- dwell for one second
    G103 P0 <- set look ahead back to default

    I wrote a standalone program (DprntCvt.exe) so my G-code files can have the regular "N101 A180." blocks so the G-code files work as expected with my PC based verification tools. When I'm ready to take the G-code file to the machine I pass the G-code file through DprntCvt.exe which then translates all of the A-axis blocks to the DPRNT format.

    Good luck! Phil(f) in WI



  3. #3
    Member dcoupar's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    2932
    Downloads
    0
    Uploads
    0

    Default Re: DPRNT to Rotary Indexer macro

    Is the CNC waiting for the M90 fin signal?



  4. #4
    Member
    Join Date
    Apr 2007
    Location
    USA
    Posts
    28
    Downloads
    0
    Uploads
    0

    Default Re: DPRNT to Rotary Indexer macro

    We use Haas Indexers on our Machines. We made our own G code (g15) to control indexer through program. We will call G15 A90.0 for a 90 degree rotation. Below is the macro program.

    O9015(INDEX MACRO)
    POPEN
    DPRNT[]
    G04P100
    IF[#4EQ1]GOTO10
    DPRNT[XG090]
    GOTO20
    N10DPRNT[XG091]
    N20G04P100
    DPRNT[XS#1[33]]
    G04P100
    IF[#9EQ0]GOTO30
    GOTO40
    N30DPRNT[XF#9[33]]
    N40G04P100
    M91
    PCLOS
    M99



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

DPRNT to Rotary Indexer macro

DPRNT to Rotary Indexer macro