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
    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
  5. 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
  6. 3 points
    Receiving BMP file thru RS232 from fingerprint scanner and drawing it on the dispay: [media=] [/media]
  7. 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.
  8. 3 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."
  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
    I would be surprised if this is the most cost-effective solution for you, however, I think you'll find that many PLC manufacturers have the same issue - they (properly) wish to protect the intellectual property rights of the program owner.
  11. 2 points
    And they are now on the to-do list--can't give a time frame, but these features will be added
  12. 2 points
    Hi again all, today I discovered, quite by accident, that during a Remote Access session you can use the main computer keypad to enter numbers, returns etc when viewing input screens. It makes it a fair bit easier than fiddling around with the mouse to "push" the buttons on screen. Worth trying and seeing how much you can do, in my case it is mainly V130s. cheers, Aus
  13. 2 points
    Off course there is no memory for local tags... they are local. Consider the pseudo code (assume that variables that are declared have a value of 0 and not an 'Undefined' value) public int Add(int a, int { int c; c = a + b; return c; } Now, you first call it with: Add (2, 3); the first time you call Add, c would have the value of 0, and then it gets the value of 2+3 ==> 5 Now you call it again, like Add(3, 5); Do you expect that 'c' would still contain the value of 3? It is being re-declared and it has the value of 0 again (and then it gets the value of 3 + 5 ==> 8) The variable 'c' is being declared on the stack, since it is a local variable. Once you go out of the function, it is gone (this is why it is local... It leaves within the scope of the function. And if Add would have a recursion (meaning it calls itself again and again, until a certain condition is true), then each call of the function will have it's own 'c' variable. Because of the fact that local variables are lost when you leave the function, you can't also have a positive or negative transition on the bits. The reason why you can't do a positive or negative transition on Function-In/Function-Out bits is because on each call you can pass a different bit (so you can't correctly detect a Rise or Fall). If you do want to latch a bit inside a UDFB, then it must be passed by Ref, meaning, it must a be a global bit which is passed by either as Function-Out, or Array of Bits / Strcut that contains a bit that is passed as Function-In (And with this way, you can pass a different bit on each time), or just work with a global bit.
  14. 2 points
    If you convert from BMP to PNG then no alfa channel is define. So first you need to use the command color to alfa. I recommend the software GIMP (it´s a free software and very powerful). You can find a lot of YouTube tutorial about adding transparency to a PNG using GIMP. If you need more help please send me an email to : ober.yela@Imapsa.com I can send the links.
  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
    Forty days pass, the flood recedes, and Noah and his family are settling in. Noah's wife notices that all the animals are starting to reproduce, except for a pair of snakes. She asks Noah about it, and he says he'll take care of it. A week later, Noah brings his wife out to the workshop, and shows her the snakes in their basket on top of the picnic table he just built. "How is this going to get them to reproduce?" she asks. "Trust me," he replies. A few days after that, she notices there are eggs in the basket. She is delighted, and asks Noah how the picnic table could have possibly helped. He says, "My dear, even adders can multiply on a log table."
  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
    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.
  19. 2 points
    The disable color is just an overlay on the element, so if you put a transparent overlay on the element, then you won't see any change. In order to write multi-line text, don't click enter, but Shift+Enter (like in facebook and other websites). I'll suggest making the Enter to do Line-Feed instead of submiting. Custom Colors: In version 1.2.R5 the Color selection has been upgraded. The advanced color picker allows you to copy and paste (and also type) text to the "New Color" text box
  20. 2 points
    This machine was designed and built by an appliance manufacturer for heat soak testing of one of their products. E Power's task was to develop the control software that the client's own engineers were having great difficulty with. Installation of the electrical equipment was undertaken by another contractor in conjunction with the client's engineering team. 80 appliances can be tested at once. The test for any individual unit can be started or stopped at any time without affecting the testing of the other units. The Vision OPLC runs the whole process. A great deal of multiplexing is used within the code to save having to repeat the same code 80 times for each test station. PLC I/O modules are mounted on the insides of the doors to make good use of space. The number of modules mean that some are treated as remote, via a CANbus, rather than a direct extension of the PLC.
  21. 2 points
    Both of my esteemed colleagues appear to have missed the point of the question. Firstly, I assume you mean the V1040 (you typed V1020). There is the ability to set a splash screen that displays as soon as power is applied, to cover the black and white text that shows during the boot process. This is described in the help, search for the term "Splash" and go to the "System Images" topic. You will need to perform a download to make the splash screen active. If you want the splash screen to display for longer, also add the same image to the !Startup Display in your program, as per Joe's instructions.
  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
    Can we please get a functional chart of the PID process along with the equations involved so that we can better understand what is happening behind the scenes. ALL other PLC/Motion Control manufacturers publish this information so that a clear understanding of the structure can be had. The auto tune feature rarely provides satisfactory operation and there was no means given to favor steady state response or step response depending on the needs of the application.
  24. 2 points
    I agree this is a reasonable expectation from the market, and I was asked about this in the last training session I ran.
  25. 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.