Sub topic 6
Contact, fixed-value, and motion-step methods
Prerequisites and scope
This chapter assumes you know the difference between an error and a defect, and the difference between prevention and detection devices. It also assumes you know control (shutdown) devices from warning devices. Here you will learn the three classic methods Shigeo Shingo described for building those devices. The methods describe what a device checks. Control and warning describe what the device does when the check fails.
The three methods are:
- Contact method: checks the physical shape, size, or other physical attribute of the item.
- Fixed-value method: checks that a set number of movements, parts, or events has happened.
- Motion-step method: checks that the steps of a process happen in the required order.
The working model
Every poka-yoke device has two parts. A sensing part reads some fact about the process. A response part stops the process or signals the operator when that fact is wrong. The three methods differ in the fact that the sensing part reads.
| Method | What it senses | Typical question it answers | Typical response |
|---|---|---|---|
| Contact | Shape, size, color, or position of the item | Does this part fit the form it must fit? | Part cannot be placed, or machine will not start |
| Fixed-value | A count of parts, motions, or events | Has the required number been used or done? | Machine will not release or finish until the count is met |
| Motion-step | The sequence and completion of steps | Was the previous step done before this one? | Next step stays locked until the prior step is complete |
Contact method
The contact method uses physical features. The device does not need to understand anything. It only needs a shape that lets the correct item through and refuses the wrong one. "Contact" does not always mean touch by a sensor. A guide pin, a notch, or a gauge works because the item's form either fits or does not.
Familiar examples:
- A USB-C plug that fits its socket in either orientation, replacing a plug that fit only one way.
- A fuel nozzle for diesel that is too large to enter a petrol car's filler neck.
- A fixture with an asymmetrical pin, so a part loads in only one orientation.
- A medical tray with cut-outs shaped like each instrument, so a missing instrument is visible.
Contact devices can be pure prevention. The wrong part never goes in. They can also be detection devices. A limit switch can touch a part and report whether it is the right height.
Strengths and limits
Contact devices need no power, no training, and no attention. They work every time. Their limits come from the design:
- The error must show up as a physical difference. If two parts look and measure alike, contact cannot tell them apart.
- A part that is nearly the right shape may be forced in. Tolerances matter.
- A worn guide or fixture slowly loses its ability to reject wrong items.
Fixed-value method
The fixed-value method works when an operation must happen a set number of times, or when a set number of items must be used. The device counts, and it releases the process only when the count is right. It targets the lapse: forgetting a step or a part.
Examples:
- A pallet of exactly twelve screws is issued for a job needing twelve. Any screw left in the tray means a screw was missed.
- A welding fixture counts spot welds and will not unclamp until all eight are done.
- A pill organizer holds one dose per compartment, so a missed dose is visible.
- A kit prepared with a fixed set of parts, so a leftover or empty slot shows the problem.
Fixed-value does not require an electronic counter. A kitted tray, a pegboard with a fixed set of hooks, or a pre-measured pack all count by design.
Where fixed-value goes wrong
- If the count is fixed but the need varies, operators learn to override it.
- A counter can be satisfied by a wrong action, such as the correct number of welds in the wrong places. Pair it with a contact or motion-step check where that risk is real.
- Kits only work if someone fills them correctly. The error can move upstream to the kitting step.
Motion-step method
The motion-step method checks that actions happen in a required sequence, or that a required action has been completed before the process moves on. It addresses errors where a step is skipped, repeated, or done out of order. In a physical process, a sensor might confirm that a guard is closed before a press can cycle. In a paper process, a form that must be signed before the next form is released does the same job.
Examples:
- A press that will not run until the operator has pressed two buttons, one for each hand, which also keeps both hands clear.
- A microwave that will not start with the door open.
- A checklist where each item must be ticked before the next is shown.
- A software workflow where an order cannot be shipped until it has been paid for.
The motion-step method differs from fixed-value in what it counts. Fixed-value asks how many. Motion-step asks which one, and in what order.
Software equivalents
The three methods have direct counterparts in code. The following examples come from the three methods in turn.
Contact in software: restrict what can enter
A restricted type is the software form of a shaped socket. An enum limits a status to a fixed set of values, so a typo cannot be stored.
Motion-step in software: enforce the sequence
The transition table below refuses any skipped or backward step. It is a control-type poka-yoke, because it stops the error instead of recording it.
from enum import Enum
class OrderStatus(Enum):
DRAFT = "draft"
PAID = "paid"
SHIPPED = "shipped"
ALLOWED_TRANSITIONS = {
OrderStatus.DRAFT: {OrderStatus.PAID},
OrderStatus.PAID: {OrderStatus.SHIPPED},
OrderStatus.SHIPPED: set(),
}
def change_status(current: OrderStatus, new: OrderStatus) -> OrderStatus:
if new not in ALLOWED_TRANSITIONS[current]:
raise ValueError(f"Cannot move from {current.value} to {new.value}")
return new
status = OrderStatus.DRAFT
status = change_status(status, OrderStatus.PAID) # allowed
# change_status(status, OrderStatus.DRAFT) would raise ValueErrorThe table also shows a limit. It enforces order, but not correctness. An order can move from paid to shipped with the wrong address.
Contact-like checks on arguments
Two arguments with the same type are like two plugs of identical shape. Python's bare * forces callers to name each argument, so a swap by position becomes impossible. The checks then reject inputs that cannot be valid.
def transfer(*, source_account: str, destination_account: str, amount_cents: int) -> str:
if source_account == destination_account:
raise ValueError("Source and destination must differ")
if amount_cents <= 0:
raise ValueError("Amount must be positive")
return f"Moved {amount_cents} cents from {source_account} to {destination_account}"
# Keyword-only arguments make a swapped-argument slip visible at the call site.
transfer(source_account="A-100", destination_account="B-200", amount_cents=2500)
# transfer("A-100", "B-200", 2500) raises TypeErrorMotion-step with a confirmation
Requiring the operator to retype the target's name adds a step that cannot be done on autopilot. It breaks the habit of confirming without reading, and it prevents deleting the wrong environment.
def delete_environment(name: str, confirm_name: str) -> str:
if confirm_name != name:
raise ValueError("Confirmation does not match the environment name; nothing was deleted")
return f"Deleted {name}"
delete_environment("staging", "staging") # proceeds
# delete_environment("production", "staging") raises ValueErrorChoosing a method in practice
Start from the error, not the method. Ask what fact would be different if the error had just happened.
- If the item itself would look different, use contact.
- If something would be missing or in excess, use fixed-value.
- If an action would be absent or out of order, use motion-step.
Then choose the response. A control response stops the process. A warning response signals the operator and relies on a reaction. Prefer control when the cost of the error is high and the error cannot be quickly fixed. Use warning when stopping would itself be costly or unsafe.
Methods combine. A press may use a contact fixture so the part loads one way only, a fixed-value count of welds, and a motion-step interlock on the guard.
Common errors when applying the methods
- Treating a label as a device. A sign saying "Use part A only" is neither contact, fixed-value, nor motion-step. It depends on memory.
- Choosing a method because it is available. A counter is easy to add, but if the error is a wrong part, only a contact check addresses it.
- Making the check too easy to satisfy. A motion-step check that accepts any button press can be defeated by taping the button down.
- Ignoring the bypass. The next chapters on verification and pitfalls cover this. For now, ask of every device how someone in a hurry would defeat it.
Exercise
A technician assembles a motor housing with six bolts. Some housings leave the line with five bolts. Which method fits best, and what does the device look like? Then name one way the device could be defeated.
Show answer
Fixed-value fits best, because the error is a missing item in a known count. For example, issue exactly six bolts in a tray for each housing, or fit a driver that counts six tightening cycles and keeps the fixture clamped until it reaches six. A kitted tray can be defeated if the technician takes bolts from a spare bin. The counting driver can be defeated if the technician triggers it six times on the same bolt, so add a check that each hole is filled.
Exercise
A software team's deployment tool lets engineers deploy to production by pressing Enter on a "Deploy? (y/n)" prompt. A wrong-environment deploy happened last month. Name the method that the improved design uses and describe it.
Show answer
Motion-step. Require the engineer to type the environment name before the deploy proceeds, as in delete_environment above. The extra step breaks the habit of pressing "y" without reading, and a mismatch stops the deploy.