Jump to content


Popular Content

Showing content with the highest reputation since 08/05/2010 in all areas

  1. 5 points
    You can create a struct that contains the information structure that you want to pass to the UDFB. It is more logical to pass a struct with 50 members other than passing 50 inputs. Think of how the ladder element that accepts the 50 inputs will look like. it will start at the benining of the screen, and you would have to scroll few pages down in order to see its end.
  2. 4 points
    This is a UDFB for linear ramp output with rise and fall time. The program detects change in the target value and ramps the output until it reaches the set point. If the new target value is greater than the current value, it makes a rising ramp. If the new target value is less than the current value, it makes a falling ramp. Calculates the relative ramp time according to maximum ramp and fall time given by the user. Function Inputs: Target value Rise time (This is the maximum rise time from the minimum output value to the maximum in msec) Fall time (This is the maximum fall time from the Maximum output value to the Minimum in msec) Maximum value of output Minimum value of output Function Output: Ramped output register Application: I wrote this UDFB to control hydraulic pressure using proportional valve via analog output. It could also be used to drive a stepper motor with acc/dec using pulse width modulation.
  3. 3 points
    I've had a lot of local requests for help on getting email working. There are a lot of pieces needed to make it work right and it has to be done in the right order. A PLC was never invented to send emails, and the fact the Unitronics can do this is a pretty awesome feature. I'm posting a sample program we wrote to hopefully show everything needed and some tricks to make it cool. Joe T. Sample Email Program V570 5-6-15.vlp
  4. 3 points
    Set the Border Thickness to 0, and the Background Fill to transparent (by either choosing the transparent color, at the bottom left corner of the Stardard color, or by entering 00FFFFFF in the Advanced Color)
  5. 3 points
    Hello, I currenlty busy with a project Unistream 7" + 2x 8DI/DO and a EX-RC1 + 3xPT4x, 2x4AI2AO + 2xAO6. Followed the instruction on the webinar. What took me some time was that you have to upload a ladder programm with Visilogic to the EX-RC1. They don't show it in the webinar - because standard the EX-RC1 is pre loaded with a program - which has an auto configuration for digital inut and output. But when you want to use it for analogue input/output you should change it - by uploading the program in Visilogic withe the serial (9 pins) cable and RJ11 connector. When you follow the webinar - the example is shown for maximum of 16MI. In my case it exceeds 16MI - so I had to change the program. After a lot of 'trial and error' I came to a simple sollution by stripping most of rungs out - and only used the minimum of code. To get the second set of 16MI - you have to change the start adresse by adding 16 (so 1016=start adres first vector, 1032=start adres second vector), and bassicly follow the instruction in the webinar. When the first vector is sent/receive through the canbus MB0 and MB1 blocks the sent/receive off the second vector. I attached the visilogic file - feel free to use it - or comment on it - I'm not an experienced programmer so constructive criticism is welcome. EX-RC1 - example more than 16MI.vlp
  6. 3 points
    Hello Active Just did a simple test with Kepserver and selected the ”Modbus tcp/ip driver” Channel properties=>Ethernet settings selected port 502 and ip protocol tcp/ip. Added a device and named it device1 and for the model selected “modbus”. ID <>20 The V570 has this ip address and 20 is the slave number in my test situation. In the V570 socket init in my case socket 3 port number 502 and server(slave) followed by A Modbus ipconfig,selected in this function block socket 3 and gave it network id 20,time out 100 and retries 3 and assigned a function in progress mb. The indexes with slaves can be deleted using the clear link button. The next network has to have a “Modbus ip scanex” block and for the name in this block select the name of the Modbus ip config block. TCP card init was already done somewhere else in the program but you could follow the example explained in the visilogic helpfile and it’s called “configuring a modbus slave device”. In this example for the gateway you have to choose the ip address of the master unitronics plc but this is only needed I think if communication is between Unitronics plcs so leave the TCP settings in this block as they should be four your local network. For addresses see the example in the visilogic helpfile called “slave addressing” under Modbus ip. To test this all I started kepware opc quick client and added here an item “channel1.device1.40032” and here I can see the actual value from MI31 So kepware acts as a Modbus client and the V570 as a Modbus slave device in this situation. Did no projects with kepware and Unitronics but in our plant we have some Unitronics plc,s besides TI(CTI) PLC,s connected to Control Maestro(Wizcon) scada using Kepserver so this is why I could quickly made a simple test. Hope it will help you Regards Henny
  7. 3 points
    Receiving BMP file thru RS232 from fingerprint scanner and drawing it on the dispay: [media=] [/media]
  8. 3 points
    Big time thanks to Joe for his support, even thuogh sometimes I bug him when I am in a crunch, he always comes thru with an answer.
  9. 2 points
    Yesterday I had a customer plug his Ethernet cable into the I/O expansion port on a V700 and try to figure out why he couldn't talk to it for two days. I think he's still kicking himself, and I'm personally worried about his self-esteem level. The really sad thing is I did the same thing last week, only I figured it out in less than an hour. To the Creators - Please put a big red sticker around the expansion port on all PLC models that says "Ethernet not go here! I/O Cable!" or something. Make sure you use caveman language, as that is what I think it will take for my brain to actually understand. I know the molded-in legend is too hard to see for us folks over 40. Joe T.
  10. 2 points
    Hopefully you've already figured this out, but just in case you haven't.... If you want to prevent other programmers from seeing a particular screen configuration, you can right click on the screen name(in the Solution Explorer), then select "Password Protect" If you want to prevent unauthorized access to the screen during operation, you can assign a button on another screen("Main Menu", for example). Then, in the Properties Dialog box for the button, add a new "Load Screen" Action, then set the User Access property. In the Solution Explore, use the "User Access Control" to configure the different levels of access, as your application requires. I apologize for not being more detailed, but I am also a new to the UniLogic platform and just started looking into the whole password protection/user access system. The more I learn, the more I like!
  11. 2 points
    Move those operand addresses FIRST before exporting.
  12. 2 points
    Hi Fabio, I was a little busy so just reading all new posts for me. I finished a big project and I can tell you now that communications with Unistream is really a big advantage over Vision series. In the system I have: 12 slaves Reading more than 800 coils Writing more than 1,800 coils Reading more than 160 Int16 Writing more than 70 int16 Reading more than 464 int32 Writing more than 360 int 32 each 1,000 ms the Unistream 15 is making the work perfectly. The system is working 24 x 7 since December 2015.
  13. 2 points
    I've passed your requests to The People In Charge--thanks :-)
  14. 2 points
    Here is a sample program that has been split out of a much larger program. In it you will find where the user can enter in PID variables and the set point along with dynamically being able to chose if the pump PID is controlled from suction or discharge pressure. This is about the best I can do for you at this time. Good Luck Keith PID example.vlp
  15. 2 points
    Hello, UniLogic able to support PNG images and VisiLogic doesn't support PNG properly as it converted into a bitmap in Vision PLC. PNG originally can be transparent so UniLogic don't need any dedicated tool. I hope it helps..
  16. 2 points
    Well the results are in and I was not correct on the condensation hypothesis. The final end customer has placed a chemical injection pump in tandem with one of the expected devices and there was no noise canceling hardware installed on it. Even worse the output they decided to piggy back off of changes state once every 30 - 120 seconds depending on conditions. How do I know this? Using the capabilities the Enhanced vision products have I put a data logging .CSV write to the SD card function that took the status of every input, output, analog input, analog output, alarm, and system messages every 1 second. I then had a the PLC create a new file every day at midnight. Just to follow a complete process. The two units without any noise canceling hardware on outside relays, starters, and valve coils failed at least once per day. (Look at the previous post to see the 4 configurations tested) Over the same time period the two units with AC and DC noise mitigation hardware installed ran 24 hours a day with no problems. After 3 days of failures the noise canceling parts were installed and all 4 tested units then had AC and DC noise devices. After installation of the noise cancelling hardware all 4 sites have run flawlessly. By logging this way I was able to narrow down my focus to just a single output from the PLC and further determine that the contactor to run the chemical pump was the cause of the noise. I was also able to confirm that the PLC was absolutely, definitely, positively, without any question or ambiguity ceasing processor function and staying stuck on whatever was being executed at the time of the brain freeze until a loss of power allowed a system reset. The 120 VAC noise mitigation parts are a combination of a capacitor and resistor OKAYA product number XAB1201 The 24VDC noise mitigation (transient voltage suppressor) parts are a Bi-directional zener diode at 28 volts. These are part number SA28CACT made by Littlefuse. The good new is the fixes are not expensive and we found them. The bad news.....the end customer changed something then swore they never touched anything and cause a whirlwind of pain and anguish that we have to pay for as a company. Oh well welcome to industrial electronics. For FLEX727 On the watchdogs I had to have installed it is an ugly adder but works well. There is a company AIROTRONICS that has two watchdog timers (one with excitation at power up and one with excitation only when the first pulse is received). I thought I could the model with excitation on power up and it works but only once (this is part number TGLR ) The other product is what actually worked for me and is part number TGMPL(several more selectable configurations but search this number in Google and it will come up). To make this work I had to run the first signal pulse through the normally closed contact on the relay. The relay worked but a little too well. There is not a long enough time delay to power down the PLC before the power is re-engaged to create a PLC reset. I had to add a delay on make timer along with this to actually cut off power long enough to create a PLC reset. (tried to find a usable reset on the PLC CPU and there is not one that mere mortals can access). There is a rest on the CPU as one would expect but soldering wires to the surface mount chips was way beyond my mandate and beyond anything I could ask a field guy to install. I will be talking to the timer maker to see if they can add a time delay on the reset function and then it will be a clean installation. For the creators Why does the internal watchdog built into the CPU of the V570 not ever figure out the CPU is locked and reset the CPU. looking at the wiring diagram for the main processor it has the separate watchdog circuitry I would expect it to have. Is this something that has been accidentally changed in a past firmware update and forgotten ever since? Is it an intentional choice....if so please explain? I am not trying to shoot arrows, I love my Unitronics-products and they have worked well for many applications for years, but this is a serious condition that should be investigated. It is an easy fix in firmware (at least it appears to be) it just needs to be done. (or redone as it were) Thank You Keith
  17. 2 points
    I have watched this post for a couple of weeks hoping magic would strike because I have multiple V570 units that behave very much in the same way. I have a single customer with 100+ V570 units. The mix is approximately 49 units installed in a common cabinet with a VFD running the motor application. Exactly 51 of the units are on soft starts running their motor applications. All PLCs are the same exact hardware, same program, same power supplies, but VFD installed units are ALL ok and I have 11 soft start units stopping at different intervals for unknown reasons. (stopping is not stopping by the way it is the PLC frozen with whatever it was doing last and is only correctable by power cycling) Facts: All 100 units: V570-57-T20B V200-18-E6B Installed outside in either NEMA 3R or NEMA 4/12 enclosures About 20 of the units were created when Visilogic was before version 9.7.9 was in effect The rest are either version 9.7.9 or 9.7.24 Now those of you that work with the Unitronics brand a lot may have noticed that version 9.7.9 had (has) some serious bugs, however 9.7.24 seems to be pretty solid with all defects from 9.7.9 correct (or fixed enough I can't find anything particularly wrong) So let’s go through the rest of it. What are the major differences between a soft start and a VFD panel. The obvious difference is noise, however all of the VFD units are fine and VFDs are dramatically more noisy than a soft start. How about the installation? I had a tech that works for me go to 6 sites and at the first site the installation looks like it was done by 3 year olds. So aha we think its just bad installations. However, after the other 5 sites are visited they are text book installations with good grounding, no shortcuts taken on shielded cable, clean connections with no stranded wire flaring out......NEC would be proud. What is the other major difference between a VFD panel and a soft start panel.....heat! VFDs make heat and soft starts do not. So the big difference between the multiple installations is that the VFD the boxes are almost always warmer than ambient temperatures and soft start boxes are not. This leads me to what I believe could be the cause of all the problems and that is not noise but is condensation. If you look a dew point charts relative to humidity it does not take cold temperatures to create condensation, but just a large enough temperature differential (at low enough overall temperatures) between the outside ambient temperature and the internal box temperature. I should mention that all of my soft start panels are installed in NEMA 4/12 enclosures with no venting or cooling fans (soft starts don’t need them) all of the VFD panels have cooling fan systems that allow outside air to be used to cool off the heat created from the VFDs. So I don’t have a final answer yet, but we have installed different solutions on 4 of the affected panels. Installed AC and DC noise suppression on all outputs and a heater to the enclosure Installed a 120VAC noise filter just ahead of the DC power supply and a heater Installed both AC and DC surge suppression , 120VAC noise suppression and a heater to the enclosure Installed only a heater and nothing else. I will report back after I hopefully have a conclusion, but my gut is telling me that condensation is the cause and not noise (Unitronics does not formalin coat anything), however, since I am not in the business of guessing I decided to alter 4 sites with different solution possibilities to the multiple test sites to come to what will be the real answer. I have been pressed to give a solution before I actually find an answer so I will be installing external watchdog timers on the remaining 45 units by programming an output of the PLC to do nothing but pulse back and forth every 5 seconds. If the PLC freezes in either position the watchdog will reset the 24 VDC power to the PLC. Please do not respond to this post by asking me if I have replaced hardware, firmware, shielding, VFD carrier frequencies…….I have literally done everything that I know can be done at least twice over the last 7 months. I started out thinking this was a hardware problem, then a firmware problem, grounding problem, shielding problem and nothing has worked. The only thing I had not tried is adding heat to the enclosures so that is where I am at now with the 4 units. If anyone thinks of something other than what I have mentioned here please post. Wish me luck …I need it Keith
  18. 2 points
    Hi guys!!!! We have posted UniLogic training videos on our Youtube channel. We suggest you start with these two: Introduction to UniLogic http://www.youtube.com/watch?v=BV30MkDQYPk&feature=c4-overview-vl&list=PLFBq_OH6_be7snAZAycZzQMvAWjHkX9Pz Getting Started with UniLogic http://www.youtube.com/watch?v=T5LCoB1WsTo&feature=c4-overview-vl&list=PLFBq_OH6_be7snAZAycZzQMvAWjHkX9Pz Enjoy--and we are looking forward to your comments and questions
  19. 2 points
    The Creators are not going to give up the .vlx file format. The problem of multiple copies of nearly identical code is addressed in the new UniStream product with user-defined function blocks. If it makes you feel any better, I've done the copy-and-hope-you-get-all-the-replacements-right dance more than once and you just have to plow through it. If you haven't looked into the Search and Replace feature of Visilogic you need to. It can work on the subroutine level and does make things easier. Joe T.
  20. 2 points
    You should have no trouble logging this to internal Data Table memory at 100Hz. Not sure about logging at that rate to the SD card. But you could log to internal memory at high speed and then transfer the data to SD card a block at a time. The timebase on the trend sampling only allows you down to 100ms resolution, so the fastest sample rate for the trend graph is 10Hz.
  21. 2 points
    This is more of a programming style question. Your batch can be broken down into a definite sequence, and I find the easiest way to program a sequence is to make it into a "state machine". You start by drawing your sequence as a flowchart on paper and assigning step numbers to each operation. Then use a pointer in the PLC with equal blocks to only allow one step (state) to be active at a time. You will define a state that adds each ingredient and jump from one state to the next to add additional ingredients. I have attached an example. Joe T. state machine batching example.vlp
  22. 2 points
    Hello, It seems that indeed the BinLib version cause to this issue. Please try to recover the PLC as follow: Use COM1 RS232 115200 baud rate 2sec time out Connect 6 wire cable instead of the 4 wire cable. Reboot the PLC The PLC should beep > tap once to stop the beeping Go to VisiLogic>communication & O/S, the 4th tab is system modes Check the communication by clicking on the GET button If you have a communication>Switch to Factory BOOT Go to O/S tab>check Download only the BinLib by clicking on the Advance button>BinLib (only) If the download will success, then replace to 4 wire back and download the BOOT and then the O/S.
  23. 2 points
    I'm guessing you want to display all this on the PLC screen. That's a bit more work. Two solutions come to mind- 1. Use the built-in Alarms function and configure all your events as "alarms" with no reset or acknowlege. The time-stamping and logging take care of themselves. The only downside is it will look hokey. 2. Use two tables - one stores all your event descriptions and an index pointer. When an event happens, look up the description with the index pointer and stuff it into a second table with a timestamp, bumping all the rows down and putting the newest event at row 0. Then build a screen that will display the table rows of ASCII strings of the time and the descripton. You could use the arrow keys to increment/decrement a pointer that will retrieve selected groups of rows and update your ASCII variables. It's really not as complicated as it sounds. Take a swing at it and let us know if you get stuck. Joe T.
  24. 2 points
    Hi Perry, No, for sure it will not work with 5V. You can make simple converter (see attached) or you need ot find encoder with 24V PNP or NPN interface.
  25. 2 points
    A shepherd was herding his flock in a remote pasture when suddenly a brand-new BMW advanced out of the dust cloud towards him. The driver, a young man in a Broni suit, Gucci shoes, Ray Ban sunglasses and YSL tie, leaned out the window and asked the shepherd... "If I tell you exactly how many sheep you have in your flock, will you give me one?" The shepherd looked at the man, then looked at his peacefully grazing flock and calmly answered "sure". The man parked his car, whipped out his IBM ThinkPad and connected it to a cell phone, then he surfed to a NASA page on the internet where he called up a GPS satellite navigation system, scanned the area, and then opened up a database and an Excel spreadsheet with complex formulas. He sent an email on his Blackberry and, after a few minutes, received a response. Finally, he prints out a 130-page report on his miniaturized printer then turns to the shepherd and says, "You have exactly 1586 sheep. "That is correct; take one of the sheep." said the shepherd. He watches the young man select one of the animals and bundle it into his car. Then the shepherd says: "If I can tell you exactly what your business is, will you give me back my animal?", "OK, why not." answered the young man. "Clearly, you are a consultant." said the shepherd. "That's correct." says the man, "but how did you guess that?" "No guessing required." answers the shepherd. "You turned up here although nobody called you. You want to get paid for an answer I already knew, to a question I never asked, and you know very little about my business...... Now give me back my dog."