7 MOTION PROGRAMS FOR POSITIONING CONTROL
Start by the Motion
Automatic start by the
After program start
(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
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.
#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.
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
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
Set the data in indirect setting devices.
Start the Motion program.
Set the data to the indirect setting devices set in the
Turn the cancel command device ON.
Set the command data to the indirect setting
Execute the M100 pre-read disable.
Refer to the values set to the indirect setting devices
until the M100 is executed.
7 - 29
Do not change the indirect
setting device before the
"positioning start complete
signal" of the starting axis
N1 G00 X0 F1000. ;
N3 G01 X100. F1500. ;
N4 G01 X#D2000L F1500. ;
Set "D2000, D2001" before
execution of N2.
They may not be reflected
after execution of N2.