Mitsubishi Electronics Q173HCPU/Q172HCPU Work Light User Manual


 
4 - 72
4 POSITIONING SIGNALS
4.2.4 Control program monitor devices
Up to 16 control programs can be executed simultaneously. When new control
program is executed in this monitor area, the vacant area is secured suitably and the
monitor information on the executed program.
(1) Program No. storage register (D1440+6n) ....…….. Monitor device
(a) The O No. of executing control program is stored.
(b) When a subprogram is called from a subprogram, this number changes to
the O No. of the subprogram called.
(c) This number changes to "0" using the Motion dedicated PLC instruction
(S(P).SFCS) at the Motion program start.
(2) Sequence No. storage register (D1441+6n) ....….. Monitor device
This register stores the N No. (sequence No.) of the executing main sequence.
This number changes to "0" using the SFCS instruction at the Motion program
start.
(3) Block No. storage register (D1442+6n) ....…….. Monitor device
The block No. of executing control program is stored.
This number changes to "0" using the Motion dedicated PLC instruction
(S(P).SFCS) 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) Error code storage register (D1443+6n) ....……….. Monitor device
(a) This register stores the corresponding error code at the minor error
occurrence. If another minor error occurs after error code storing, the
previous error code is overwritten by the new error code.
(5) Execute status storage register (D1444+6n) ..…….. Monitor device
This register stores the execute status.
Name Contents
Execute status storoge register
0 : End
1 : Executing
When the control program is ended normally or by error, the stored monitor
information is not cleared, "0" is stored in the execute status storage register.
After that, the monitor information is not cleared until the new control program is
started and the monitor area is assigned.