Back
[05:56:41] <KGB-linuxcnc> 03Norbert Schechner 05gmoccapy_5_axis 8ee32ea 06linuxcnc 10configs/sim/gmoccapy/gmoccapy_XYZAB.ini 10src/emc/usr_intf/gmoccapy/gmoccapy.py gmoccapy 5 axis - final version! * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=8ee32ea
[16:20:40] <Tom_itx> any hints how to write to a numbered parameter in Gcode; ie G54 X offset at 5221 ?
[17:20:21] <jepler> Change offsets with a G10-family command (G10 L2 or G10 L20).
[17:21:02] <jepler> For instance, G10 L2 P1 X1
[17:22:06] <jepler> coordinate value is interpreted according to the active length units (G20 or G21) and converted appropriately. If you directly use #5221 you have to know the inifile units which there is no way to determine from gcode.
[17:24:50] <Tom_itx> #5221 = #5221 + 3 won't get it?
[17:25:52] <Tom_itx> http://linuxcnc.org/docs/2.6/html/gcode/overview.html#sub:subroutine-parameters
[17:26:11] <Tom_itx> that seems to indicate i can do that
[17:27:20] <Tom_itx> rather this:
http://linuxcnc.org/docs/2.6/html/gcode/overview.html#sub:numbered-parameters
[17:29:07] <Tom_itx> be it inch or metric it should add 3 units to the value giving the desired effect
[20:33:42] <jepler> it would add 3 inifile units
[20:33:52] <jepler> who knows how many inches or mm it is, though
[20:59:20] <Tom_itx> that isn't very RS274 standard if it's the case i think
[21:25:48] <atom1> http://www.linuxcnc.org/docs/html/gcode/overview.html#_parameters
[21:26:02] <atom1> says this is valid: #3 = #3 + 5
[21:26:10] <atom1> i am unable to mdi that
[21:26:25] <atom1> can you access user vars with mdi?
[21:28:39] <atom1> i try that and get a 'Bad Character '+' used
[21:28:48] <atom1> in the mdi input line in axis
[21:31:10] <jepler> An expression is a set of characters starting with a left bracket [ and ending with a balancing right bracket ] . In between the brackets are numbers, parameter values, mathematical operations, and other expressions. An expression is evaluated to produce a number. The expressions on a line are evaluated when the line is read, before anything on the line is executed. An example of an expression is [1
[21:31:16] <jepler> + acos[0] - [#3 ** [4.0/2]]].
[21:31:21] <jepler> http://www.linuxcnc.org/docs/html/gcode/overview.html#sec:expressions
[21:31:32] <jepler> I think the problem with your example is that you do not have any brackets
[21:32:07] <atom1> thanks.. my mistake :D
[21:32:14] <atom1> just tested it
[21:32:24] <jepler> READ => G0 X 1+1
[21:32:24] <jepler> Bad character '+' used
[21:32:24] <jepler> G0 X 1+1
[21:32:24] <jepler> READ => G0 X[1+1]
[21:32:25] <jepler> 6 N..... STRAIGHT_TRAVERSE(2.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
[21:34:04] <atom1> doesn't look like i can do that directly with the G10 L2 command though
[21:35:17] <atom1> ok i think i figured it out
[21:56:36] <jepler> good.
[21:56:44] <jepler> the docs apparently could have been clearer about the brackets requirement
[21:56:57] <Tom_itx> well if i would have read it better...
[21:57:00] <Tom_itx> thanks for the help
[22:44:22] <KGB-linuxcnc> 03Dewey Garrett 052.7 b1b59a9 06linuxcnc 10(5 files in 2 dirs) xhc-hb04:honor mpg_accels for all manual_mode jogs * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=b1b59a9
[22:44:49] <KGB-linuxcnc> 05dgarr/xhc_sleep_fix 9321ada 06linuxcnc 04. branch deleted * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=9321ada
[22:45:17] <seb_kuzminsky> i love dewey's commit messages
[22:45:20] <KGB-linuxcnc> 05dgarr/debs_wodocs 060d64b 06linuxcnc 04. branch deleted * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=060d64b
[23:03:25] <AndChat|144384> Blew a cheap bldc drive out tonight... If I had a manual I might have kown you cannot reverse it unless you come to a stop first.
[23:04:05] <Tom_itx> woops
[23:04:09] <skunksleep> Went bang
[23:05:17] <skunksleep> The other (different/similar) drives I have - the manual states the fact in red...
[23:07:14] <Tom_itx> will G10 L2 change the persistent parameter values or just add offset to them?