Welcome! Log In Create A New Profile

Advanced

Duet Communication Errors

Posted by DADIY 
Duet Communication Errors
November 16, 2015 12:04PM
I changed my bed.g file to do the 6 point calibration as per the instructions - and now I see a lot of duet errors like "Error reason: SyntaxError: Unexpected token a" which force me to reboot the printer.

I'm assuming I've missed something - this is the new calibration routine I added to bed.g.

I'm running the firmware/software as per the fisher 1 build instructions.

; Probe the bed and do 6-factor auto calibration - from [reprap.org]
G30 P0 X-73.6 Y-42.5 Z-99999 ; X tower
G30 P1 X0 Y-85 Z-99999 ; between X and Y towers
G30 P2 X73.6 Y-42.5 Z-99999 ; Y tower
G30 P3 X73.6 Y20 Z-99999 ; between Y and Z towers
G30 P4 X0 Y67 Z-99999 ; Z tower
G30 P5 X-73.6 Y20 Z-99999 ; between Z and X towers
G30 P6 X-36.8 Y-21.25 Z-99999 ; half way to X tower
G30 P7 X36.8 Y-21.25 Z-99999 ; half way to Y tower
G30 P8 X0 Y42.5 Z-99999 ; half way to Z tower
G30 P9 X0 Y0 Z-99999 S6 ; centre, and auto-calibrate 6 factors
Attachments:
open | download - Capture.PNG (15.2 KB)
Re: Duet Communication Errors
November 16, 2015 12:53PM
Quote
DADIY
I changed my bed.g file to do the 6 point calibration as per the instructions - and now I see a lot of duet errors like "Error reason: SyntaxError: Unexpected token a" which force me to reboot the printer.

I don't believe that message comes from the Duet firmware. It sounds more like an error message from Javascript or Python to me. Are you using the web interface, or Pronterface, or some other host program?



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Duet Communication Errors
November 16, 2015 01:24PM
I'm just using the web interface. The error message in the picture is what pops up in the browser.
Re: Duet Communication Errors
November 17, 2015 04:11AM
what browser, if your using Infernal-net Exploiter then or Safari then that's probably your problem, try Chrome or Opera



RepRapPro Mendel 3 Tricolour
RepRapPro Fisher
-Carbon Arms
-Easy adjust Carriage+effector
-axis stiffness mods
HE3D -600 delta
-Duet 0.8.5
-PanelDue
-DC42 Height probe
-RobotDigg metal components
Simplyfy3D
RS Design Spark CAD
Re: Duet Communication Errors
November 17, 2015 05:29AM
Ive been using chrome. When I remove the 6 point calibration and go back to 4 it's fine.
Re: Duet Communication Errors
November 17, 2015 08:03AM
What firmware version are you using? Try 1.09k-dc42 or zpl's latest release, if you are not already using one of these.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Duet Communication Errors
November 17, 2015 01:15PM
So I've updated to the 1.09k-dc42 (2015-09-20) release with HTML: 1.06, JS: 1.06 and the error messages have gone away, however the 6 point calibration still doesnt work, each time it probes the bed it get higher and after the first three probes the bed isnt touched before it gives up and moves to the next point.

In the gcode console the following is logged.

G32
Calibrated 6 factors using 10 points, deviation before 7.899 after nan

I've attached my bed.g file, hopefully my mistake is obvious to someone.
Attachments:
open | download - bed.g (2.1 KB)
Re: Duet Communication Errors
November 17, 2015 04:58PM
First, you don't need those M201 commands in bed.g. The travel speed between probings is now set by the T parameter on the M558 command in config.g. The probing speed is set by the M558 F parameter.

I suggest you try increasing the M558 H parameter from its default of 3mm to (say) 10mm. This will make probing start higher up and continue for longer if necessary. When your delta parameters are accurate, you can reduce it to 3mm again.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Duet Communication Errors
November 18, 2015 05:28AM
here is my 6/10 bed.g I had some problems with catching the pillars so between probe moves it moves to centre

Quote
bed.g
M561 ; clear any bed transform, otherwise homing may be at the wrong height
G31 X0 Y0 ; don't want any probe offset for this
G28 ; home the printer
; Probe the bed and do 6-factor auto calibration
G30 P0 X-65 Y-37.5 H-0.13 Z-99999 ; X tower
G1X0Y0
G30 P1 X-52 Y30 H-0.25 Z-99999 ; between X and Y towers
G1X0Y0
G30 P2 X0 Y75 H-0.13 Z-99999 ; Y tower
G1X0Y0
G30 P3 X52 Y30 H-0.25 Z-99999 ; between Y and Z towers
G1X0Y0
G30 P4 X65 Y-37.5 H-0.13 Z-99999 ; Z tower
G1X0Y0
G30 P5 X0 Y-60 H-0.25 Z-99999 ; between Z and X towers
G30 P6 X-32.5 Y-18.75 H-0.17 Z-99999 ; half way to X tower
G30 P7 X0 Y37.5 H-0.17 Z-99999 ; half way to Y tower
G30 P8 X32.5 Y-18.75 H-0.21 Z-99999 ; half way to Z tower
G30 P9 X0 Y0 Z-99999 H-0.2 S6 ; centre, and auto-calibrate 6 factors
G1 X0 Y0 Z150 F15000 ; get the head out of the way of the bed



RepRapPro Mendel 3 Tricolour
RepRapPro Fisher
-Carbon Arms
-Easy adjust Carriage+effector
-axis stiffness mods
HE3D -600 delta
-Duet 0.8.5
-PanelDue
-DC42 Height probe
-RobotDigg metal components
Simplyfy3D
RS Design Spark CAD
Re: Duet Communication Errors
November 18, 2015 05:47AM
thanks - I'll give that a try.
Re: Duet Communication Errors
November 18, 2015 12:28PM
Thankyou bgkdavis your bed.g file works great, and its a pleasure to watch the movements.

After running the calibration three times the m665/m666 commands return the following, I have no idea if this is good or not? I guess I need to add these values to the config.g file?

5:25:49 PM M666
Endstop adjustments X-0.13 Y-0.39 Z0.52

5:25:46 PM M665
Diagonal 160.00, delta radius 81.51, homed height 177.02, bed radius 75.0, X -0.14°, Y -0.62°, Z 0.00°
Re: Duet Communication Errors
November 18, 2015 11:27PM
cool,
those figures look OK but its actually the G30 report that had the deviation figure on it, this is more indicative of the quality of the calibrattion.

glad this worked for you, but to get the most out of it you need to do a little work

If you look at all the G30 lines there is a H parameter, these have been set to my machine and may be unique to my machine, you need to obtain these figures for your machine.

To get these figures you need to move to each position in turn then do a G30, then before moving away from that position manually jog the z axis down until it just traps a piece of paper between the nozzle, and note the Z height and use this figure for the H parameter, repeat for all positions



RepRapPro Mendel 3 Tricolour
RepRapPro Fisher
-Carbon Arms
-Easy adjust Carriage+effector
-axis stiffness mods
HE3D -600 delta
-Duet 0.8.5
-PanelDue
-DC42 Height probe
-RobotDigg metal components
Simplyfy3D
RS Design Spark CAD
Sorry, only registered users may post in this forum.

Click here to login