Temp Comp

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

  • Temp Comp

    I have been told (have not tested it myself),
    that we have one (new) machine that must have Temp Comp on (Alpha),
    and two that must have Temp Comp off (Delta & Scirroco).
    Programs must run an all machines.
    Is there a way to test and see which machine or controller you are using within the program,
    So some logic can skip the Temp Comp line in the program if need be?
    Anyone familiar with Temp Comp?
    Thanks for any assistance.

  • #2
    You coul put a YES/NO comment that skips the temp comp if needed. It requires the operator knowing which machine is which.
    PC-DMIS 2016.0 SP8

    Jeff

    Comment


    • #3
      I believe you can do this with a few commands. First is the tempcomp command, which is in the program anyway. Then you can test any or all of the axes/part sensors for readings, as follows -

      TEMPCOMP/ORIGIN=0,0,0,Material Coeff=0.0000115,Reference Temp=20
      ,Hi Threshold=30,Lo Threshold=0,Sensor num=4
      ,X Axis Temp=,Y Axis Temp=,Z Axis Temp=,Part Temp=0
      ASSIGN/V1 = GETCOMMAND(62,"UP",1)
      ASSIGN/XTEMP1 = LEFT(GETTEXT(529,0,V1),5)
      ASSIGN/YTEMP1 = LEFT(GETTEXT(530,0,V1),5)
      ASSIGN/ZTEMP1 = LEFT(GETTEXT(531,0,V1),5)
      ASSIGN/PARTTEMP1 = LEFT(GETTEXT(532,0,V1),5)

      Then you can check to see if the PARTTEMP1 variable (or any other) is non-zero. Zero means there is no reading, hence, no tempcomp. I believe ionly if you have tempcomp will it return real values, like 20.1 (C), etc.

      Comment


      • #4
        There is a better way, at least more efficient -

        http://www.pcdmisforum.com/showthrea...-and-assign-it

        Comment


        • #5
          Originally posted by Don Ruggieri View Post
          I believe you can do this with a few commands. First is the tempcomp command, which is in the program anyway. Then you can test any or all of the axes/part sensors for readings, as follows -

          TEMPCOMP/ORIGIN=0,0,0,Material Coeff=0.0000115,Reference Temp=20
          ,Hi Threshold=30,Lo Threshold=0,Sensor num=4
          ,X Axis Temp=,Y Axis Temp=,Z Axis Temp=,Part Temp=0
          ASSIGN/V1 = GETCOMMAND(62,"UP",1)
          ASSIGN/XTEMP1 = LEFT(GETTEXT(529,0,V1),5)
          ASSIGN/YTEMP1 = LEFT(GETTEXT(530,0,V1),5)
          ASSIGN/ZTEMP1 = LEFT(GETTEXT(531,0,V1),5)
          ASSIGN/PARTTEMP1 = LEFT(GETTEXT(532,0,V1),5)

          Then you can check to see if the PARTTEMP1 variable (or any other) is non-zero. Zero means there is no reading, hence, no tempcomp. I believe ionly if you have tempcomp will it return real values, like 20.1 (C), etc.

          Does it runs in V3.7??

          Thanks,
          Juan

          Comment


          • #6
            Sorry, the question is wrong...
            it doesn't run in v3.7 if you type the commands like this:

            TEMPCOMP/ORIGIN=0,0,0,Material Coeff=0.0000115,Reference Temp=20
            ,Hi Threshold=30,Lo Threshold=0,Sensor num=4
            ,X Axis Temp=,Y Axis Temp=,Z Axis Temp=,Part Temp=0
            ASSIGN/V1 = GETCOMMAND(62,"UP",1)
            ASSIGN/XTEMP1 = LEFT(GETTEXT(529,0,V1),5)

            first of all, I don't know what's the meaning of "(62,"UP",1)" and "LEFT(GETTEXT(529,0,V1),5)"

            I've problems in temp comp in V3.7

            I hope you can help
            Thanks,
            Juan

            Comment

            Related Topics

            Collapse

            Working...
            X