Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation since 06/03/2020 in all areas

  1. 2 points
    Hi All, We already have a solution for this case. As you can see we added the eye button option - if you will click on it the keys will not change their color/shade when pressing and the person who connected by VNC will not be able to see your password.
  2. 2 points
    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. 2 points
    Hi, I will try to describe why it works without a connection. 1) There is output board inIside of the Unitronics OPLC controller. 2) Each of the solid state outputs is a part (one channel) of the few chip VN340SP (or something like that on foto). 3) To send signals from the processor to this chip, we must have one common wire and several separate ones for the required number of outputs. This common wire also neded for power the VN340SP. This wire is the OV contact you specified. 4) This OV contact is connected to the main power OV contact of the PLC panel through a small fuse (you can check with a measuring device that the resistance between the 0V and 0V contacts is not equal to 0 Ohm). For example i post foto of little fuse and 0V power connection for SAMBA SM70 board. That is why you output operate with 0V not connected. 5) If you neglect to connect this contact, it may happen that the fuse (or another cirquit) inside PLC blows and all your outputs stop working. Conclusion - always use the connection RECOMMENDED by the manufacturer. This will save your controller from problems and save you money.
  4. 1 point
    Here's another thing for humans to try. If you can set this up it's very intriguing. Get a good set of headphones (not buds) and feed them the signal from a mic. Put a variable delay on the signal being sent from the mic to the phones, something like 0.5 to 1.5 seconds. Plonk yourself in front of the mic and turn the system on. Now......try to talk properly. Vary the delay, just for play value. This might lead to having some sympathy for those people you sometimes see on TV "crosses", who sound like idiots. 😧 cheers, Aus
  5. 1 point
    This option is making UniLogic ping the IP Address you are trying to connect to, when working with Ethernet. If ping fails, the connection would not be established. Since the PLC is behind a router, and there are more routers in the way, then ping would fail. I didn't understand if disabling that option helped you or not.
  6. 1 point
    I assume that the other PLC is on your LAN or not behind router. Am I right? Try the following: Under Project-> Options-> General, make sure that "Use Ping on Discovery" is unchecked. Tell me if it helped.
  7. 1 point
    Which version of UniLogic and UniStream? For VNC you need to open port 5900, and with UniLogic 1.29 (and newer) you will need to also port 8001 which is the Commands port. If the UniStream has a firmware 1.29, then without opening port 8001, you will not be able to communicate with the PLC (No download and no online test)
  8. 1 point
    Hmmm.....more justification for Joe T's constant advice to get a simple scope for checking things? It would have likely picked up the differences that a digital meter possibly missed. All depends on the meter's specs and useful settings. I also have an older fully analogue meter that has proven invaluable and dead accurate over the 35 years of well looked after use. And it doesn't use batteries! Related aside.....has anyone else ever laughed at how progress has made things more complex? Instead of me having a car radio that gets the signal direct from a transmitter, I now have to have my phone on, using mobile internet to receive a favourite "radio station". The phone then uses bluetooth to connect to the car system that processes the signal from the phone and gets it to the speakers. 😖 That's such excellent progress, isn't it?!! In the overall scheme of things how much "total" energy is wasted by this method? The list is endless. cheers, Aus
  9. 1 point
    Hi, Visit https://unitronicsplc.com/software-visilogic-for-programmable-controllers/ Scroll down and expand "Programming tools for developers. You can find here useful documentation and tools. Hope this help you to write what you need. B.R.
  10. 1 point
    I'm not sure about reinitializing Configuration FB. It does have addresses for only 15 slaves, but if I remember right when you execute read command it will read from whichever slave the PLC is connected to, disregarding the "Slave ID number" that is in the read command. Maybe this was an issue from some older VisiLogic version when I encountered this for the first time. I've wanted to test this for some time now, but don't have the will. So, I tested this. One master reading 3 slaves one after another from the same Socket. No slaves were defined, every read command had Slave 0 and it worked. Turns out you don't need to have defined slave addresses in Modbus Configuration FB. Modbus commands are sent to device which is connected at the moment of execution, no matter what is in the Slave ID field. Should we add slave addresses in Configuration FB or not (I don't see the point since connection has to be made manualy), what is a good practice here? Is it OK to communicate with more than 15 devices without reinitializing Configuration FB, like in newbie88's case?
  11. 1 point
    I'm sure you're correct about not needing to reinitialize the FB in normal situations, but I assumed it would be necessary at some point if you have more than 15 slaves. I thought it would be simpler to have a single routine that repeats for each of the 20 slaves. You could do 10 and 10, but I don't think it saves any time as the FB initialization appears to complete in a single PLC scan.
  12. 1 point
    I'll tell what worked for me regarding your questions, newbie88. Steps go as you described. Connect to 1-Read-Disconnect; Connect to 2-Read-Disconnect... You are using TCP so connection is required. Delay of 0.4 seconds after disconnecting from one client before connecting to second one, and another 0.4 seconds before sending Modbus commands, maybe this can be shorter (probably, you should experiment). For 4 clients this cycle takes 3.9 seconds, if time is critical you may need to use more sockets or go to UniStream. For any slave that drops number of retries and timeout will add extra delay. I'm not sure about reinitializing Configuration FB. It does have addresses for only 15 slaves, but if I remember right when you execute read command it will read from whichever slave the PLC is connected to, disregarding the "Slave ID number" that is in the read command. Maybe this was an issue from some older VisiLogic version when I encountered this for the first time. I've wanted to test this for some time now, but don't have the will. This depends on how you make your logic. If you use that standard form from Examples You can go to next step after all read bits are low for how many read commands you have. I found it works without putting delays between commands, just using "Function in Progress" bit to stop multiple read commands from interfering one with another. Don't forget that system bit that shows if socket is connected should be a condition before blasting Modbus commands. Hope it helps, tell us how it goes.
  13. 1 point
    My understanding of MODBUS TCP is that you MUST Connect with each device you communicate with. To connect to a different device using the same socket, you must Disconnect, re-initialize the MODBUS Configuration FB, then Connect to the new device. You have System Bits that will help you determine the status of all this, but I would use timers to be sure sufficient time has occurred for all the operations to complete. I would expect communication with 20 slaves to take perhaps a couple of minutes if you want it to be 100% reliable.
  14. 1 point
    PLC and HMI not in 2020, But it is always Engineer's Choice! Because every engineer knows that HMI, PLC and SCADA Systems is the future of Industrial Automation.
  15. 1 point
    Eerie! It's like you were there.
  16. 1 point
    Hmmmm. I have great mental pictures of you restlessly prowling around the house waiting for midnight to tick over. Coffee jitters, keys jangling in hands, can't wait to push the right one in and turn it! cheers, Aus
  17. 1 point
    In having a quick squiz around the web I found this which might do the job. Have never used it, nor am endorsing it, nor am paid by them blah blah. And they even have stuff ready made for Unitronics gear. cheers, Aus https://www.nushield.com/dayvu_info.php
  18. 1 point
    When I have issues with the SD card I just replace the SD card, not saying that's your issue but a lot of SD cards now are crap out of the box or shortly after.
  19. 1 point
    Use different power supply possible only when output is "isolated". Fof example V200-18-E3XB has 2 isolated pnp/npn (source/sink) transistor outputs and 4 isolated analog outputs. However, the user must remember that these separate power supplies must be turned on and off at the same time or in the correct sequence. As an option - start powering the panel and then power the output - and turn it off in reverse order. The PLC uses output drivers that are protected against short circuits, overheating and usually undervoltage. Turning off the driver power (in your case + V0) could trigger one of these protections - and accordingly cause the PLC to restart. It's just a theory - I don't have a Jazz panel with transistor outputs to investigate your case. Therefore, a second CONCLUSION should be made - the user cannot use separate power supply for solid-state outputs of the PLC, unless the instructions indicate that they are isolated.
  20. 1 point
    Do NOT call the Set Str Lib function continuously. Create a coil with your equal block and then a transitional contact off of that. It's common for someone new to Unitronics to go overboard using all the flexibility the PLC offers on subroutine calls. Unpredictable results almost always happen because unlike a computer language the Vision doesn't have local variables that are created and destroyed when the subroutine runs. You are always operating on global variables, and when you exit a conditionally called sub the value of those variables freezes. They do NOT reset to 0. You've mentioned in other posts about your subroutine strategy. Flex has already pointed out to use subroutines that are called continuously. I would highly recommend you follow his advice at this point in your programming journey. Create subroutines to organize your code but call them all the time from the Main. You can set a bit that is on when a display is active to put in front of the code you want to run. If you do it this way, the coils you use will reset to off, as you probably expect them to. Trust me, the the PLC is fast enough and the odds are very high that all your code won't even come close to slowing down. Joe T.
  21. 1 point
    You should be able to just use a Store block when you press RESET to put a 0 in the counter register. If this doesn't work upload your program. Joe T.
  22. 1 point
    I think that most long-time forum members know that I write the Help for the software. I was a newbie at technical writing when I joined Unitronics. I also knew nothing, zilch, about controllers, had no tech background except for whatever I remembered from high school physics. @Joe Tauser contacted me regarding one of the first iterations of the VisiLogic Help. (this was more years ago than I care to admit to .) Joe asked questions--I had to find out the answers and put them in the Help. In addition to improving the Help, I learned a lot about the field. He pointed out errors--including spelling and such, which was great, because I am the only native English speaker at Unitronics R&D, and have never had anyone to edit my writing. Joe is not the only one who has contributed in this way--but just has he has the greatest forum cred, so was the size of his contribution in raising the quality of our documentation.
  23. 1 point
    I'm working with OPC/UA right now and just to clarify a few things: 1) The existing help file [September, 2019] mention of the certificate in the PLC [UniApps->Network-> (2nd Page)-> OPCUA] may or may not be present in there. It depends on the OPC/UA Client program. 2) The generation of the OPC/UA certificate appears to be created/generated when the PLC is first powered up. In order to get the OPC/UA Client to connect I had to download the program and then reset/reboot the PLC. 3) If you plan to implement OPC/UA do yourself a favor and wrap all of your tags into one or more Structs. You can add Structs to the OPC/UA Address Space. Otherwise you have to add the tags one at a time. For my existing project that means adding 168 tags by hand. And of course I find it necessary to have the OPC tag name match that of the 'source' tag exactly. That means at least 600 actions to add them. [I batch process similar to that of the MODBUS configuration would come in handy. Hint Hint !!!]. If anyone has any additional tips/tricks/faqs please add them.
  24. 1 point
    This is exactly what I had to do with Visilogic in an application that had multiple users with a couple of different access levels. As you've figured out, it wasn't the easiest thing in the world. UniStream addresses this with User Access Control that has 16 levels, 16 groups and 128 users. If this is really important to your project you may need to switch platforms. If you haven't already downloaded UniLogic I'd recommend doing so and having a look. Joe T.
  25. 1 point
    Make sure you compile the project as x86
×
×
  • Create New...