
MotionSuite™ Series Machine Controller Motion Programming Manual Chapter 4: Sequence Commands
4-12
4.3 Logical Calculations
In this section, the commands that execute logical calculations for the bit and integer
number are explained.
There is no priority order for the calculations. The calculation is executed from the right,
starting with item number 1. However, the items in parentheses are calculated first. It is
possible to combine the arithmetic calculations; however, the real number calculation is
impossible.
4.3.1 Logical OR (|)
!
!!
! Outline
Execute the logical OR of the immediately previous calculation result and a designated
register, and leave the calculation result. The real number register cannot be used.
!
!!
! Detailed Explanation
Command Method
Data Type
!
!!
! Program Example
True Value Table of the Logical OR (OR:C=A|B)
ABC
000
010
100
111
Bit (B) Integer (W) 32-bit Integer (L) Real (F) Constant
$$ $
×
$
Type Motion Program Ladder Program
B MB001000=MB001010|MB001011;
W MW00100=MW00101|MW00102;
L ML00106=ML00102|ML00104;
F— —
MB001000=IB000100|SB000200;
MW00100=DW00101|0AAAAH;
ML00104=DL00106|IL00100;
$
MB001010 MB001000
MB001011
MW00101^MW00102⇒MW00100
ML00102^ML00104⇒ML00106
Comentarios a estos manuales