9-17
9 Motion Control Functions
NJ-series CPU Unit Motion Control User’s Manual (W507)
9-2 Sing
le-axi
s Sync
hr
o
n
iz
ed
Co
ntr
o
l
9
9-2-5
Cam T
ab
le
s
A cam table is declared as an array of cam data structures. The type declaration for the cam data struc-
ture is shown below.
You must create the cam data with the Cam Editor in the Sysmac Studio and then specify the name of
the cam table and the number of cam data (i.e., the size of the array). For example, to make a cam table
called
MyCam1
with 1,000 points use the following declaration.
The following notation is used to specify
MyCam1
for a cam operation instruction. In this example, the
master axis is
Axis1
and the slave axis is
Axis2
.
An error will occur if the specified cam table does not exist in the Controller. You can also specify the
same cam table for more than one axis.
You can switch cam tables by re-executing the cam operation instruction during cam operation. After
switching, cam operation will be performed with the cam table you specified for re-execution of the
instruction. The
EndOfProfile
and
Index
output variables from the MC_CamIn instruction are output
according to the new cam table.
Precautions for Correct Use
Precautions for Correct Use
•
The cam table you want to switch to must be saved to non-volatile memory before it can be
used.
Data Type of Cam Tables
Switching Cam Tables
TYPE
_sMC_CAM_REF :
STRUCT
END_STRUCT;
END_TYPE
Distance :
REAL;
(*Displacement*)
Phase :
REAL; (*Phase*)
(*Cam data structure*)
VAR
MyCam1
:
ARRAY [0..999] OF _sMC_CAM_REF;
END_VAR
(*Cam table*)
MC_CamIn
Master
Master
Slave
Slave
CamTable
CamTable
Axis1
Axis1
Axis2
Axis2
MyCam1
MyCam1
MC_CamIn_Instance
Phase
Re-executed
Cam table 2
Cam table 1
Displacement
Slave
(Slave axis)
Master
(Master axis)
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...