3 work register, 1) status flag of sequence program – Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual
Page 72
![background image](https://www.manualsdir.com/files/819957/content/doc072.png)
5.2 How to Run a Sequence Program
5-5
5
Sequence Programs
5.2.3 Work Register
A status flag to monitor program status is assigned to the sequence program in 5.2.2 Registering Program Execu-
tion. The status flag of a sequence program can be obtained by the following equation.
(1) Status Flag of Sequence Program
IW
+ 4 × (Program definition number - 1)
M-EXECUTOR’s I/O start register number
The I/O start register number can be confirmed in the Module Configuration window.
I/O start register number
Bit No
Status
Description
0 to 3
Bit 0 Program running
This bit is ON while the sequence program is running.
0: The sequence program is being stopped, 1: The sequence program is running.
Bit 1 (Reserved)
−
Bit 2 (Reserved)
−
Bit 3 (Reserved)
−
4 to 7
Bit 4 (Reserved)
−
Bit 5 (Reserved)
−
Bit 6 (Reserved)
−
Bit 7 (Reserved)
−
8 to B
Bit 8
Program alarm is
occurring
This bit turns ON when any of the following errors occur while calling the sequence
program using an SSEE command. This bit turns OFF when the error is corrected.
• The called program is not registered.
• The called program is not a sequence program.
• The called program is not a subprogram. (The main program is called.)
• The called program number exceeded the set range.
• Over nested
0: No program alarm (Normal), 1: Program alarm occurring
Bit 9
Stopping at
break point
This bit is ON when the program is stopped at a break point during debugging.
0: Not stopped at break point, 1: Stopped at break point
Bit A (Reserved)
−
Bit B In debug mode
This bit is ON while the program is running in debug mode.
0: Normal operation mode, 1: Debug mode
C to F
Bit C Program type
Reports the running program type: Motion program or sequence program
0: Motion program, 1: Sequence program
Bit D Start request history
This bit is ON while the sequence program is running.
0: Sequence program stopped, 1: Sequence program running
Bit E (Reserved)
−
Bit F (Reserved)
−