Dynamic text in Visualisation...

Chag
2012-02-02
2012-02-05
  • Chag - 2012-02-02

    I try to display text message in relation of an int from a variable. I have created a textlist with all text message and ID corresponding. I have try to display my text in a rectangle in a Visu without any success... I have put the textlist name in the Dynamic texts / Textlist properties and I have put in the Textindex my associate variable. What should i do ?

     
  • Andoni Crespo - 2012-02-03

    Once selecting the rectangle, you have to click on properties and then under dynamic texts tab:

    1.- select your textlist between ' '; for example; 'int_textlist'
    2.- select your textindex between ' '; for example; 'text_ID'

    And i think it should work

     
  • shooter - 2012-02-03

    then make your rectangle with %s as normal
    now two ways possible.
    make a variable in the text display
    in your PLC_PRG make
    stlist[1..10]:='line1','line2', etc.
    stvar:=stlist[linenumber];
    in textdisplay on visualisations use F2 and choose PLC_PRG.stvar
    or
    use syslibvisu library
    object1.stTextDisplay:=stvar;

     
  • Chag - 2012-02-05

    Thank you both ..
    That have not solve my issue directly but give me the info to solve it. To solve my issue and display dynamic message base on an Interger value ... I have put in the feild TextIndex => Int_to_String(myvar) ... That feild look for string variable. From a Integer value I need to convert it. Now i change my message dynamicly with the change of my value.

     

Log in to post a comment.