Omron CS1W-MCH71 MOTION CONTROL UNIT - 09-2004 Manual page 597

Motion control unit
Hide thumbs Also See for CS1W-MCH71 MOTION CONTROL UNIT - 09-2004:
Table of Contents

Advertisement

Others
574
as required.
;-------------------------------------------------------------------------------
;VARIABLES FROM/TO PLC:
;IW0B00 is bag length
;IW0B01 is speed (bag/min)
;IW0B02 is a bitwise word to give the bits to start (b0) and the confir-
mation
;
than the cutter is in the STOP position (b2)
;IW0B03 is the expected distance to move after the mark
;OW0BA0 Gives the START order to the cutter (rising edge)
;OTHER VARIABLES:
;MW0006 is the overflow value of the position, depends on the axis
settings and
;
must be higher than the maximum bag length
;MW0005 is the Offset value that must be applied to the workpiece co-
ordinate to
;
start from zero position.
;MW0002 is the maximum speed of the bag calculated in the sub-pro-
gram to match
;
the cycle.
;---------------------------------------------------------------------------------
;The example shows:
; - Use of sub-programs
; - Simple calculation
; - Parameter writing
; - Use of movements with registration
;--------------------------------------------------------------------------------
#MW0006=8192;
;Set the axes to RUN
#IB04402=1; AXIS1 on
WAIT #OB04403==1; Wait for confirmation AX1
#IB04402=0;
;
INC;
GOSUB P550;
;
WHILE 1==1;
;
;Update the ramps and maximum speed to match the cycle
;only when distance or speed changes
IF #IW0B00<>#DW0000;
GOSUB P550;
#DW0000=#IW0B00;
ENDIF;
IF #IW0B01<>#DW0001;
GOSUB P550;
#DW0001=#IW0B01;
ENDIF;
;
;Wait for cutter in STOP position
WAIT #IB0B022==1;
;
IF #IB0B020==0;
;Cutting without mark
Section 10-3

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Sysmac cs-series

Table of Contents