Jump to content

Nacho

External Moderators
  • Posts

    91
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Nacho

  1. Every key of the keypad has a SB, for example SB40 for key 0, SB41 for key 1,...

    Every display has a link to a bit when the display is ON, you can see it in links&jumps of Display

    This way you don't need compare function, just direct contacts.

    I have been using a comparison block to allow users to set a series of conditions. In this case the user base wants to have PLC inputs changable as to wheather a normally closed input or a normally open input is acted apon. That is easy enough for me to write ladder that allows this to hapen by looking at a series of bits. My problem comes in that I have just exceeded the number of comparisons that a program is allowed.

    Since I have not been able to determine a way to set bits directly from the kepad, I have been puting MIs on the screens and if the user sets MI? = 0 then the normally closed state of the ladder will be used or if MI? = 1 then the normally open ladder section will be used. To do this I have to have a comparison on the MI? value. I am also doing the normal comparisons that just come along with moving between screens and deciding action points for analog signals (and so on and so forth). If I can set the Bit directly I would be able to remove 17 comparisons and be able to finish this version of the program no problem.

    Any ideas?

    Keith

  2. It is in fact possible to have multiple instances of VisiLogic open, but you still will not be able to copy and past between them. For what was asked about copy/paste, importing/exporting subroutines is the best solution.

    However-- To have multiple instances of VisiLogic, one needs to copy the folder "Unitronics VisiLogic_C" from "C:\Program Files\Unitronics" and paste that copy somewhere else. You can then open up the file "VisiLogic.exe" from "Unitronics VisiLogic_C\Main" inside each separate folder. (The typical limitation is that only a single "VisiLogic.exe" can be opened at a time, but having a copied folder "tricks" and allows this.

    I don't have this how, but I remember you have to change the name of visilogic too: visilogic2.exe

  3. If you're just trying to decide if any of your 100 thermocouples has failed, consider either using a loop, or searching the table of MB bits for a "1" value using the "VECTOR FIND" function block - you'll either get a "-1" result showing that all thermocouples are OK (no "1" values found) or the index value of the first failed thermocouple. Much, much better than making a huge string of normally open contacts.

    Hello Phil, I like use advanced functions to reduce the application but sometimes customers like see only contacts and coils. They used to be electrician and understand better the basic ladder logic.

    I remember when I had to explain one demo in a single net instead the 20-40 nets customer did it...

  4. Thank you very much Stembera. That makes perfect sense. I may not completely use your solution since I want to calculate elapsed time that may not have any relation to the real time clock. I would rather use SB13 or SB3 to increment MI0 and increment MI1 when MI0=360.

    If you want to calculate elapsed time you can use the UTC time instead RTC, UTC is in seconds, this way if you substract the start value of the end value you will get the elapsed seconds.

  5. It is possible to connect to a GPRS modem via Ethernet with Phoenix Contact PSI-MODEM-GSM/ETH. See attached.

    Thanks Malcolm but this is not my target. I have other projects with Ewon modem-router instead of a simple modem GPRS.

    The question is if I can use the V130+modem gprs like a Modbus TCP/ip slave

×
×
  • Create New...