Specifications

Positioning IP 240
10.25 Example: Removing Parts from a Die-Casting Machine
Finished parts are to be taken from a die-casting machine and deposited at various positions.
This example concentrates on positioning of one of the three axes.
When the setpoint is reached, an interrupt is generated, thus enabling a gripper.
The traversing speed (rapid traverse or creep speed) is set directly via the IP's digital outputs.
The IP 240 determines the direction of travel. The S5 CPU queries the IP as to the direction and
forwards it to the relevant outputs. The drive can start only in the specified direction, which is
used as enable.
Fig. 10-33. Positioning a Workpiece to a Specified Position
Position 1 Position 2 Position 3 Position 4
Workpiece
Die-casting
machine
Functional description
Channel 1 on the IP 240 is configured and the auxiliary flags reset in the programmable con-
troller's restart routine.
The cyclic program comprises several segments, as can be seen from the "Function sequence"
diagram.
1. Power-up
A reference point is automatically approached (FB 31) on power-up. The limit switch, which
limits the negative traversing range, is used as preliminary contact signal.
2. Approaching the home position
Following termination of the reference point approach, the position whose number was
stored in DR 11, DB 100 (home position) is approached.
Positioning begins when the ”START” input is set.
3. Approaching the removal position
The position number stored in DL 11 (DB 100) (removal position) is approached and a gripper
activated (gripper closes) which picks up the workpiece.
4. Depositing a workpiece
The workpiece which the gripper took from the machine is brought to the specified position
and ejected (gripper opens). The eject positions are stored in DR 12 (1st position) to DL 12 (last
position).
Steps 3 and 4 are repeated until a workpiece has been deposited at each position.
Faults
Any faults occurring while the main switch is on are signalled by a hooter.
10-98
EWA 4NEB 811 6120-02a