EasyManuals Logo

Omron NX701-1 User Manual

Omron NX701-1
448 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #244 background imageLoading...
Page #244 background image
9 Motion Control Functions
9-22
NJ/NX-series CPU Unit Motion Control User’s Manual (W507)
With a CPU Unit with unit version of 1.08 or later and the Sysmac Studio version 1.09 or higher, you can
generate the cam table by executing the MC_GenerateCamTable (Generate Cam Table) instruction.
The MC_GenerateCamTable instruction calculates the cam data using the values specified for Cam-
Property (Cam Properties) and CamNodes (Cam Nodes), and rewrites the cam data variable specified
for the CamTable (Cam Table) in-out variable.
When rewriting is completed, the MC_GenerateCamTable instruction updates the end point index of
the cam table and outputs the element number of the cam end point to EndPointIndex (End Point
Index).
It is not necessary to execute the MC_SetCamTableProperty (Set Cam Table Properties) instruction after
the MC_GenerateCamTable instruction is completed.
The cam data variable is an array variable with the data type of cam data structure _sMC_CAM_REF.
You create the cam data variable on the Cam Editor of the Sysmac Studio.
For CamProperty, specify the cam property variable. The cam property variable is an array variable with
the data type of cam property structure _sMC_CAM_PROPERTY. You create the cam property variable
as a user-defined variable on the global variable table of the Sysmac Studio. Or, you create the variable
using the cam data settings on the Sysmac Studio.
For CamNodes, specify the cam node variable. The cam node variable is an array variable with the
data type of cam node structure _sMC_CAM_NODE. You create the cam node variable as a user-
defined variable on the global variable table of the Sysmac Studio. Or, you create the variable using the
cam data settings on the Sysmac Studio.
The cam property variable and the cam node variable are collectively called ā€œcam definition variableā€.
If the cam definition variable is created as a user-defined variable, the default of its Retain attribute is
Non-retain. You must set the Retain attribute of variable to Retain, if you want to reuse the variable after
changing its value and switching the operating mode to PROGRAM mode or cycling the power supply.
If you set the variable each time of use from the HMI, etc., the attribute can be left Non-retain.
If the cam definition variable is created with the cam data settings on the Sysmac Studio, the Retain
attribute of variable will be fixed to Retain.
Generate Cam Table
1
0
0.0
0.0
... ...
179 0.0
180 0.0
181 0.0
...
0.0
0.0
...
0.0
0.0
0.0
... ...
1
0
1.0
0.0
... ...
179 199.0
180 200.0
181 0.0
...
1.0
0.0
...
179.0
18
0.0
0.0
... ...
Cam table
before instruction execution
Cam table
after instruction execution
MC_GenerateCamTable_instance
CamTable CamTable
CamProperty CamPropertyCam table property
Cam node (defining curves)
Outputs "180" after instruction execution.
CamNodes
Busy
CommandAborted
Error
ErrorID
ErrorParameterCode
ErrorNodePointIndex
EndPointIndex
MC_GenerateCamTable
Execute
CamNodes
Done
Cam end point
Element
numbers
Phase
Displacement
Element
numbers
Phase
Displacement
The cam data is
calculated and written to
the table when the
instruction is executed.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NX701-1 and is the answer not in the manual?

Omron NX701-1 Specifications

General IconGeneral
BrandOmron
ModelNX701-1
CategoryController
LanguageEnglish

Related product manuals