Jump to content

Flex727

MVP 2023
  • Posts

    3,263
  • Joined

  • Last visited

  • Days Won

    237

Everything posted by Flex727

  1. 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.
  2. Frankly, I don't see any other way to do this that wouldn't be overly complex. This is exactly what I'd do.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. Please understand that this is a moderated forum. Your posts will not show up immediately - please be patient. If your V350 will not power up (assuming you've correctly applied 24V power), please check the following pinned post:
  9. 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...
  10. You download them as a ".zip" file. Did you extract them first?
  11. I don't know the answer either, but I just checked and you do not get the compile warning on a V700 like you do with the other models.
  12. I've always wondered this too. I suspect the creators had something in mind that was a problem if it was set when it didn't need to be.
  13. There are example projects that came with your VisiLogic installation that will have the code you're looking for.
  14. 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.
  15. You need to do something like this: Keep in mind that I haven't inspected your function blocks to see if they're right, just added the logic for triggering the writes. The Set & Reset bits may not be necessary, but it's good practice when there are gating contacts between the trigger and the desired function.
  16. Check again with your readers on, Joe. We don't know what MB 69 is attached to, but it's probably the source of the problem.
  17. No, the .csv file format is purely text only. As far as I know, formatting text in a .csv file is not possible with any program. You can add any formatting you want when you bring the .csv file into a spreadsheet program.
  18. Gee, you would think I might have thought of that! Thanks, @sgull
  19. Anyone ever noticed the lovely eyeglasses column in the Linearization FB? What is the secret to getting that column populated when online with the PLC? If you're online, the FB can't be opened, and when the FB is open, you can't go online.
  20. Is there a reason you can't use an integer instead of REAL?
×
×
  • Create New...