![background image](http://html1.mh-extra.com/html/omron/nj501-1300/nj501-1300_user-manual_742205054.webp)
2 Motion Control Configuration and Principles
2-10
NJ-series CPU Unit Motion Control User’s Manual (W507)
If you have processes that require high-speed motion control and processes that do not require high-
speed motion control for the same axis, you can place the motion control instructions (FB) both in the
primary periodic task and in a priority-16 periodic task.
If motion control instructions (FB) are executed in both tasks within the period of the priority-16 periodic
task, the MC Function Module will perform motion processing for instructions in the primary periodic
task first.
For example, the MC_MoveAbsolute instruction is executed in the priority-16 periodic task. Then, the
MC_MoveRelative is executed for the same axis in the primary periodic task. The operation for this is
shown below.
•
The MC Function Module will execute MC_MoveRelative first. MC_MoveAbsolute is executed with
multi-execution of instructions.
The values of output variables for a motion control instruction and the values of system-defined vari-
ables for motion control will change during the I/O refresh of the task that executed the instruction.
Therefore, you may notice different behavior depending on the task if you use motion control instruc-
tions for the same axis in different tasks. Make sure that you thoroughly understand the processes of
each task before you start to develop your user program.
Precautions for Correct Use
Precautions for Correct Use
•
If you include motion control instructions for the same axis in both the primary periodic task
and the priority-16 periodic task, pay close attention to the following when you develop your
user program: the execution order of the motion control instructions, the timing of updates for
system-defined variables for motion control, and the output timing of command values.
•
If you use system-defined variables for motion control for the same axis in multiple tasks, pay
close attention to the differences in timing for updating system-defined variables for motion
control when you develop your user program.
Additional Information
For information on multi-execution of instructions, refer to
9-5-7 Multi-execution of Motion Control
.
Using Motion Control Instructions in Two Different Types of Tasks
UPG
FB1
UPG
IO
MC
UPG
IO
MC
UPG
IO
MC
UPG
IO
MC
UPG
IO
MC
FB2
FB2
FB2
FB2
FB1: MC_MoveAbsolute
FB2: MC_MoveRelative
Execution command for MC_MoveRelative
Primary period
Servo
Priority-16
periodic task
Task period (primary period × 3)
Primary
periodic task
The instruction is buffered for
multi-execution of instructions.
Summary of Contents for NJ501-1300
Page 12: ...Sections in this Manual 10 NJ series CPU Unit Motion Control User s Manual W507...
Page 18: ...16 NJ series CPU Unit Motion Control User s Manual W507 CONTENTS...
Page 22: ...Read and Understand this Manual 20 NJ series CPU Unit Motion Control User s Manual W507...
Page 34: ...Revision History 32 NJ series CPU Unit Motion Control User s Manual W507...
Page 86: ...3 Configuring Axes and Axes Groups 3 28 NJ series CPU Unit Motion Control User s Manual W507...
Page 122: ...5 Motion Control Parameters 5 24 NJ series CPU Unit Motion Control User s Manual W507...
Page 158: ...6 Motion Control Programming 6 36 NJ series CPU Unit Motion Control User s Manual W507...
Page 166: ...7 Manual Operation 7 8 NJ series CPU Unit Motion Control User s Manual W507...
Page 182: ...8 Homing 8 16 NJ series CPU Unit Motion Control User s Manual W507...
Page 346: ...10 Sample Programming 10 92 NJ series CPU Unit Motion Control User s Manual W507...
Page 422: ...Appendices A 18 NJ series CPU Unit Motion Control User s Manual W507...
Page 423: ...Index 1 NJ series CPU Unit Motion Control User s Manual W507 I Index...
Page 430: ...Index 8 NJ series CPU Unit Motion Control User s Manual W507 Index...