Examples and tips
PROGRAMMING MANUAL
296
Revi
si
on 3.0
Example
fig. 59
'=================================================
'FLYING SHEAR program
'=================================================
'Typical example of a flying shear application.
'One axis (line_axis) transport the material
'Second axis (flying_axis) is the flying shear itself
'Third axis (shear_axis) is the shear advancement
'The distance in synchronization must be long enough
'to allow the cut at maximum speed.
'The return of the flying shear is done at such a
'speed that the wait time is zero (optimization of
'the movement).
'Again it is assumed that everithing has been
'calculated to not exceed the maximum motor speed at
'maximum line speed
'==================================================
cut_counter=0
line_axis=2
shear_axis=0
flying_axis=1
SERVO AXIS(line_axis)=ON
SERVO AXIS(flying_axis)=ON
SERVO AXIS(shear_axis)=ON
WDOG=ON
'FIRST CYCLE
'Make a first material cut
MOVEABS(end_pos) AXIS(shear_axis)
WAIT UNTIL MTYPE AXIS(shear_axis)=2
WAIT IDLE AXIS(shear_axis)
'First time we have a certain wait time because the
'material has been just been cut
wait_distance=cut_lenght-l_acc/2
MOVELINK(0,wait_distance,0,0,line_axis)
AXIS(flying_axis)
WAIT UNTIL MTYPE AXIS(flying_axis)=22
1
2
3
4
5
Flying shear axis (slave)
Material feeder (Master)
ZERO POSITION
Initial situation: material to cut and shear both in the zero position
Just after synchronization (cut operation is done on the fly during synchronization)
Cut_length
MOVELINK(0, cut_length – l_acc / 2, 0, 0, line_axis)
cut_lenght – l_acc / 2
Cut_length
MOVELINK(sync l_acc + l_dec, sync l_acc / 2 + l_dec/2, l_acc, l_dec, line_axis)
l_acc / 2
l_acc / 2 + synch_dist
Just after deceleration
Cut_length-l_acc / 2
MOVELINK(–l_acc / 2 – synch_dist – l_dec / 2, cut_lenght – synch_dist – l_dec – l_acc, l_acc / 4, l_dec / 4, line_axis)
l_dec / 2
Cut_length
l_acc / 2 + sync l_dec / 2
I52E-EN-03.book Seite 296 Freitag, 29. Juni 2007 11:55 11