Get Temperature readings

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

  • Get Temperature readings

    I want to get the temperature readings that appear in the Report Window (when a Temperature Compensation command has been included in the program) to write them into an Excel document automatically?
    Do you know if there is any command and property to read in order to get these values?
    Thanks in advance.

  • #2
    High, I'm also interesting in getting this information.
    Did you solve your problem?
    Thanks

    Comment


    • #3
      I run temp compensation and it justy automatically fills in the the details in the report (usually under the header)

      Comment


      • #4
        2013MR1 has the expression GETPROGRAMINFO("TEMP", 2nd string) where 2nd string = TEMPP, TEMPX, TEMPY, TEMPZ, REF_TEMP, HIGH_THRESHOLD, LOW_THRESHOLD

        I think all versions should support the GETTEXT("Temperature Compensation", TEMPP, 1) expression.

        Comment


        • #5
          I vaguely remember trying the 'TEMP_' keywords in a GETTEXT and never getting them to work for some reason. I use something along these lines:

          Code:
                      ASSIGN/V1=GETCOMMAND("Temperature Compensation", "Up", 1)
                      ASSIGN/V2=GETTEXT(529, 1, V1)
                      ASSIGN/V3=GETTEXT(530, 1, V1)
                      ASSIGN/V4=GETTEXT(531, 1, V1)
                      ASSIGN/V5=GETTEXT(532, 1, V1)
          529 = 'X' Axis
          530 = 'Y' Axis
          531 = 'Z' Axis
          532 = Part
          (╯°□°)╯︵ ┻━┻

          Comment


          • #6
            Originally posted by ewe0006 View Post
            I vaguely remember trying the 'TEMP_' keywords in a GETTEXT and never getting them to work for some reason. I use something along these lines:

            Code:
                        ASSIGN/V1=GETCOMMAND("Temperature Compensation", "Up", 1)
                        ASSIGN/V2=GETTEXT(529, 1, V1)
                        ASSIGN/V3=GETTEXT(530, 1, V1)
                        ASSIGN/V4=GETTEXT(531, 1, V1)
                        ASSIGN/V5=GETTEXT(532, 1, V1)
            529 = 'X' Axis
            530 = 'Y' Axis
            531 = 'Z' Axis
            532 = Part

            Yep - you need to use GETCOMMAND (to get a pointer to the command) then GETEXT to get extract the Temps etc
            Automettech - Automated Metrology Technology

            Comment


            • #7
              Old thread, but I had to work around today, without the forum help, because to far of internet !!!!!!
              ASSIGN/V1=GETCOMMAND("Temperature Compensation", "TOP", 1)
              ASSIGN/V2=GETTEXT("TEMPP", 0, V1)

              Works fine also...

              Comment


              • #8
                Also note that if you set the delay in the temp comp command to something greater than 0 it will create a temp log file in the same directory as the program. This log file has the value from every sensor, not just the average temp of each axis. You can easily extract the values from this log and write them into an excel sheet with any sort of scripting language you might favor. Having the value of each sensor is VERY helpful and you can't get this info any other way, as far as I am aware.
                2013MR1 SP6
                Global Frames, Tesastar-M Heads, LSP-X1M/H Probes

                Comment


                • #9
                  Hi,

                  I made 4 assignements in my program and managed to display all different temperatures into the PDF report.
                  But I'm unable to display it into my excel export.

                  It creates a file displaying serial number, time of execution, part name and part measurement results but no temperature lines.
                  I tried to replace the revision number code line into the header label by '=Variable("V2")' (V2 is my part temperature assignment) but it doesn't work.


                  I'm not sure if it is feasible ?

                  Thank you.

                  Comment


                  • InspectorJester
                    InspectorJester commented
                    Editing a comment
                    You'd have to post your code for anyone to debug it.

                    EDIT:
                    It depends entirely on how it was programmed. PCD2EXCEL? a macro? print to excel? Datapage? Is this VB or Basic? PC-DMIS code or C?

                • #10
                  Hello thanks for your help.

                  Here is the code I used in PCDMIS :


                  ASSIGN/V10=GETCOMMAND("Temperature Compensation", "Up", 1)
                  ASSIGN/V12=GETTEXT(529, 1, V10)
                  ASSIGN/V13=GETTEXT(530, 1, V10)
                  ASSIGN/V14=GETTEXT(531, 1, V10)
                  ASSIGN/V15=GETTEXT(532, 1, V10)

                  Then I added, reports comment :
                  V12
                  V13
                  V14
                  V15

                  Then PCD2EXCEL


                  Comment


                  • #11
                    As far as I understand, that function does NOT allow you to export comments.
                    Can you create a generic point, and set its nominal & measured to a temperature variable, then output that?
                    Last edited by InspectorJester; 07-12-2018, 11:26 AM. Reason: APOSTROPHE!!

                    Comment


                    • #12
                      Thanks for the idea !
                      It works like a charm !

                      Comment

                      Working...
                      X