Showing results 1 to 2 of 2

Thread: Usability Functions and Scripts

  1. #1

    Default Usability Functions and Scripts

    I have a general question about the usability of Functions and Scripts in Zenon.

    Isn't it a shame that I have to do 4 Steps to link two actions to one button.

    I have to create two Functions for e.g. Set Value and Change Screen.
    Then i have to create a new Skript linking those two functions.
    In this dialog I have to select the Functions and then i have to click "Hinzufügen" clicking OK without clicking "hinzufügen" is like Cancel - Why?
    After that i have to create an additional Funktion which is calling the Skript.

    Why isn't it possible to link the Skript direktly to a button?
    Why is there no Shortcut like "auto-generate" Skript or Funktion.
    e.g.: I want to call a Skript so Zenon can do the Call Function for this Script automaticly. A right click to the Script could show a menu with "generate Function" Zenon could create the Function by using the Scriptname.

    When I create a Script and make some new Functions during this process it is not possible to give the new Functions a name. But this could be helpfull because then i can do my New Functions during the Scripting Process and i have a well known name.

  2. #2

    Default Re: Usability Functions and Scripts

    maybe you are not using the latest version of zenon, or you did not find the functionality?

    In the contextmenu of a selected script, it is possible to "create a standard function". This will create the "script execute" function. You can use drag&drop to link this function to the button. When you want to rename the function to call the script (default: Function_0) automatically, please take a look at the "OnObjectCreated" event in the VBA Editor in ZenWorkspace.

    When you open the functions in a seperate window (right click on the functions in the project tree) you can use drag&drop to link functions to a script.

    By selecting the "Scripts" node, and pressing "Ins" on the keyboard, a new script is created.

    When you add functions to a script using the dialog, you do not necessarily need to select the script and click "Add", a double-click on the function will also add the function to the script.

    When a Script is selected, and you press "Ins" on the keyboard, the dialog to add functions is opened for this script.

Similar Threads

  1. VB scripts for WindowsCe platforms
    By martinw in forum zenon Operator
    Replies: 1
    Last Post: 12th June 2012, 13:21
  2. VBA scripts by alarms events
    By captain in forum VBA
    Replies: 2
    Last Post: 14th August 2008, 09:30
  3. replacing functions
    By hicom in forum zenon Supervisor
    Replies: 1
    Last Post: 15th January 2008, 11:11
  4. rapidly creating Zenon functions using import/export
    By mattsd in forum zenon Supervisor
    Replies: 3
    Last Post: 10th January 2008, 10:20
  5. Renaming scripts loses the link at the function
    By markclemens in forum zenon Supervisor
    Replies: 0
    Last Post: 3rd August 2007, 07:23

Posting Rules

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