Jump to content

Flex727

MVP 2023
  • Posts

    3,301
  • Joined

  • Last visited

  • Days Won

    240

Posts posted by Flex727

  1. 1 hour ago, Flex727 said:

    I find that far too many programmers fail to understand what this is or how to do it. Is it a failure of mathematics education, or something else?

    Anyone who has ever used a slide rule understands all of this intuitively, but I don't think anyone younger than 50 (60?) ever has. With a slide rule, you do all computations without regard to decimal location and just keep track of it mentally. At the end you add up the decimal places in your head and write it down accordingly. That said, I certainly wouldn't trade my calculator for a slide rule today. :)

    • Like 1
  2. 13 minutes ago, Joe Tauser said:

    Don't use floats unless you really, really need them.

    This cannot be emphasized strongly enough. And when do you need them? Never. Okay, it's not never, but it might as well be. If a sensor or other device will only output a float (stupidly, in my opinion), or if there was some unique situation where you cannot know in advance the precision of a number being worked with (can't imagine how, but if so it would require a float). Any other reason? I can't think of any.

    13 minutes ago, Joe Tauser said:

    use an MI or an ML with a virtual decimal place.

    I find that far too many programmers fail to understand what this is or how to do it. Is it a failure of mathematics education, or something else?

  3. 40 minutes ago, sgull said:

    I think if you select project in the top left corner of VISILOGIC.

    Then select properties.

    Under the Colors tab, I think it might be "marking view color" that you change to the same background color.

    I believe this changes the default for newly created HMI screens. To change the "marking view" color for an element already present on the screen (or rather for screens already in existence - it's an individual HMI screen property, not an element property), you must right click on the HMI screen in question (in a blank location) in the project and change the property there. I haven't tested this, but if it IS the "marking view" that you're seeing, then this should fix it after downloading the project to the PLC. I have used the "marking view" for other purposes but never thought this is also what we're seeing on the screen after entering data for a numeric element - please let us know.

  4. 19 hours ago, Ausman said:

    Flex, you could always use your many installs of Version Swapper to look at what changes.  Do some saves of the same file under different editions and then peek using the likes of Notepad+.

    Something obvious and tiny might show up.  Or it might be a totally different way of assembling the file which will completely klang the idea! 

    Great suggestion. When I have some time I'll try it.

  5. 16 hours ago, Ausman said:

    I do this frequently on the forum's user projects as I am still sticking with just 8.65 and many of the submitted projects are done in later versions.

    I sure wish Unitronics Support would reveal their super secret way of rolling back the version on a VisiLogic project.

  6. Yes, first make sure the SD card is properly formatted using Unitronics SD Card Suite.

    In VisiLogic go to Project / Create Project Files... select VisiLogic Project only (that's the default), then copy the resulting file to the folder on the SD card called USER_APP. Then go into INFO Mode to download the project to the PLC.

    You didn't mention which model PLC you are using - I'm not 100% sure this works on every model PLC.

  7. 9 hours ago, newbie88 said:

    Something I realized that only socket0 & socket2 have something to do with Modbus however socket2 seem only allow slave connection and only socket0 can be used as master client. Correct me if i'm wrong.

    No this is not correct. Those are only the DEFAULT configurations. You can use any of the 4 sockets configured in any way you choose - they are completely interchangeable. You just have to make sure you don't initialize 2 or more sockets to the same configuration and port number.

  8. The way I troubleshoot this sort of problem is to save the program under a different file name, then delete all the code for the connection that works, then try the other connection to see if it works, and if not, troubleshoot that independently. Compare the part that worked with the part that doesn't work, VERY CAREFULLY. Once you get that working, add back in the code for the other device.

    That said, you will get your best help if you post your program file here for us to look at it. Just pictures doesn't help as much.

  9. How are you downloading (serial, ethernet, etc)? And what speed is the download? When you say "very slow", how long is it?

    Normally, you only have to download the images once. If you're seeing the images download multiple times even when you have not changed anything on the screen, try downloading a BLANK project, perform a RESET & INITIALIZE, then download your project.

×
×
  • Create New...

Important Information

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