Showing results 1 to 3 of 3

Thread: no stop code 'Do while'

  1. #1
    Join Date
    16.12.2010
    Posts
    31

    Default no stop code 'Do while'

    Hi All
    I hope that everything is good for you.
    Using zenon 7.10. Supervisor.
    I put the 'Do while' code into zenon.
    "Public Sub RightClickDown"
    But It is stopped automatically at 23:59:59.
    I want that it is working continuously.
    Never stop working.
    Let me know How to make it ??

  2. #2
    Join Date
    15.09.2016
    Posts
    59

    Default Re: no stop code 'Do while'

    Hello,
    can you explain in detail what do you want to do?
    There could be a workaround for your usecase.

  3. #3
    Join Date
    29.07.2007
    Posts
    5

    Default Re: no stop code 'Do while'

    Quote Originally Posted by gyu View Post
    Hi All

    I hope that everything is good for you.

    Using zenon 7.10. Supervisor.

    I put the 'Do while' code into zenon.

    "Public Sub RightClickDown"

    But It is stopped automatically at 23:59:59.

    I want that it is working continuously.

    Never stop working.

    Let me know How to make it ??

    Hi gyu,

    actually a 'no stop code' in the programming interface isnt a top solution.
    Like Florian said, its important to understand what you have to do with the code.
    Another couple of solutions can be the use of zenon timers that execute a VSTA macro cyclically, and in check a BOOL variable value inside the macro (like a trigger) if the operation should be executed or not.
    Another solution can be the use of the Timer() Event of DynPicture Object.

    For more specific informations please check the documentation in the chapter:

    Manual -> Scripting ->
    Objectmodel -> DynPicture
    -> DynPicture-Events -> Timer


    The activation of this event can be triggered opening a picture 'out of the monitor' (outside the visible area of the application) and the deactivation (if needed) by the close of the same picture.



Similar Threads

  1. How to change? VBA code -> c# code
    By backjahyun in forum VSTA
    Replies: 1
    Last Post: 22nd March 2016, 07:46
  2. Archive start/stop notification
    By ansab.tp in forum zenon Supervisor
    Replies: 2
    Last Post: 17th April 2012, 07:59
  3. Start/Stop Arvhive on PLC Trigger
    By joebloggs in forum Drivers
    Replies: 1
    Last Post: 17th December 2009, 00:26
  4. CEL 'Stop' button
    By nurul in forum zenon Supervisor
    Replies: 8
    Last Post: 11th August 2009, 09:16
  5. How to Stop Logging Alarms
    By matholton in forum zenon Supervisor
    Replies: 2
    Last Post: 29th September 2008, 11:24

Posting Rules

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