r/PLC • • 7d ago

PLC Question Indexing Table

I want to work on a home project where I can use an indexing table to present different things to me every time I swipe my finger on a touch sensor. Before I start though, I wanted to get my hands on documentation of an example of something similar for the logic part. I’ve not had much luck from my search, does anyone have anything or pointers?

I plan to use automation direct productivity 2000 plc with a stepper motor

1 Upvotes

12 comments sorted by

13

u/kurieren 7d ago • Bravo

Simplify it until it makes sense to you, then add complications.

If I were starting from nothing:
Make the touch sensor turn on a bit
Make that bit one shot
Make that one shot increase a counter
Put bounds on that counter. Min<=counter<=Max
Make that counter value correlate to a position command on the indexing table

Have fun with it, it’s a home project, no one is breathing down your neck to get this done in a set amount of hours.

5

u/More_Analyst4983 7d ago

Check out ClearPath Servo Motors, or AMCI Stepper Motors (affodable)

For professional industrial use, you cannot get anything better for index tables than WEISS.

https://www.weiss-world.com/us-en/products/rotary-indexing-tables-44

2

u/LeifCarrotson 7d ago

Look up the Weiss cutaway mechanism: it achieves incredible precision and rigidity with cam followers on the table and a clever worm drive screw that's flat for a section of the travel. I bet you can 3D print that screw (for a little tabletop DIY project), use some ball bearings and shoulder bolts for the cam followers, and get way better performance than a stepper motor with no feedback. 

7

u/Shalomiehomie770 Codesys Guru 7d ago

I feel like this is overcomplicating it.

The fun part is figuring things out don’t piggy back off someone else

2

u/HiawathaBookClub 7d ago

That is the fun part, but, when you're just getting started (or me, for example) it's nice to have a little hand holding.

2

u/Wise-Parsnip5803 5d ago

If it's the same every time then you can keep it simple and use notches or bolt or hole in your index table. Finger swipe starts it moving and sensor detects the stop position. No plc needed if you wanted to do relay logic. 

2

u/GarryShortt 1d ago • Bravo

Adding to kurieren's outline — the two things that bite you with a stepper and no feedback:

  1. Home first. On power-up (and after any fault), rotate slowly until a home sensor (a prox or slot sensor on the table) turns on, then zero your position. Without it the PLC has no idea where position 1 is, and any missed step accumulates forever.
  2. Ignore swipes while moving. Treat it as a small state machine with a step number in a register:

    0 = Not homed → run homing, go to 1 when the home sensor is made

    1 = Idle → swipe one-shot? set target = position + 1 (wrap at N), go to 2

    2 = Moving → issue a relative move of (360/N) degrees in steps; go to 3 when the move-done bit comes back

    3 = Settle → short timer (100–200 ms), position = target, back to 1

    Any fault (move error, E-stop) → back to 0.

Swipes only count in state 1, so a double-tap can't queue up two moves.

Bonus check: put a small flag or magnet on each station and a sensor at the presentation point. If the move completes and that sensor isn't made, you lost steps — fault and re-home. Cheap insurance that tells you instantly if the motor is undersized or the acceleration is too aggressive.

On the Productivity 2000 you'll need a P2-HSO high-speed output module — a regular output card can't pulse a stepper fast enough. Productivity Suite then gives you the pieces for the state machine above: HOME (Find Home) for state 0, SMOV (Simple Move) for state 2, and both have In Progress and Complete flags you can wait on. SMOV wants the target in counts, so work out steps per station first: (motor steps/rev × microstepping × gear ratio) ÷ number of stations.

1

u/drbitboy 7d ago

I don't see how this is more complex than a bog standard Start/Stop Circuit pattern (a.k.a. motor starter, 3-wire control, self-holding, etc.), or perhaps its cousin the State Coil/Fault Coil pattern. The start or trigger condition is the swipe event; the stop or break condition is the index pulse when the table is at its next position. You might need to use edges as the various trigger, and debounce on the input signals.

1

u/ChopperpropAMX 7d ago

Automation Direct has pre made instruction sets inside the Productivity Suite that are tailored for their Sure Servo series.

1

u/Automatater 7d ago

More fun to design and build a Geneva cam.

1

u/PLCGoBrrr 7d ago

How hard is it to write down that you need to move X degrees every time an event happens?