Docsity

Variables Fanuc RMV1, Manuais, Projetos, Pesquisas de Robótica

Toggle sidebar
bg1
Page 1
MACH3 PARAMETERS & VARIABLES
PARAMETER DEFINITION
Parameters are values / settings stored in Mach3 controller software. A user defines all
the settings of a machine (ie; a profile named MyMill) to the software and the profiles
are stored as individual xml files. All the user default settings are used on start-up.
Parameters are numbered and may be logically grouped in a series of numbers. Some of
the numbers are specific to the users machine and some are used by the user in
programming ( ie; Macro’s). Some parameters are read only. The ranges of parameter
number is 0 to 10320 but there other ones outside that range.
NOTE: Parameter values have developed / changed as Mach was developed thus
there are differences in the values from the early days.
A parameter used in Gcode is called a variable in Mach. A variable is just a letter name
which can store / hold a number for use in an expression and there are different types.
Mach3 Mill Manual ( excerpts from section 10 )
10.4.2 Parameters
A Mach3 machining system maintains an array of 10,320 numerical parameters. Many of
them have specific uses. The parameter which are associated with fixtures are persistent
over time. Other parameters will be undefined when Mach3 is loaded. The parameters are
preserved when the interpreter is reset. The parameters with meanings defined by Mach3
are given in figure 10.1
10.5.3.2 Parameter Value
A parameter value is the hash character # followed by a real value. The real value must
evaluate to an integer between 1 and 10320. ( note it is whole number no 20.2 etc) The
integer is a parameter number, and the value of the parameter value is whatever number
is stored in the numbered parameter.
The # character takes precedence over other operations, so that, for example, #1+2 means
the number found by adding 2 to the value of parameter 1, not the value found in
parameter 3.
Of course, #[1+2] does mean the value found in parameter 3. The # character may be
repeated; for example ##2 means the value of the parameter whose index is the (integer)
value of parameter 2.
10.5.4 Parameter Setting
A parameter setting is the following four items one after the other:
/a pound character #
/a real value which evaluates to an integer between 1 and 10320,
/ an equal sign = , and
/a real value. For example "#3 = 15" is a parameter setting meaning "set parameter 3 to
15."
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14

Pré-visualização parcial do texto

Baixe Variables Fanuc RMV1 e outras Manuais, Projetos, Pesquisas em PDF para Robótica, somente na Docsity!

MACH3 PARAMETERS & VARIABLES

PARAMETER DEFINITION

Parameters are values / settings stored in Mach3 controller software. A user defines all the settings of a machine (ie; a profile named MyMill) to the software and the profiles are stored as individual xml files. All the user default settings are used on start-up. Parameters are numbered and may be logically grouped in a series of numbers. Some of the numbers are specific to the users machine and some are used by the user in programming ( ie; Macro’s). Some parameters are read only. The ranges of parameter number is 0 to 10320 but there other ones outside that range. NOTE: Parameter values have developed / changed as Mach was developed thus there are differences in the values from the early days.

A parameter used in Gcode is called a variable in Mach. A variable is just a letter name which can store / hold a number for use in an expression and there are different types.

Mach3 Mill Manual ( excerpts from section 10 )

10.4.2 Parameters A Mach3 machining system maintains an array of 10,320 numerical parameters. Many of them have specific uses. The parameter which are associated with fixtures are persistent over time. Other parameters will be undefined when Mach3 is loaded. The parameters are preserved when the interpreter is reset. The parameters with meanings defined by Mach are given in figure 10.

10.5.3.2 Parameter Value A parameter value is the hash character # followed by a real value. The real value must evaluate to an integer between 1 and 10320. ( note it is whole number no 20.2 etc ) The integer is a parameter number, and the value of the parameter value is whatever number is stored in the numbered parameter. The # character takes precedence over other operations, so that, for example, #1+2 means the number found by adding 2 to the value of parameter 1, not the value found in parameter 3.

Of course, #[1+2] does mean the value found in parameter 3. The # character may be repeated; for example ##2 means the value of the parameter whose index is the (integer) value of parameter 2.

10.5.4 Parameter Setting A parameter setting is the following four items one after the other: /a pound character # /a real value which evaluates to an integer between 1 and 10320, / an equal sign = , and /a real value. For example "#3 = 15" is a parameter setting meaning "set parameter 3 to 15."

A parameter setting does not take effect until after all parameter values on the same line have been found. For example, if parameter 3 has been previously set to 15 and the line #3=6 G1 x#3 is interpreted, a straight move to a point where x equals 15 will occur and the value of parameter 3 will be 6.

Mach3 is based on the Fanuc 6 system type a16, but the exact Mach3 numbers and variables may be slightly different than the reference to Fanuc’s system in the reference section of this write-up.

SOME METHODS TO FIND VALUES

  1. Use MachProfile" program by K. Dietz. Just compare two different XML's to see the difference.
  2. Display the current value of a variable. Goto top menu bar select OPERATOR then go down to Gcode VAR monitor. Move the window over to where you want it. On the left input what # variable you wish to see. As the #variable changes it updates the values.
  3. Use a macro to find information. Examples as posted are in the reference section Two macro’s can be found in the “Mach Tool Box” under subject listing: Macro, Parameter Value Report by vmax Macro, Fixture offset values by vmax

The macro’s are in the reference section of this write up. NOTE: Modify the macro for both range and directory as needed.

  1. Find the numbers listed in:
    • Mach3 Mill or Lathe manual’s
    • Wiki http://www.machsupport.com/Mach3Wiki/index.php?title=Main_Page
  • Mach3 Macro Programmers Reference Manual
  1. Links ( Artsoft Forum):

Members Docs VB "Parameters" list Poppabear 3/31/ http://www.machsupport.com/forum/index.php/topic,11056.0.html Mach_VB_parameters.doc

Groupings of variables from the Mach3 Mill Manual ( figure 10.1) #5161 – #5166 G #5181 – #5186 G #5191 – #5196 Scale #5211 - #5216 G52/G92 offset #5220 Current Work Offset #5221 – #10306 Work Offsets Parameter / variable list from figure 10.1 in the Mach3 Manual. ( List is updated to remove error in the manual)

5161 G28 home X 5162 G28 home Y 5163 G28 home Z 5164 G28 home A 5165 G28 home B 5166 G28 home C 5181 G30 home X 5182 G30 home Y 5183 G30 home Z 5184 G30 home A 5185 G30 home B 5186 G30 home C 5191 Scale X 5192 Scale Y 5193 Scale Z 5194 Scale A 5195 Scale B 5196 Scale C 5211 G92 offset X 5212 G92 offset Y 5214 G92 offset A 5215 G92 offset B 5216 G92 offset C 5220 Current Work offset number 5221 Work offset 1 X 5222 Work offset 1 Y 5223 Work offset 1 Z 5224 Work offset 1 A 5225 Work offset 1 B 5226 Work offset 1 C 5241 Work offset^ 2 X 5242 Work offset 2 Y

5243 Work offset 2 Z 5244 Work offset 2 A 5245 Work offset 2 B 5246 Work offset 2 C 5261 Work offset 3 X 5262 Work offset 3 Y 5263 Work offset 3 Z 5264 Work offset 3 A 5265 Work offset 3 B 5266 Work offset 3 C 5281 Work offset 4 X 5282 Work offset 4 Y 5283 Work offset 4 Z 5284 Work offset 4 A 5285 Work offset 4 B 5286 Work offset 4 C 5301 Work offset 5 X 5302 Work offset 5 Y 5303 Work offset 5 Z 5304 Work offset 5 A 5305 Work offset 5 B 5306 Work offset 5 C 5321 Work offset 6 X 5322 Work offset 6 Y 5324 Work offset 6 A 5325 Work offset 6 B 5326 Work offset 6 C

And so on every 20 values until 10281 Work offset 254 X 10282 Work offset 254 Y 10283 Work offset 254 Z 10284 Work offset 254 A 10285 Work offset 254 B 10286 Work offset 254 C 10301 Work offset 255 X 10302 Work offset 255 Y 10303 Work offset 255 Z 10304 Work offset 255 A 10305 Work offset 255 B 10306 Work offset 255 C

End If Loop objTextFile.WriteLine("**") objTextFile.WriteLine(" Date: " &Dt &" Time: " &Tm) objTextFile.Close Dim sCOMMAND As String sCOMMAND="print c:\mach3\FixOffsetInfo.txt" Shell("c:\winnt2\system32\cmd.exe /c" & sCOMMAND) End

FANUC MACRO VARIABLES

Have a look here, mach3 is based on the Fanuc 6 system type a16, i.e. it has no conditional commands or loops and no I/O commands http://www.machinetoolhelp.com/Applications/macro/macro_variables.html Graham

This list gives the codes to be used in calls of SetOEMDRO and GetOEMDRO to access all DROs.

If you are using a version of Mach3 prior to 1.90 then to access data in this list that are in the range 800 upwards you will need to refer to the deprecated calls (e.g. SetDRO) and corresponding codes.

command: (FROM Mach3Wiki)

SetOEMDRO

GetOEMDRO

Function OEMCode Jog Inc Inc DRO 1 Pulse Freq DRO 2 Slow Jog % DRO 3 X min DRO 4 Y min DRO 5 Z min DRO 6 A min DRO 7 B min DRO 8 C min DRO 9 X max DRO 10 Y max DRO 11 Z max DRO 12 A max DRO 13 B max DRO 14 C max DRO 15 X G92 Axis Off DRO 16 Y G92 Axis Off DRO 17 Z G92 Axis Off DRO 18 A G92 Axis Off DRO 19 B G92 Axis Off DRO 20 C G92 Axis Off DRO 21 Queue Depth DRO 22 Time Scale DRO 23 PWM Base DRO 24 Torch Correction Speed DRO 25

  • Torch Height Corrorrection DRO
  • Torch Height Max DRO
  • CPU Load DRO
  • Encoder 1 (X) position DRO
  • Encoder 2 (Y) position DRO
  • Encoder 3 (Z) position DRO
  • Tool length offset
  • X axis Ref Sw DRO
  • Y axis Ref Sw DRO
  • Z axis Ref Sw DRO
  • A axis Ref Sw DRO
  • B axis Ref Sw DRO
  • C axis Ref Sw DRO
  • True spindle DRO
  • Worst Case DRO
  • Tool X Offset DRO
  • Tool Z Offset DRO
  • Tool Dia DRO
  • Tool Tip Rad DRO
  • Touch Correction DRO
  • Current Fixture Number DRO
  • Part X Offset DRO
  • Part Y Offset DRO
  • Part Z Offset DRO
  • Part A Offset DRO
  • Part B Offset DRO
  • Part C Offset DRO
  • CPU Speed DRO
  • Safe Z DRO
  • Overidden Feed Rate DRO (read only?)
  • Pulley DRO
  • Max Spindle Speed on current pulley DRO
  • Velocity per Rev DRO
  • X Scale DRO
  • Y Scale DRO
  • Z Scale DRO
  • A Scale DRO
  • B Scale DRO
  • C Scale DRO
  • Lowest Torch Correction DRO
  • Threading Entrance Angle DRO
  • Max Entrance Points DRO
  • Rotational Time Error DRO
  • Entrance Trigger DRO
  • Time Correction Derivative DRO
  • Interrupts per spindle rev DRO
  • Current Spin Counts DRO
  • Spin Adder DRO
  • Spindle Speed Override DRO
  • Stock Size DRO
  • Laser X Grid DRO
  • Laser Y Grid DRO
  • Repetitions DRO
  • Lower Z-Inhibit By DRO
  • Z-Inhibit DRO
  • Port Bit-test DRO (diagnostic)
  • Anti-dive limit DRO
  • X Machine Coord DRO
  • Y Machine Coord DRO
  • Z Machine Coord DRO
  • A Machine Coord DRO
  • B Machine Coord DRO
  • C Machine Coord DRO
  • Blend factor DRO
  • Number of spindle disc slots DRO
  • G73 Pull-off value DRO
  • Tangential lift threshold angle DRO
  • Tangential lift Z level DRO
  • reserved
  • reserved
  • reserved
  • CV Feedrate DRO
  • Feed override increment value DRO
  • ??? Spindle ratio DRO
  • Encoder 4 position DRO
  • MPG 1 count DRO
  • MPG 2 count DRO
  • MPG 3 count DRO
  • Rapid feedrate DRO
  • Diameter of current tool DRO
  • Tip direction of current tool DRO
  • Tool nose radius of current tool DRO
  • X offset of current tool DRO
  • Z offset of current tool DRO
  • X wear offset of current tool DRO
  • Z wear offset of current tool DRO
  • Tool turret angle of current tool DRO
  • Velocity of MPG 1 DRO
  • Velocity of MPG 2 DRO
  • Velocity of MPG 3 DRO
  • Angle of taper to be cut with MPG tapering DRO
  • Spindle speed as surface speed DRO
  • Angle of rotation of X/Y coordinate system (cf G68)
  • Laser grid spacing DRO
  • Number of incremental jogs that can be buffered DRO
  • Minimum spindle speed on current pulley DRO
  • Feed rate ignoring that set in F word DRO
  • Tool post offset (between front and rear posts DRO
  • Current velocity of MPG 1 DRO
  • Current velocity of MPG 2 DRO
  • Feedrate for use with MPG step jogs DRO
  • Error between Encoder 1 and abs X position DRO
  • Error between Encoder 2 and abs Y position DRO
  • Error between Encoder 3 and abs Z position DRO
  • Time (uSec) in interrupt handler DRO
  • SLS Dist - laser position measurement DRO
  • Axis 6 Tripcount - system debug use only DRO
  • ??? Engine lookahead DRO
  • Count of actual pulses output on X - debug use only DRO
  • Count of actual pulses output on Y - debug use only DRO
  • Count of actual pulses output on Z - debug use only DRO
  • Count of actual pulses output on A - debug use only DRO
  • Count of actual pulses output on B - debug use only DRO
  • Count of actual pulses output on C - debug use only DRO
  • Actual count from encoder 1 - debug use only DRO
  • Actual count from encoder 2 - debug use only DRO
  • Actual count from encoder 3 - debug use only DRO
  • Actual count from encoder 4 - debug use only DRO
  • Actual count from encoder 5 - debug use only DRO
  • Actual count from encoder 6 - debug use only DRO
  • ModBus input 64 DRO
  • ModBus input 65 DRO
  • ModBus input 66 DRO
  • ModBus input 67 DRO
  • Softlimit X Maximum DRO
  • Softlimit Y Maximum DRO
  • Softlimit Z Maximum DRO
  • Softlimit A Maximum DRO
  • Softlimit B Maximum DRO
  • Softlimit C Maximum DRO
  • Softlimit X Minimum DRO
  • Softlimit Y Minimum DRO
  • Softlimit Z Minimum DRO
  • Softlimit A Minimum DRO
  • Softlimit B Minimum DRO
  • Softlimit C Minimum DRO
  • Distance from front to rear toolpost DRO
  • Encoder 1 position (in units) DRO
  • Encoder 2 position (in units) DRO
  • Encoder 3 position (in units) DRO
  • Encoder 4 position (in units) DRO
  • Part X radius/diameter for Touching to tooltable DRO
  • Part Z location for Touching to tooltable DRO
  • reserved DRO
  • Machine X coord - X Work Offset DRO
  • Machine Y coord - Y Work Offset DRO
  • Machine Z coord - Z Work Offset - Tool length DRO
  • Machine A coord - A Work Offset DRO
  • Machine B coord - B Work Offset DRO
  • Machine C coord - C Work Offset DRO
  • X Cont. Pnt. coord (Machine - Work - G52/G92) DRO
  • Y Cont. Pnt. coord (Machine - Work - G52/G92) DRO
  • Z Cont. Pnt. coord (Machine - Work - Tool len. - G52/G92) DRO
  • A Cont. Pnt. coord (Machine - Work - G52/G92) DRO
  • B Cont. Pnt. coord (Machine - Work - G52/G92) DRO
  • C Cont. Pnt. coord (Machine - Work - G52/G92) DRO
  • X axis home location used by G28 DRO
  • Y axis home location used by G28 DRO
  • Z axis home location used by G28 DRO
  • A axis home location used by G28 DRO
  • B axis home location used by G28 DRO
  • C axis home location used by G28 DRO
  • X axis Distance to Go DRO
  • Y axis Distance to Go DRO
  • Z axis Distance to Go DRO
  • A axis Distance to Go DRO
  • B axis Distance to Go DRO
  • C axis Distance to Go DRO
  • Overriden spindle speed DRO
  • Current pulley reversed direction
  • Current X offset of Turn tool
  • reserved
  • reserved
  • reserved
  • Encoder X reading corrected by offsets
  • Encoder Y reading corrected by offsets
  • Encoder Z reading corrected by offsets
  • X soft limits Max
  • y soft limits Max
  • Z soft limits Max
  • X soft limits Min
  • y soft limits Min
  • Z soft limits Min
  • Spindle Seconds CW
  • reserved
  • reserved
  • Brains exe time (ms)
  • Probe Radius
  • Sub Program depth
  • Rapid Override
  • Number of macros currently running
  • X DRO
  • Y DRO
  • Z DRO
  • A DRO
  • B DRO
  • C DRO
  • X Vel DRO
  • Y Vel DRO
  • Z Vel DRO
  • A Vel DRO
  • B Vel DRO
  • C Vel DRO
  • Blended Velocity DRO
  • Elapsed DRO
  • Estimate DRO
  • Curr Line no DRO
  • Spindle requested DRO
  • Feedrate DRO
  • Motion Mode (G0, G1, G2 etc) DRO
  • Feedrate Override (FRO)
  • Tool number DRO
  • Rot A diameter DRO
  • Rot B diameter DRO
  • Rot C diameter DRO
  • Jog Inc DRO
  • X Fixture Off DRO
  • X Fixture Orig Off DRO
  • Y Fixture Off DRO
  • Y Fixture Orig Off DRO
  • Z Fixture Off DRO
  • Z Fixture Orig Off DRO
  • A Fixture Off DRO
  • A Fixture Orig Off DRO
  • B Fixture Orig Off DRO
  • B Fixture Off DRO
  • C Fixture Orig Off DRO
  • C Fixture Off DRO
  • Current Tool length DRO