VFanuc - Registers R / PR

▲ Where the values come from

A Fanuc backup (All of above) contains the numeric registers in NUMREG.VA and the position registers in POSREG.VA, both next to SYSTEM.VA. The editor reads the number, the comment and the value of every register from these text files. The values are the values at the time of the backup – a program changes them while it runs. The files are only read, never written. Lines of an unknown format are skipped (the number of skipped lines is shown in the window).
  [12] = 1.250000  'Offset Z'                     NUMREG.VA: R[12]

    [1,10] =   'Pick 1'                            POSREG.VA: PR[GP1:10], Cartesian
  Group: 1   Config: N U T, 0, 0, 0
  X:  1612.322   Y:   146.037   Z:   364.904
  W:   145.120   P:    -2.864   R:    90.899
  EXT1: -1799.991 mm                              extended axis of the group
    [2,1] =   ''   Group: 2                        PR[GP2:1], joint representation
  J1 =    10.000 mm
The backup of a program is found as for the other functions of the editor: the folder of SYSTEM.VA one level above the program (VW archive: programs in the language folder english / german) or the folder of the program itself. UF / UT are not stored in POSREG.VA: a motion to PR[n] uses the user and tool frame that are active in the program.

▲ Tooltip on R[n] and PR[n] in the program

Move the mouse over a register in a Fanuc program: The tooltip works for every Fanuc program of a backup, the robot project does not have to be active. A register that is not in the file is named in the tooltip.

▲ Window Registers R / PR

VFanuc » Registers R / PR... opens the registers of the backup of the current Fanuc program, without a Fanuc program those of the active Fanuc robot project. The window is not modal – you can keep it open next to the programs. License: VFanuc.
Field / columnDefaultMeaning
Filteremptyonly the registers with this text in the name (R[12], PR[GP1:12], PR[12]), in the comment or in the value; not case-sensitive. API: filter
Only registers in useonR: with a comment or a value other than 0; PR: with a comment or initialized. Off: all registers of the files. API: all (false)
GroupAllmotion group of the position registers. API: group (0 = all)
Tab Numeric registers R[ ]
No.–number n of R[n]
Comment–comment of the register
Value–value in the backup (integer as is, real number with up to 10 digits)
Tab Position registers PR[ ]
Group, No.–group g and number n of PR[GPg:n]
Comment–comment of the register
Type–Cartesian, Joint or Uninitialized; (!) = data of the register not complete in the file (reason in the tooltip)
X / J1 .. R / J6–X Y Z [mm] W P R [deg] of a Cartesian register, J1..J6 [deg / mm] of a joint register; ******** = not set
Config–configuration of a Cartesian register (flip, up / down, front / back, turns)
More axes–extended axes (EXTn) and joints from J7
Buttons
Reload–read the files again (they are read again automatically when they changed)
Copy table–the rows of the current tab to the clipboard, separated by tabs (for Excel)
Click a column header to sort.

▲ Editor API: fanuc_registers

The same data for the editor API and the AI agents (also in editor_read):
AttributeDefaultMeaning
project | config | folder | filecurrent Fanuc program, else active Fanuc projectthe robot: project of the project tree, SYSTEM.VA, folder with one Fanuc backup or a program of the backup
typeallR, PR or all
filteremptyas the field Filter
allfalsetrue: also registers not in use (as Only registers in use off)
group0only position registers of this group (0 = all)
maxItems2000maximum number of registers in the answer (1..100000), more = truncated
Answer: robot, backup, numregFile, posregFile (empty = not in the backup), numregTime, posregTime, numregCount, posregCount, posregGroups, R [{no, comment, value, number}], PR [{group, no, comment, type, x, y, z, w, p, r, config | joints [{value, unit}], ext [{value, unit}], error}] (a value not set = null), notes.
{"cmd":"fanuc_registers","project":"R01","type":"PR","filter":"Pick"}
{"cmd":"fanuc_registers","folder":"D:/archives/ST010/R02","type":"R","all":true}