3 logic operations, 1 or ( | ) – Yaskawa MP900 Series Motion Programming Manual User Manual
Page 144
4.3 Logic Operations
4 -11
4.3 Logic Operations
This section explains the commands used to perform bit and integer logic operations.
There is no order of priority for operations. Calculations are performed in order from the first item
on the right side. Parts enclosed in parentheses are calculated first.
Although operations that combine math operations are also possible, real number operations can-
not be performed.
4.3.1 OR ( | )
J
Overview
OR performs a logical OR for the immediately preceding operation result and the specified
registers, and returns the operation result. Real number registers cannot be used.
Table 4.1 Logical OR Truth Table (OR:C= A|B)
A
B
C
0
0
0
0
1
1
1
0
1
1
1
1
J
Description
Designation Method
MB001000=IB000100|SB000200;
MW00100=DW00102|AAAAH;
ML00104=DL00106|IL00100;
Data Types
Bit (B)
Integer (W)
Double Integer
(L)
Real Number
(F)
Constant
Yes
Yes
Yes
No
Yes
4