# Some mistakes with TPWrite in the flexpendant

**URL:** <https://tech-community.robotics.abb.com/t/some-mistakes-with-tpwrite-in-the-flexpendant/10421>\
**Category:** RobotStudio\
**Created:** [October 19, 2021, 6:54am UTC](https://tech-community.robotics.abb.com/t/some-mistakes-with-tpwrite-in-the-flexpendant/10421 "2021-10-19T06:54:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![OscarGSal](https://avatars.discourse-cdn.com/v4/letter/o/f17d59/32.png) [@OscarGSal](https://tech-community.robotics.abb.com/u/OscarGSal)\
**Post date:** [October 19, 2021, 6:54am UTC](https://tech-community.robotics.abb.com/t/some-mistakes-with-tpwrite-in-the-flexpendant/10421/1 "2021-10-19T06:54:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lemster68](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/lemster68/32/1945_2.png) [@lemster68](https://tech-community.robotics.abb.com/u/lemster68)\
**Post date:** [October 19, 2021, 12:00pm UTC](https://tech-community.robotics.abb.com/t/some-mistakes-with-tpwrite-in-the-flexpendant/10421/2 "2021-10-19T12:00:23Z")

</div>

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 " ";

---

<div class="post-metadata">

**Author:** ![OscarGSal](https://avatars.discourse-cdn.com/v4/letter/o/f17d59/32.png) [@OscarGSal](https://tech-community.robotics.abb.com/u/OscarGSal)\
**Post date:** [October 21, 2021, 10:02am UTC](https://tech-community.robotics.abb.com/t/some-mistakes-with-tpwrite-in-the-flexpendant/10421/3 "2021-10-21T10:02:28Z")

</div>

Thanks again, problem fixed.
