Name Meaning
Data
type
Valid range Description
ErrorID Error Code WORD
*1
Contains the error code when an error occurs.
A value of 16#0000 indicates normal execution.
*1. The upper four digits of the event code give the error code for ErrorID. Refer to the NY
-series Troubleshooting Manual
(Cat. No. W564) for the event codes.
Output Variable Update Timing
Name Timing for changing to TRUE Timing for changing to FALSE
Done When overwriting cam table data is completed.
• When Execute is TRUE and changes to
F
ALSE.
• After one period when Execute is FALSE.
Busy When Execute changes to TRUE.
• When Done changes to TRUE.
• When Error changes to TRUE.
• When CommandAborted changes to TRUE.
CommandAborted When there is a reason to abort this instruction.
• When Execute
is TRUE and changes to
FALSE.
• After one period when Execute is FALSE.
Error When there is an error in the execution condi-
tions or input parameters for the instruction.
When the error is cleared.
In-Out Variables
Name Meaning Data type Valid range Description
CamTable Cam Table ARRAY[0..N] OF
_sMC_CAM_REF
--- Specify the cam data structure _sMC_CAM_REF
array variable as the cam table.
*1
*1. N in the array variable is set automatically by the Sysmac Studio. Specify a cam data variable that was created on
Cam Editor of the Sysmac Studio.
Function
• The MC_SetCamTableProperty instruction changes the end point index of the cam table that is
specified in an in-out parameter
.
• The 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.
• The array number of the end point is output to EndPointIndex.
• Any data that is detected after the 0 phase is detected is treated as invalid cam data, and the phase/
displacement values are ignored.
• The maximum number of cam data represents the maximum number of elements in an array of cam
data structures.
The maximum number of cam data is specified when the structure array is declared with the Sys-
mac Studio.
• When the user program changes the cam data end point index, the end point must be updated. Use
this instruction to update the number of valid cam data.
For details on cam tables, refer to the NY-series Industrial Panel PC / Industrial Box PC Motion Control
User’s Manual (Cat. No. W559).
5 Common Command Instructions
5-3
NY-series Motion Control Instructions Reference Manual (W561)
MC_SetCamTableProperty
5
Function