512,676 active members
2,917 visitors online
Register for free

Thread: PP Trouble

Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2013

    PP Trouble


    I admit that I don't know much about the Lua scripting language. I am having trouble customizing the post I am using. What I want to do is insert a M00 code with a message at the start of each part after the first one. I keep getting the message inserted one line before the end of the part. This is the pp code:

    function OnNewPart()
    partCount = partCount + 1
    post.Text(" (Part: ",partName,")\n")
    if (partCount > 1) then
    post.Text(" M00")
    post.Text(" \"OK TO START Part: ",partName,"?\"\n")


    The resulting G code when a new part starts is:

    N0687 G02 X9.0841 Y10.4338 I-1.4421 J-8.2773
    N0688 (Part: salmon trivit 3 Duplicate 2)
    N0689 M00 "OK TO START Part: salmon trivit 3 Duplicate 2?"
    N0690 G02 X9.4523 Y10.2881 I-2.1645 J-6.0082
    N0691 (Operation: No Offset, layer2, T1: 14ga)
    N0692 (NEW CUT)
    N0693 G00 X2.3929 Y14.3847

    Notice that the message is inserted before the last block of G code for the part.

    What am I doing wrong?


  2. #2
    Join Date
    Aug 2013

    Re: PP Trouble


    Anyone have any ideas? More info:

    This happens with parts that are nested using the Multiple Duplicate command. The parts nested using the array command don't seem to have this problem.

    What else do you need to know?

    I fix the problem using a text editor find function then cutting and pasting. A real PITA on a fully nested sheet!


Similar Threads

  1. Having trouble with 3d on V24
    By jessebpm in forum BobCad-Cam
    Replies: 8
    Last Post: 02-27-2012, 11:38 PM
  2. Trouble with V24
    By robrea in forum BobCad-Cam
    Replies: 17
    Last Post: 05-14-2011, 10:49 PM
  3. PLC trouble
    By dipakkadam_619 in forum Stepper Motors / Drives
    Replies: 1
    Last Post: 11-30-2009, 09:17 PM
  4. g42 trouble
    By seawolf217 in forum General MetalWork Discussion
    Replies: 6
    Last Post: 01-18-2009, 06:13 AM
  5. The trouble with SE
    By split63 in forum SolidEdge
    Replies: 5
    Last Post: 10-24-2008, 05:59 AM

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