-
Posts
3,271 -
Joined
-
Last visited
-
Days Won
238
Content Type
Profiles
Forums
Gallery
Events
Blogs
Downloads
Articles
Media Demo
Posts posted by Flex727
-
-
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.
-
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.
-
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.
-
1 hour ago, Fernando Castro said:
Ok, I forgive you...
😂
1 hour ago, Fernando Castro said:I do like to use subroutines a lot but it always gets tricky if you want to use conditional executions
Totally agree here as well. I make it a practice to NEVER use conditional subroutine calls (or returns).
-
2 hours ago, Fernando Castro said:
however, It would be nice to be able to preserve previous retained memory values without doing all the hassle.
You can quickly and easily store operands to the SD card or download them through VisLogic.
-
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.
-
1
-
-
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.
-
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.
-
10 minutes ago, LeonMötter said:
For the moment i dont see any problems with the setup, but before i start writing the program i thought i might be smart to ask around here for other opinions. maybe there is a smarter way to do this?
Frankly, I don't see any other way to do this that wouldn't be overly complex. This is exactly what I'd do.
-
6 minutes ago, PeterPan217 said:
I should instead separate out my coils into three rungs and in one rung list all of the contacts that can energize each?
Yes!
-
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.
-
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.
-
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.
-
28 minutes ago, wjm said:
I'm looking for is the modbus register table
Search Slave Addressing in the help file.
-
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.
-
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.
-
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:
-
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...
-
3 hours ago, Raul95 said:
I did downloaded the examples projects but it won't let me open them, as it comes up with an error ''read only''.
You download them as a ".zip" file. Did you extract them first?
-
11 hours ago, Fernando Castro said:
Speaking of that, this is one of those bits that does not work for v700 right?
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.
-
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.
-
21 minutes ago, TheSwoosh101 said:
Could you send the final file of that code?
There are example projects that came with your VisiLogic installation that will have the code you're looking for.
-
-
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.
-
1
-
Unitronics download manager, and PLC download process best practices
in Vision & Samba PLC + HMI Controllers & VisiLogic Software
Posted
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.