Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual
Page 104

7 Programming
7-16
• Logical Operation Example
Precautions on operations involving three or more items
For example, with the following operation,
With this operation, the AND operation of 2222H and 00FFH is executed first. Then, the OR operation of the AND
result and 1111H is executed. The OR result is then stored in MW00100.
Therefore, MW00100 = 1133H
• Operation example
With this operation, OR operation of 0001H and 0002H are executed, and the result is stored in MW00100.
• Example of operation involving three or more items
With this operation, OR operation of 1111H and 2222H are executed first, and the AND operation of the OR
result and 00FFH is calculated. The AND result is then stored in MW00100.
Therefore, MW00100 = 0033H
MW00100 = 1111H | 2222H & 00FFH;
EXAMPLE
MW00100 = 0001H | 0002H;
MW00100 = (1111H | 2222H) & 00FFH;
INFO