6-25
6 Motion Control Programming
NJ/NX-series CPU Unit Motion Control Userās Manual (W507)
6-6 System-defined Variables for Motion Control
6
6-6-3 Tables of System-defined Variables for Motion Control
This section provides tables that describe the system-defined variables for motion control.
The variable name _MC_COM is used for the MC Common Variable. The data type is _sCOM-
MON_REF, which is a structure variable. This section describes the configuration of the MC Common
Variable and provides details on the members.
*1 A CPU Unit with unit version 1.08 or later and Sysmac Studio version 1.09 or higher are required.
6-6-3 Tables of System-defined Variables for Motion Control
MC Common Variable
Variable name Data type Meaning Function
_MC_COM _sCOMMON_REF MC Common Variable
Status _sCOMMON_REF_STA MC Common Status
RunMode BOOL MC Run TRUE during MC Function Module
operation.
TestMode BOOL MC Test Run TRUE during test mode operation
from the Sysmac Studio.
CamTableBusy BOOL Cam Table File Save
Busy
TRUE while the Cam Table is being
saved or on standby.
Generate
CamBusy
*1
BOOL Generating Cam Table TRUE while the cam table is being
generated.
PFaultLvl _sMC_REF_EVENT MC Common Partial
Fault
TRUE while the cam table is being
generated.
Active BOOL MC Common Partial
Fault Occurrence
TRUE while there is an MC common
partial fault.
Code WORD MC Common Partial
Fault Code
Contains the code for an MC com-
mon partial fault. The upper four dig-
its of the event code have the same
value.
MFaultLvl _sMC_REF_EVENT MC Common Minor
Fault
Active BOOL MC Common Minor
Fault Occurrence
TRUE while there is an MC common
minor fault.
Code WORD MC Common Minor
Fault Code
Contains the code for an MC com-
mon minor fault. The upper four digits
of the event code have the same
value.
Obsr _sMC_REF_EVENT MC Common Obser-
vation
Active BOOL MC Common Obser-
vation Occurrence
TRUE while there is an MC common
observation.
Code WORD MC Common Obser-
vation Code
Contains the code for an MC com-
mon observation. The upper four dig-
its of the event code have the same
value.