Run time

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

  • Run time

    Hello all,
    My boss want's to know how many hours our CMM machine are running per shift (20 hours per day). Is there any way to know ? I think he is trying to justify to buy another CMM by having this information !

    Best regards, and thank you.

  • #2
    If you run a set number of programs you could just time one run each then add up the number of parts ran on a typical shift.

    Comment


    • #3
      Originally posted by em748 View Post
      Hello all,
      My boss want's to know how many hours our CMM machine are running per shift (20 hours per day). Is there any way to know ? I think he is trying to justify to buy another CMM by having this information !

      Best regards, and thank you.
      Will post code when I get back to my CMM, out of office right now. Pretty slick. Just dumps the data into a CSV and logs date, time, runtime (in minutes), why the program was run, and which CMM it was run on (we have multiple CMMs).

      Comment


      • #4
        Originally posted by bfire85 View Post
        Will post code when I get back to my CMM, out of office right now. Pretty slick. Just dumps the data into a CSV and logs date, time, runtime (in minutes), why the program was run, and which CMM it was run on (we have multiple CMMs).
        So this is what I do for my programs:


        At the beginning of the program:
        Code:
        ASSIGN/STARTTIME=(INT(SYSTEMTIME("HH")*3600)+INT(SYSTEMTIME("mm")*60)+INT(SYSTEMTIME("ss")))/60
        
        C1         =COMMENT/INPUT,NO,FULL SCREEN=NO,
                    Purpose of Inspection:
                    
                    (Bucket Check, 1st Piece, SPC, etc.)
        Then write your program...

        At the end of the program:

        Code:
        $$ NO,
                    ---------------------------
                    END OF PROGRAM: CMM LOG CODE
                    ---------------------------
                    ASSIGN/SYSDAT=SYSTEMDATE("MMMM dd yyyy")
                    ASSIGN/SYSTIM=SYSTEMTIME("HH:mm:ss")
                    ASSIGN/FILEHDR=STR(GETTEXT(191,1,{FILEHEDR}))
                    ASSIGN/ENDTIME=(INT(SYSTEMTIME("HH")*3600)+INT(SYSTEMTIME("mm")*60)+INT(SYSTEMTIME("ss")))/60
                    ASSIGN/PROGRUN=ENDTIME-STARTTIME
                    ASSIGN/COMMENT=C1.INPUT
                    ASSIGN/CMM=1
        FPTR       =FILE/OPEN,[I]{location for CSV file}[/I],APPEND
                    FILE/WRITELINE,FPTR,SYSDAT+","+SYSTIM+","+FILEHDR+","+PROGRUN+","+COMMENT+","+CMM+"
                    FILE/CLOSE,FPTR,KEEP
        I assign each CMM with a number. Both of our CMM's run the log into the same CSV. This way I can differentiate between which program ran where.

        Comment


        • #5
          Originally posted by bfire85 View Post
          Both of our CMM's run the log into the same CSV.
          What happens when both CMM's finish a program at the same time?
          AndersI
          SW support - Hexagon Metrology Nordic AB

          Comment


          • #6
            What is CSV?

            Comment


            • #7
              Originally posted by AndersI View Post
              What happens when both CMM's finish a program at the same time?
              The probability of that happening in quite small in our plant since it takes about a couple of seconds to open the file, dump it, and save. Both of them are not consistently running at the same time.

              But one could have each CMM dump data into their own CSV's if they fear that programs running on multiple machines will end at the same exact second.

              Comment


              • #8
                Originally posted by Bud Stuempert View Post
                What is CSV?
                A comma-separated values (CSV) (also sometimes called character-separated values, because the separator character does not have to be a comma) file stores tabular data (numbers and text) in plain-text form.

                Typically used with Excel. Great for data dumping.

                Comment


                • #9
                  I just posted some code for getting run time.

                  http://www.pcdmisforum.com/showthrea...Usage-run-time

                  Comment

                  Related Topics

                  Collapse

                  Working...
                  X