Jump to content

Flex727

MVP 2023
  • Posts

    3,271
  • Joined

  • Last visited

  • Days Won

    238

Posts posted by Flex727

  1. 9 minutes ago, MeriCummins said:

    2) Will my recently downloaded version of Visilogic (9.8.95 bld 0) open the old project, allow me to edit, recompile and download it in to the PLC as-is without issue? It appears as though this should be no problem once I register. 

    Yes, but you will have to update the firmware on the PLC first. It's not difficult.

     

    10 minutes ago, MeriCummins said:

    3) Registration says is required to up/down load use remote access etc. Do I need to be connected to the PLC when registering or is the registration strictly to the PC?

    Registration is for the PC.

    10 minutes ago, MeriCummins said:

    4) Since it appears as though the option to "burn" project was not selected when created-what is the reason one would not want to "burn" is burning just flashing a PROM on the PLC with the PLC program to be able to extract etc straight from the PLC via SD or otherwise? I would think that I will WANT to select the option to burn when I upload the revised PLC program.

    Burn Upload Project allows anyone to upload the VLP file from the PLC. Most do not do that to protect intellectual property rights.

     

    11 minutes ago, MeriCummins said:

    5) Are there any common pitfalls to avoid bricking the PLC?  I have seen a couple forum messages and that is my biggest fear in trying to remedy a minor issue and losing complete function on this machine and not having any support.

    It's almost impossible to brick these PLCs.

    That said, here is what I recommend:

    Download VisiLogic version 7.0.1 from the Unitronics website, or request it from Unitronics Support. Uninstall your version and install that (alternatively, install Version Swapper and download the Swapper version from the website and use 7.0.1 by swapping to it - that will allow you to use 7.0.1 without uninstalling 9.8.65. Then make your updates and download the update to your PLC.

    It's not likely you will have a problem by using 9.8.95 and upgrading the firmware, but there is always a risk of some incompatibility when undertaking that.

    • Like 1
  2. I'm pretty proud of this one. This routine will run one of 20 recipes, each recipe can have up to 20 steps, and each step has 4 elements. The entire routine requires 13 ladder rungs - the operator merely selects the recipe and presses the run button.

    It may not look like it, but it's actually a State Machine.

    image.thumb.png.f64c49ce2896366ab9065b374c4e29f8.png

    • Thanks 1
  3. 13 hours ago, Joe Tauser said:

    Us old dogs have our feet firmly planted in ladder programming. 

    Yes, I really wanted the guy to ask more ladder logic questions.

    Yes, ChatGPT is actually really amazing, but real AI it's not. I'm looking forward to future iterations.

  4. This forum does not contain a "Support Team". It is a user forum staffed by volunteer users, though a few Unitronics employees make an appearance from time-to-time. Unitronics support can be reached at support@unitronics.com. For a hardware issue under warranty you might also consider contacting your distributor for return or replacement.

    Regarding your question, I haven't encountered that particular issue before but perhaps someone here has. Good luck.

  5. Here is how I would do the part you are uncertain of:

    image.thumb.png.abb4c05b5b9e52da08aeae7dbf4885a7.png

    You don't have to use vector functions - you can just use a series of compares - but this is easy and concise. You also don't have to group the elements in rung 3 the way I did with SB 1. I just like to group similar items in that way to save space and make for easier readability.

  6. 51 minutes ago, MAL said:

    That is dead code.  That rung is only applicable to the v700.  Its essentially a comment for this use.

    Right-clicking and selecting "Disable" is normally how a ladder rung is turned off, but there are some elements that VisiLogic won't allow to be in a disabled rung. Sometimes I want to disable a rung with those types of elements for some testing or troubleshooting and never thought of doing this <insert headslap emoji>. Thanks for the tip, MAL!

    • Like 1
  7. Hopefully you're aware of the vast differences between the way Ethernet works on a V700 vs a V1210.

    Why is Socket 3 the only available socket? Have you confirmed that you have not duplicated port numbers on any of the sockets?

    Are the PLC and server on the same subnet?

    What communications protocol are you using?

    Have you set up the connect logic properly? Can you post your program here for us to take a look?

  8. 1 hour ago, Joe Tauser said:

    By also assigning port 502 to socket 3  without manually assigning something else to socket 2 we left the PLC in a position where it didn't know whether to shit or go blind.

    Unitronics support always recommends initializing all 4 sockets at power-up even if only 1 or 2 are going to be used. This helps focus your attention on making sure there is no duplicate assignment. Do I do that? Rarely, but having all 4 default socket assignments memorized helps avoid the screwups.

  9. I don't see anything wrong here. Are you able to connect to the PLC from a PC? Are you able to connect to your peripheral from a PC? Have you double-checked all IP addresses and port numbers? I see that you are using port 502 in the PLC and the peripheral. Nothing wrong with that, but just checking. Are you sure the peripheral is set up to be a MODBUS slave on port 502?

    I see in the comment that the slave ID MUST be 255. In my experience I haven't found that to make a difference, but you have ID 254.

    What happens when you try to connect? When you're online does SB 150 come on, even briefly? Does MB 0 come on briefly? Does MB 4 immediately reset?

    Just this morning I was fighting with a PLC that wouldn't connect with MODBUS. I was ready to pull my hair out until I replaced the Ethernet cable. The cable was relatively new and was just recently working. Make sure you troubleshoot the ENTIRE connection, including cables, hub, etc. If you're not using a hub, are you using a crossover cable or adapter?

  10. 27 minutes ago, Jreese37 said:

    This line in the comments says "Below, both Ethernet card initialization and MODBUS Configuration are done as Power-up tasks.
    Note that Socket 2 must be initialized, via the Socket Init FB, to function as a TCP Master. Network ID number MUST be 255!"

    I noticed that it is set to socket 3 in the demo file, and also set to client, along with the MODBUS IP CONFIG function block socket is set to 3. I had seen in some prior documentation that some were using different socket numbers there in the initialization rung. I was highly confused about how that could ever possibly work?

    Sockets are just defined pathways to specific ports. You can use any of the 4 sockets interchangeably as long as you have initialized them correctly and don't have 2 with identical settings. Each of the 4 sockets have a default initialization, but can be changed at any time (normally at start-up) with a socket initialization function block. The fact that the rung comment and the following ladder rung don't match is just a typo in the comment. Of course, the socket number must match in the initialization FB, MODBUS configuration FB, TCP connect FB, and the  MODBUS read or write FB.

     

    33 minutes ago, Jreese37 said:

    I'm a bit confused as to how the hex conversion in Visilogic works, if I enter a 3 into the Start of vector box, and set to hex, it doesn't appear to be giving me the actual value for 3(0x0003.) Although I don't suspect this matters whether I enter it there as hex or decimal?

    I'm not sure what you're expecting here, 3 is the same in both hex and decimal. Enter a number greater than 9 if you want to see a conversion.

×
×
  • Create New...