Mitsubishi Electronics Q173HCPU/Q172HCPU Work Light User Manual


 
7 - 79
7 AUXILIARY AND APPLIED FUNCTIONS
7.10 Control Program Stop Function from The PLC CPU
The No. of control program during execution is specified to end a program from the
PLC CPU. (This function is equivalent to a Motion program (CLEAR) for positioning
control.)
(1) The control program set as the CLEAR request control program No. setting
register (D707) is ended. The values except for "0" is set in D707, the CLEAR
processing is executed.
(2) When an equivalent for CLEAR instruction is executed toward the all control
programs during execution, "65535" is stored in the CLEAR request control
program No. setting register (D707).
(3) When the control program set as the CLEAR request control program No. setting
register (D707) is cleared normally, "1" is stored in the CLEAR request status
storage register (D1445).
(4) When an error will occur by clearing the control program set as the CLEAR
request control program No. setting register (D707), the following error codes are
stored.
(a) A minor error "the program number ended by CLEAR is outside the range of 1
to 1024". (Error code: 619)
(b) A minor error "the program number ended by CLEAR is nor registered. Or,
the axis designation program is cleared." (Error code: 620)
(5) When "0" is stored in the CLEAR request control program No. setting register
(D707), "1" is also stored in the CLEAR request status storage register (D1445).
[Operation Timing]
Operation timing for the CLEAR request status storage register by control program
stop function from the PLC CPU is shown in Fig. 7.23.
Clear request control program
No. setting register (D707)
2000
* : Error code
01000
619010
*
Clear request status storage
register (D1445)
Fig. 7.23 Operation timing for the CLEAR request status storage register