4 clear (clr), 1) overview, 2) format – Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual
Page 240: 3) programming examples, 2) format (3) programming examples

8.8 Data Operations
8-133
8
Command Reference
8.8.4 Clear (CLR)
(1) Overview
The CLR command clears the specified number of blocks from the leading data clear register, i.e., sets it to 0.
(2) Format
(3) Programming Examples
CLR command programming examples are shown below.
Example: The data of registers from MW00100 to MW00119 are cleared to 0.
Motion Programs
Sequence Programs
Applicable
Applicable
CLR MW00100 W10 ;
A B
Item
Description
Usable Registers
A
Leading register
whose data is
cleared
• All integer type registers (Excluding # and C registers)
• The above registers with subscript
• Subscript registers
B
Number of blocks
• All integer type registers (Excluding # and C registers)
• The above registers with subscript
• Subscript registers
• Constants
Type
Motion Programs/
Sequence Programs
Ladder Programs
B
−
−
W
CLR MW00100 W10;
L
−
−
F
−
−
EXAMPLE
CLR MW00100 W20;
0000
0000
0000
0000
0000
MW00100
MW00101
MW00102
MW00119
MW00118
0