
3.1 Basic Functionality
3.1.1 Programs
3-9
3
CPU Module Functionality
Work Registers
Work registers are used to set and monitor motion programs.
The address of the first work register for the motion program that is called with an MSEE
instruction is specified in the MSEE instruction in the ladder program. The following figure
shows the structure of the work registers.
•
Status Flags
The Motion Program Status Flags give the execution condition of the motion program. The fol-
lowing table describes the meanings of the Status Flags.
Work Register
Contents
Reference
1st register
Motion Program Status Flags
Page 3-9
2nd register
Motion Program Control Signals
3rd register
Interpolation Override
4th register
System Work Number
Bit No.
Name
Description
Bit 0
Program Executing
This bit is set to 1 when a motion program is running.
0: Motion program is stopped.
1: Motion program is running.
Bit 1
Program Paused
This bit is set to 1 when execution of a motion program is paused by a
Request for Pause of Program.
After a Request for Pause of Program control signal is input, it is confirmed
that the axis decelerated to a stop and then the status flag is turned ON.
0: Program is not stopped by a pause request.
1: Program is stopped by a pause request.
Bit 2
Program Stopped for
Stop Request
This bit is set to 1 when execution of a motion program is stopped by a
Request for Stop of Program.
0: Program is not stopped by a stop request.
1: Program is stopped by a stop request.
Bit 3
Reserved for system.
−
Bit 4
Program Single-block
Execution Stopped
This bit is set to 1 when execution of a single block is stopped in Debug
Operation Mode.
0: Single block execution is not stopped.
1: Single block execution is stopped.
Bit 5
Reserved for system.
−
Bit 6
Reserved for system.
−
Bit 7
Reserved for system.
−
Bit 8
Program Alarm
This bit is set to 1 when a program alarm occurs.
When this bit is set to 1, details on the error will be displayed in the Error
Information Dialog Box and are given in the S registers.
0: There is no program alarm.
1: A program alarm occurred.
Bit 9
Program Stopped at
Breakpoint
This bit is set to 1 when execution of a program stops at a breakpoint in
Debug Operation Mode.
0: Not stopped at a breakpoint.
1: Stopped at a breakpoint.
Bit A
Reserved for system.
−
Bit B
Debug Operation
Mode
This bit is set to 1 when a program is running in Debug Operation Mode.
0: Not in Debug Operation Mode (Normal Execution Mode).
1: In Debug Operation Mode.
Bit C
Program Type
This bit reports whether the program that is being executed is a motion
program or a sequence program.
0: Motion program
1: Sequence program
Continued on next page.
Addre
ss
of fir
s
t work regi
s
ter
(M regi
s
ter or D regi
s
ter)