MC_GenerateCamTable
The MC_GenerateCamTable instruction creates a cam table for the CamProperty (Cam Properties)
and CamNodes (Cam Nodes) specified in the I/O variables.
Instruction Name
FB/
FUN
Graphic expression ST expression
MC_Generate-
CamT
able
Generate
Cam Table
FB
MC_GenerateCamTable_instance
CamTable CamTable
CamProperty CamProperty
CamNodes
Busy
CommandAborted
Error
ErrorID
ErrorParameterCode
ErrorNodePointIndex
EndPointIndex
MC_GenerateCamTable
Execute
CamNodes
Done
MC_GenerateCamTable_instance
(
CamT
able :=parameter,
CamProperty :=parameter,
CamNodes :=parameter,
Execute :=parameter,
Done =>parameter,
EndPointIndex =>parameter,
Busy =>parameter,
CommandAborted =>parameter,
Error =>parameter,
ErrorID =>parameter,
ErrorParameterCode
=>parameter,
ErrorNodePointIndex
=>parameter
);
Precautions for Correct Use
You must create the cam table specified for this instruction with the Cam Editor on the Sysmac
Studio and download it to the CPU Unit in advance.
Use the Synchronize Menu of the Sysmac Studio to download the project.
Variables
Input Variables
Name Meaning Data type Valid range Default Description
Execute Execute BOOL TRUE or
FALSE
FALSE The instruction is executed when the value
of this variable changes to TRUE.
Output Variables
Name Meaning
Data
type
Valid range Description
Done Done BOOL TRUE or
F
ALSE
TRUE when the instruction is completed.
EndPointIndex End Point In-
dex
UINT Non-negative
number
Contains the cam table end point index after the instruc-
tion is executed.
Busy Executing BOOL TRUE or
F
ALSE
TRUE when the instruction is acknowledged.
5 Common Command Instructions
5-18
NY-series Motion Control Instructions Reference Manual (W561)