Jump to content

Peter van Hoof

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by Peter van Hoof

  1. hI kikis,

    I believe you think the concept of programming with subroutines works the way a

    linear programming language like basic or c does jumping back and forth at will

    but this is not the way it is intended.

    The idea behind it is that in every ladder scancycle the program always starts

    at the first net, in the main Subroutine, in the main Module (this is the one highlighted)

    and should end at the last net in this same subroutine

    All calls to different subroutines are supposed to end with a return.

    Do not for example program a wait loop jumping back 1 or more nets to wait for

    a certain condition as this would create a condition that would not update inputs

    and outputs and eventually trigger a watchdog timeout.

    Please look at the topic "Program Sequencing" in the helpfile.

    Following this general idea a part of the program that has a timer can be anywhere in

    the main subroutine OR in a subroutine that is ALWAYS called from the main

    subroutine (unconditional)

    Think of programming in subroutines as inserting a number of ladder rungs (nets) un your

    main program in a jazz controller, but keeping it neater. these rungs could always be executed (unconditional)

    or only under certain circumstances (conditional) but instead of actually putting these

    rungs (nets) there you have them neatly labled and stored in a subroutine.

    I hope this helps.

    Peter van Hoof

  2. I seem to have figured out the rules, but it is not practical for me.

    Which String from the library is displayed seems determined by two rules

    1 if one of the strings is longer that one is displayed

    2 if there are 2 or more strings equally long the one with the highest library number is displayed

    For my example with two languages selectable with a button (English and Spanish) this does not work out well.

    Most of my button texts are longer in Spanish but that's not a language I speak!

    It would be better to be able to chose what strings are displayed in the editor.

    Peter van Hoof

  3. If i fill two string library's one with for example English the other with Spanish how can I define in the editor what library is displayed? It is hard for me to edit buttons, error messages etc if they are displayed in Spanish but there does not seem to be a way to change it at design time (at least not one I have figured out). Sure in the application it is selected quite easy but that does not help the programmer.

    After editing the string library and putting the first string on the screen you find out which is used, this is not a good thing.

    It would be OK if it was always the top one, or you could set a default.

    Peter van Hoof

  4. I am brand new to Unitronics but have worked with many other HMI's.

    All others have simple devices like switches led's sliders and up/down spinner controls in many different shapes, colors and styles.

    I am stunned that VisiLogic doesn't have this. (Not even preloaded bitmaps to make it easy to do this yourself)

    I would even go further than that, I was looking for ready made templates for I/O diagnostics since the I/O's are built in the display

    I could use an easy way to check these. While programming, building and later on in the field.

    Peter

×
×
  • Create New...