EasyManua.ls Logo

Mitsubishi Electric Q172CPU - Page 398

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 - 137
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(5) For MOD, the 16- or 32-bit type is used for operation. If operation data 1, 2 are the
64-bit type, they are converted into the 32-bit type.
The operation result can be the 16-, 32- or 64-bit type, but if the operation result is
the 64-bit type, the result of operation performed with the 32-bit type is converted
into the 64-bit type and the result of conversion is stored.
Operation result = operation data 1 operator operation data 2
Operation result
is stored
Note that if operation
result is 64-bit type,
32-bit type is converted
into 64-bit type.
Operation is performed after conversion of operation data
1, 2 into operation result type.
Note that if operation result is 64-bit type, 32-bit type is
used to perform operation.
(6) The following operational expressions will result in a "Format error" (error code :
560).
#@10 = ##@20 ;
#@10 = #@20 + - #@30 ;
Possible if #@10 = #[#@20] ;
Possible if #@10 = #@20 + [- #@30] ;
(7) If there is no operation result (if operation exists in the operation result, or for
conditional expression such as the IF statement), the 32-bit type is used to
perform operation.
[Program Example]
The program for which execute the positioning based on the result of the specified
operation.
O0200 ;
#@40L = 1000000 ;
#@60L = 767 ;
#@80L = 10000 ;
#@30L = [#@40L + 50000] * 2 ;
#@50L = #@60L MOD 256 ;
#@70L = #@80L * 2 ;
N060 G00 X#@30L Y#@50L ;
X20. ;
N080 G91 G01 X100. F#@70L ;
X20. ;
Y30. ;
M02 ;
%

Table of Contents

Other manuals for Mitsubishi Electric Q172CPU

Related product manuals