Automatic Routine Start

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

  • Automatic Routine Start

    Good morning,
    I'm new on pc-dmis world and I have a question for you.
    It's possible to program an automatic routine start in pc-dmis? For example, I want to start the qualification routine at 06:00 am so it ends before my shift starts.

    Thank's

  • #2
    Pc-Dmis can't AFAIK. Windows environment can. You will hear about how 'unsafe' or 'dangerous' this can be as these are unaware machines that go boom! but if you lean on the side of risk to get the job done (I know I have before) look up Windows Task Scheduler. WTS would probably fire up an executable or batch file with your desired automated task. Welcome to the Forum!!!
    PcDmis 2015.1 SP10 CAD++
    Global 7-10-7 DC800S

    Comment


    • #3
      With WTS I open pc-dmis but how do I start the routine?

      Comment


      • #4
        You'd have to create a routine for it with auto calibration setup in it. The part I don't know is how to get it to automatically execute the routine. I'll have to think on this.

        I wonder if you could open and execute the auto calibrate program and have DMIS and have code in it that delays until 6AM. Sounds doable but I don't know how. Still thinking...
        Remembering my beautiful wife Taz who's life was lost on 6-13-2020. I love you and I miss you.

        Comment


        • Douglas
          Douglas commented
          Editing a comment
          better double check screensaver and power options to execute that plan,

          Insert>report command>comment... check the box that says Auto-continue execution and enter the number of seconds in the box... start program and go home

        • Douglas
          Douglas commented
          Editing a comment
          got bored and tried... 600sec max you'd need 6 comments per hour of delay

      • #5
        Tomorrow I'll try with report command and I’ll update you

        thank

        Comment


        • #6
          GOT IT (I think)!!! A DO/UNTIL LOOP!!! Inside the do/until loop, assign V1 to equal the time and have it do it until V1=6.

          I haven't tried and tested this but it makes sense.
          Remembering my beautiful wife Taz who's life was lost on 6-13-2020. I love you and I miss you.

          Comment


          • #7
            Write it in automation using VB.Net or C# to open program and execute routine. Probably want to strip your PcD routine of all potential stoppages like input comments or operator comments. Have WTS fire that exe file badda bing badda boom!
            PcDmis 2015.1 SP10 CAD++
            Global 7-10-7 DC800S

            Comment


            • #8
              Douglas it works!
              Thanks to all for help

              Comment


              • #9
                Originally posted by A-machine-insp View Post
                GOT IT (I think)!!! A DO/UNTIL LOOP!!! Inside the do/until loop, assign V1 to equal the time and have it do it until V1=6.

                I haven't tried and tested this but it makes sense.
                ASSIGN/V1=6
                DO/
                ASSIGN/V2=SYSTEMTIME("HH:mm:SS")
                ASSIGN/V3=ELEMENT(1,":",V2)
                WHILE/V3==V1
                You can insert inside the do/until a comment with auto-continue, like said Douglas
                The benefit of A-machine-insp solution is to avoid calculating the elapsed time...

                Comment


                • A-machine-insp
                  A-machine-insp commented
                  Editing a comment
                  JEFMAN Shouldn't V2 go in the HH part?
                  ASSIGN/V3=ELEMENT(V2,,)

                  If not, please explain why. I want to learn. This might be useful to me at some point in time.

                  On second thought, break down the whole sequence for me. I'm trying to understand it but it's Friday and my brain has checked out.

              • #10
                A-machine-insp : ELEMENT function works like this : you select the place where you want to take the parameter, then you select the character which separate, and then the string.
                So here, you want the first "string" before ":" in the expression V2. It should give the hour.
                Hope it s clear, here it's friday also, but 6.30 PM : !!!!!
                Take a look here, and dowloag the core manual. Then print the chapter using variables and expression, it's very usefull.
                ftp://ftp.wilcoxassoc.com/docs/v2019r1manual/

                Comment


                • A-machine-insp
                  A-machine-insp commented
                  Editing a comment
                  Thanks JEFMAN. I have a binder with a few of the sections from the core manual that I frequently use... Variables and expressions is in the front of my binder. I've been using them a lot and have frequently referenced that section so it's been in my binder for a while now. I will go and look at that particular section again.

              • #11
                A-machine-insp :
                ELEMENT Delimited substring location: ELEMENT(<Integer>, <String1>, <String2>)
                Returns the nth substring (element) from string2 using string1 as the delimiting text that divides the elements in string2. For example, if string2 is "6, 12, 8, 4, 5" and string1 is ","; then the 5 elements that can be individually retrieved with the element command are "6", "12", "8", "4", and "5".

                Comment


                • Kp61dude!
                  Kp61dude! commented
                  Editing a comment
                  I recently discovered ELEMENT about a year ago. It takes some grunt work out the window and makes life a little easier, I like ELEMENT!!!

              Related Topics

              Collapse

              Working...
              X