Jump to content

Leaderboard

Popular Content

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

  1. 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.
    7 points
  2. Download the attached Rar file, and extract the files to UniLogic installation directory. This means that the "UniLogic Diagnostics.exe" (and all the other files) must be placed in the same directory where "Unitronics.Shell.UI.exe" is located (usually at: "C:\Program Files (x86)\Unitronics\UniLogic\") After you've extracted the files, run "UniLogic Diagnostics.exe" and click on Diagnose. Most chances that it will show "SQL Instance" as one that has problems. In case it find problems, the "Fix" button will become enabled. Click on Fix, and the program will attempt to fix the problem, and then it will re-diagnose the problems to confirm that they are fixed. Please tell me what problems it found . Also tell me if it managed to fix the problem that you're experiencing with UniLogic (that it is stuck in loading components). Thanks. UniLogic Diagnostics.rar
    6 points
  3. EDIT BY MODERATOR: Kikis CAN NO LONGER SOURCE THIS UDFB, SO THE POST IS BEING REMOVED BUT THE LABEL RETAINED IN CASE SOMEONE IS REFERENCING IT SOMEWHERE.
    4 points
  4. If it is really bad I've been known to hang an electrolytic capacitor between the analog input and 0V. I'm not kidding. Something like 10 uF @ 25V. Joe T.
    4 points
  5. The USB in the UniStream acts as an Ethernet card (while in Vision PLC, it acts as a serial port). The USB of the UniStream is an RNDIS device, and for getting // assigning the IP address of the PLC over the USB-Ethernet an uPnP protocol is used. If the firewall blocks the uPnP handshake between windows and the PLC, then UniLogic will not be able to get the IP Address and communicate with the PLC.
    4 points
  6. Sadly not my joke....... My wife asked me why I was whispering in the house. "Because Mark Zuckerberg's listening," I whispered. She laughed. Alexa laughed. Siri laughed. 🙈 cheers, Aus
    3 points
  7. Actually, there is a way to have a psuedo-popup window. It's done using a little-known and poorly documented system bit - SB 25 - "Do not draw display background". I used this for the PID tuning window on an oven project. I used a V1210. Here's the display with all the loops called "Setup" called from another screen. Pressing any one of the "Tune" buttons set a different bit in an array: I have code that watches for one of bits to go on and call this rung: You will notice that the description from Unitronics for this bit is flat-out wrong. The actual operation can be found in the Help if you search for "SB 25" (include quotes). Which pops this display without drawing the background- Giving this- Note the PID Tune is now the active window and is modal - nothing on the Setup screen will respond because it's not active. I have code that uses pointers to interact with the variables on the Tuning display that is not important for this discussion, but leaving the tuning display is simple: By calling the Setup display again without SB 25 set it just blows out whatever display is there, which is normal behavior. @Patrick - I would not call this "simple" in UnitronicsLand and the suggestion of others to just call another nearly identical display is what I would normally do. I used it in this application because I needed a way to indirectly interact with a window instead of creating 22 slightly different instances of the same thing. Joe T.
    3 points
  8. I think most of you probably already know the first rule of the Assumption Club.
    3 points
  9. Twitter asks what I'm doing. Facebook asks what I'm thinking. Google asks where I am. The internet has turned into my mother. 🕵️‍♀️
    3 points
  10. I had a Hyundai Santa Fe once upon a time that strangely had the calendar date displayed on the dash. It was set with the month day and year and knew which years were leap years. However, the subroutine that it went into to allow February to have more than 28 days failed to have an exit. So, on leap years it would continue to count up from February 29th, each day incrementing up. It was easily fixed by resetting the date to March 1st, but I had to see what it would eventually do. Each day it incremented up until it hit February 99th, and since there were only 2 digits, I couldn't wait to see what it would do the next day. You would have thought that maybe it would go to 00, but it didn't. It completely lost its mind and displayed nonsense symbols every day thereafter.
    3 points
  11. 3 years ago I knew nothing about PLC's. Because of people like @Ausman, @Flex727, @Joe Tauser and others on this forum, we converted 8 machines from old relay logic to PLC's with automation, made 2 pieces of complex laboratory test equipment for the lab, and entire tank farm controls that include, levels, filling, heating/cooling, mixing etc. I could have never done it with their help. I don't know if they're paid or not, but I will tell you they are priceless. I hope that @Cara Bereck Levy will show this to the powers at be so they understand the caliber of people they have in this forum. It burns me, me when people are rude or "expect" someone to write their programs without giving it any effort first. Be polite, give it your best effort and people here will jump in to help you. This concludes my diatribe.
    3 points
  12. Yes, it was already implemented and would be available on the next release of UniLogic.
    3 points
  13. Just for fun, this is the control panel for a new force tester we created. If you are a Star Trek fan. I can't be the only nerd on this forum, am I?
    3 points
  14. 3 points
  15. Hi All I purchased this device on ebay. The model number is "VAP11G Bridge Cable Convert RJ45" (probably many alternatives available) Cost around €15.00 Works a treat on unistream. Plug in the ethernet and power via the USB port. PLC can now be programmed with the panel door closed over wifi. Should also work with Vision but you would need a power bank or 5v power supply.
    3 points
  16. Continuity is easy - just connect +24V to one side of the wires one at a time and see if you get it on the other side. If you have a bundle to check you can switch wire feeds in with relays and make sure you only get one signal on a DI module connected to all wires. The RTD module only returns temperature from a resistance of about 25 ohms to 267 ohms. You could reverse-calculate the resistance, but I don't think this is the range you're looking for. Resistance is not so easy. Many moons ago I rolled my own ohmmeter with a DC power supply, current limiting resistors, voltage inputs on an analog module, and current sensors into another module. I was trying to measure to .01 ohm resolution on wire to make fuses and it kind of turned into a trainwreck. I learned about thermal drift of a multi-component system the hard way - I could not keep the thing calibrated. I eventually bought a really nice four-wire ohmmeter with a serial port and multiplexed it between the wires under test - the manufacturer liked it so much they asked if I would write an app note about it- https://www.tegam.com/wp-content/uploads/2015/10/AN103.pdf So this is an area I actually know a little more than the average bear about. This approach may be overkill for what you're trying to do. Can you be very specific about what you want? Joe T.
    3 points
  17. Hold Ctrl+Shift while you double-click the Visilogic icon. This will reset the window settings to factory default. Joe T.
    3 points
  18. @Arnor, I think I've found the problem. Take the dll below and overwrite the one that exists in your installation folder. Make sure to create a backup of the original dll first. Please update me if it helps. Thanks. Unitronics.RemoteOperator.dll
    3 points
  19. I´m not sure if this fits your needs:
    3 points
  20. Almost the same here. The only difference is that I am using an accumulated timer for more precision:
    3 points
  21. I'm convinced this is delusional. CDs were originally pretty bad because sound engineers failed to properly tailor the sound for the new media and instead used the equilization curves for vinyl with insufficient modification. That's no longer the case. Nowadays, the abysmal compression of MP3s may be worse than vinyl, but no one who really cares about sound quality should be listening to either compressed MP3 or vinyl. Vinyl necessarily has extreme equalization in order to achieve any bass response, necessarily lacks sufficient channel separation, and degrades every time the record is played. </rant> THIS I agree with wholeheartedly.
    3 points
  22. This major release introduces MQTT, another piece of the Industry 4.0 puzzle. MQTT is a machine-to-machine connectivity protocol that runs over TCP/IP. MQTT joins the UniStream range of communication channels and protocols that supply the connectivity required by Industry 4.0 including SQL, built-in webserver that enables the controller to be accessed via any browser, and more. This release also supports new UniStream 5” models US5-Bx-R38 + US5-Bx-T42, offering new, built-in I/O configurations. Other important features in this release: HID Device support for devices such as scanners PostgreSQL support, in addition to SQL Server and MySQL UniApps localization for Korean & Italian, plus a new Korean virtual keyboard Read the version changes for more features at: https://unitronicsplc.com/software-unilogic-for-programmable-controllers/
    3 points
  23. 3 points
  24. 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
    3 points
  25. Great news, but twice as tall (or 50% taller) is what I need more. I have regular need for 12 contacts in parallel and constantly breaking them into two sets of six is a pain.
    3 points
  26. What is the answer to this math problem: 7-1x0+3/3=? If you understand the PEMDAS rule you will get the correct answer of 8. However, if you just run the operations from left to right, you'll get 1. Every ladder rung in your program must be compiled to machine language before the PLC can execute the code. Do you know all the rules the compiler will use when you have a very large net? I certainly don't. Remember, like all computers, the PLC can only do one thing at a time and a large net can provide ambiguity (to humans) so the result can sometimes be unpredictable. To avoid this potential problem, always make your nets reasonably simple and break them into functional parts. It's also easier to troubleshoot and for another programmer to understand what you're doing.
    3 points
  27. Ohh no, the old usb issues! 1 Perhaps Win 7 is now doing the W10 trick of updating drivers to whatever Msoft deems best, regardless of what the user wants/knows. I'm still on 7 and haven't encountered this yet, but I very carefully look at every update that is offered and find what it is doing. The immediate suggestion is if you have System Restore on, you should roll back to before the updates and see what happens. 2 I have had instances where a usb cable has suddenly broken a line internally. I'm assuming you have tried another known good cable in your attempts? In my instances the error messages you're getting were similar..."unknown but I know something has been plugged in." Murphy's law says that this failure is going to happen just after an update that will appear to be the culprit! 3 Have a good read of this entire discussion: In particular note the program I recommend: http://www.pro-it-education.de/software/deviceremover/ Edit: I have discovered this link doesn't work anymore. Can now be found here: http://www.softpedia.com/get/System/System-Miscellaneous/Device-Remover.shtml I have found it incredibly useful for removing dud drivers Windows squirrels away. If you haven't had luck doing 1 & 2, try getting rid of everything using it and start again from known good drivers. ONLY install them. 4 I am finding more and more devices that used to be serial connections, but are now usb in the same looking body. But lo and behold they have just added a prolific/fake chip onto the pcb so that it "looks" like the unit is usb to the user. It is essentially still serial and the onboard chip lets them get into it if they don't have serial connections available, like modern stuff infuriatingly doesn't. I have been exceptionally careful about what I allow to happen during the first insertion of any device that likely falls into this description. It is a minefield. Tread carefully! cheers, Aus
    3 points
  28. This problem dates back to when the USB to serial adapters were first introduced. It is not a Unitronics-only problem, it's a Windows thing. I have experienced multiple instances of the same driver trying to access the same COM port when it comes to the USB interface. It is a royal pain in the butt and you have to rip them all out and start with a clean slate. The problem is you can't see them all, even if you check "show non-present devices" in the Device manager. There is an environment variable you have to set to truly "Display All Non-Present Devices". This article describes the process to get all your defined COM ports to light up- https://technet.microsoft.com/en-us/library/ff184583.aspx You probably have a bunch of stuff defined that you didn't even know about. Uninstall all the COM ports. Then plug your PLC in and see what happens. Joe T.
    3 points
  29. Hi, even on programming languages like c# it's incorrect to show a view from code (for example a messagebox). Message boxes are usually required for a user input, and are in most cases 'code blocking' (The next command will not executed until the message box is closed, since it is waiting for a dialog result). In UniLogic, message boxes are shown in a response to a user interaction (clicks, for example), and the result of the user interacting with the message box is clicking on one of the buttons (OK/Cancel/Yes/No) is executing 1 or more actions defined by the programmer. This is the correct way or writing UI. I don't know the reason you want to show a message box, but for example, you want to show a message box like: "Temperature is over 80 deg), and you want to call it from Ladder. In that case, I would choose Alarm for several reasons; * Not blocking UI and annoys the user * What happens if the deg reaches 81 and then falls back to 70 and then again reaches 81? Should another messagebox open while an active one is already opened? * If the message box is designed to set a big when the OK is clicked, and the calling function is no longer running, what would you expect to happen? We do want our user to keep a separation of UI from logic (You won't see any "Load Screen" elements in Ladder, but we do give a Load Screen global action which can be triggered from a bit). A workaround for what you want is to have an overlay of something that looks like a message box with the texts and buttons that you want, and control it's visibility with a bit. (You can also design it as a custom control, so you will only need to set the visibility bit once, on the entire instance of the custom control) Another workaround is to design the whole message box as a screen, and load the screen when the bit is set (the global action will automatically reset the bit), and when done, use "Last Screen" action on the clicked button in order to return to the original screen.
    3 points
  30. 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)
    3 points
  31. I would like to start with many compliments on the Unistream Product. Yes it is a huge cost savings from other comparable products out there, but the horsepower really comes to light when using the data tables, FTP interface and the USB DOK tools. Not only can you accomplish a lot of traditional tasks with these units, but you can work with data and share this data so easily. Thanks. There are (2) enhancements that I think go together that would put the icing on the cake. 1st, we need at least (2) dimensional arrays. You have sort functions for arrays, but with only a single dimension, I typically need to have another field that is associated with the sort field. 2nd, having a sort function for data tables would be so powerful. Being able to run a Min/Max sort on a column so the data table can be organized based on a column sort would provide more capabilities with data tables. As a note, I cleaned up the Num to String UDFB to eliminate the space allocated for the +/- sign when neither are used, finished the 0 fill feature and increased the number of digits so double integers can be converted. Again, nice product and this only looks like the beginning.
    3 points
  32. So I am sure that some of you may know factoid 2 already but I decided I would share the benefit of lots of testing with everyone. In our products we use the V570, V350 and the JAZZ units to talk to variable speed drives on a regular basis. Most drives come standard with 485 Modbus as the only communications type unless you spend extra money getting optional com cards for the VFD. Two factoids relative to noise. There was a conversation that happened accidentally in the "I have a new project" topic where someone said that Unitronics was very susceptible to noise. Well VFDs make a large amount of noise and it is not always radio noise. A fair amount of the time the noise is actually contained on the local earth to where if you ground the shield of shielded cable you make your noise problem much much worse than in you do not ground your shield. The old conversation about sometimes you have to ground a shield on one end or the other or not at all must be practiced regularly. Factoid 1: I generally would not recommend one brand of product over another but 20 years of use on pressure transducers have shown conclusively that there are definite brands of transducers that work dramatically better than others in noisy conditions. If the noise is radio noise pretty much every transducer is as good as any other. If the noise is carried on the local earth ground of the machinery then really bad things happen on every brand of transducer I have ever used (list to follow) except 1. We have used: Ashcroft Murphy Pepperl & Fuchs GEM WIKA AST Dwyer (all private labeled so there is one that works) and in 100% of the cases when there is a site that has noise infecting the ground because of VFD usage there is a horrible amount of noise created (it has nothing to do with Unitronics) and there is only one cure (separate the sensor from the metal pipe is it screwed into to isolate the sensor from the grounded pipe. If you ever have a site that has what appears to have an incurable noise issue and a VFD is involved unground the sensor and see what happens (pressure sensor just unscrew it and leave is unconnected to anything metal and if your noise issue goes away your grounded piece of equipment is causing your noise issue. So what is the one sensor that seems to be impervious to noise on the grounded pipe? It is specific to exactly one model and one product type only. The SETRA 209 series pressure sensor works perfectly where nothing else will (without lots of noise smoothing). AST is second best (but not as good as the 209 series SETRA) and everything else is just bad. Unfortunately, the 209 series is not NEMA 4 rated and is only suitable to outdoor use with the help of a cover to make a 3R cover. No other model of SETRA transducer works like the 209. Just as a note (if you are not needing Class 1 Division 2) there are companies that make electrically isolated pipe union fittings (for cathodic protection) and we have used these from time to time to help customers through ground noise problems. Factoid 2: It is in the Unitronics documentation but who reads everything (or remembers it over enough time). When connecting to RS485 it is not just important but absolutely imperative that you do not connect wires to pins 2,3,4 and 5. Even if the opposite end is connected to nothing at all (except 1 and 6). What testing has shown is that if any of the other 4 wires touch each other (because you cut them short) they will make an otherwise quite communication line unbelievably noisy. Also even if the ends are not touching the wires themselves act as little antennas and noise becomes worse. How do we know and not guess at this? Because sometimes we try to do what is right and it ends up being horribly wrong. One of our techs went out an sourced a high speed modem cable (shielded with shield all the way up to a metal sheath on the plug). It was not an inexpensive cable and sounded like a really good choice. We were buying 15 foot cables and then cutting this in half to make 2 cables (other devices have screw terminals for their connections and not an RJ12 (RJ12 for RS485 to get all 6 connections) so we would cut away all cables except the two making connection to 1 and 6 at the Unitronics port. We had 70 or so with these cables out and a high percentage of the build had special drain wire considerations that had to be made to make the communication work ok. New project with a different brand of VFD has come along and we build our first three units and zero of them would communicate over 485 communication connection. (we tested everything before build and it worked) WHY? The cable we were using had 4 sets of twisted pairs inside the shield (so two wires were not connected on either end). Testing on a V350 showed that as long as we had a computer connected to port 1 communication between the PLC and the VFD was fast and excellent TX/RX accuracy, but as soon as we disconnect the computer from port 1 communications would fail to a rate of about 75% packet loss (at slowest communication speeds). We tried different grounding of the shield to no effect, we replaced cables (didn't expect that one to work) to no effect, we took the test VFD from our desk and replaced that VFD with one in the constructed panels (no effect), so then just because there was nothing else to try we took one of the connectors that comes in the box for the V100-17-RS4X Modbus adder card and just twisted that to a standard 3 wire Beldon (really poor connection) and communication success went back up to about 99%. So we soldered 3 of the connectors from the V100-17-RS4X and shrink wrapped it all so that we could ship the 3 panels to their end customers. Then began the process of figuring out the whys and wherefores as to what the heck was going on. Taking new (expensive shielded) cable we stripped multiples back all the way to the metal cased plug and found that the manufacturer had done a good job on construction. We removed just the two wires that were not connected to anything on either end and found that removal of the two unconnected wires help com success rise to the 60% level. Then made sure that no wires were touching out of the remaining 4 unconnected wires and coms rose to a 90% success rate. Then we cut the 4 remaining wires to be about 1 inch long and made sure they did not touch anything and coms rose to about 96%. Then made our own cable with an RJ12 connector to have only 2 (totally unshielded wires with low twists per foot) wires and comes were great. So now we will be buying specialty cables that have only the two required conductors inside them. Thank for reading and I hope our pain can save you some. Keith
    3 points
  33. 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
    3 points
  34. 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
    3 points
  35. Receiving BMP file thru RS232 from fingerprint scanner and drawing it on the dispay: [media=] [/media]
    3 points
  36. 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.
    3 points
  37. 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."
    3 points
  38. No. Modbus is a handshaking protocol and it will take too long - you're doing good if you can get 10 reads/sec with Modbus. kratmel says this device has CONTINUOUS FAST WEIGHT TRANSMISSION mode. I didn't look in the manual, but this tells me you can put it into a mode where it just sits there and broadcasts data as fast as it can, regardless of whether someone is listening or not. I've worked with scales that do this. The block kratmel is talking about is located under the FB's menu and is called "Protocol". It lets you roll your own communication - do not be afraid of it. In your case you'll set it up to listen to the serial port for whatever is coming in and set a bit when it receives something. For starters take your module and connect it to your computer serial port with a terminal program. Configure it with the CONTINUOUS FAST mode and see if you see a whole bunch of weights on the terminal program. Then you can determine how to make it work with the PLC. Joe T.
    2 points
  39. Hi all, I'm sure lots of you know about these things that make life much easier using com ports. But in case you don't, here are 2 links to different sources amongst many: https://www.aliexpress.com/i/32860271754.html https://www.amazon.com/fosa-Ethernet-Terminal-Splitter-Connector/dp/B07D355PDX cheers, Aus
    2 points
  40. Sometimes it is necessary to do repairs when there are no original spare parts or they arrive for a long time. You reminded me about the Enter key. Machine Amada - Enter completely destroyed. Temporary solution - the external button is soldered to the corresponding matrix keypad conductors. This may be a solution when it's impossible to fix the program However, definitely
    2 points
  41. Any news on a possible release date for the PDF format Unilogic manual?
    2 points
  42. Dear all, I am using different data tables in a project, including saving and loading TDI from SD card. Some of the tables are "system" oriented like settings, and some tables are "user" oriented like programs and recipes. User should select a file by using HMI element: File selector browser . For now ALL DTI files are kept in the DT folder and selection is problematic. I need to separate each kind in a different subfolder, so the selection will be user friendly. The "Store DTI to a file" and "Store DTI to a file" ladder blocks is not giving the option for different sub directories , that would helped if exist. File selector browser is not supporting sub folders as well. Can I use differents folder path as part of the file name string? or any other way to manage subfolders? In addition, "Copy/Move file" and ladder elements, don't have the option to copy or move within SD card folders, but only to/from DOK. It would have helpful if possible to arrange the files by type of functions by ladder. any ideas? Any help?
    2 points
  43. I couldn't pass this up. Joe T.
    2 points
  44. Yes, UTC has that limitation. The UTC from 1900 will "expire" in 2038. The one since 1970 will expire about 70 years later. https://en.wikipedia.org/wiki/Year_2038_problem
    2 points
  45. 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.
    2 points
  46. OK, Fixed. On next version, when you import a table from Excel, if the struct contains only strings, then UniLogic will consider empty rows as data. Now if your table has 10 rows and the Excel file has 2 rows of data, then UniLogic will import 10 rows, where the last 8 rows are empty. If the Excel file contains for example 12 rows of data, then it will only take the first 10. When the struct contains any non-string members , then UniLogic will take the num of non-empty rows. If for example, the excel has 2 rows of data (and the data table has 10), then only the first 2 rows will be overwritten. If the excel file has 12 rows of data, then only the first 10 rows will be taken. If you are converting an excel file to UDTF, then UniLogic would detect if the struct contains only string members, and if so, it will open a dialog for asking how many rows to convert to udtf.
    2 points
  47. 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
    2 points
  48. 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.
    2 points
  49. I would recommend using 3 sockets total for the Modbus TCPIP and communicating to 5 slaves on each socket. Make a sequencer to Connect Socket Write a block of holding registers Wait for Write comple Read a block of holding registers Wait for Read complete Close Socket Index pointers to next Slave and repeat Wit a V570 expect about a 120ms access cycle per slave for each socket. Therefore your total cycle will probably be around 600ms using three sockets. If you can live with up to 2 seconds, by all means simplify your code and put them all on one socket. With 15 slaves you will probably be just shy of 2 seconds if you avoid artificial time delays. The above suggestions also assume you both send and recieve your data all in one contiguous block of data. If you have to perform multiple read and writes per every socket connect instance then your times will suffer.
    2 points
×
×
  • Create New...