Home › Forums › TinyG › TinyG Support › Board won't execute GCode
- This topic has 12 replies, 2 voices, and was last updated 11 years, 2 months ago by alden.
-
AuthorPosts
-
September 8, 2013 at 4:53 pm #4483rickkayeMember
Up until today, I had not used JSON to issue commands to my tinyG. I wanted to try it so, using Coolterm from a Mac, I issued some commands to change/read parameter values which worked. I did not enable JSON mode. I had read on the Wiki that if a command line starts with a “{“, the tinyG will interpret it as JSON and this worked.
I then tried issuing GCode commands to move the motors in text mode but nothing happened. The tinyG accepted the command and returned with a prompt but the motor didn’t move. I did not get the normal progress report of motor position and when I ask the tinyG for the motor position it says it hasn’t moved.
Next I tried issuing GCode commands in JSON format. Again no movement from the motors. The tinyG reports back a status code of 0 indicating no error, but nothing moves.
I’ve tried rebooting everything and the problem persists. I can change/read parameters in both JSON and text. But GCode commands don’t work.
Here is a terminal session illustrating the problem.
tinyg [mm] ok>
?
Line number: 0
X position: 0.000 mm
Y position: 0.000 mm
Z position: 0.000 mm
A position: 0.000 deg
Feed rate: 0.000 mm/min
Velocity: 0.000 mm/min
Units: G21 – millimeter mode
Coordinate system: G54 – coordinate system 1
Distance mode: G90 – absolute distance mode
Feed rate mode: G94 – units-per-minute mode (i.e. feedrate mode)
Motion mode: G0 – linear traverse (seek)
Machine state: Run
tinyg [mm] ok>
$ej
[ej] enable json mode 0 [0=text,1=JSON]
tinyg [mm] ok>
g0 x30
tinyg [mm] ok>
{“gc”:”g0 x30″}
{“r”:{“f”:[1,0,16,5949]}}
?
Line number: 0
X position: 0.000 mm
Y position: 0.000 mm
Z position: 0.000 mm
A position: 0.000 deg
Feed rate: 0.000 mm/min
Velocity: 0.000 mm/min
Units: G21 – millimeter mode
Coordinate system: G54 – coordinate system 1
Distance mode: G90 – absolute distance mode
Feed rate mode: G94 – units-per-minute mode (i.e. feedrate mode)
Motion mode: G0 – linear traverse (seek)
Machine state: Run
tinyg [mm] ok>In case it’s related here’s a previous thread regarding a problem I had with my board: https://www.synthetos.com/topics/tinyg-stopped-responding/
Should I reflash my board again? Any other suggestions?
September 9, 2013 at 6:49 am #4486aldenMemberNot sure what’s going on here. Your command response (“r”) returns with status code 0 (OK). The status report (?) indicates that machine is still running, which is weird. WHat settings did you change? Can you please post a complete $$ dump?
Thanks
–Alden
September 9, 2013 at 12:02 pm #4488rickkayeMemberI can’t remember what setting I changed but I do remember that I immediately changed it back to its previous value since I was only testing. Below is the $$ dump. Thanks for your help.
tinyg [mm] ok>
$$
[fb] firmware build 377.08
[fv] firmware version 0.95
[hv] hardware version 7.00
[id] TinyG ID 9H3583-KCR
[ja] junction acceleration 100000 mm
[ct] chordal tolerance 0.001 mm
[st] switch type 1 [0=NO,1=NC]
[ej] enable json mode 0 [0=text,1=JSON]
[jv] json verbosity 4 [0=silent,1=footer,2=messages,3=configs,4=linenum,5=verbose]
[tv] text verbosity 1 [0=silent,1=verbose]
[qv] queue report verbosity 0 [0=off,1=filtered,2=verbose]
[sv] status report verbosity 1 [0=off,1=filtered,2=verbose]
[si] status interval 250 ms
[ic] ignore CR or LF on RX 0 [0=off,1=CR,2=LF]
[ec] expand LF to CRLF on TX 0 [0=off,1=on]
[ee] enable echo 1 [0=off,1=on]
[ex] enable xon xoff 1 [0=off,1=on]
[baud] USB baud rate 5 [1=9600,2=19200,3=38400,4=57600,5=115200,6=230400]
[gpl] default gcode plane 0 [0=G17,1=G18,2=G19]
[gun] default gcode units mode 1 [0=G20,1=G21]
[gco] default gcode coord system 1 [1-6 (G54-G59)]
[gpa] default gcode path control 2 [0=G61,1=G61.1,2=G64]
[gdi] default gcode distance mode 0 [0=G90,1=G91]
[1ma] m1 map to axis 0 [0=X,1=Y,2=Z…]
[1sa] m1 step angle 1.800 deg
[1tr] m1 travel per revolution 35.800 mm
[1mi] m1 microsteps 8 [1,2,4,8]
[1po] m1 polarity 1 [0=normal,1=reverse]
[1pm] m1 power management 1 [0=off,1=on]
[2ma] m2 map to axis 1 [0=X,1=Y,2=Z…]
[2sa] m2 step angle 1.800 deg
[2tr] m2 travel per revolution 36.750 mm
[2mi] m2 microsteps 8 [1,2,4,8]
[2po] m2 polarity 1 [0=normal,1=reverse]
[2pm] m2 power management 1 [0=off,1=on]
[3ma] m3 map to axis 2 [0=X,1=Y,2=Z…]
[3sa] m3 step angle 1.800 deg
[3tr] m3 travel per revolution 1.410 mm
[3mi] m3 microsteps 8 [1,2,4,8]
[3po] m3 polarity 0 [0=normal,1=reverse]
[3pm] m3 power management 1 [0=off,1=on]
[4ma] m4 map to axis 3 [0=X,1=Y,2=Z…]
[4sa] m4 step angle 1.800 deg
[4tr] m4 travel per revolution 360.000 mm
[4mi] m4 microsteps 8 [1,2,4,8]
[4po] m4 polarity 0 [0=normal,1=reverse]
[4pm] m4 power management 1 [0=off,1=on]
[xam] x axis mode 1 [standard]
[xvm] x velocity maximum 0.000 mm/min
[xfr] x feedrate maximum 3000.000 mm/min
[xtm] x travel maximum 200.000 mm
[xjm] x jerk maximum 20000000 mm/min^3
[xjh] x jerk homing 20000000 mm/min^3
[xjd] x junction deviation 0.0500 mm (larger is faster)
[xsn] x switch min 3 [0=off,1=homing,2=limit,3=limit+homing]
[xsx] x switch max 0 [0=off,1=homing,2=limit,3=limit+homing]
[xsv] x search velocity 300.000 mm/min
[xlv] x latch velocity 250.000 mm/min
[xlb] x latch backoff 8.000 mm
[xzb] x zero backoff 1.000 mm
[yam] y axis mode 1 [standard]
[yvm] y velocity maximum 3000.000 mm/min
[yfr] y feedrate maximum 3000.000 mm/min
[ytm] y travel maximum 200.000 mm
[yjm] y jerk maximum 20000000 mm/min^3
[yjh] y jerk homing 20000000 mm/min^3
[yjd] y junction deviation 0.0500 mm (larger is faster)
[ysn] y switch min 3 [0=off,1=homing,2=limit,3=limit+homing]
[ysx] y switch max 0 [0=off,1=homing,2=limit,3=limit+homing]
[ysv] y search velocity 300.000 mm/min
[ylv] y latch velocity 250.000 mm/min
[ylb] y latch backoff 8.000 mm
[yzb] y zero backoff 3.000 mm
[zam] z axis mode 1 [standard]
[zvm] z velocity maximum 1500.000 mm/min
[zfr] z feedrate maximum 600.000 mm/min
[ztm] z travel maximum 200.000 mm
[zjm] z jerk maximum 20000000 mm/min^3
[zjh] z jerk homing 20000000 mm/min^3
[zjd] z junction deviation 0.0500 mm (larger is faster)
[zsn] z switch min 3 [0=off,1=homing,2=limit,3=limit+homing]
[zsx] z switch max 0 [0=off,1=homing,2=limit,3=limit+homing]
[zsv] z search velocity 300.000 mm/min
[zlv] z latch velocity 100.000 mm/min
[zlb] z latch backoff 5.000 mm
[zzb] z zero backoff 3.000 mm
[aam] a axis mode 3 [radius]
[avm] a velocity maximum 172800.000 deg/min
[afr] a feedrate maximum 172800.000 deg/min
[atm] a travel maximum -1.000 deg
[ajm] a jerk maximum 5760000000 deg/min^3
[ajh] a jerk homing 5760000000 mm/min^3
[ajd] a junction deviation 0.0500 deg (larger is faster)
[ara] a radius value 0.1989 deg
[asn] a switch min 1 [0=off,1=homing,2=limit,3=limit+homing]
[asx] a switch max 0 [0=off,1=homing,2=limit,3=limit+homing]
[asv] a search velocity 600.000 deg/min
[alv] a latch velocity 100.000 deg/min
[alb] a latch backoff 5.000 deg
[azb] a zero backoff 2.000 deg
[bam] b axis mode 0 [disabled]
[bvm] b velocity maximum 3600.000 deg/min
[bfr] b feedrate maximum 3600.000 deg/min
[btm] b travel maximum -1.000 deg
[bjm] b jerk maximum 20000000 deg/min^3
[bjd] b junction deviation 0.0500 deg (larger is faster)
[bra] b radius value 1.0000 deg
[cam] c axis mode 0 [disabled]
[cvm] c velocity maximum 3600.000 deg/min
[cfr] c feedrate maximum 3600.000 deg/min
[ctm] c travel maximum -1.000 deg
[cjm] c jerk maximum 20000000 deg/min^3
[cjd] c junction deviation 0.0500 deg (larger is faster)
[cra] c radius value 1.0000 deg
[p1frq] pwm frequency 100.000 Hz
[p1csl] pwm cw speed lo 1000.000 RPM
[p1csh] pwm cw speed hi 2000.000 RPM
[p1cpl] pwm cw phase lo 0.125 [0..1]
[p1cph] pwm cw phase hi 0.200 [0..1]
[p1wsl] pwm ccw speed lo 1000.000 RPM
[p1wsh] pwm ccw speed hi 2000.000 RPM
[p1wpl] pwm ccw phase lo 0.125 [0..1]
[p1wph] pwm ccw phase hi 0.200 [0..1]
[p1pof] pwm phase off 0.100 [0..1]
[g54x] g54 x offset 0.000 mm
[g54y] g54 y offset 0.000 mm
[g54z] g54 z offset 0.000 mm
[g54a] g54 a offset 0.000 deg
[g54b] g54 b offset 0.000 deg
[g54c] g54 c offset 0.000 deg
[g55x] g55 x offset 75.000 mm
[g55y] g55 y offset 75.000 mm
[g55z] g55 z offset 0.000 mm
[g55a] g55 a offset 0.000 deg
[g55b] g55 b offset 0.000 deg
[g55c] g55 c offset 0.000 deg
[g56x] g56 x offset 0.000 mm
[g56y] g56 y offset 0.000 mm
[g56z] g56 z offset 0.000 mm
[g56a] g56 a offset 0.000 deg
[g56b] g56 b offset 0.000 deg
[g56c] g56 c offset 0.000 deg
[g57x] g57 x offset 0.000 mm
[g57y] g57 y offset 0.000 mm
[g57z] g57 z offset 0.000 mm
[g57a] g57 a offset 0.000 deg
[g57b] g57 b offset 0.000 deg
[g57c] g57 c offset 0.000 deg
[g58x] g58 x offset 0.000 mm
[g58y] g58 y offset 0.000 mm
[g58z] g58 z offset 0.000 mm
[g58a] g58 a offset 0.000 deg
[g58b] g58 b offset 0.000 deg
[g58c] g58 c offset 0.000 deg
[g59x] g59 x offset 0.000 mm
[g59y] g59 y offset 0.000 mm
[g59z] g59 z offset 0.000 mm
[g59a] g59 a offset 0.000 deg
[g59b] g59 b offset 0.000 deg
[g59c] g59 c offset 0.000 deg
[g92x] g92 x offset 0.000 mm
[g92y] g92 y offset 0.000 mm
[g92z] g92 z offset 0.000 mm
[g92a] g92 a offset 0.000 deg
[g92b] g92 b offset 0.000 deg
[g92c] g92 c offset 0.000 deg
[g28x] g28 x location 0.000 mm
[g28y] g28 y location 0.000 mm
[g28z] g28 z location 0.000 mm
[g28a] g28 a location 0.000 deg
[g28b] g28 b location 0.000 deg
[g28c] g28 c location 0.000 deg
[g30x] g30 x location 0.000 mm
[g30y] g30 y location 0.000 mm
[g30z] g30 z location 0.000 mm
[g30a] g30 a location 0.000 deg
[g30b] g30 b location 0.000 deg
[g30c] g30 c location 0.000 deg
tinyg [mm] ok>September 9, 2013 at 1:56 pm #4489aldenMemberI think your problem is that X velocity maximum is set to 0.
[xvm] x velocity maximum 0.000 mm/min
September 9, 2013 at 2:08 pm #4490rickkayeMemberI have no idea how that happened but changing it doesn’t fix the problem. I guess I hadn’t mentioned it above but the Y and Z motors don’t move either.
tinyg [mm] ok>
?
Line number: 0
X position: 0.000 mm
Y position: 0.000 mm
Z position: 0.000 mm
A position: 0.000 deg
Feed rate: 0.000 mm/min
Velocity: 0.000 mm/min
Units: G21 – millimeter mode
Coordinate system: G54 – coordinate system 1
Distance mode: G90 – absolute distance mode
Feed rate mode: G94 – units-per-minute mode (i.e. feedrate mode)
Motion mode: G0 – linear traverse (seek)
Machine state: Run
tinyg [mm] ok>
g0x30
tinyg [mm] ok>
momo:0,stat:5
$xvm
[xvm] velocity maximum 0.000 mm/min
tinyg [mm] ok>
$yvm
[yvm] velocity maximum 3000.000 mm/min
tinyg [mm] ok>
g0y30
tinyg [mm] ok>
$xvm=3000
[xvm] velocity maximum 3000.000 mm/min
tinyg [mm] ok>
$xvm
[xvm] velocity maximum 3000.000 mm/min
tinyg [mm] ok>
g0x30
tinyg [mm] ok>
?
Line number: 0
X position: 0.000 mm
Y position: 0.000 mm
Z position: 0.000 mm
A position: 0.000 deg
Feed rate: 0.000 mm/min
Velocity: 0.000 mm/min
Units: G21 – millimeter mode
Coordinate system: G54 – coordinate system 1
Distance mode: G90 – absolute distance mode
Feed rate mode: G94 – units-per-minute mode (i.e. feedrate mode)
Motion mode: G0 – linear traverse (seek)
Machine state: RunSeptember 9, 2013 at 2:16 pm #4491aldenMemberFirst, try typing in the following:
$xvm=3000If that doesn’t work try running the following command:
$defa=1This will reset the settings to defaults
September 9, 2013 at 2:33 pm #4492rickkayeMemberAs you can see below, still nothing moves. I had already changed $xvm but I retyped it as you instructed. Neither the X or Y motor responded. I reset the defaults. The motor didn’t respond when I did a “g0x30”. The command didn’t show up on the terminal. I remembered that I needed to set $ee=1 which I did and then did a “g0x30” again so you could see what I typed.
Transcript below. Thanks.
tinyg [mm] ok>
?
Line number: 0
X position: 0.000 mm
Y position: 0.000 mm
Z position: 0.000 mm
A position: 0.000 deg
Feed rate: 0.000 mm/min
Velocity: 0.000 mm/min
Units: G21 – millimeter mode
Coordinate system: G54 – coordinate system 1
Distance mode: G90 – absolute distance mode
Feed rate mode: G94 – units-per-minute mode (i.e. feedrate mode)
Motion mode: G0 – linear traverse (seek)
Machine state: Run
tinyg [mm] ok>
$xvm=3000
[xvm] velocity maximum 3000.000 mm/min
tinyg [mm] ok>
g0x30
tinyg [mm] ok>
g0y30
tinyg [mm] ok>
?
Line number: 0
X position: 0.000 mm
Y position: 0.000 mm
Z position: 0.000 mm
A position: 0.000 deg
Feed rate: 0.000 mm/min
Velocity: 0.000 mm/min
Units: G21 – millimeter mode
Coordinate system: G54 – coordinate system 1
Distance mode: G90 – absolute distance mode
Feed rate mode: G94 – units-per-minute mode (i.e. feedrate mode)
Motion mode: G0 – linear traverse (seek)
Machine state: Run
tinyg [mm] ok>
$defa=1
{“r”:{“fb”:377.08,”fv”:0.950,”hv”:7,”id”:”9H3583-KCR”,”msg”:”Initializing configs to default settings”,”f”:[1,15,8,5568]}}
tinyg [mm] ok>
Line number: 0
X position: 0.000 mm
Y position: 0.000 mm
Z position: 0.000 mm
A position: 0.000 deg
Feed rate: 0.000 mm/min
Velocity: 0.000 mm/min
Units: G21 – millimeter mode
Coordinate system: G54 – coordinate system 1
Distance mode: G90 – absolute distance mode
Feed rate mode: G94 – units-per-minute mode (i.e. feedrate mode)
Motion mode: G0 – linear traverse (seek)
Machine state: Run
tinyg [mm] ok>
tinyg [mm] ok>
tinyg [mm] ok>
[ee] enable echo 0 [0=off,1=on]
tinyg [mm] ok>
[ee] enable echo 1 [0=off,1=on]
tinyg [mm] ok>
g0x30
tinyg [mm] ok>
$xvm
[xvm] velocity maximum 600.000 mm/min
tinyg [mm] ok>
line:0,posx:0.000,posy:0.000,posz:0.000,posa:0.000,feed:0.000,vel:0.000,unit:1,coor:1,dist:0,frmo:0,momo:0,stat:5September 9, 2013 at 2:55 pm #4493aldenMemberI’m not sure what’s going on, but here are a few things to try.
– Once you set $defa=1 do a $$ and see if the $xvm, $xfr and similar for Y and Z are non-zero and reasonable.
– Turn off all your limit switches – set them to zero. Also, set the switch type to Normally Open (you have it at normally closed). If you have NC switches enabled and limit switches enabled the machine might always think it hit a limit and not move.
– Try moving a short G1. Like G1 f100 x5
– Set power management on the motors to 0. This is more normal for a belt machine (do you have a belt machine?).
– Disable the A axis (axis mode = 0). Just to take Radius mode out of the equation.
September 9, 2013 at 4:07 pm #4494rickkayeMemberI tried everything you suggested but nothing helped. I did notice that I am getting some spontaneous output from the tinyG. For example, at the first prompt below, I typed g0x30 which is echoed on the next line, at the second prompt, I did not type anything but the next line (momo:0) appeared.
tinyg [mm] ok>
g0x30
tinyg [mm] ok>
momo:0The same thing happened (see below) when I tried the g1 f100 x5 command that you suggested. But this time it spontaneously printed momo:1.
tinyg [mm] ok>
g1 f100 x5
tinyg [mm] ok>
momo:1I don’t know if any of this is related but I don’t remember seeing spontaneously lines from the tinyG before.
Thanks again.
September 9, 2013 at 4:11 pm #4495aldenMemberCan you please run the $defa=1 command again then capture the $$ output? I would like to see if the board resets to a known state.
Thanks
Alden
September 9, 2013 at 4:25 pm #4496rickkayeMemberStrange! I had powered the board off before and I had done a $defa=1 before but not sequentially. This time I powered it off and then on, then did the $defa=1 as the first command and then captured the output to send to you. Before sending I tried a g0x30 command and it worked.
I will look into it tonight (Pacific time) to see if I can figure out what’s different.
In the meantime, for the record, the captured output is below. Thanks for your help.
Here it is:
tinyg [mm] ok>
$defa=1
{“r”:{“fb”:377.08,”fv”:0.950,”hv”:7,”id”:”9H3583-KCR”,”msg”:”Initializing configs to default settings”,”f”:[1,15,8,5568]}}
tinyg [mm] ok>
line:0,posx:0.000,posy:0.000,posz:0.000,posa:0.000,feed:0.000,vel:0.000,unit:1,coor:1,dist:0,frmo:0,momo:4,stat:1
[fb] firmware build 377.08
[fv] firmware version 0.95
[hv] hardware version 7.00
[id] TinyG ID 9H3583-KCR
[ja] junction acceleration 100000 mm
[ct] chordal tolerance 0.001 mm
[st] switch type 0 [0=NO,1=NC]
[ej] enable json mode 0 [0=text,1=JSON]
[jv] json verbosity 4 [0=silent,1=footer,2=messages,3=configs,4=linenum,5=verbose]
[tv] text verbosity 1 [0=silent,1=verbose]
[qv] queue report verbosity 0 [0=off,1=filtered,2=verbose]
[sv] status report verbosity 1 [0=off,1=filtered,2=verbose]
[si] status interval 250 ms
[ic] ignore CR or LF on RX 0 [0=off,1=CR,2=LF]
[ec] expand LF to CRLF on TX 0 [0=off,1=on]
[ee] enable echo 0 [0=off,1=on]
[ex] enable xon xoff 1 [0=off,1=on]
[baud] USB baud rate 5 [1=9600,2=19200,3=38400,4=57600,5=115200,6=230400]
[gpl] default gcode plane 0 [0=G17,1=G18,2=G19]
[gun] default gcode units mode 1 [0=G20,1=G21]
[gco] default gcode coord system 1 [1-6 (G54-G59)]
[gpa] default gcode path control 2 [0=G61,1=G61.1,2=G64]
[gdi] default gcode distance mode 0 [0=G90,1=G91]
[1ma] m1 map to axis 0 [0=X,1=Y,2=Z…]
[1sa] m1 step angle 1.800 deg
[1tr] m1 travel per revolution 1.250 mm
[1mi] m1 microsteps 8 [1,2,4,8]
[1po] m1 polarity 0 [0=normal,1=reverse]
[1pm] m1 power management 1 [0=off,1=on]
[2ma] m2 map to axis 1 [0=X,1=Y,2=Z…]
[2sa] m2 step angle 1.800 deg
[2tr] m2 travel per revolution 1.250 mm
[2mi] m2 microsteps 8 [1,2,4,8]
[2po] m2 polarity 0 [0=normal,1=reverse]
[2pm] m2 power management 1 [0=off,1=on]
[3ma] m3 map to axis 2 [0=X,1=Y,2=Z…]
[3sa] m3 step angle 1.800 deg
[3tr] m3 travel per revolution 1.250 mm
[3mi] m3 microsteps 8 [1,2,4,8]
[3po] m3 polarity 0 [0=normal,1=reverse]
[3pm] m3 power management 1 [0=off,1=on]
[4ma] m4 map to axis 3 [0=X,1=Y,2=Z…]
[4sa] m4 step angle 1.800 deg
[4tr] m4 travel per revolution 360.000 mm
[4mi] m4 microsteps 8 [1,2,4,8]
[4po] m4 polarity 0 [0=normal,1=reverse]
[4pm] m4 power management 1 [0=off,1=on]
[xam] x axis mode 1 [standard]
[xvm] x velocity maximum 600.000 mm/min
[xfr] x feedrate maximum 600.000 mm/min
[xtm] x travel maximum 150.000 mm
[xjm] x jerk maximum 20000000 mm/min^3
[xjh] x jerk homing 20000000 mm/min^3
[xjd] x junction deviation 0.0500 mm (larger is faster)
[xsn] x switch min 1 [0=off,1=homing,2=limit,3=limit+homing]
[xsx] x switch max 0 [0=off,1=homing,2=limit,3=limit+homing]
[xsv] x search velocity 500.000 mm/min
[xlv] x latch velocity 100.000 mm/min
[xlb] x latch backoff 2.000 mm
[xzb] x zero backoff 1.000 mm
[yam] y axis mode 1 [standard]
[yvm] y velocity maximum 600.000 mm/min
[yfr] y feedrate maximum 600.000 mm/min
[ytm] y travel maximum 150.000 mm
[yjm] y jerk maximum 20000000 mm/min^3
[yjh] y jerk homing 20000000 mm/min^3
[yjd] y junction deviation 0.0500 mm (larger is faster)
[ysn] y switch min 1 [0=off,1=homing,2=limit,3=limit+homing]
[ysx] y switch max 0 [0=off,1=homing,2=limit,3=limit+homing]
[ysv] y search velocity 500.000 mm/min
[ylv] y latch velocity 100.000 mm/min
[ylb] y latch backoff 2.000 mm
[yzb] y zero backoff 1.000 mm
[zam] z axis mode 1 [standard]
[zvm] z velocity maximum 600.000 mm/min
[zfr] z feedrate maximum 600.000 mm/min
[ztm] z travel maximum 75.000 mm
[zjm] z jerk maximum 20000000 mm/min^3
[zjh] z jerk homing 20000000 mm/min^3
[zjd] z junction deviation 0.0500 mm (larger is faster)
[zsn] z switch min 0 [0=off,1=homing,2=limit,3=limit+homing]
[zsx] z switch max 1 [0=off,1=homing,2=limit,3=limit+homing]
[zsv] z search velocity 400.000 mm/min
[zlv] z latch velocity 100.000 mm/min
[zlb] z latch backoff 2.000 mm
[zzb] z zero backoff 1.000 mm
[aam] a axis mode 3 [radius]
[avm] a velocity maximum 172800.000 deg/min
[afr] a feedrate maximum 172800.000 deg/min
[atm] a travel maximum -1.000 deg
[ajm] a jerk maximum 5760000000 deg/min^3
[ajh] a jerk homing 5760000000 mm/min^3
[ajd] a junction deviation 0.0500 deg (larger is faster)
[ara] a radius value 0.1989 deg
[asn] a switch min 1 [0=off,1=homing,2=limit,3=limit+homing]
[asx] a switch max 0 [0=off,1=homing,2=limit,3=limit+homing]
[asv] a search velocity 600.000 deg/min
[alv] a latch velocity 100.000 deg/min
[alb] a latch backoff 5.000 deg
[azb] a zero backoff 2.000 deg
[bam] b axis mode 0 [disabled]
[bvm] b velocity maximum 3600.000 deg/min
[bfr] b feedrate maximum 3600.000 deg/min
[btm] b travel maximum -1.000 deg
[bjm] b jerk maximum 20000000 deg/min^3
[bjd] b junction deviation 0.0500 deg (larger is faster)
[bra] b radius value 1.0000 deg
[cam] c axis mode 0 [disabled]
[cvm] c velocity maximum 3600.000 deg/min
[cfr] c feedrate maximum 3600.000 deg/min
[ctm] c travel maximum -1.000 deg
[cjm] c jerk maximum 20000000 deg/min^3
[cjd] c junction deviation 0.0500 deg (larger is faster)
[cra] c radius value 1.0000 deg
[p1frq] pwm frequency 100.000 Hz
[p1csl] pwm cw speed lo 1000.000 RPM
[p1csh] pwm cw speed hi 2000.000 RPM
[p1cpl] pwm cw phase lo 0.125 [0..1]
[p1cph] pwm cw phase hi 0.200 [0..1]
[p1wsl] pwm ccw speed lo 1000.000 RPM
[p1wsh] pwm ccw speed hi 2000.000 RPM
[p1wpl] pwm ccw phase lo 0.125 [0..1]
[p1wph] pwm ccw phase hi 0.200 [0..1]
[p1pof] pwm phase off 0.100 [0..1]
[g54x] g54 x offset 0.000 mm
[g54y] g54 y offset 0.000 mm
[g54z] g54 z offset 0.000 mm
[g54a] g54 a offset 0.000 deg
[g54b] g54 b offset 0.000 deg
[g54c] g54 c offset 0.000 deg
[g55x] g55 x offset 75.000 mm
[g55y] g55 y offset 75.000 mm
[g55z] g55 z offset 0.000 mm
[g55a] g55 a offset 0.000 deg
[g55b] g55 b offset 0.000 deg
[g55c] g55 c offset 0.000 deg
[g56x] g56 x offset 0.000 mm
[g56y] g56 y offset 0.000 mm
[g56z] g56 z offset 0.000 mm
[g56a] g56 a offset 0.000 deg
[g56b] g56 b offset 0.000 deg
[g56c] g56 c offset 0.000 deg
[g57x] g57 x offset 0.000 mm
[g57y] g57 y offset 0.000 mm
[g57z] g57 z offset 0.000 mm
[g57a] g57 a offset 0.000 deg
[g57b] g57 b offset 0.000 deg
[g57c] g57 c offset 0.000 deg
[g58x] g58 x offset 0.000 mm
[g58y] g58 y offset 0.000 mm
[g58z] g58 z offset 0.000 mm
[g58a] g58 a offset 0.000 deg
[g58b] g58 b offset 0.000 deg
[g58c] g58 c offset 0.000 deg
[g59x] g59 x offset 0.000 mm
[g59y] g59 y offset 0.000 mm
[g59z] g59 z offset 0.000 mm
[g59a] g59 a offset 0.000 deg
[g59b] g59 b offset 0.000 deg
[g59c] g59 c offset 0.000 deg
[g92x] g92 x offset 0.000 mm
[g92y] g92 y offset 0.000 mm
[g92z] g92 z offset 0.000 mm
[g92a] g92 a offset 0.000 deg
[g92b] g92 b offset 0.000 deg
[g92c] g92 c offset 0.000 deg
[g28x] g28 x location 0.000 mm
[g28y] g28 y location 0.000 mm
[g28z] g28 z location 0.000 mm
[g28a] g28 a location 0.000 deg
[g28b] g28 b location 0.000 deg
[g28c] g28 c location 0.000 deg
[g30x] g30 x location 0.000 mm
[g30y] g30 y location 0.000 mm
[g30z] g30 z location 0.000 mm
[g30a] g30 a location 0.000 deg
[g30b] g30 b location 0.000 deg
[g30c] g30 c location 0.000 deg
tinyg [mm] ok>September 10, 2013 at 2:39 pm #4506rickkayeMemberI restored every parameter in the $$ listing to their values while the problem was present (except $xvm which I set to 3000). Everything worked fine.
Then I issued commands including gcode commands using JSON. Everything worked fine.
Then I remembered that you had noticed that $xvm was set to 0. I set it to 0 and tried moving the X motor. Of course nothing happened. I tried moving the Y motor, nothing happened. I was able to read and change parameters but no gcode commands worked. The problem was back. I changed $xvm back to 3000. Gcode still didn’t work.
I rebooted the tinyG a few times trying several things. It turns out that the only way I could get it to work was to reboot and then set $xvm to a positive value as the first thing I did after a reboot. This is what I effectively did yesterday when you had me do a $defa=1 and I did it immediately after a reboot.
I still don’t know how $xvm got set to 0 in the first place. But everything is working now and I know how to cure the problem if it recurs.
Thanks again.
September 10, 2013 at 7:19 pm #4508aldenMemberThanks. I think you found a condition we should try to trap. Sorry you had a problem, but glad it’s working now.
Alden
-
AuthorPosts
- You must be logged in to reply to this topic.