Jump to content

Jordy

Members
  • Posts

    18
  • Joined

  • Last visited

Posts posted by Jordy

  1. Hi,

    i'm struggeling to have a UDFB to store the PLC timestamp in a string with the following format: YYYY-MM-DD  HH:MM:SS

    This is highly needed to insert timestamp values in SQL tables with the datatime field or timestamp field.

    I tried to use the RTC to ASCII UDFB but this format is not possible, also not when combining strings.   A  simple UDFB should do wonders here

     

  2. Great, this is working!

    10 minutes ago, Flex727 said:

    Sure you can, but timers only have a resolution of 10ms. Just multiply your MI by 100 and use "Store Timer/Counter Preset" for the TD timer you wish to use. Make the timer self-resetting (timer activated by inverted contact of the timer) then have a positive transition of the timer activate a toggle coil of the MB you wish to use for the pulse train.

     

    If this isn't clear, I'll post a screen capture of the logic - just let me know.

    Remember, you must use increments of 10ms. You cannot have a 12ms timer.

     

  3. Hi I'm trying to build some logic to charge batteries in a loop but I don't know what's the best solution for this. (vision 130)

    I have 8 outputs (with external relays) and I want to activate them one by one. we have 1 load system and 8 batteries. (see picture)
     
    This must be in a loop and the charging has to change to the next battery every t minutes.  so O1 comes high, then stops and then O2 comes high
    important: between switching of and turning on the next output we need a small delay of D seconds to avoid short circuits.
     
    when a battery is not used we have to skip this one. (we can see this using the MB101->MB108)
    when a battery comes in we have to charge this one next.
     
    we only have MB101->MB108 for the status of the batteries (connected/disconnected) and 8 outputs.
     
    If MB103=0 this means battery 3 is not connected and must not be charged, we need to skip this output.
     
    When MB103 becomes 1, this means that this battery must be charged next because it was last in use.
     
    When we disconnect a battery (MB->0) , the charging must stop immediately and move on to the next battery
     
    I think i need a kind of table to do this but I never used this before.  I don't know if I can do this in vigilogic without a table?
     
    any help is welcome.
  4. Hi,

     

    Thanks for the answer.

    Not that easy to build 10 lines but it works :)    Strange there isn't an easier solution for this.  A button behind textfields on the HMI would also work but is not possible...

     

    On the screen I have the different lines displayed now, but how can I highlight the selected option?

    See attachment for the example.  I want the selected line in another background color....

     

    is this possible?

     

    Thanks a lot.
     

     

    post-25472-0-11997800-1409067068_thumb.png

  5. Hi,

     

    I'm using V1210 and i want to build a list of strings from MI values coming from a table:

     

    For example:

    line1

    MI100=4

    MI101=30

     

    I want a string DW1 with '4 min 30'

     

    lin 2

    MI102=5

    MI103=40

    DW2 must be '5 min 40'

     

     

    Reason: I want buttons with the complete variable text '4 min 30' on the screen. (to select the correct time)

     

    Is this possible?

     

     

     

     

×
×
  • Create New...