Stopping The Program And Substituting Position Data - Omron C200H-MC221 Operation Manual

Motion control unit
Hide thumbs Also See for C200H-MC221:
Table of Contents

Advertisement

Stopping the Program and Substituting Position Data

Sample Program
Explanation
9-9
Stopping the Program and Substituting Position Data
N000
P009
X
N001
G11
N002
G76
5
N003
G54
X0
N004
G01
X200
N005
G70
N001
N006
G79
Block N000 declares the program number and axes being used.
N001
Specifies Stop mode.
N002
Stops execution when general input 1 goes ON. (Proceeds to the next block
when general input 1 is OFF.)
N003
Presets the X-axis' present value to 0.
N004
Absolute positioning of the X axis.
N005
Unconditionally jumps to block N001, repeating blocks N001 through N004. The
process can be repeated indefinitely without an overflow because the present
value is preset to 0 each time.
N006
Ends the program.
This program moves the X axis to X1000 at a speed of 100 by linear interpola-
tion. The movement will be decelerated to a stop by function G74 (OPTIONAL
END) if general input 2 goes ON before the positioning operation is completed.
The X position when the movement was stopped will be stored in address A500
and that position data will be used for later positioning operations. This process
is useful for applications in which the position where the operation was stopped
will be used for positioning rather than the original target position.
General input 2
Axis operation
Origin return
Positioning
F100
Moves the X axis to the position
indicated in address A500.
Section 9-9
Transfers the pres-
ent value (X) when
stopped to address
A500.
209

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents