2-9
2 Motion Control Configuration and Principles
NJ-series CPU Unit Motion Control User’s Manual (W507)
2
-3 Motion
Con
tr
o
l Princip
les
2
2-3-2 Example of T
a
sk Oper
ations f
or Motion Control
z
Axis Variable Update Timing
Axis Variables are system-defined variables for some of the axis parameters and for the monitor
information, such as the actual position and error information for the axes controlled by the MC
Function Module.
If you access an Axis Variable during the priority-16 periodic task, the values of the variable that
were read at the start of the periodic task are used.
Also, the values of an Axis Variable are not written when a motion control instruction (FB) is exe-
cuted. They are written in motion control processing (MC) at the start of the next periodic task.
*1
The values of an Axis Variable are read at the start of user program execution for the periodic task.
*2
The values of an Axis Variable are not written when a motion control instruction (FB) is executed in the periodic
task.
*3
The values are written during this motion control processing (MC).
Precautions for Correct Use
Precautions for Correct Use
•
When motion control instructions are placed in a periodic task, the response time of the Servo
Drive will increase if the task period of the periodic task is lengthened.
•
Make sure that all axes can be stopped safely for emergency stops, including emergency
stops commanded from external devices.
•
The execution timing of motion control instructions in a priority-16 periodic task is not the same
as the execution timing for I/O control. Design the user program to allow for this.
Additional Information
For information on Axis Variables, refer to
3-1-3 Introduction to Axis Variables
.
UPG
FB
UPG
IO
MC
UPG
IO
MC
UPG
IO
MC
UPG
IO
MC
*3
UPG
IO
MC
UPG
I/O
OUT
Primary period
Execution of motion control instructions
*2
Servo
Execution
command
Priority-16
periodic task
Task period (primary period × 3)
Primary
periodic task
Values of
Axis
Variable
are read
*1
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...