User`s manual
68
CHAPTER2 PROFIBUS Unit
(2) Program reset ......................................................................... Code 0102
Return the step of the program to the 1st step of the head program, and turn OFF all
DO0 to DO12*
1
, SO200 to SO231 and memory I/O. Moreover, also clear the point
variable "P" to 0. (Do not clear the counter variables "C" and "D".)
Command option
QWn+22
QWn+20 QWn+18 QWn+16
QWn+14 QWn+12
Command response
IWm+22
IWm+20 IWm+18 IWm+16
IWm+14 IWm+12
(Example)
Transmission example 1:
Execute the program reset.
QWn+22
QWn+20 QWn+18 QWn+16
QWn+14 QWn+12
QWn+10
QWn+8
0000
0000 0000
0000
0000 0000
0000 0102
Response example 1:
It is normally ended.
IWm+22
IWm+20 IWm+18 IWm+16
IWm+14 IWm+12
IWm+10
IWm+8
0000
0000 0000
0000
0000 0000
0000 0200
!
CAUTION
At the output port which has simulatively serialized the parallel I/O, any output
does not vary even if the reset command is executed.
!
CAUTION
If the return-to-origin completing operation selection parameter (single-axis
controllers:PRM33, dual-axis controllers:PRM2) is set to 1 or 3, DO4*
2
will not
be turned OFF even if the reset command is executed. If the servo status output
selection parameter (single-axis controllers:PRM46, dual-axis
controllers:PRM21) is set to 1, DO7*
3
will similarly not be turned OFF even if
the reset command is executed.
MEMO
MEMO
The head program is the program selected by switching the program which is finally
executed at HPB or POPCOM.
The head program is also switched when the communication command "@SWI" is
executed. Moreover, when the program data is loaded from the memory card to the
controller, it is sometimes switched.
*1: DO0 to DO4 when the SRCP/SRCD series controllers are used.
*2: DO5 when the DRCX series controllers are used.
*3: DO3 when the SRCP/SRCD series controllers are used.