No Input Window

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

  • No Input Window

    Running v4.1 on an xp machine with 3 gigs of ram.

    I am working on putting an input statement for entering the part s/n on each run of the program. When I run the program the window that should pop up to allow entry of the s/n isn't there. PCDmis reads the code, pauses and waits on the next line of code. When that happens everything locks up and requires a three fingered salute.

    Any suggestions are appreciated.

    Thanks --

    doc
    sigpic
    Screw It. Let's Ride

    2011 MR1 Cad ++

  • #2
    Are you using COMMENT/INPUT ?

    Can you post the section where it is hanging up?
    When in doubt, post code. A second set of eyes might see something you missed.
    sigpic

    Comment


    • #3
      Does it look like this?


      C1 =COMMENT/INPUT,YES,'Ser#'
      sigpicSummer Time. Gotta Love it!

      Comment


      • #4

        Thanks for the quick reply guys.

        Here's a copy of the code:

        C1 =COMMENT/INPUT,YES,Enter Part S/N:
        ASSIGN/ARG1 = C1.INPUT
        CS1 =SCRIPT/FILENAME= C:\PCDMISW\CHANGESERNUMBER.BAS
        FUNCTION/Main,SHOW=YES,,
        STARTSCRIPT/

        While it pauses for a moment at the 'c1=comment/input' line I can see the demon stop at the 'Assign/arg1' line.

        Thanks -
        Last edited by tenndoc; 09-11-2007, 11:10 PM.
        sigpic
        Screw It. Let's Ride

        2011 MR1 Cad ++

        Comment


        • #5
          You mark it for execution?

          I noticed you had it marked to show on the inspection report. Try using it OFF.
          I used to be high on life but I built up a tolerance.

          Brown & Sharpe Global Advantage
          PCDMIS CAD++ v2011mr2
          PH10MQ/SP600M


          sigpic

          Comment


          • #6
            Thanks Underspec -

            I went in and 'unmarked' and then 'marked' with the same result.
            Changing to 'off' hasn't changed anything either.

            For what its worth -

            I would expect the window with the input statement to open up at the same screen location as the popup asking which tip is loaded. The pop-up about the tip is now coming up at the left edge of the left monitor. Before I had it located at the left edge of the right monitor.

            Don't know if that has anything to do with this problem or not but when it locks up I get the sense that the input message is there somewhere I just can't see it.

            Of all the things I've lost I miss my mind the most.
            sigpic
            Screw It. Let's Ride

            2011 MR1 Cad ++

            Comment


            • #7


              OK - how can the input window be there and me not be able to see it?

              With the demon paused at the 'assign/arg1' line, I typed in '12345' and hit 'enter'. The program completed and I didn't have to use the 3 fingered salute!

              The input window is there somewhere I just can't see it.

              Any thoughts?



              Sometimes I think, "Well," and then I just don't know.
              sigpic
              Screw It. Let's Ride

              2011 MR1 Cad ++

              Comment


              • #8
                What are you using the script for?

                ASSIGN/ARG1 = C1.INPUT
                CS1 =SCRIPT/FILENAME= C:\PCDMISW\CHANGESERNUMBER.BAS
                FUNCTION/Main,SHOW=YES,,
                STARTSCRIPT/
                sigpicSummer Time. Gotta Love it!

                Comment


                • #9
                  Thanks Paul -

                  I am trying to get an input statement that will allow operators to update the part s/n each time a program is run.

                  I found where underspec had posted the question and am trying to make it work. The script is supposed to take the input at c1 and make it show up on the report the demon prints when it finishes running the program.

                  Just in case it matters, here's the entire program:

                  STARTUP =ALIGNMENT/START,RECALL:,LIST=YES
                  ALIGNMENT/END
                  MODE/MANUAL
                  PREHIT/ 0.2
                  RETRACT/ 0.2
                  CHECK/ 0.2,1
                  MOVESPEED/ 100
                  TOUCHSPEED/ 7.63
                  MANRETRACT/2.54
                  FLY/ON,0.1181
                  FORMAT/TEXT,OPTIONS, ,HEADINGS,SYMBOLS, ;MEAS,NOM,DEV,OUTTOL, , ,
                  LOADPROBE/STATION 21
                  TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
                  C1 =COMMENT/INPUT,NO,'Enter Part S/N:'
                  ASSIGN/ARG1 = C1.INPUT
                  CS1 =SCRIPT/FILENAME= C:\PCDMISW\CHANGESERNUMBER.BAS
                  FUNCTION/Main,SHOW=YES,,
                  STARTSCRIPT/
                  ENDSCRIPT/

                  I figured that if I could get it to work on this simple program I could use the same code on any program.

                  Thanks again -

                  sigpic
                  Screw It. Let's Ride

                  2011 MR1 Cad ++

                  Comment


                  • #10
                    I have a report template for v4.1 that prompts the user each time the program is ran to enter various stuff like "serial", "inspector", etc. It would be way easier than inserting a script into each program.
                    I used to be high on life but I built up a tolerance.

                    Brown & Sharpe Global Advantage
                    PCDMIS CAD++ v2011mr2
                    PH10MQ/SP600M


                    sigpic

                    Comment


                    • #11
                      Originally posted by tenndoc View Post

                      Thanks for the quick reply guys.

                      Here's a copy of the code:

                      C1 =COMMENT/INPUT,YES,Enter Part S/N:
                      ASSIGN/ARG1 = C1.INPUT
                      CS1 =SCRIPT/FILENAME= C:\PCDMISW\CHANGESERNUMBER.BAS
                      FUNCTION/Main,SHOW=YES,,
                      STARTSCRIPT/

                      While it pauses for a moment at the 'c1=comment/input' line I can see the demon stop at the 'Assign/arg1' line.

                      Thanks -
                      Are you doing something similar to what I posted? In that case, you have to make the Script line something like this:

                      Code:
                      CS1        =SCRIPT/FILENAME= C:\PCDMISW\CHANGESERNUMBER.BAS
                                  FUNCTION/Main,SHOW=YES,ARG1=NEWSN,,
                                  STARTSCRIPT/
                                  ENDSCRIPT
                      That passes ARG1 into the script and it will execute properly.



                      Jan.
                      ***************************
                      PC-DMIS/NC 2010MR3; 15 December 2010; running on 18 machine tools.
                      Romer Infinite; PC-DMIS 2010 MR3; 15 December 2010.

                      Comment


                      • #12
                        Originally posted by tenndoc View Post

                        Thanks for the quick reply guys.

                        Here's a copy of the code:

                        C1 =COMMENT/INPUT,YES,Enter Part S/N:
                        ASSIGN/ARG1 = C1.INPUT
                        CS1 =SCRIPT/FILENAME= C:\PCDMISW\CHANGESERNUMBER.BAS
                        FUNCTION/Main,SHOW=YES,,
                        STARTSCRIPT/

                        While it pauses for a moment at the 'c1=comment/input' line I can see the demon stop at the 'Assign/arg1' line.

                        Thanks -
                        There is no argument declared in your script call
                        Last edited by slesholdofthreep; 09-12-2007, 11:24 AM.
                        sigpic 1.61803399Δ
                        ASSIMILATE INTERGRATE SYNTHESIZE

                        Comment


                        • #13
                          This is all I do and it allows the operator to update every time:

                          C1 =COMMENT/INPUT,YES,Enter Part S/N:

                          You don't need anything else with it.
                          ~Josh~ Giles Rescue "Ut ceteri vivant"

                          Comment


                          • #14
                            to solve the prob of the invisble input-statement:

                            try to delete the following files in your profile-folder of the PCDMIS-folder (named
                            like your windows-account-name):
                            - executebarstate.dat
                            - gbarstate.dat
                            (and eventually MessageBoxOptions.dat)

                            this should restore the default layouts and bring back the dialog!

                            HTH

                            Comment


                            • #15
                              I really don't think the answer is all that complex your script call should look like this:

                              Code:
                              CS1 =SCRIPT/FILENAME= C:\PCDMISW\CHANGESERNUMBER.BAS
                                          FUNCTION/Main,SHOW=NO,ARG1=CN,,
                                          STARTSCRIPT/
                              just make sure you .bas file resides in the location above.
                              sigpic 1.61803399Δ
                              ASSIMILATE INTERGRATE SYNTHESIZE

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X