Jump to content

Flex727

MVP 2023
  • Posts

    3,257
  • Joined

  • Last visited

  • Days Won

    236

Everything posted by Flex727

  1. Is there any possibility to use integers with implied decimal instead of floating point?
  2. Many of the Vision PLCs have a mini-USB connector. Which model are you working with?
  3. I'm sure the answer to this question is no, but I have no idea what you're asking.
  4. I took a chance and opened up your file on my computer. No problem opening the file and it compiled without errors. The problem would appear to be with your PC or your VisiLogic installation. That said, I have to ask, what the heck are you doing in ladder rung 15? Under most circumstances mixing Set coils and Direct coils in a program will not work as intended. And also, while it is permissible to use a contact and coil of the same bit in the same rung as a latch, this is not what you are doing. It looks like you should be doing something like what you have in rung 6. Also, please do not place multiple logic threads in the same ladder rung (rungs 7 & 8). The compiler will not report an error, but it is extremely bad programming practice in ladder logic. And finally, use subroutines to break your code up into manageable pieces. Personally, I reserve the Main Routine for Start-Ups, configuration blocks, and subroutine calls. All other logic should go in subroutines.
  5. I did exactly that. No change. I had that thought as well. I changed the subroutine run order to reverse the operations. Again, no change. I had the subroutine where MB 3141 goes high coming after the subroutine where the HMI element is changed. I moved it to before so that MB 3141 going high and the HMI element changing occurs in the same scan, but the only difference it made was that I was unable to force MB 3141 high from VisiLogic while online. Strangely, forcing MB 3141 high while online does not cause the screen refresh, but forcing it high with TD 80 or with a test bit inserted into the rung did. What I'm not sure of is what exactly is the timing of the online interaction of VisiLogic within the order of all the scan operations. I think both of you are headed in the right direction. I have a few more permutations to run through to narrow this down and I'll let you know what I find. Thanks for your help!
  6. Sure, just use the Store Direct function and store zero to the MF. You have to use the special Float Store Direct function under Math/Float/Basic...
  7. Thanks for the suggestion, kratmel. I tried it and it didn't appear to change anything. It appears to not do it all the time, but when it does it looks exactly like an SB 31 screen refresh. I have isolated it to a bit of code: MB 3141 (rung 20) will (in another subroutine) cause the HMI element to change. When triggered by TD 80 (or even a test bit placed in the rung), the screen refresh happens. But when I'm online and manually SET MB 3141, the screen refresh does not happen. It's consistent. I'm still working through all the possible permutations.
  8. It also should be mentioned that programming all models of the Unitronics Enhanced Vision series is nearly identical. This includes your V350 and the V570 in the video I linked to, as well as the models used in the example projects.
  9. Unitronics presents training webinars regularly which get posted to their YouTube channel. Browse those videos to get basic training on VisiLogic. Here's a link to one to get you started: I'll also suggest that you browse the Help file in VisiLogic in addition to the example projects, as Joe mentioned.
  10. A .v57 file does not update the firmware. I tested by trying to download the 9.8.96 file from VisiLogic after and it still refused and wanted to do a firmware update. A .c57 file certainly does update the firmware. Also note that I am not creating the file from ladder, but rather directly from VisiLogic using Project/Create Project Files:...
  11. I've just discovered something interesting. Perhaps someone can explain it to me. Let's say, for example, that I have a PLC (say, a V570) that has the firmware associated with VisiLogic 9.4.0, then I take a project created in 9.8.96 and try to download that file (using 9.8.96) into the older PLC, it will properly refuse and tell me the firmware needs to be updated first. However, if I create a .v57 file from VisiLogic 9.8.96, place it on an SD card and load it into the PLC from INFO Mode, it will download and run just fine. Why?
  12. Okay, to answer your question, MI 812 has a Power-Up value of 1760. You can change the value by going online with VisiLogic or through INFO Mode and it will stay that way until the PLC is power cycled. If you change that power-up value in the VisiLogic software and download the change then try to overwrite all the operand values from a file, the operand values will revert to the (new) power-up value when the PLC is restarted.
  13. Yes, screen capture (alt-PrintScreen button), paste into Paint, crop, copy, paste into the forum. Quick and easy. From your post above, note that the Reset Numeric block is equivalent to Store 0 and takes up less space (see where I used it in the post above yours).
  14. Easy peasy: I also provided a way to re-enable the toggle button.
  15. Why did you need additional set and resets? The button, when set as Toggle type, will look pressed when the bit is on and you can change the text and color as desired. Regarding the MIs, I can't imagine why you need to use logic function blocks with bits, but it's simple enough to do the following (do this with each button):
  16. To use buttons, as in your original post, is simple. Take your original logic, change the first contact to a positive transition, and change each button to be a Toggle button. It will look like this:
  17. Frankly, I'm at a loss as to what you are trying to do. You don't need AND or OR functions with bits. Simply do this:
  18. I'm trying to figure out if this is something new or just something I failed to notice in the past. I am using VisiLogic 9.8.96 on a V700. When I have a List of Images element on the HMI screen and the image changes, the entire screen refreshes, not just the one element. This does not happen with a Binary Image element. This is very noticeable because it is a complex screen and it takes about a full second to refresh the screen - it's very visible and annoying.
  19. 1) Download 9.4.0. 2) Install 9.4.0 by right-clicking the executable and selecting "Run as administrator". 3) After installation, run VisiLogic "as administrator" (either right-click and selecting "Run as Administrator", as above, or set up the shortcut under the compatibility tab to always run as administrator). 4) Open your original project file in VisiLogic. 5) Make your modifications and save the file under a different name so you don't lose your original file. 6) Install the USB driver for your PC (done in VisiLogic in the Connection menu). 7) Connect mini-USB cable to the PLC. 8 ) Confirm communications in the connection menu. 9) Download program to the PLC. 10) Check your changes work as desired. If so, you can then download & burn, if so desired. You're done.
  20. Use a Positive Transition contact instead of Direct contact for MB 11, 12, & 13.
×
×
  • Create New...