Others
Example 3
MOVE [J01]#IW0B00;
ELSE;
;Cutting with mark
MOVEI [J01]#IW0B00 D#IW0B03 V#ML0002;
ENDIF;
;
;Activate bag cutter (rising edge in OB0BA00)
DWELL T10;
WAIT #SW0228==0; Check that the movement has finished
#OB0BA00=1;
DWELL T20;
#OB0BA00=0;
;
WEND;
END;
PROG P550 Q00000000;Bag Making Profile Calculation
;Calculation of maximum speed and ramps
;To make the movement in the desired time
;Considering T/3 acceleration
;
T/3 at speed
;
T/3 deceleration
;----------------------------------------
;
#ML0010=60000/#MW0001; Time per bag (ms)
#ML0012=#ML0010/3; Acceleration time (ms)
PARAM P20105= #ML0012;
PARAM P20106= #ML0012;
;
#ML0002=#MW0000*3;
#ML0002=#ML0002/2;
#ML0002=#ML0002/#ML0010; Maximum speed
PARAM P20103=#ML0002;
PARAM P20101=#ML0002;
;
RETURN;
This example describes the operation of a flying shear, to cut material to a
programmed length on the fly. The example shows the use of a 'counter unit'.
This counter unit (PL2900) is a Yaskawa device via Mechatrolink II that allows
connecting to the system a line-driver encoder as master encoder.
PROG P006 Q00000011;Flying Shear with counter unit
;-------------------------------------------------------------------------------
;In this example a counter unit is used to use an incremental line-driv-
er
;encoder as master axis (axis 5). Then:
; - P10501=5
(AXIS 5)
; - P10502=100
(I/O remote unit)
; - P10503=5
Number of input points
; - P10504=6
Number of output points
; - P10505=10051h First allocation address (corresponds with
IW0051)
;-------------------------------------------------------------------------------
;Setting for the counter unit
#OW0050=0;
#OW0052=2; A,B pulses x4 multiplier
#OB00500=1; Counter initialization
Section 10-3
575
Need help?
Do you have a question about the CS1W-MCH71 MOTION CONTROL UNIT - 09-2004 and is the answer not in the manual?
Questions and answers