Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About jvickers

  • Rank
  1. Thanks for your reply, but I think I may have mis-stated what I'm trying to do. Yes, multiplying by four (or rather in my case, dividing by four) would give me the conversion between what the operator enters and where I want the hole punched, but that's not what I'm having trouble with. I do like your idea of just placing a button for each location, though my screen isn't that big (V350 model). I'll try to make something like that work. I like something like this, though on my small screen I'll have to be careful that each button can easily be pressed. However, if I wanted to turn a keypad input into a certain bit being turned on, how would I do that? For instance, the user enters "12" and that turns the twelfth bit of a series to true. Knowing how to do this would save me a lot of time. Thanks!
  2. The machine I've built punches holes into long strips of sheet metal. The sheet metal is fed through the machine in 1/4" increments. The operator inputs the position of the holes into the PLC. For example, if the part needs a hole punched at 2", 3.5" and 6", the operator keys in the 8th, 14th, and 24th location (since each position is 1/4"). The PLC then keeps track of the number of increments the sheet metal has moved and activates the hole punch at the appropriate time. My problem is that I want to allow the operator to enter a large quantity of numbers, and the way I'm writing my ladder now would make that very messy. I am trying to figure out vectors or arrays for this, but I am new to visilogic and don't understand the best way to go about doing it. I assume this form of data entry is very common and there is probably a good way to go about doing it. Could anyone point me in the right direction? The way I am doing it now is I have an "Equal To" function block, and I compare the current position of the sheet metal to the entered value. If that's true, the hole gets punched. For example, if the metal is at position 10 (2.5") and the user had entered position 10, the hole gets punched. The problem with this is I have to write a separate function block for each user entered position. I apologize if this doesn't make sense. I have only taken a couple classes in PLC programming and we did not cover this.
  • Create New...