-
Posts
3,325 -
Joined
-
Last visited
-
Days Won
241
Content Type
Profiles
Forums
Gallery
Events
Blogs
Downloads
Articles
Media Demo
Posts posted by Flex727
-
-
Okay, last thing. NEVER use a Direct coil in more than one ladder rung. This includes Timer coils. You have TD 0 coil in 6 different places in your program. Either use 6 different timers or place all your activating conditions into a single ladder rung with the TD 0 coil.
-
And one other thing, and this is mostly my personal preference - others may feel differently - but I don't like any conditional subroutine calls. This includes subroutine calls from the HMI Link & Jumps tab. There can occasionally be specific requirements for this, but in my opinion it is poor programming practice. It can have unforeseen consequences by leaving coils in an uncontrolled state.
And my final thought is that you are using Set & Reset coils everywhere. Yes, Set & Reset coils are often necessary, but see if you can program with Direct coils instead. It can sometimes take a little additional thought, but you have much less likelihood of something getting stuck unexpectedly. The way I do it is to work backward from output to input. Examine a coil and think about all the conditions that you want that coil energized, then put those all in a single ladder rung, using intermediaries as needed. Programming this way is cleaner to work with. Just my way of doing things - YMMV.
-
Two problems I see right away.
1) The Start-Up Display opens automatically. Do not call it with SB 2.
2) Do not do this where you have a Timer Coil & Contact in the same ladder rung:
Instead, do this:
-
You have your Socket initialized to Client (Master) - it should be Server (Slave). Your PC is the Master.
-
Just to reiterate what Ausman said, if there was a single piece of advice I could place at the top of the forum in giant flashing red letters it would be:
DO NOT PLACE MULTIPLE LOGIC NETWORKS IN A SINGLE LADDER RUNG!
The whole point of having ladder rungs is to separate out your logic networks.
That said, I did load your program into a V700 I have here in my office, and while I cannot attest to whether your logic is working as you expect it to, it did not create the "Fatal Error" you are seeing. You have a hardware or electrical noise issue causing your problem.
- 1
-
Pull your V200-18-E46B Snap-In module off and reseat it carefully and firmly.
-
Good information @Ausman!
-
28 minutes ago, Aivaras said:
Technical support send me fixed file few days ago and everything seems to be working just fine.
Those guys are pretty great. Glad you got your problem resolved!
-
44 minutes ago, Ausman said:
this comes down to personal preferences as to how to do things.
It's totally this. It helps you organize the subroutines into subcategories. I rarely use modules (other than the Main module, of course), but once a program gets extremely complex, grouping subroutines into modules can make program development and troubleshooting a bit easier. The PLC doesn't care.
- 1
-
5 minutes ago, Tech said:
i have attached my sample for 1st plc Tcp master
I took a quick look and it appears you're on the right track. I didn't look at all the details to see if there are any mistakes though.
- 1
-
There are sample programs that came with your VisiLogic installation. And there are specific examples for V700 MODBUS TCP Master and Slave. I recommend reviewing those example programs.
- 1
-
Sounds like you are just interested in data transfer between all the PLCs, not handshaking. There are many ways to do this. I normally use MODBUS TCP when transferring data between PLCs over Ethernet. You need to assign one or more PLCs as the MODBUS Master. There are multiple ways to do this as well, but one way that allows all 4 PLC programs to be nearly identical would be to make PLC 1 Master to PLC 2, PLC 2 Master to PLC 3, PLC 3 Master to PLC 4, and PLC 4 Master to PLC 1. This daisy chains all the data around to all the PLCs. The drawback is if one of the PLCs goes down, then the chain is broken. Another option is to Make PLC 1 the Master to PLCs 2-4. PLC 1 would collect all the data and distribute it to the other 3 PLCs.
- 1
-
11 hours ago, Joe Tauser said:
When I put a V700 on a project (which is my go-to model these days)
Mine also. I LOVE the V700. It has a nice modern look and feel with a wide-screen format and plenty of pixels to work with. The built-in Ethernet is a huge plus as well.
-
9 hours ago, Ausman said:
I hate anything to do with the Cloud
+1 from me as well. I don't hate it so much as I would never allow it to be my sole storage location. It's fine as a tertiary backup.
-
1 hour ago, hotwires said:
If you call it “easy” then I’m sold.
Easy for Joe may not be so easy for the rest of us.
-
53 minutes ago, JohnR said:
But that's the reason we're so anal about saving to multiple locations, lesson learned.
Yep, years ago in a different job I had a hard drive crash that resulted in many months of lost work. I vowed then that would never happen to me again.
-
You should have a Hide bit on the confirmation button which is Set at power up. Have logic when pressing the original button to Reset the Hide bit for the confirmation button. Pressing the confirmation button will then Set the Hide condition again.
-
45 minutes ago, Vprakatoor said:
so i wont know if it solved
The suggestion wasn't to solve your problem - it was to help isolate the location of the problem.
-
-
The first thing I would do is swap the two 402 modules and see if the problem moves.
-
5 hours ago, Isakovic said:
Did you ever lose any critical data?
The answer will not surprise you.
-
The V700 is 800x480, lower resolution in the vertical direction, but a much smaller size screen so it appears much sharper. My choice would be determined by how much screen real estate you need and whether the wide screen form factor of the V700 is more suitable to your application. Another consideration is that the V700 has a different Ethernet adapter and can accommodate 8 Ethernet Sockets simultaneously instead of only 4 for the V1210.
-
Unitronics does not play well with networked drives. Try copying locally first.
-
Ha! I didn't go into as much detail as you did, but that is exactly what I do. Every file name of mine ends in date plus dash number (today's would be 190320-1). And I always include both the VisiLogic version and filename in an obscure location on the HMI screen. Great minds think alike!
New Poster and programmer
in Vision & Samba PLC + HMI Controllers & VisiLogic Software
Posted
Unitronics includes example projects with your VisiLogic installation and they have a YouTube channel. Check those out. Also, browse this forum.