UnderAutomation
질문이요?

[email protected]

문의하기
UnderAutomation
⌘Q
이 페이지는 영어로만 제공됩니다.

Fanuc system variables list

The Fanuc system variables integrators use: $MNUTOOL, $MNUFRAME, $PLST_GRP1, $MCR.$GENOVERRIDE, $DMR_GRP, $FNO and more, with their type, their .va file and the typed property that reads them from C# or Python.

Which Fanuc system variable gives the active tool, the payload or the speed override, and where is it stored? This page lists the variables that integrators and maintenance teams read most often, with the file that holds each one and the property of the SDK that returns it.

Each system variable is stored in a .va file of the controller, on the device md:. The SDK reads a whole file in one request and gives every variable as a typed property: $MNUTOOL is GetSysframeFile().Mnutool, $MCR.$GENOVERRIDE is GetSycldintFile().Mcr.Genoverride.

The variable files of the controller and some of the variables each one holds.The variable files of the controller and some of the variables each one holds.
The variable files of the controller and some of the variables each one holds.

Read them from a PC

parameters.Snpx.Enable = true;
robot.Connect(parameters);
// One FTP read per .va file gives all its variables, typed
SysframeFile frames = robot.Ftp.KnownVariableFiles.GetSysframeFile();
SymotnFile motion = robot.Ftp.KnownVariableFiles.GetSymotnFile();
SycldintFile cycle = robot.Ftp.KnownVariableFiles.GetSycldintFile();
SystemFile system = robot.Ftp.KnownVariableFiles.GetSystemFile();
// .NET arrays start at 0: $MNUTOOLNUM[1] is Mnutoolnum[0]
int activeTool = frames.Mnutoolnum[0];
int activePayload = motion.PlstParnum[0];
string model = motion.ScrGrp[0].RobotModel;
int generalOverride = cycle.Mcr.Genoverride;
string fNumber = system.Fno;
// One variable by name, live (SNPX)
int overrideNow = robot.Snpx.IntegerSystemVariables.Read("$MCR.$GENOVERRIDE");
}
}
Click to see the full code
WayUse it forPage
SNPX, by nameA few values read often (about 2 ms)SNPX system variables
CGTP or Telnet KCL, by nameAny variable, also structuresCGTP registers & variables, Telnet variables
FTP or CGTP, KnownVariableFilesAll the variables of a file at once, typedDiagnostics & variables

Fanuc counts from 1, .NET and Python from 0: $MNUTOOL[1,3] is Mnutool[0, 2] in C#. In Python, a two dimension array like $MNUTOOL is one flat list, group 1 first. A variable that the file does not hold is null, and so is a position that reads Uninitialized.

The .va listing also gives the access of each variable (Access: RW or Access: RO). Open the file in a text editor to check it on your controller.

Tool and user frames: sysframe.va

VariableTypeMeaningSDK property
$MNUTOOL[g,n]POSITIONTool frame n of group g (X, Y, Z, W, P, R), n from 1 to 10 on a standard controllerGetSysframeFile().Mnutool
$MNUTOOLNUM[g]BYTENumber of the active tool of group gGetSysframeFile().Mnutoolnum
$MNUFRAME[g,n]POSITIONUser frame n of group g, n from 1 to 9 on a standard controllerGetSysframeFile().Mnuframe
$MNUFRAMENUM[g]BYTENumber of the active user frame of group gGetSysframeFile().Mnuframenum

Details: Tool frames, User frames.

Payload: symotn.va

VariableTypeMeaningSDK property
$PLST_GRP1[n]PLST_GRP_TPayload schedule n of group 1: $COMMENT, $PAYLOAD, $PAYLOAD_X, _Y, _Z, $PAYLOAD_IX, _IY, _IZ. The digit is the groupGetSymotnFile().PlstGrp1 to PlstGrp5
$PLST_PARNUM[g]INTEGERActive payload schedule of group gGetSymotnFile().PlstParnum

Details: Payload schedules.

Speed override: sycldint.va and system.va

VariableTypeMeaningSDK property
$MCR.$GENOVERRIDEINTEGERGeneral override, the % of the pendant, 1 to 100GetSycldintFile().Mcr.Genoverride
$GENOV_ENBBOOLEANFALSE locks the +% and -% keys of the pendantGetSystemFile().GenovEnb

Details: Speed override.

Mastering: sysmast.va

VariableTypeMeaningSDK property
$DMR_GRP[g].$MASTER_COUN[a]INTEGERMaster count of axis aGetSysmastFile().DmrGrp[g - 1].MasterCoun
$DMR_GRP[g].$MASTER_DONEBOOLEANMastering doneGetSysmastFile().DmrGrp[g - 1].MasterDone

Details: Mastering data.

Robot and program: symotn.va, system.va, synosave.va

VariableTypeMeaningSDK property
$SCR_GRP[g].$ROBOT_MODELSTRINGModel of the robot of group gGetSymotnFile().ScrGrp[g - 1].RobotModel
$SCR.$NUM_GROUPBYTENumber of motion groupsGetSymotnFile().Scr.NumGroup
$FNOSTRINGF number of the robotGetSystemFile().Fno
$APPLICATION[i]STRINGApplication software and its versionGetSystemFile().Application
$SHELL_WRK.$ROUT_NAMESTRINGSelected program. Not always the one that runsGetSynosaveFile().ShellWrk.RoutName
$SHELL_WRK.$CURR_LINEINTEGERCurrent lineGetSynosaveFile().ShellWrk.CurrLine
$TP_DEFPROGSTRINGProgram opened on the pendant. It follows what the operator opensGetSystemFile().TpDefprog
$ALM_IF.$LAST_ALMSTRINGLast alarmGetSystemFile().AlmIf.LastAlm

To follow the programs that run, prefer Monitor task execution.

Limits and motors: symotn.va, sycldint.va

VariableTypeMeaningSDK property
$PARAM_GROUP[g].$UPPERLIMS[a], $LOWERLIMS[a]REALSoft limits of each axis. A new value needs a restart of the controllerGetSymotnFile().ParamGroup[g - 1].Upperlims, Lowerlims
$PARAM_GROUP[g].$SV_OFF_ENB[a]BOOLEANMust be FALSE for Stream Motion, otherwise MOTN-615GetSymotnFile().ParamGroup[g - 1].SvOffEnb
$MOR_GRP[g].$TEMPERATURE[a]INTEGERTemperature of each motor, in % of its maximum. Reads 0 in ROBOGUIDEGetSycldintFile().MorGrp[g - 1].Temperature

Cautions

  • Reading is safe. Writing a system variable changes the robot at once: a tool frame moves every point taught with it, an override changes the cycle time.
  • None of these variables is a safety function. For the safety of people, use the safety functions of the controller (DCS).
  • sysframe and sysmast belong to one robot. Never load them on another robot.
  • Some variables do not exist on every controller or software version. Open the .va file of your controller when a property is null.

Integrator guides

See also

  • Read & write system variables: every protocol, with writing
  • Offline file parsing: read the .va files of a backup in .NET
  • Upload, download & backup files