EasyManua.ls Logo

Mitsubishi Electric Q172CPU - Page 287

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 - 26
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Conversion format Description
64 bit to 32 bit
The 64-bit double precision real number is converted to 32-bit integer type.
Note that any value other than -2147483648 to 2147483647 results in an error.
(Error : 531)
63 51 0
Bits 0 to 51: Significant digit part
Bits 52 to 62: Exponent part
Bit 63: Sign part
Fractional portion is dropped.
Any value other than -2147483648 to
2147483647 results in an error. (Error 531)
31 0
Higher rank bit is handled as a sign bit.
(4) Variable setting (#n : n = integer)
(a) How to handle variable as 16-bit integer
When a #n variable is followed by "S" or ": S", it is handled as a 16-bit
integer. (-32768 to 32767)
[Example]
#0 : [D0]
#1S : [D1]
#2:S : [D2]
Odd numbers may be used as 16-bit specified variables.
(b) How to handle variable as 32-bit integer
Variables are handled as 32 bits. (-2147483648 to 2147483647)
[Example]
Upper Lower Upper Lower
#100:L : [D101, D100] #102:L : [D103, D102]
• When a variable is specified as 2 words (32 bits), only an even number
can be used. The data size of a variable is 4 bytes.
<Example of positioning data setting by variable setting>
O0200;
N99 G90 G00 X#100 Y#110;
G01 X#200 Y#202 F#204;
#300 = #302 - #304;
G91 G00 Z300.;
IF [#310 EQ 1000] GOTO99;
M02;
%
Motion program No. (O) cannot be
set indirectly.
Indirect setting (address, speed,
operational expression)
Direct setting

Table of Contents

Other manuals for Mitsubishi Electric Q172CPU

Related product manuals