Structured Text (ST)
Main Variables
Name Data type Default Comment
MC_Axis000 _sAXIS_REF --- Axis Variable for axis 1.
MC_Axis000.MFaultLvl.Active BOOL FALSE TRUE while there is a minor fault level error for
axis 1.
MC_Axis000.Details.Homed BOOL FALSE TRUE when home is defined for axis 1.
MC_Axis001 _sAXIS_REF --- Axis Variable for axis 2.
MC_Axis001.MFaultLvl.Active BOOL FALSE TRUE while there is a minor fault level error for
axis 2.
MC_Axis001.Details.Homed BOOL FALSE TRUE when home is defined for axis 2.
TrigRef _sTRIG-
GER_REF
--- This is the specified variable for the interrupt in-
put.
Latch 1 of the Servo Drive is used in this sam-
ple. When the rising edge of the external input
for sensor 1 is detected, interrupt feeding is
executed.
StartPg BOOL FALSE The Servo is turned ON if this variable is TRUE
and EtherCA
T process data communications
are established.
InitFlag BOOL FALSE This variable indicates if it is necessary to set
the input parameters.
Input parameters are set when this variable is
F
ALSE. When setting the input parameters is
completed, this variable changes to TRUE.
Hm1_Ex BOOL FALSE The HM1 instance of MC_Home is executed
when this variable changes to TRUE.
Hm2_Ex BOOL FALSE The HM2 instance of MC_Home is executed
when this variable changes to TRUE.
Mv_Feed_Ex BOOL FALSE The MV_FEED instance of MC_MoveFeed is
executed when this variable changes to TRUE.
Mv_Abs_Ex BOOL FALSE The MV_ABS instance of MC_MoveAbsolute is
executed when this variable changes to TRUE.
Mv_Zero_Ex BOOL FALSE The MV_ZERO instance of MC_MoveZeroPosi-
tion is executed when this variable changes to
TRUE.
3 Axis Command Instructions
3-134
NY-series Motion Control Instructions Reference Manual (W561)