6-29
6 Motion Control Programming
NJ-series CPU Unit Motion Control User’s Manual (W507)
6-7 Cam T
ab
le
s and
Cam
Data V
ariab
le
s
6
Precautions for Correct Use
Precautions for Correct Use
•
If you change any cam data in the user program, those changes are lost and the cam table in
non-volatile memory is restored if you restart the power or download cam data from the Sys-
mac Studio.
•
Execute the MC_SaveCamTable instruction first if you need to save cam data that you modi-
fied in the user program to non-volatile memory or if you need to upload it to the Sysmac Stu-
dio.
If you edit a cam data variable from the user program and then use the MC_SaveCamTable instruction
to save the cam table to non-volatile memory, you cannot edit the data with the Cam Editor of the Sys-
mac Studio. This section describes how to use spreadsheet software to edit the data and then use it as
a cam table.
* Use the Synchronization menu command of the Sysmac Studio to upload and download the project.
z
Saving a Cam Table from Non-volatile Memory to a CSV File
•
Right-click a cam profile that you edited in the Cam Data Settings of the Sysmac Studio and select
Transfer Cam Table [Controller to File]
from the menu.
•
The Save Dialog Box is displayed. Enter the file save location and file name, and then click the
Save
Button.
z
Editing CSV Files
•
Use spreadsheet software or other CSV-compatible software to edit the CSV file.
z
Transferring the CSV File to the CPU Unit
•
Right-click the cam profile to download and select
Transfer Cam Table [File to Controller]
from
the menu.
•
The Open File Dialog Box is displayed. Specify the file to transfer, and then click the
OK
Button.
•
To enable the cam table that you transferred, reset the Controller or cycle the power supply to the
Controller after the cam table is transferred.
Editing a Cam Data Variable on the Computer after Editing It from
the User Program
Spreadsheet
software
CSV file
Download
Transfer Cam Table [Controller to File]:
Uploads the cam table from the Controller and saves it in a CSV file.
Transfer Cam Table [File to Controller]:
Downloads the cam table from a CSV file to the Controller.
Save/Export
Read/Import
Edit
Upload
Sysmac Studio
ID211
0
1
3
2
4
5
7
6
8
9
11
10
12
13
14
15
DC24V
7mA
COM
MACH
No.
AD042
RUN
ERC
ERH
B1
A1
x101
x100
0
9
8
7
6
5
4 3 2
1
0
9
8
7
6
5
4 3 2
1
0 1 2 3 4 5 6 7
8 9 10 11 12 13 14 15
Содержание NJ501-1300
Страница 12: ...Sections in this Manual 10 NJ series CPU Unit Motion Control User s Manual W507...
Страница 18: ...16 NJ series CPU Unit Motion Control User s Manual W507 CONTENTS...
Страница 22: ...Read and Understand this Manual 20 NJ series CPU Unit Motion Control User s Manual W507...
Страница 34: ...Revision History 32 NJ series CPU Unit Motion Control User s Manual W507...
Страница 44: ...1 Introduction to the Motion Control Function Module 1 10 NJ series CPU Unit Motion Control User s Manual W507...
Страница 58: ...2 Motion Control Configuration and Principles 2 14 NJ series CPU Unit Motion Control User s Manual W507...
Страница 86: ...3 Configuring Axes and Axes Groups 3 28 NJ series CPU Unit Motion Control User s Manual W507...
Страница 98: ...4 Checking Wiring from the Sysmac Studio 4 12 NJ series CPU Unit Motion Control User s Manual W507...
Страница 122: ...5 Motion Control Parameters 5 24 NJ series CPU Unit Motion Control User s Manual W507...
Страница 158: ...6 Motion Control Programming 6 36 NJ series CPU Unit Motion Control User s Manual W507...
Страница 166: ...7 Manual Operation 7 8 NJ series CPU Unit Motion Control User s Manual W507...
Страница 182: ...8 Homing 8 16 NJ series CPU Unit Motion Control User s Manual W507...
Страница 346: ...10 Sample Programming 10 92 NJ series CPU Unit Motion Control User s Manual W507...
Страница 422: ...Appendices A 18 NJ series CPU Unit Motion Control User s Manual W507...
Страница 423: ...Index 1 NJ series CPU Unit Motion Control User s Manual W507 I Index...
Страница 430: ...Index 8 NJ series CPU Unit Motion Control User s Manual W507 Index...