












Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!













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.
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.
The macro’s are in the reference section of this write up. NOTE: Modify the macro for both range and directory as needed.
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
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