Showing results 1 to 4 of 4

Thread: Write and set string of different length in input

  1. #1
    Join Date
    06.12.2019
    Posts
    3

    Default Write and set string of different length in input

    Hi everyone,

    I'm pretty new about Zenon programming and for sure I've some difficulties in developing new application from scratch but, in any case, I'm trying to improve my skill by reading the manual and by doing.
    At the moment I'm working on an application that has to read and write a STRING (max length of 8 char) on the driver; for doing the writing operation, I'm using "Dynamic Texts" with the option "write set value" set to Active and actually I'm for sure able to insert a string by using the screen keyboard without the (redundant in my case) dialogbox.
    The problem is that the string I'm trying to pass to the driver is of variable length and any time I put something smaller than the previous value, it memorizes the "merging" of the two strings.
    Example:
    I wrote "12345678" and the interface write the set value. After, I inserted "abc" and the result on that variable (that is always the same and defined as a string) is "abc45678" both on variable and on the input screen, instead, what I wanted, was only "abc".

    I hope my problem is clearly explained and I hope also that somebody could kindly help me to solve this tricky issue. Thanks a lot in advance!

  2. #2
    Join Date
    28.02.2013
    Posts
    200

    Default Re: Write and set string of different length in input

    Dear Arendi,

    welcome to the zenon user community!

    What driver/communication protocoll/PLC are you using?

    Regards,
    Felix

  3. #3
    Join Date
    06.12.2019
    Posts
    3

    Default Re: Write and set string of different length in input

    Quote Originally Posted by felixst View Post
    Dear Arendi,

    welcome to the zenon user community!

    What driver/communication protocoll/PLC are you using?

    Regards,
    Felix

    Hi felixst,

    Thanks for the reply! I'm using "Driver for Kuka Robots" with Runtime Zenon 7.11 SP0

  4. #4
    Join Date
    06.12.2019
    Posts
    3

    Default Re: Write and set string of different length in input

    Anybody can help me?

Similar Threads

  1. Arrays with variable length
    By jneuhaus in forum straton / zenon Logic
    Replies: 4
    Last Post: 3rd February 2020, 11:54
  2. Write a complete name of the user to string variable
    By navaneet in forum zenon Supervisor
    Replies: 2
    Last Post: 14th October 2013, 09:11
  3. String length field for STRING variables.
    By stolyarov_as in forum zenon Supervisor
    Replies: 3
    Last Post: 11th January 2013, 07:49
  4. Tooltip length is too short
    By stolyarov_as in forum zenon Supervisor
    Replies: 2
    Last Post: 9th March 2012, 01:03
  5. String Input
    By acko01 in forum zenon Supervisor
    Replies: 9
    Last Post: 10th March 2011, 00:02

Tags for this Thread

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •