Walkthrough: Problem 7: Air Gripper

Difficulty

Target behavior

Operate the cylinder up/down and the gripper open/close with buttons, and light the in-motion lamps

What you will learn

  • Manual operation circuits
  • Detecting motion with auto switches
  • How the gripper sensors behave when holding a workpiece

Problem

This model is about gripping a workpiece with an air gripper.

Typical equipment consists of sections that transfer and process workpieces, and gripping with a gripper is an essential mechanism for transfer.


First, watch the video to get an idea of how air grippers are used!




An air gripper is controlled the same way as an air cylinder: turning the connected solenoid valve ON/OFF opens and closes the gripper.

The motion to reproduce this time is gripping a workpiece. An air gripper is attached to the tip of an air cylinder that moves in the Z direction.

Close the air gripper when the air cylinder is fully extended to grip the workpiece.



Be careful about how the auto switches behave when controlling a gripper.

When the gripper is open, the open-end auto switch is ON. When the gripper is fully closed, the closed-end auto switch is ON.

So what happens while a workpiece is being gripped? The answer: neither auto switch is ON.

In other words, to confirm with the auto switches that a workpiece is gripped, you need to check that the closed-end auto switch is still not ON a few seconds after turning on the gripper solenoid valve to start closing!


Use this information to write your ladder!

Target behavior (video)

Approach

Four buttons operate the cylinder and gripper individually. Each lamp is lit "from when the command is given until the auto switch at the destination turns ON".

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
X2Gripper closed end
X3Gripper open end
X4Up button
X5Down button
X6Gripper open button
X7Gripper close button
Outputs
Y0Cylinder solenoid valve
Y1Gripper solenoid valve
Y2Rising lamp
Y3Lowering lamp
Y4Gripper opening lamp
Y5Gripper closing lamp
Timers
T0Gripper closing lamp on-time

Ladder explanation

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

1Operating the cylinder and gripperRows 001–006

  • X5 (down button) SETs Y0 (cylinder solenoid valve) → lowers. X4 (up button) RESets it → rises
  • X7 (gripper close button) SETs Y1 (gripper solenoid valve) → closes. X6 (gripper open button) RESets it → opens

2In-motion lampsRows 007–010

The AND condition combines "the direction of the command" and "the destination auto switch is not ON yet".

LampCommandDestination sensor
Y2 risingY0 OFFX1 raised end is OFF
Y3 loweringY0 ONX0 lowered end is OFF
Y4 gripper openingY1 OFFX3 open end is OFF

When the destination is reached and the auto switch turns ON, the N.C. contact opens and the lamp goes out.

3Gripper closing lampRows 011–013

When the gripper grabs a workpiece, it stops against the workpiece and does not reach the closed end X2. So if the lamp were lit only "until the closed end turns ON", it would stay lit the whole time a workpiece is held.

Therefore the lamp goes out 1 second (T0 preset 10) after Y1 turns ON. It goes out at whichever comes first: the closed end turning ON or 1 second elapsing.

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

Key points

  • Gripping (holding a workpiece) is confirmed by "the closed end is still not ON a certain time after the close command". Conversely, if the closed end turns ON, you can judge that the gripper missed the workpiece.