Mitsubishi Electronics Q173HCPU/Q172HCPU Work Light User Manual


 
6 - 29
6 MOTION PROGRAMS FOR POSITIONING CONTROL
(6) Device setting (#Xx : Xx is device)
The word device (D, W, #) and bit device (X, Y, M, B, F) can be referred to by
device setting.
Because the word device (D, W, #) is handled as 32 bits (2 word data), only an
even number can be used.
The four fundamental operations of bit devices cannot be performed.
[Example]
#X180 : X180
#M2000 : M2000
#D100:L : [D101, D100] ( [upper, lower] )
• The word device can be used only an even number.
The data size of a
variable is 4 bytes.
POINT
For two-word setting, set an even-numbered device.
(7) Inputting device data
The device data for indirect setting is input by the Motion CPU at the Motion
program start.
Therefore, execute the pre-read disable of M100 for the indirect setting.
The procedure by start method for setting data to devices and cautions are
shown below.
Starting methods Setting procedure Cautions
Start by the Motion
program
Set the data in indirect setting devices.
Start the Motion program.
Automatic start by the
cancel/start
Set the data to the indirect setting devices set in the
start program.
Turn the cancel command device ON.
Do not change the indirect
setting device before the
"positioning start complete
signal" of the starting axis
turns ON.
After program start
Set the command data to the indirect setting
devices.
Execute the M100 pre-read disable.
Refer to the values set to the indirect setting devices
until the M100 is executed.
Example
O0010;
N1 G00 X0 F1000. ;
N2 M100;
N3 G01 X100. F1500. ;
N4 G01 X#D2000L F1500. ;
M02;
%
Set "D2000, D2001" before
execution of N2.
They may not be reflected
after execution of N2.