Mitsubishi Electric Q172CPU Programming Manual page 398

Melsecq series motion controller sv43
Hide thumbs Also See for Q172CPU:
Table of Contents

Advertisement

7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
(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
Operation result
is stored
Note that if operation
result is 64-bit type,
32-bit type is converted
into 64-bit type.
(6) The following operational expressions will result in a "Format error" (error code :
560).
#@10 = ##@20 ;
#@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.
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 ;
%
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.
Possible if #@10 = #[#@20] ;
Possible if #@10 = #@20 + [- #@30] ;
7 - 137
operator
operation data 2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173cpuQ172cpunQ173cpun

Table of Contents