Pass an Input Comment to a Tracefield

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pass an Input Comment to a Tracefield

    Ok I forgot the code for this and what I looked up in the search has not worked thus far.

    V3.7 MR3
    9-12-9 Xcel
    Shapre 32 Controller

    I tried a couple different combinations but I could not get my input comment to pass to my tracefield.

    Here is what I have tried

    C1 = COMMENT/INPUT,YES,'ROUTE #'
    TRACEFILED/NO_DISPLAY,LIMIT=15; : C1.INPUT

    C1 = COMMENT/INPUT,YES,'ROUTE #'
    TRACEFILED/NO_DISPLAY,LIMIT=15; : +C1.INPUT

    I also tried passing the input comment to a variable then to the tracefiled.

    C1 = COMMENT/INPUT,YES,'ROUTE #'
    ASSIGN/V1, C1.INPUT
    TRACEFILED/NO_DISPLAY,LIMIT=15; : V1

    C1 = COMMENT/INPUT,YES,'ROUTE #'
    ASSIGN/V1, C1.INPUT
    TRACEFILED/NO_DISPLAY,LIMIT=15; : +V1

    TIA
    Kevin

  • #2
    This works for me in 4.2-1-
    TRACEFIELD/DISPLAY,LIMIT=15 ; PALLET: 1
    it puts the "PALLET: 1" in my report
    Global Performance
    5-7-5, PH10T, 4.2-1
    Micro Xcel 7-6-5
    PH6, 4.2-1

    Comment


    • #3
      Originally posted by kmcmm View Post
      Ok I forgot the code for this and what I looked up in the search has not worked thus far.

      V3.7 MR3
      9-12-9 Xcel
      Shapre 32 Controller

      I tried a couple different combinations but I could not get my input comment to pass to my tracefield.

      Here is what I have tried

      C1 = COMMENT/INPUT,NO,'ROUTE #'
      TRACEFILED/NO_DISPLAY,LIMIT=15; ROUTE # : C1.INPUT
      TIA
      I use this on all my programs, but the tracefields need to be refreshed. Hexagon sent me a little refresh.bas file that I put at the end of my programs and it updates all the tracefields. PM me your e-mail address and I will send you the refresh.bas file.
      DeWain Hodge

      Comment


      • #4
        Originally posted by DeWain Hodge View Post
        I use this on all my programs, but the tracefields need to be refreshed. Hexagon sent me a little refresh.bas file that I put at the end of my programs and it updates all the tracefields. PM me your e-mail address and I will send you the refresh.bas file.
        You could also post it here...
        PC-DMIS CAD++ 2o19 R1 SP11

        Comment


        • #5
          Originally posted by vpt.se View Post
          You could also post it here...
          +1

          B&S CHAMELEON/PCDMIS CAD++ V2011

          There are no bugs, only "UNDOCUMENTED ENHANCEMENTS!"

          sigpic

          Comment


          • #6
            Originally posted by vpt.se View Post
            You could also post it here...
            Originally posted by dph51 View Post
            +1
            Here you go. It includes the refresh.bas, a zero.bas (which clears all comment/inputs) and an example of how I use them.
            Attached Files
            DeWain Hodge

            Comment


            • #7
              Moved to tips and tricks for the valuable information. Thanks DeWain for sharing.
              --Brian

              "The best way to predict the future is invent it. This includes your very next action."

              Support: Hexagon Metrology Support Center
              Training: Hexagon Metrology University

              Comment


              • #8
                Originally posted by kmcmm View Post
                Ok I forgot the code for this and what I looked up in the search has not worked thus far.

                V3.7 MR3
                9-12-9 Xcel
                Shapre 32 Controller

                I tried a couple different combinations but I could not get my input comment to pass to my tracefield.

                Here is what I have tried

                C1 = COMMENT/INPUT,YES,'ROUTE #'
                TRACEFILED/NO_DISPLAY,LIMIT=15; : C1.INPUT

                C1 = COMMENT/INPUT,YES,'ROUTE #'
                TRACEFILED/NO_DISPLAY,LIMIT=15; : +C1.INPUT

                I also tried passing the input comment to a variable then to the tracefiled.

                C1 = COMMENT/INPUT,YES,'ROUTE #'
                ASSIGN/V1, C1.INPUT
                TRACEFILED/NO_DISPLAY,LIMIT=15; : V1

                C1 = COMMENT/INPUT,YES,'ROUTE #'
                ASSIGN/V1, C1.INPUT
                TRACEFILED/NO_DISPLAY,LIMIT=15; : +V1

                TIA
                Kevin, did you have the STATS command before you assigned the tracefields? I use your first method all the time and it works for me! The only thing I see missing is TRACEFILED/NO_DISPLAY,LIMIT=15; ROUTE# : C1.INPUT. It may have a problem with the # sign but your tracefield definition is missing a name!

                Comment


                • #9
                  Originally posted by kmcmm View Post
                  Ok I forgot the code for this and what I looked up in the search has not worked thus far.

                  V3.7 MR3
                  9-12-9 Xcel
                  Shapre 32 Controller

                  I tried a couple different combinations but I could not get my input comment to pass to my tracefield.

                  Here is what I have tried

                  C1 = COMMENT/INPUT,YES,'ROUTE #'
                  TRACEFILED/NO_DISPLAY,LIMIT=15; : C1.INPUT

                  C1 = COMMENT/INPUT,YES,'ROUTE #'
                  TRACEFILED/NO_DISPLAY,LIMIT=15; : +C1.INPUT

                  I also tried passing the input comment to a variable then to the tracefiled.

                  C1 = COMMENT/INPUT,YES,'ROUTE #'
                  ASSIGN/V1, C1.INPUT
                  TRACEFILED/NO_DISPLAY,LIMIT=15; : V1

                  C1 = COMMENT/INPUT,YES,'ROUTE #'
                  ASSIGN/V1, C1.INPUT
                  TRACEFILED/NO_DISPLAY,LIMIT=15; : +V1

                  TIA
                  "Tracefield" is spelled "Tracefiled" above. If that is simply a forum typo disregard this post.
                  If it is (somehow) spelled that way in the program it won't work.
                  Last edited by ir a programmer; 07-21-2011, 11:22 AM.
                  sigpic

                  Comment


                  • #10
                    Originally posted by DeWain Hodge View Post
                    Here you go. It includes the refresh.bas, a zero.bas (which clears all comment/inputs) and an example of how I use them.
                    DeWain Hodge,

                    I was wondering if you could send these files to my email, I am unable to access them via the forum, probably because of my IT department. I am a beginner in programming with PC-DMIS right now but I am really interested in looking at these files, as I have just begun to mess with .bas files myself. If I send you my email via private message would you do me the favor?

                    Comment


                    • #11
                      This works here at 3.7:

                      Code:
                      STATION_IN =COMMENT/INPUT,YES,'Station # '
                                  STATS/ON,DATAPAGE,$
                                  DIRECTORY=P:\DATAPAGE\GKN,$
                                  DIRECTORY=,$
                                  READ=20,WRITE=20,MEMPAGES=256,DIMENSION NAME,CONTROLCALC ON,$
                                  STATS/END
                                  TRACEFIELD/NO_DISPLAY,LIMIT=15 ; Station : STATION_IN.INPUT
                      The tracefield line must come after the stats on to "take" !

                      TK
                      Last edited by tking; 01-20-2015, 03:48 PM.
                      sigpicHave a homebrew

                      Comment

                      Related Topics

                      Collapse

                      Working...
                      X