Walkthrough: Problem 8: Vacuum Suction

Difficulty

Target behavior

Lower the cylinder with the Pick-up button, pick up the workpiece by suction, then raise it

What you will learn

  • Vacuum suction and the pressure sensor (suction confirmation)
  • Applying step control

Problem

This model is about picking up a workpiece by vacuum suction.


Vacuum suction is used in all kinds of equipment. First, watch the video to get an idea of how it is used!



Let's start by learning the mechanism of vacuum suction.


The figure shows the path from the vacuum pump that creates the vacuum to the vacuum pad that holds the workpiece.

With the air cylinder, a solenoid valve switched the positive pressure from a compressor. This time, a solenoid valve switches the negative pressure from a vacuum pump.

In addition, a pressure sensor on the suction piping tells you whether a workpiece is being held (presence detection) by turning ON/OFF.

A real pressure sensor is set to turn ON when the pressure drops below a certain value. In the simulation too, the pressure drops and the pressure sensor turns ON when a workpiece is held by suction.



The motion to reproduce this time is picking up a workpiece by suction. A suction pad is attached to the tip of an air cylinder that moves in the Z direction.

The suction pad touches the workpiece when the air cylinder is fully extended. Start suction at that point, and lift the workpiece only after confirming the pressure sensor is ON.

Target behavior (video)

Approach

Operate in three steps: "lower → suction → raise". Suction starts after the pad touches the workpiece (reaches the lowered end), and the workpiece is lifted only after the pressure sensor confirms suction.

Process table (steps)

StepDescriptionCondition to advanceMain outputs
MR1LoweringX0 cylinder lowered endY0 ON
MR2SuctionX2 suction confirmedY0 ON, Y1 SET
MR3RaisingX1 cylinder raised endY0 OFF

Based on this approach, try writing the ladder yourself first.
In the simulator, you can create the wiring and ladder and actually run the 3D equipment model.

Try it in the simulator
Show the sample ladder and explanation(click to open)

Devices used

DeviceComment
Inputs
X0Cylinder lowered end
X1Cylinder raised end
X2Suction confirmed
X3Pick-up button
Outputs
Y0Cylinder solenoid valve
Y1Vacuum valve
Y2Running lamp
Internal relays
MR1Lowering
MR2Suction
MR3Raising

Ladder explanation

The row numbers in the figures match the row numbers in the simulator's ladder window.

1Start conditionRows 001–002

On the rising edge of X3 (Pick-up button), SET MR1. The conditions are: at the raised end X1, not holding a workpiece yet (X2 suction confirmation OFF), and not operating (MR1 to MR3 OFF).

2Step transitionsRows 003–008

  • Rows 004–005: while lowering, when the lowered end X0 turns ON, go to suction
  • Rows 006–007: during suction, when X2 (suction confirmed) turns ON, go to raising
  • Row 008: while raising, when the raised end X1 turns ON, finish

Because it does not rise until suction is confirmed, it never lifts with a failed suction.

3OutputsRows 009–015

  • Y0 (cylinder solenoid valve): ON in the lowering and suction steps. It keeps pressing at the lowered end during suction.
  • Y1 (vacuum valve): SET in the suction step. Suction must continue after the workpiece is lifted, so it is held with SET instead of OUT.
  • Y2 (Running lamp): lit while any step is ON.

The sample wiring and ladder data can be downloaded fromGitHuband loaded with "Load wiring" and "Load ladder" in the simulator.

Key points

  • If the vacuum valve were an OUT, suction would be cut the moment the step advances to raising, and the workpiece would drop. Write outputs that must keep their state across steps with SET/RES.