Jump to content

Leaderboard


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 <135.0.2.78>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. 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."
  10. 2 points
    Hello there :-) The Help file for UniLogic does contain information on how to use passwords to ensure security--check out the attached screen capture.
  11. 2 points
    It would be super awesome if there was a graphic display element that allowed direct display of numbers and strings on the screen. I spend a lot of time coding reading data from tables into MI's just to display the values. With the introduction of the larger displays (V700, V1040, V1210) there is a tendency to display large amounts of collected data. We could specify the Data Table and then use an MI or constant to pick the row and the column. Joe T.
  12. 2 points
    I need to interface a Unistream with an Omron PLC. Specifically, the OMRON SYSMAC CJ2M CPU31. Omron requires an EDS file for all Ethernet/IP connections and a generic EDS file we found does not seem to work. The Unistream is configured as an adapter and the Omron is configured as the scanner. During testing, I did attempt to switch roles and have the Unistream as the Scanner and the Omron as the adapter, but neither configuration seemed to work. The error message in the Omron indicates a byte count issue; however, with the assistance of an Omron integrator, we confirmed that the number of bytes in and out of the Omron is correct.
  13. 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.
  14. 2 points
    I've passed your requests to The People In Charge--thanks :-)
  15. 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
  16. 2 points
    Saragani is one of the system architects--his advice is worth talking :-)
  17. 2 points
    The EXF-RC15 is a stand-alone CANbus module. It works with either Unistream or the Vision series. You get your fastest response using a V1040 with a Snap-in Module where they are treated as local I/O. To get your 24 inputs use a V200-18-E62B, which has 30 digital inputs and 28 transistor outputs. Read the Help on the 1.25 ms Interrupt routine and the Immediate Input function block. Put those two together and you magically get 400 Hz response time on all your local inputs. Joe T.
  18. 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.
  19. 2 points
    I find it works better to click and hold for half a sec rather than click multiple times.
  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
    I might be coming in a bit late on this one, but I prefer UniCAN to link the PLCs in this way. The main advantage is that UniCAN can be event-driven from either end. Modbus must be polled using a master/slave arrangement. With UniCAN either PLC can send changes to the other PLC as soon as something happens. Also the CANbus hardware is on the V1040 PLC as a built-in option, which leaves your serial ports free for other uses. On this final point I am willing to be corrected, but I also think the CANbus physical layer is slightly easier to deal with than RS485. Just follow the rules, use the proper cable and it usually works. RS485 works well once it is up and running, but can be difficult to figure out initially. As with Modbus, there is a webinar: http://www.unitronics.com/support/webinars/canbus-unican
  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
    Hi Damian, How transition contact works? Behind the transition "contact", in fact there are 3 more internal bit registers - one for P contact, one for N contact and one for "buffer". That's why the number of transition contacts is limited. When the scan comes to specific transition contact (P or N), it compares the value of the linked to this contact bit (let's say MB0) with the value of the buffer. If: 1. bit = 0 & buffer = 0 -> P = 0 and N = 0 no transition detected 2. bit = 1 & buffer = 0 -> P = 1 and N = 0 3. bit = 0 & buffer = 1 -> P = 0 and N = 1 4. bit = 1 & buffer = 1 -> P = 0 and N = 0 no transition detected After updating P & N contacts, controller copy the value of the bit to the buffer and con tinue the scan. As result - if in previous scan we had case 2 and P = 1; in the current scan we will have case 4 and P contact will be reset back to 1. This way transition contact by definition are active only one scan. Important note: proceeding the transition contact in the way described above is when the scan is comming to this specific contact in the application. If, for ecample specific subroutine is not scanned for some time and the transition contact is inside, it will be activated only when the subroutine is scanned again. I hope this makes sense. Let me know if you need any additional info.
  24. 2 points
    Hi, Remote Operator and Remote Access work differently for each PLC family. For V120, V2xx, and V130 it is reading the PLC display memory and draws what is reads in the PC. In Color PLCs we no longer have 1 Bit Per Pixel, but 16, which means that communication and Frame Rate will be much much slower. For that, we don't read the whole screen memory, but rather read data a data that is being used by the PLC to know what variables are on the screen... So if the PLC can understand that binary data, so can Remote Operator. Now for your question: for drawing images and fonts, Remote Operator/Access needs to read it from PLC. You should have an option to Read Fonts and Images Cache from PLC (once you read it, it will be saved locally on your machine for future use, so you don't need to read it every time you run Remote Operator). After reading the cache from the PLC, you will no longer see the Red X's instead of pictures, and the fonts will also be drawn better (WYSIWYG).
  25. 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.
×