EasyManua.ls Logo

Mitsubishi Electric Q172CPU - Page 405

Mitsubishi Electric Q172CPU
634 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 - 144
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
Operator Program example Operation
#2010L = 00000000 00000000 00000000 01100100
15 = 00000000 00000000 00000000 00001111
AND
#2010L = 100 ;
#2020L = #2010L AND 15 ;
#2020L = 00000000 00000000 00000000 00000100 = 4
#2010L = 00000000 00000000 00000000 01100100
14 = 00000000 00000000 00000000 00001110
OR
#2010L = 100 ;
#2020L = #2010L OR 14 ;
#2020L = 00000000 00000000 00000000 01101110 = 110
#2010L = 00000000 00000000 00000000 01100100
14 = 00000000 00000000 00000000 00001110
XOR
#2010L = 100 ;
#2020L = #2010L XOR 14 ;
#2020L = 00000000 00000000 00000000 01101010 = 106
#2010L = 00000000 00000000 00000000 01011010
NOT
#2010L = 90 ;
#2020L = NOT [#2010L] ;
#2020L = 11111111 11111111 11111111 10100101 = -91
<<
#2010L = 20 ;
#2020L = #2010L << 2 ;
#2010L
#2020L
=
=
00000000
00000000
00000000
00000000
00000000
00000000
00010100
01010000 = 80
>>
#2010L = 80 ;
#2020L = #2010L >> 2 ;
#2010L
#2020L
=
=
00000000
00000000
00000000
00000000
00000000
00000000
01010000
00010100 = 20

Table of Contents

Other manuals for Mitsubishi Electric Q172CPU

Related product manuals