455
Programming Examples
Section 8-1
8-1-8
Stopping a Program with a General Input
Operation
This program shows how to stop MC program execution when general input 1
turns ON.
Programming Example
N000
P009
X
N001
G11
N002
G76
16
N003
G54
X0
N004
G01
X200
F100
N005
G70
N001
N006
G79
Explanation
N001
Specifies Stop Mode.
N002
Stops execution when general input 1 turns 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.
8-1-9
Stopping the Program and Substituting Position Data
Operation
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 the G74 (OPTIONAL
END) command if the target position is reached before the positioning opera-
tion 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
General input 1
Axis operation
Present value
Содержание CS1W-MC221 -
Страница 1: ...Motion Control Units Cat No W359 E1 04 CS1W MC221 V1 421 V1 OPERATION MANUAL ...
Страница 2: ...CS1W MC221 V1 421 V1 Motion Control Units Operation Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 11: ...xii ...
Страница 15: ...xvi ...
Страница 19: ...xx ...
Страница 27: ...xxviii Conformance to EC Directives 6 ...
Страница 133: ...106 Installation Section 2 2 2 2 4 Dimensions CS1W MC421 CS1W MC221 ...
Страница 173: ...146 Connecting Peripheral Devices Section 2 7 ...
Страница 227: ...200 Command Area Section 3 6 ...
Страница 351: ...324 Interface Specifics Section 5 4 ...
Страница 513: ...486 Absolute Encoder Interface Specifications Section 9 7 ...
Страница 575: ...548 Error Log Section 12 6 ...
Страница 589: ...562 Performance Appendix A ...
Страница 655: ...628 Control Bit Flag Timing Charts Appendix E ...
Страница 683: ...656 Origin Search Patterns Appendix F ...
Страница 685: ...658 Encoder Divider Rate and Rotation Speed for OMRON Servo Drivers Appendix G ...