RobotStudio event

Some mistakes with TPWrite in the flexpendant

OscarGSal
OscarGSal
edited October 2021 in RobotStudio
Hello again

I'm having some problems with printing text in the flexpendant, and I don`t know where is the problem, because, same instructions in other side of the program, work well and in other sides, not

The problem is, that, when I use this part of the program:

            TPErase;            
            TPWrite " ROBOT-1";
            TPWrite " ";
            TPWrite " 1-ESTACION-1";
            TPWrite " 2-ESTACION-2";
            TPWrite " 3-SEPARACION";
            TPWrite " 4-NUM.BOBINAS";
            TPWrite "";
            TPWrite " SALIR";
            TPReadFK Var1R2,"","1","2","3", "4","SALIR";

The result in the flexpendant is this:


            1-ESTACION-1
            2-ESTACION-2
            3-SEPARACION
            4-NUM.BOBINAS
            
            SALIR";
             
            |     1     |     2     |     3     |     4     |  SALIR  |

The Title ROBOT-1 it's shown a second, and then it's erased when the instruction TPReadFK is executed.


In other sides I used this same part of the program, but with other text like this:


         TPWrite " ROBOT 1";
         TPWrite " ";
         TPWrite " 1-PALET NORMAL";
         TPWrite " 2-PALET EUROPALET";
         TPWrite "";
         TPWrite " 5-SOLO RETENCION DE BOBINAS";
         TPReadFK CodigoR2, "", "1", "2", stEmpty, stEmpty, "5";

The result in the flexpendant is this:


            ROBOT 1

            1-PALET NORMAL
            2-PALET EUROPALET

            5-SOLO RETENCION DE BOBINAS

            |     1     |     2     |           |           |     5     |


Could you be so kind of show me why this mistake appears and how to solve it?

Thanks

Best Answer

  • lemster68
    lemster68 ✭✭✭
    Answer ✓
    There can be only so many lines displayed.  When you exceed the maximum, the top line is flushed out.  It is like first in, first out.  Remove one of the TPWrite " ";
    Lee Justice

Answers