Yaskawa MP2300S Basic Module User Manual

Page 157

Advertising
background image

5.2 User Programs

5.2.2 Motion Programs

5-24

( 6 ) Monitor the motion program execution information using S register

Using S register (SW03200 to SW04191) allows you to monitor the motion program execution information.
The way to monitor the execution information for a motion program registered in the M-EXECUTOR program execu-
tion definition differs from that for a motion program referenced by an MSEE command from a ladder program.
The way to monitor it in each case is shown as follows:

[ a ] A motion program registered in the M-EXECUTOR program execution definition

When a motion program is registered in the M-EXECUTOR program execution definition, the same system work num-
ber as the definition No. is used.
For example, a motion program is registered as “Definition No.” =3, the used system work number is “System
Work”=3. In this case, the execution information for the motion program can be monitored in “Program Information
Using Work 3” (=SW03380 to SW03437).

[ b ] A motion program referenced by an MSEE command from a ladder program

When a motion program is referenced by an MSEE command from a ladder program, the way differs, depending on the
“BitD” setting (system work number setting) of the motion program control signal, as follows:

„

The motion program control signal “BitD, System Work Number Setting” = ON

The execution information is reported to “Program Information Using Work n” register (SW03264-SW04191).
For example, when “System Work Number”=1, the motion program execution information can be monitored in SW03264-
SW03321 “Program Information Using Work 1”.

„

The motion program control signal “BitD, System Work Number Setting” = OFF

The used system work is automatically decided by system. Thus, to check which work is used, refer to “Running Program Num-
ber” (=SW03200 to SW03215).
For example, when you want to monitor the motion program MPM001 and SW03202=001, as used the work number=3, the
execution information for the motion program MPM001 can be monitored in “Program Information Using Work 3” (=SW03380
to SW03437).

For more information on the register area of the motion program execution information, refer to the subsequent pages.

Advertising