Bit Logical And - Mitsubishi Electric Q173CPU Programming Manual

Q series motion controller
Hide thumbs Also See for Q173CPU:
Table of Contents

Advertisement

7 OPERATION CONTROL PROGRAMS
7.5.2 Bit logical AND : &
Format
[Usable data]
Setting
16-bit
data
Bit device
integer
type
(S1)
(S2)
[Setting data]
Setting data
[Functions]
[Errors]
[Program examples]
(S1)&(S2)
Word device
64-bit
32-bit
floating
integer
point
type (L)
type (F)
(S1)
Data which will be ANDed bit-by-bit
(S2)
(1) The bit-by-bit logical product of the data specified with (S1) and the data specified
with (S2) is found.
(2) When (S1) and (S2) differ in data type, the data of the smaller data type is
converted into that of the greater type before operation is performed. At this time,
note that signed data is converted.
(1) An operation error will occur if:
• (S1) or (S2) is an indirectly specified device and its device No. is outside the
range.
(1) Program which ANDs #0 and #1 and substitutes the result to D0
D0 = #0 & #1
b15
D0
0 0 1 0 0 0 0 1 0 0 1 0 0 1 0 0
Usable Data
Constant
16-bit
32-bit
Coasting
integer
integer type
timer
type (K/H)
(K/H, L)
Description
#0
b0
#1
7 - 19
F/FS
Number of basic steps
64-bit
Calculation
conditional
floating
expression
expression
point
type (K)
Data type of result
Data type of (S1) or (S2)
which is greater
(Integer type)
b15
b0
0 0 1 0 0 1 0 1 0 0 1 1 0 1 0 0
&
b15
b0
0 0 1 0 1 0 0 1 0 0 1 0 0 1 0 0
G
4
Bit
Comparison
conditional
expression
: Usable

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173cpunQ172cpuQ172cpun

Table of Contents