-
Posts
3,276 -
Joined
-
Last visited
-
Days Won
239
Content Type
Profiles
Forums
Gallery
Events
Blogs
Downloads
Articles
Media Demo
Posts posted by Flex727
-
-
Are you starting at 7000 hex (28672 in decimal) for ML0?
-
Did you re-test the bad PLC immediately after you successfully connected with a new one?
-
Then you will need 24 volts. If a 24 volt battery is not available or practical, buy or build a DC voltage booster.
-
I'm sure someone from Unitronics will come along and answer this definitively, but the rule of thumb I use is most of the PLCs will run on any voltage between about 10 and 26 (the spec says 12/24), unless they have I/O. Any I/O needs 24 volts. The V130-33-B1 will happily run on 12V, but all the other V130 models need 24V since they have onboard I/O.
-
I cobbled together some ladder code that shows what I do to connect to 2 devices using a single socket. This is just thrown together and hasn't been tested so there might be a typo or goof here or there, but it shows the basic algorithm.
-
1
-
-
I checked my code and see that I mis-remembered the timing. I allow 300ms for the complete cycle of a single PLC connection, communication, & close. I check for socket connection and wait 100ms for data communications to complete then perform socket close. When the self-resetting 300ms timer triggers I start the next cycle.
I also use a bit which is toggled so I keep track of which PLC is currently connected.
-
I do this all the time due to the 4 socket limitation of the Vision products. Simply use indirect addressing for the IP (use can use the same port number if you wish), as you are doing. You also must re-initialize the configuration block with the new IP and re-connect the socket. Perform your data communications and after a short period of time, close the socket and repeat with the other PLC IP address. I use about 300ms timing between data communications and allow an additional 100ms for the close socket to complete.
-
If losing the program currently in the PLC is not a big problem, then remove power to the PLC, remove the battery, wait at least two hours, then replace the battery and power up again. If the screen remains blank, try the suggestions above again. If you can communicate with the PLC from your computer, then check the value of SI 9.
-
Joe Tauser is the expert on this, but waaay back when I was programming computers with old fashioned languages that used line numbers, I would always number by tens for the precise reason you state - I would always later find the need to insert additional steps and re-numbering can be a pain. With PLCs, if the algorithm is relatively simple and properly planned out, there isn't as much need to insert steps, so I usually number by ones and use the increment function. If it were a very complex situation I would definitely number by tens and use the store direct or addition function to increase the step number by 10.
What I usually do is create a coil for each step number, such as: when MIx = 10, then coil MBx is ON, then precede each step with that coil as an activator (or gate). This allows multiple ladder rungs for each step in the state machine and a clear understanding of what is happening in the program. At the end of the series of steps, a condition must be satisfied to index the state machine.
-
My iPhone turned the picture upside-down, but I think you can still see what's going on.
-
I'm sure everyone has a portable 24v power supply they use to power up Unitronics PLCs when out in the field. But how many times do you find yourself without a handy 110v power outlet? Wouldn't it be nice if you could power your PLC off the USB socket on your laptop, or even a USB battery? Here is what I put together:This steps up the 5v from USB to 24v for the PLC:DROK® LTC1871 3.5V-30V DC Boost Converter Power Transformer Voltage Regulator 5V/12V Step Up Volt Module Power Supply BoardThis cable has a USB plug on one end and a barrel plug on the other:StarTech.com 2m USB to Type M Barrel Cable - USB to 5.5mm 5V DC Cable - USB to Barrel Jack 5V DC PlugThese are to provide barrel plugs and jacks for connecting everything together with a bit of simple wiring:E-outstanding 5 Pair DC Power Jack (5 x Male and 5 x Female) 5.5mm x 2.1mm CCTV Power Jack AdapterThis box fits the boost converter nicely so everything is neat and tidy:Hammond 1591MBK Black Flame Retardant ABS Plastic Project BoxA cheap 10,000 mAh rechargeable USB battery will run a V570 for about 4 hours. This is usually plenty of time for field work, but larger USB batteries are readily available and are not much more expensive. I'm using this one:Anker PowerCore+ 10050
-
1
-
-
Thank you, Alexander!
-
Is there any way to determine if the program in a NON-enhanced Vision PLC (V120) matches the VisiLogic file without forcing it to match by downloading? In an enhanced Vision product VisiLogic will abort the download if they match, but this doesn't happen with a V120.
-
I should have some time shortly to help you with this. I recommend, however, sending your question to support@unitronics.com. They are very helpful and may be able to get you on the road without costing you anything.
-
By the way, this is not a problem with VisiLogic or Unitronics, this problem occurs with any computer system that operates in binary. The conversion of fractional numbers between binary and decimal cannot always be exact without an infinite number of digits.
-
Certain inputs can configured as High-Speed Counters that will count and/or measure frequency. Check the Help file and examples included with VisiLogic for more detail.
-
Maybe you need to use the high-speed counter input?
-
I have reproduced the same piece of ladder in an empty file and alone it works fine.
This says you have duplicate coils somewhere on your project. As Alexander says above, the last instance of a coil overrides previous instances. Right-click on the label box of the coil that is not behaving as expected and select "Find...". Check each instance of the coil that shows up in the search results box at the bottom of the screen.
-
What type of communications are you planning between the PLC and the PC?
-
Thanks, Ausman. Unfortunately, there's no way to know if the printout is the last version, but I suspect it is since printing out the code takes so much time and produces so many pages. I should have the new V120 in my hands in a few days and I'll test the code out.
-
Oh, I'm definitely breaking them out. The question is: will the PLC logically function differently after the multiple threads are broken out? I'm re-creating something that originally worked and all I have is a printout of the ladder.
This is for a V120, by the way. I'm not sure when the code was written, but the date of the printout is 2004.
-
I have the unfortunate task of re-creating and updating a project written by someone else some time ago and all I have is a printout of the ladder logic. The problem with this is that the original programmer did not seem to understand that you should not have two or more separate logic threads within a single ladder rung (i.e. multiple unconnected terminations on both the left and right sides of the ladder). I haven't ever done this and I'm wondering if VisiLogic compiles the program correctly when this mistake is made. In other words, I am separating out the logic properly - should I expect the compiled program to operate exactly the same?
-
Thank you!
-
I haven't used it, but you might experiment with SB37. Alternatively, you could create your own FIFO stack using SI251 or SI252.
V700 Starting
in Vision & Samba PLC + HMI Controllers & VisiLogic Software
Posted
Yes you can do that. Socket 1 will default to Port 20256 for PLC-PC communications. If you initialize Socket 1 to a different port, then you will need to initialize one of the other sockets to port 20256. Be sure you also use the PLC Name function block to give the PLC a useful name for communications from your PC.