Jump to content

Flex727

MVP 2023
  • Posts

    3,271
  • Joined

  • Last visited

  • Days Won

    238

Posts posted by Flex727

  1. 11 hours ago, Fernando Castro said:

    Info mode could do the trick  just create a backup before download and restore after download, but guess what?... Is not supported with remote operator!!!!!

    You can easily create any kind of backup to SD in ladder, including Operand. Just add that and you can initiate the backup from Remote Operator.

  2. 6 hours ago, Fernando Castro said:

    after a new download if the main code is way too different from the original it seems that some operands are overridden with random values.

    You seem to be demonstrating this well, but I'm amazed - I've never had this happen with the hundreds (thousands?) of downloads I've performed, both in the field and on my test bench. This is potentially a big problem that perhaps should be addressed by Unitronics Support.

  3. 2 minutes ago, Fernando Castro said:

    the main problem is that after a new download if the main code is way too different from the original it seems that some operands are overridden with random values

    Or does the new program have the operands moved about? The retained memory will not know if the operand is at a different address with the new program.

  4. My guess is that Vic's V570 is set up to communicate via MODBUS over UDP and he doesn't want to (or can't) modify the V570 program to change the socket protocol. Therefore he needs the UniStream PLC to communicate with the V570 using UDP.

  5. 15 minutes ago, kratmel said:

    Having a training class with Vision PLCs, I have another problem - each subsequent student downloads his program and receives a gift in the form of operands from the previous user. Then he tries for a long time to understand why the program does not work.

    Make it a practice to have them download a blank project and perform Initialize & Reset when starting up with a new PLC. This will also prevent what happens to me occasionally on my test bench where I do my program development. These PLCs will get hundreds of downloads for each project and eventually something in memory gets corrupted. A blank program download fixes that.

    • Thanks 1
  6. 2 hours ago, Fernando Castro said:

    NO NO, set reset must also be one of each if you want to be able to debug easily and go to bed early in the future.

    This is totally true, but my reference was to functionality. You absolutely cannot have duplicate direct coils and have them function properly, but you can have as many SET & RESETs as you would like and the program will function as intended.

    Personally, I do try and have single instances of any coil, but I occasionally will have multiple instances of SET & RESET when the logic calls for them to be in different subroutines. This is precisely for the reason you cite - to make it easier to debug and for future understanding of the logic.

  7. On 8/29/2022 at 5:42 PM, Raul95 said:

    In unilogic software I can not see any of them tools, could you please tell me which tool I should be using instead ?

    Actually, you can linearize right in the analog I/O setup. No need for the Linearization function block. The analog output will be 0-10V, so just enter 0 for 0V and 2x the speed for 5V for the 10V entry.

  8. 14 hours ago, Raul95 said:

    Is it possible to simulate the program without connecting it physically to the plc ?

    No it's not. However, you'll find that purchasing a PLC to use for this purpose likely will be cheaper than the software simulator that you might buy from other PLC manufacturers. You do NOT need to purchase any I/O, as the PLC is designed to run in simulator mode without any I/O attached.

  9. 15 hours ago, PeterPan217 said:

    So I can't have the coils reset by logic in the program AND have the option to reset by a push button?

    Sure you can. Just make sure there aren't any duplicate coils. Place all the logic for a single coil in a single rung, including the ladder logic to activate the coil and the contact for the button. If you need to use SET and RESET instead of Direct Coils, you can have as many of those as you need.

  10. 1 hour ago, PeterPan217 said:

    However, now I'm struggling to get accumulating timers to reset with an HMI button.

    You have many duplicate coils in your program. That is a big no-no. With regular coils it results in "last one wins". With timer coils, it causes them to run at double speed (or not at all). Run "Project Optimizer" under the Build menu to help find them all. My best advice is to stop using conditional subroutines and write your logic so it's not needed - and NEVER have duplicate coils under any circumstance (duplicate SET & RESET coils are perfectly fine).

    You still have multiple logic threads in a single ladder rung (Main Routine rung 1).

    With Unitronics there is no need to place coils all the way to the right side of the ladder. Nothing wrong with it if that's what you want to do, but it makes the ladder difficult to read on a small screen.

     

  11. 48 minutes ago, PeterPan217 said:

    I've been online and everything does it's red highlighting

    Keep in mind that the online indication is not necessarily doing what you might think. All VisiLogic is doing is querying the PLC for the state of each operand and indicating that on screen. It does not do any logic. Therefore, if a subroutine is not being called, it will still look like it is because the operands exist in the PLC and have a state that is displayed.

    You are welcome to post your program here and we'll try to help.

  12. First of all, are you certain the subroutine is being called in the Main Routine? Have you gone online to see what happens?

    I've been programming PLCs for many years and have never tried to use a conditional RET. It seems to me to be very poor programming practice. I see in VisiLogic Help that it is allowed, though I recommend against it. Just my opinion, but I consider conditional subroutine Calls and Returns to be avoided if at all possible. It makes the program much easier to understand and troubleshoot and avoids zombie coils.

    Additionally, though this is not related to your problem, you have two logic threads in each of Rungs 4 & 5. Don't do that. Separate them out into two rungs each.

  13. 51 minutes ago, Raul95 said:

    The files which I downloaded are ''.ulpr''. But they seem to be ''read only''

    Yes, the .ulpr files are contained within a .zip file. They must be extracted before UniLogic can open them. In Windows Explorer, right-click and select Extract...

  14. 1 hour ago, Gargamel said:

    Are you telling me, there is NO way to collect cpu and ram/memory usage from the project or live from the cpu?

    Keep in mind that the moderators and participants on this forum are volunteers most of whom do not work for Unitronics. There are a lot of experienced users here, but we don't know everything about the product. I recommend that if an important question goes unanswered here, contact Unitronics directly at support@unitronics.com. In my experience they are very responsive and will usually get back to you quickly.

    • Like 1
×
×
  • Create New...