Mitsubishi Electric Q Series Programming Manual page 331

Motion controller
Hide thumbs Also See for Q Series:
Table of Contents

Advertisement

6 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
Operator
Program example
#2010L = 100 ;
AND
#2020L = #2010L AND 15 ;
#2010L = 100 ;
OR
#2020L = #2010L OR 14 ;
#2010L = 100 ;
XOR
#2020L = #2010L XOR 14 ;
#2010L = 90 ;
NOT
#2020L = NOT [#2010L] ;
#2010L = 20 ;
<<
#2020L = #2010L << 2 ;
#2010L = 80 ;
>>
#2020L = #2010L >> 2 ;
#2010L
= 00000000
15
= 00000000
#2020L
= 00000000
#2010L
= 00000000
14
= 00000000
#2020L
= 00000000
#2010L
= 00000000
14
= 00000000
#2020L
= 00000000
#2010L
= 00000000
#2020L
= 11111111
=
#2010L
00000000
=
#2020L
00000000
=
#2010L
00000000
=
#2020L
00000000
6 - 144
Operation
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
11111111
11111111
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
01100100
00001111
00000100 = 4
01100100
00001110
01101110 = 110
01100100
00001110
01101010 = 106
01011010
10100101 = -91
00010100
01010000 = 80
01010000
00010100 = 20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173hcpuQ172hcpu

Table of Contents