Name Meaning Data type
Valid
range
Description
Switches Switches ARRAY[0..255] OF
_sCAMS-
WITCH_REF
*2
--- Specify an array variable of _sCAMS-
WITCH_REF switch structures for use as switch
ON/OFF pattern data.
The array element numbers indicate the switch
numbers.
Outputs Output Signals ARRAY[0..15] OF
_sOUTPUT_REF
*2
*3
--- Specify an array variable of _sOUTPUT_REF
output signal structures for use as the output
destinations for digital ON/OFF time outputs that
are calculated based on switch ON/OFF pattern
data. The array element numbers indicate the
track numbers.
Y
ou can specify this array variable as an in-out
variable for a NX_AryDOutTimeStamp instruction
to actually turn ON and OFF digital outputs.
TrackOptions Track Options ARRAY[0..15] OF
_sTRACK_REF
*2
*3
--- Specify an array variable of _sTRACK_REF track
option structures for use as switch operating con-
ditions. The array element numbers indicate the
track numbers.
*1. Specify a user-defined Axis Variable that was created in the Axis Basic Settings of the Sysmac Studio (default: MC_Ax-
is*) or a system-defined axis variable name (_MC_AX[*]).
If you use Sysmac Studio version 1.29 or higher
, you can specify the system-defined axis variable name for AT specifi-
cation of a user-defined variable. This will allow you to specify the user-defined variable.
If you use Sysmac Studio version 1.28 or lower, do not specify any user-defined variable created in the variable table.
*2. An error will occur if the first element number in the array is not 0. An error will also occur if an array with more than
one dimension is specified.
*3. An error will occur if the number of elements in Outputs and the number of elements in TrackOptions are not the same.
Function
• The MC_DigitalCamSwitch instruction outputs the times when the actual position of an axis will
reach positions that are set in Switches
as the times for turning a digital output ON and OFF.
• Always use this instruction together with the NX_AryDOutTimeStamp instruction and with a Digital
Output Unit that supports time stamp refreshing.
• The NX_AryDOutTimeStamp instruction turns the specified digital output ON or OFF at the specified
time stamp. If you use time stamp refreshing, you can turn digital output signals ON and OFF at the
required time without being affected by the timing of control processing.
3 Axis Command Instructions
3-418
NY-series Motion Control Instructions Reference Manual (W561)