Troubleshooting
Why a pick-and-place rung needs sequence state, not one condition
Short answer
A rung that combines case detected AND conveyor running drives Robot Ready, Robot Pick and Robot Place on in the same scan, because a PLC re-evaluates the condition every pass. Split the transfer into stored steps that advance on robot acknowledgment and gripper or part-present feedback, hold each request until the robot accepts it, and prove the case with a sensor that detects the case material.
On this page
- Why do Robot Ready, Robot Pick and Robot Place come on together?
- What does the scan cycle do to a one-condition sequence?
- How do I split the transfer into stored sequence steps?
- How long must a robot request stay on?
- Which input proves the gripper holds the case?
- Can an inductive proximity sensor detect a cardboard case?
- Which SLC 500 addresses do the case and robot signals use?
- How do I test the sequence before the robot moves?
- Questions asked
Three robot outputs driven by one pair of conditions is the fault to find first: case detected AND conveyor running is a permissive, and a permissive drives every output wired to it, in the same scan. A pick-and-place transfer is a sequence — pick, confirm, place, confirm — and a sequence needs stored state that advances on feedback, not a present-tense condition repeated three times. This article takes a proposed SLC 500 program of exactly that shape, shows why Robot Ready, Robot Pick and Robot Place rise together, then rebuilds it as step logic with a robot handshake, gripper proof and a sensor that can actually see a fibreboard case.
Why do Robot Ready, Robot Pick and Robot Place come on together? #
All three outputs come on together because they are wired to the same pair of conditions, and a PLC output is nothing more than the present value of the Boolean expression on its rung: one permissive, three outputs, one scan, three truths. The proposed program puts Case Detected on input 1 and Conveyor Running on input 2, then drives Robot Ready on output 1, Robot Pick on output 2 and Robot Place on output 3 from that one pair.
Nothing in that wiring records that a pick was requested, that the robot accepted it, or that the case left the belt, so all three outputs follow the permissive up and follow it back down together. The word that joins two conditions on a rung means at the same time, never afterward. Sharing one rung among several outputs is legitimate ladder — the page on SLC 500 multiple outputs on one ladder rung covers the mechanics — but outputs that share a rung rise and fall together, which is exactly what a sequence must not do. Check the command logic first: changing conveyor speed, replacing the case sensor or moving the program to another runtime will not create the missing sequence state.
What each symptom tells you, and the first check it earns:
- All three robot outputs rise in one scan — one permissive drives three actions with no sequence state — so separate requests from permissives and give each action its own step.
- A second transfer arms while the case sensor is still covered — a maintained detection is being read as a fresh request — so consume each case's eligibility on pick confirmed and require the input to clear before idle rearms.
- A request output is on but the robot does not move — the robot never accepted the request, or expects a different handshake — so hold the request until an acknowledgment input returns and read the robot interface document for the exchange.
- The robot picks while the case has drifted — conveyor-running feedback is serving as proof of pickup position — so prove the case position with the stop-and-detect or tracking arrangement, not with the run permissive.
- The case-present input stays off with a case in front of the sensor — the sensing method does not match the case material, or wiring and polarity are wrong — so check the sensor type against the case material first, then trace the terminal.
What does the scan cycle do to a one-condition sequence? #
The scan re-evaluates every rung on every pass, so a condition that is true for 200 ms is a 200 ms request rather than a remembered one, and any output left at the mercy of a present-tense condition falls the moment the condition does. Between the input scan and the output scan, the logic pass recomputes every rung from the current input image, in the order what the PLC scan cycle does in each pass walks through pass by pass. The moment the robot lifts the case off the sensor, the case-detected condition goes false, and every output that depended on it drops with it.
A request that exists only while its condition holds is a pulse whose length the machine traffic decides, not a command a robot can be counted on to catch. Sequence progress therefore has to live in memory the program writes itself: a step number, or sealed bits that hold until the program clears them, never the instantaneous value of a field input.
How do I split the transfer into stored sequence steps? #
Give the transfer a step register and advance it one number at a time — idle, case eligible, pick requested, pick confirmed, place requested, place confirmed — so each number turns on exactly one request output and accepts exactly one feedback condition as its exit. Write each transition as its own rung:
- Idle to case eligible: the case-present input turns on through a rising-edge contact with the conveyor stopped at the pickup position or the robot tracking engaged — one case, one armed request.
- Case eligible to pick requested: the pick request output turns on and seals itself in.
- Pick requested to pick confirmed: the robot acknowledgment input comes true; the seal breaks, the request drops, the step advances.
- Pick confirmed to place requested: gripper closed and part present are true together.
- Place requested to place confirmed: the robot done acknowledgment returns; clear the part-present memory and return to idle.
Only one step is ever active, which is the same discipline as PLC motor interlock logic for three one-at-a-time motors: the interlock pattern keeps three motors from running together, and the step register keeps three actions from being requested together. Consume each case's eligibility when the pick is confirmed and require the case-present input to clear before idle arms again, or the second case of a train inherits the first case's request.
How long must a robot request stay on? #
Hold the request until the robot returns its acknowledgment rather than for a fixed time, because an output pulse shorter than the robot's input poll period can fall entirely between two polls, leaving the robot blind to a request the PLC believes it sent.
Worked example, with illustrative figures chosen for the arithmetic rather than quoted from any device: a 10 ms PLC scan, a robot controller that samples its handshake inputs every 50 ms, and an acknowledgment that returns 40 ms after the robot acts. A one-scan request pulse lasts 10 ms, one fifth of the poll period (10 ÷ 50 = 0.2), so at best one poll in five lands inside the pulse and the other four sample the output after it has already dropped.
Worst case from a seen request to a seen acknowledgment is 50 + 40 = 90 ms, which at 10 ms per scan is 9 scans, plus one more scan for the PLC to sample the acknowledgment input — a 10-scan minimum hold. A seal-in that holds the request until its acknowledgment input is true survives all of those scans by construction; a fixed timer set anywhere below 90 ms in this example drops valid requests.
The robot interface document decides the exchange shape: some interfaces want the request held until an acknowledge input returns, some want an edge, and a few expose only a busy line — before treating the end of busy as completion, establish how a finished cycle differs from an aborted or faulted one. Never tune a pulse duration by trial and error at the machine; a handshake exists precisely so both controllers can tell a new request from one already accepted.
Which input proves the gripper holds the case? #
A part-present signal between the gripper jaws is the proof that matters, because a gripper-closed limit or a PLC-driven clamp output confirms the jaws moved, not that a case sits between them, and on a suction head the equivalent proof is the vacuum switch. Wire that proof into the step rather than around it: pick confirmed may advance to place requested only when gripper closed and part present are true together, and a missing part faults the step instead of placing air onto the pallet.
Give the fault its own step or alarm bit so a grip failure is visible at the machine rather than skipped silently; the gripper-closed contact alone cannot tell those two cases apart, which is the whole reason the part-present input exists. Jaws, cups and the sensor that fits them are mechanical choices as much as logical ones, and the pick-and-place mechanical gripper selection guide walks through that selection.
Can an inductive proximity sensor detect a cardboard case? #
No: an inductive proximity switch responds to metal only, with typical sensing gaps of 5 to 10 mm and, per vendor sensor pages, even long-range types near 100 mm (4 in), so a fibreboard case never gives it a target and the case-present input stays off with a case sitting on the sensor. The material decides the method: a through-beam or retroreflective photoelectric switch across the conveyor at case height responds to any opaque case regardless of what it is made of, a capacitive switch can be tuned for fibreboard but drifts with humidity and belt dressing, and a mechanical flag switch adds a physical confirmation of its own.
For a cardboard case on a belt, photoelectric is the default choice — then prove the selected sensor against the real case, its presentation, spacing, adjacent cases and nearby machine steel, before its input enters any rung. Require a fresh rising edge per case and consume it on pick confirmed, so a train of cases produces one request each and a continuously covered sensor arms nothing. A presence input is not a position input either: if presence is proven but placements still vary, the pickup-side geometry is the suspect, and the analysis of why pick-and-place placement position varies with pickup angle follows that chain from grip to release.
Which SLC 500 addresses do the case and robot signals use? #
SLC 500 input data lives in file I1: and output data in file O0:, the input prefix is the uppercase letter I rather than the lowercase letter L used in the proposed list, and a complete operand names the slot and the bit rather than the slot alone. The proposed list writes its inputs as l:1 and l:2 and its outputs as O:1 through O:3, none of which yet names a terminal. The addressing reference manual treats the input and output data files as words you can address in their entirety or bit by bit, so resolve every label before the first test: the case sensor becomes the input file with its slot and its bit — for example I:1/0 for slot 1, bit 0, an illustration here and not this machine's wiring — the conveyor feedback gets the same treatment, and each robot request resolves to an output slot and bit.
One more check is direction. The proposed list calls Robot Ready an output, but decide who owns the signal: if it reports the robot state to the PLC it belongs in the input file, and if it grants the PLC state to the robot it belongs in the output file. Name it for what it carries, and never let one label stand for both directions.
How do I test the sequence before the robot moves? #
Test the step machine with the robot drive held in its manufacturer's manual or reduced-speed mode and machine motion inhibited through the commissioning arrangement the risk assessment defines, watching the step register and each handshake bit on the online monitor rather than watching the arm. Then take the checks in this order:
- Prove the mapping with hands before forces: set a case under the case-present sensor and start the conveyor, and confirm that exactly the intended input bit toggles and nothing else.
- With motion inhibited, satisfy the case-present condition and watch the step register arm, then use the robot interface's documented simulation of its handshake outputs and confirm the request drops and the step advances on the simulated acknowledgment.
- Repeat the handshake in the robot's reduced-speed manual mode with real cases, and confirm a second transfer cannot arm while the case-present input stays covered.
- Log the step transitions if the platform supports it: a step that hangs names the feedback that never arrived, which turns a logic question into a wire or sensor question.
The decision, case by case: keep Case Detected and Conveyor Running as permissives; move Ready, Pick and Place into steps advanced by robot acknowledgment and gripper proof; hold every request until the robot accepts it; read the case with a sensor that detects fibreboard rather than metal; and write every operand as file, slot and bit before anything moves. The original rung was never wrong about its conditions — it was silent about their order, and the order is the program.
Questions asked
How many steps does a single-case pick-and-place sequence need?
Six at minimum: idle, case eligible, pick requested, pick confirmed, place requested and place confirmed. Idle must clear the part-present bit and both acknowledgment memories, or the next case inherits the previous cycle's state. Add a state of its own whenever the cell gains a condition worth waiting on, such as a pallet-position check before idle returns.
What sensor proves the case is in the gripper?
On a jaw gripper, a sensor that the case itself interrupts between the jaws beats a jaw-position flag, because an empty misfire and a loaded grip can both read as closed; on a suction head, the vacuum switch is that proof. Mount it so the case, not the jaw or the cup plate, is the target.
Can the sequence be written without a step register?
Yes, for a two-step transfer: seal each output with the feedback that ends it and feed that seal to the next output's condition. The habit stops scaling when a step can end two ways, such as acknowledged then faulted; an explicit step number keeps every exit, including the fault exit, visible in the logic instead of buried in seal contacts.
What changes when the robot takes one transfer command instead of separate pick and place?
Request the whole job once and let busy and done carry the handshake, rather than adding pick and place outputs the robot program never reads. The PLC still owns case eligibility, gripper proof, step advance and the faults; only the request count changes, from two outputs to one, and the same hold-until-accepted rule applies to it.
Which sequence data should survive a power loss?
None of it, in most packaging cells: a case half-lifted at power-down is not resumable, so clear the step register, the request outputs and the handshake memories on the first scan and restart at idle. Keep retentive treatment for genuine setup data. If a process truly must resume mid-transfer, the robot vendor's recovery positions are defined first and the PLC sequence follows that document.

