Jump to content

Flex727

MVP 2023
  • Posts

    3,275
  • Joined

  • Last visited

  • Days Won

    239

Posts posted by Flex727

  1. Do you have a backup of the file you were working on? If not, try copying your file to a different location on your hard drive - a location with less subfolder nesting, then try opening it. If you are still getting the error and other projects open fine, then the problem is almost certainly with a corrupted project file, not a problem with your VisiLogic installation.

    When working with mission critical files, whether VisiLogic or other software, I always keep daily backups and multiple versions saved. I strongly recommend creating a system to mitigate this type of problem as file corruption can happen at any time and with any software.

  2. When you uninstall VisiLogic, make sure ALL the files from the previous VisiLogic installation are deleted (except project files, of course - move them elsewhere). Reboot the computer then install VisiLogic AS ADMINISTRATOR. Then when you run VisiLogic, make sure you run it AS ADMINISTRATOR (every time).

    If the problem still exists, then follow the instructions on the error message and contact Unitronics Support (Edit - I see you already did that).

  3. Yes, you can connect to two different PLCs without connecting/disconnecting manually. In the master, you just need two ladder rungs, each with a socket connect FB, making sure to have the correct IP addressing in each. Then you need two separate data exchange FBs, one for each PLC. It works best if you have a polling timer, rather than trying to execute the data exchange on every single PLC cycle. I usually use a 100ms timer. Also you need to initialize both sockets with the correct protocol and port number.

    Make sure the Port numbers match between the master and slave for each socket. Go through every FB you're using and make sure all the IP, port numbers, and socket numbers are correct - it's easy to miss a setting.

    By the way, when others mentioned connecting/disconnecting manually, they didn't mean anyone has to be physically present. It just meant performing a disconnect in the ladder logic to one PLC and then connecting to the other rather than simultaneously connecting to both. This is rarely done but is sometimes necessary when connecting to more than 4 PLCs since there is a physical limitation of 4 sockets with the Vision PLCs, except for the V700, which can have 8. The UniStream is basically unlimited.

  4. It seems to me that you could account for the reset of the PLC with the proper math at startup. SB 2 is handy to execute some instructions on the first PLC cycle only.

    Unitronics personnel often browse these boards, but I recommend emailing support@unitronics.com if you want to be sure you get some immediate help.

  5. Just a data point for you:

    I didn't have a Samba readily available so I downloaded into a V700. My scan time is less than 1ms. You are correct that there is some variation exhibited with MI 19 & MI 21. I am seeing MI 19 sitting at 4 with no variation and MI 21 is ranging from -3 to 4. MI 19 seems stable and MI 21 seems to jump suddenly to a new value after sitting at a value for some length of time.

    Based on your code, I would expect MI 19 to be 0-9 (depending on where the RTC is at power up), and indeed I see it at a rock solid value that is different each time I reset the PLC. I would have to give some thought to MI 21 to understand why it seems to be jumpy.

    By the way, I deleted the Store to SI 0 before testing on my V700.

  6. I've never had to deal with the kind of clock accuracy you're needing here so this is interesting. I can't imagine that SB 15 would be based on anything but the RTC, so in theory they should be exactly the same. However, I would ask what is your Scan Time (SI 0)? You must keep in mind that the PLC communicates with the outside world only once per PLC scan. A lot can happen during that scan. You might be able to overcome this to some extent by using interrupts and immediate reads and writes.

    Also, in my experience, the built-in PLC clock is not usually an extremely accurate clock. They drift pretty rapidly.

×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.