![Omron NJ501-1300 User Manual Download Page 200](http://html1.mh-extra.com/html/omron/nj501-1300/nj501-1300_user-manual_742205200.webp)
9 Motion Control Functions
9-18
NJ-series CPU Unit Motion Control User’s Manual (W507)
•
Switching cam tables during cam operation will cause discontinuous velocities. Adjust the tim-
ing for switching the cam table to avoid excessive velocity discontinuity.
Cam data can be loaded and saved from the user program just like any other variables. For example,
you can use
MyCam1[0]
.
Phase
to specify the phase and
MyCam1[0]
.
Distance
to specify the displace-
ment in the first array elements of a cam table named MyCam1. Cam data overwritten from the user
program can be saved to the non-volatile memory in the CPU Unit as a cam table by executing the
MC_SaveCamTable instruction.
Precautions for Correct Use
Precautions for Correct Use
•
Overwritten cam data will be lost if the CPU Unit is turned OFF or the cam data is downloaded
from the Sysmac Studio before the Save Cam Table instruction is executed or if the instruction
fails to save the data for any reason.
•
Overwritten cam data will be lost if the CPU Unit is turned OFF before the Save Cam Table
instruction is executed or if the instruction fails to save the data for any reason. Be careful not
to lose the overwritten data when overwriting cam data from the user program in the CPU Unit.
•
Cam data saved to non-volatile memory can be loaded by using the upload function of the
Sysmac Studio.
•
Use the Synchronization menu command of the Sysmac Studio to upload and download the
project.
For details on arrays, refer to the
NJ-series CPU Unit Software User's Manual
(Cat. No. W501).
For details on the Save Cam Table instruction, refer to the MC_SaveCamTable instruction in the
NJ-
series Motion Control Instructions Reference Manual
(Cat. No. W508).
The MC Function Module must identify the cam end point of the cam table. If an overwrite is performed
from the user program during cam operation and the number of valid cam data changes, you must
update the number of valid cam data to the latest value. Use the MC_SetCamTableProperty instruction
for this.
The cam end point is the data located one cam data before the first cam data with a phase of 0 after the
start point in the cam table. All cam data after phase 0 is detected will be invalid.
For example, refer to the following cam table. The
EndPointIndex
(End Point Index) output variable is
999 and the
MaxDataNumber
(Maximum Number of Cam Data) output variable is 5,000 from the
MC_SetCamTableProperty instruction.
camLoading/Saving Cam Data and Saving Cam Tables
Updating Cam Table Properties
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...