Target behavior
Operate the cylinder up/down and the gripper open/close with buttons, and light the in-motion lamps
What you will learn
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!
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.
| Device | Comment |
|---|---|
| Inputs | |
X0 | Cylinder lowered end |
X1 | Cylinder raised end |
X2 | Gripper closed end |
X3 | Gripper open end |
X4 | Up button |
X5 | Down button |
X6 | Gripper open button |
X7 | Gripper close button |
| Outputs | |
Y0 | Cylinder solenoid valve |
Y1 | Gripper solenoid valve |
Y2 | Rising lamp |
Y3 | Lowering lamp |
Y4 | Gripper opening lamp |
Y5 | Gripper closing lamp |
| Timers | |
T0 | Gripper closing lamp on-time |
The row numbers in the figures match the row numbers in the simulator's ladder window.
X5 (down button) SETs Y0 (cylinder solenoid valve) → lowers. X4 (up button) RESets it → risesX7 (gripper close button) SETs Y1 (gripper solenoid valve) → closes. X6 (gripper open button) RESets it → opensThe AND condition combines "the direction of the command" and "the destination auto switch is not ON yet".
| Lamp | Command | Destination sensor |
|---|---|---|
Y2 rising | Y0 OFF | X1 raised end is OFF |
Y3 lowering | Y0 ON | X0 lowered end is OFF |
Y4 gripper opening | Y1 OFF | X3 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.
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