Showing results 1 to 3 of 3

Thread: Variable Datafield event Update

  1. #1

    Default Variable Datafield event Update

    Hello,
    Is there a way to manually update my datafield using a certain event?
    I have a string variable that is manipulated in the PLC and I want to display the value only when the PLC gives the order .
    My problem is that this string variable is always updated by the PLC and sometimes the display in the runtime doesnt show the complete string ,
    ie: if my string is 'ABCD' it sometimes shows AB, ABCD,... depends on time that the zenon gets the variable.
    Thanks

  2. #2
    Join Date
    25.06.2012
    Posts
    155

    Default Re: Variable Datafield event Update

    Hello,

    If I correctly understood, you could allocate the PLC string variable (source) to a zenon string variable (target) when the trigger condition in the PLC occurs (trigger). The value of the target variable is the one you see in the runtime, after assign it to a dynamic text element, for example.
    It is possible to do Allocations under the Variables module in zenon workspace. There you can define Source, Target and Trigger variables, as well, the trigger type (i.e. Edge or Gage). If you donít define a trigger variable the allocation it will be done automatically everytime the source variable changes.

    Let us know if it worked!

    Best regards,
    David Cerdeira

  3. #3

    Default Re: Variable Datafield event Update

    hi david,
    Thanks a lot for your help, yes this works for me .
    so now i have to create an internal variable image for every PLC variable and assign an allocation function for this variable.
    Best regards
    Ziad
    Last edited by ziadrached : 11th December 2012 at 12:45

Similar Threads

  1. how can i update the zenon 6.51 to 7.0
    By zhangbb_dimension in forum Editor and Runtime Setup
    Replies: 2
    Last Post: 6th September 2012, 04:51
  2. Replies: 1
    Last Post: 1st September 2011, 23:30
  3. UPdate documentation for Zenon 6.22
    By karimsaikali in forum zenon Supervisor
    Replies: 16
    Last Post: 16th April 2009, 20:08
  4. Store variable data to file on change event
    By matholton in forum Drivers
    Replies: 1
    Last Post: 1st December 2008, 10:40
  5. Update pictures with VBA
    By fabios in forum VBA
    Replies: 5
    Last Post: 21st July 2008, 09:25

Posting Rules

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