Jump to content


MVP 2017
  • Posts

  • Joined

  • Last visited

  • Days Won


Flex727 last won the day on June 15

Flex727 had the most liked content!


About Flex727

Profile Information

  • Gender

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Flex727's Achievements


UniGuru (4/4)



  1. What I do is place the image on the HMI screen in VisiLogic, do a screen print to copy the screen, paste it into Paint, crop as needed, then rotate and save as .bmp. This eliminates the watermark. Make sure you have a pixel available in the upper left corner if you want a transparent image. This sounds a bit tedious, but once you've done it a few times it's quick and easy. You can quickly build your own library to use. Also, be sure your HMI display is not expanded size before the screen print.
  2. Review the Installation Guide for your PLC: https://www.unitronicsplc.com/wp-content/uploads/2015/12/SMXX-J-T20_R20_DOC17015-A4_02-15.pdf
  3. Don't feel bad, I once asked how to show elapsed time instead of remaining time on a timer in VisiLogic. It's always the little things that get you.
  4. I didn't have time to go through your programs in enough detail to know that there aren't other problems. If after fixing the above it still doesn't work properly, re-post your programs and we'll take another look.
  5. Being one of those programmers with plenty of operator errors under my belt, I just have to know what this one was.
  6. In my opinion, no. It's a good opportunity to explain that a PLC is always the best simulator and is usually cheaper than software simulators for other manufacturers.
  7. Just looking at your Haustechnik.vlp file, you need SB 2 in front of your MODBUS Configuration block in ladder rung 12 of the Main Routine. You are currently initializing your MODBUS Configuration on every scan which can interfere with communication. Your TCP/IP Connect and MODBUS R/W functions appear to be trying to work on a single scan. You can't do that. You do not need to disconnect after every R/W. Just connect then leave it connected, then perform your R/W function whenever you want, but no more often than about every 50-100ms. If you insist on connecting and disconnecting for every R/W (very much NOT advised), then make sure you allow TIME for all that to occur - Ethernet connect and disconnect can be SLOW. For your Connect function, Set a bit at the end of your MODBUS Config, then use that bit (direct contact, not a transition) to Connect. At the end of the Connect thread, Reset the bit. Once the Socket is connected, you can communicate at will. There is no reason to scatter your communication functions all over your program. Place your Configs and Connects in the Main Routine near the top with the SB 2 stuff. Your R/W function can be elsewhere as needed. This helps with troubleshooting. In the slave program I would also place the SCAN_EX in the Main Routine near the top. None of this prevents the program from working, but it is best practice. Also PLEASE stop putting multiple logic threads in a single ladder rung. For example, in rung 10 you have 4 separate subroutine calls in the ladder rung. That should be 4 separate rungs. Same thing in rung 12. That subroutine call should be in a separate rung. Another example, BMA Routine rung 1 you have 3 logic threads in a single rung. Yes, this often works, and no you don't get a compile error, but it is extremely poor programming practice and can cause unfortunate logic bugs due to the compile being different than what you expect.
  8. When you're entering text do a shift-enter for a line break.
  9. I use this function all the time between two Unitronics PLCs and have never had any trouble. I don't think it's possible to troubleshoot based on the information you've provided. Can you post your program? If not, I recommend that you review all the Ethernet and MODBUS configurations in both PLCs with a careful eye. All it takes is one little mistake to keep it from working properly.
  10. The built-in alarms are configurable but the screens cannot be edited directly. I build my own screens and alarms routines so that I have full control over what is presented to the user.
  11. Just go to the Help file and select Alarms. There's plenty of information there. If you have specific questions, just ask and we'll try to help.
  12. Thank you, @Joe Tauser, for making the rest of us idiots feel just a little bit better about ourselves.
  13. Well, I learned something today. Thanks @sgull!
  • Create New...