Mitsubishi Electronics Q173HCPU/Q172HCPU Work Light User Manual


 
4 - 69
4 POSITIONING SIGNALS
(2) Execute sequence No. (main) storage register (D802+20n)
....………... Monitor device
This register stores the N No. (sequence No.) of the executing main sequence.
This number changes to "0" using the Motion dedicated PLC instruction
(S(P).SVST) at the Motion program start.
The changes of the execute Motion program No., execute sequence No. and
execute block No. are shown below.
Program
Execute Motion
program No.
Execute sequence
No.
Execute block No.
O0001 ; 1 0 0
G00 X100. ; 1 0 1
X200. ; 1 0 2
N100 Y100. ; 1 100 0
Z100. ; 1 100 1
X300. ; 1 100 2
N200 G01 X350. F100. ; 1 200 0
Y200. Z200. ; 1 200 1
M10 ; 1 200 2
M02 ; 1 200 3
% 1 200 3
(3) Execute block No. (main) storage register (D803+20n)
....………….. Monitor device
This register stores the block No. during operation.
This number changes to "0" using the Motion dedicated instruction (S(P).SVST)
at the Motion program start.
When the sequence No. (N****) described in the Motion program is executed,
this number changes to "0", and it is incremented every time a single block is
executed. (Be careful when executing the IF-THEN-ELSE-END or WHILE-DO
instruction. Refer to Sections 6.16.2 and 6.16.3 for details.)
(4) Execute program No. (sub) storage register (D804+20n)
.......……….. Monitor device
(a) This register stores the O No. of the subprogram started by "M98"
(subprogram call).
(b) When a subprogram is called from a subprogram, this number changes to
the O No. of the subprogram called.
When the subprogram is ended by "M99", this number changes to the O
No. of the call source subprogram.
(c) This number changes to "0" using the Motion dedicated PLC instruction
(S(P).SVST) at the Motion program start.