Jump to content

Flex727

MVP 2023
  • Posts

    3,276
  • Joined

  • Last visited

  • Days Won

    239

Posts posted by Flex727

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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 Board
     
    This 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 Plug
     
    These 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 Adapter
     
    This box fits the boost converter nicely so everything is neat and tidy:
    Hammond 1591MBK Black Flame Retardant ABS Plastic Project Box
     
    A 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

     

    post-408-0-16231800-1448414452_thumb.jpg

    • Upvote 1
  7. 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.

  8. 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?

×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.