Showing results 1 to 2 of 2

Thread: Link between an INT PLC variable and a STRING interne variable?

  1. #1
    Join Date
    23.04.2009
    Posts
    56

    Default Link between an INT PLC variable and a STRING interne variable?

    Hi! I have a question about STRING variables...

    In fact, my program ZenOn reads directly an INT variable from a PLC (who controls a machine). Its value represents different status of the machine. For example, value 0 represents “System OK”, value 1 “Program Stop”, value 200 “Grid disconnected”, value 7002 “Wiring Swtich Open”, …… etc.

    For the user of my program ZenOn RT, I can’t show them just these INT values.. I must show them the correspondent explanation TEXT. That means, I think I should create an internal STRING variable and map it to the source INT variable, then the STRING variable can be shown by a element.

    But technically how to do the mapping? Can you indicate me the most practical way? Thanks a lot!

  2. #2
    Join Date
    30.05.2007
    Location
    Salzburg
    Posts
    882

    Default Re: Link between an INT PLC variable and a STRING interne variable?

    create limits to the INT variable (or via Rema)
    -> when linking the INT variable to a dynamic text element the actual limit text will be shown

    Regards,
    Herbert

Similar Threads

  1. How to use Variable tagname in link text element?
    By softart2 in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 2
    Last Post: 17th June 2010, 08:11
  2. Replies: 2
    Last Post: 4th December 2009, 10:08
  3. Get a variable value
    By nblanquart in forum VBA
    Replies: 5
    Last Post: 12th November 2009, 14:48
  4. Copy from variable to other variable
    By cyrilfeasy in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 2
    Last Post: 5th November 2009, 17:25
  5. Variable was not loaded
    By craigdouglas in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 4
    Last Post: 12th February 2009, 13:15

Posting Rules

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