4 clear (clr) – Yaskawa MP900 Series Motion Programming Manual User Manual
Page 155
Advertising

Sequence Commands
4.5.4 CLEAR (CLR)
4 -22
4.5.4 CLEAR (CLR)
J
Overview
The CLR command clears the specified number of blocks from the leading data clear register,
i.e., sets it to 0.
J
Description
Designation Method
CLR MW001000 W10 ;
A
B
A: Leading bit number
B: Number to be shifted
C: Bit width
Data Types
Bit (B)
Integer
(W)
Double
Integer (L)
Real
Number (F)
Constant
Data Clear Register No
Yes
No
No
No
Number of Blocks
No
Yes
No
No
Yes
J
Programming Examples
Type
Motion Program
Ladder Logic Program
B
−
−
W
CLR MW00100 W10;
SETW MW00100 D=00000 W=10
L
−
−
F
−
−
Example: The contents of MW00100 to MW00119 are cleared to “0”.
CLR MW00100 W20;
S
S
S
S
S
S
S
S
S
S
S
S
S
0000
0000
0000
0000
0000
S
S
S
S
S
S
S
S
S
S
S
S
S
MW00100
MW00101
MW00102
MW00119
MW00118
0
4
A
EXAMPLE
"
Advertising
This manual is related to the following products: