Configuration duet wifi + clearpath



  • Hi all,
    I want use the clearpath motor (model n. CPM-SDSK-2311P-EQN) with my duet wifi, here the specs:
    Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
    Firmware Electronics: Duet WiFi 1.02 or later
    Firmware Version: 2.02(RTOS) (2018-12-24b1)
    WiFi Server Version: 1.21
    Web Interface Version: 1.22.6

    In according to manual of clearpath, I've wiring the motor with the driver extension breakbord.

    For connection I've used the clearpath manual (pag 43 of manual, in attach) :
    Step+ --> black
    Step- --> yellow
    Dir+ --> white
    Dir- --> brown
    En+ --> blu
    En- --> orange

    The power supply for the motor is this one: IPC-3 Power Supply

    The firmware is generated with the configurator online, and this is the config.g

    ; Configuration file for Duet WiFi (firmware version 1.21)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Wed Aug 07 2019 19:43:04 GMT+0200 (Ora legale dell’Europa centrale)

    ; General preferences
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves

    M667 S1 ; Select CoreXY mode

    ; Network
    M550 P"name-machine" ; Set machine name
    M552 S1 ; Enable network
    ;*** Access point is configured manually via M587
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet

    ; Drives
    M569 P5 S1 ; Physical drive 5 goes forwards
    M569 P6 S1 ; Physical drive 6 goes forwards
    M569 P2 S1 ; Physical drive 2 goes forwards
    M569 P3 S1 ; Physical drive 3 goes forwards
    M569 P4 S1 ; Physical drive 4 goes forwards
    M584 X5 Y6 Z2 E3:4 ; Apply custom drive mapping
    M350 X16 Y16 Z16 E16:16 I1 ; Configure microstepping with interpolation
    M92 X80.00 Y80.00 Z4000.00 E420.00:420.00 ; Set steps per mm
    M566 X900.00 Y900.00 Z12.00 E120.00:120.00 ; Set maximum instantaneous speed changes (mm/min)
    M203 X6000.00 Y6000.00 Z180.00 E1200.00:1200.00 ; Set maximum speeds (mm/min)
    M201 X500.00 Y500.00 Z20.00 E250.00:250.00 ; Set accelerations (mm/s^2)
    M906 X800.00 Y800.00 Z800.00 E800.00:800.00 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout

    ; Axis Limits
    M208 X0 Y0 Z0 S1 ; Set axis minima
    M208 X350 Y350 Z350 S0 ; Set axis maxima

    ; Endstops
    M574 X0 Y0 Z1 S0 ; Set active low and disabled endstops

    ; Z-Probe
    M558 P0 H5 F120 T6000 ; Disable Z probe but set dive height, probe speed and travel speed
    M557 X15:335 Y15:335 S20 ; Define mesh grid

    ; Heaters
    M305 P0 T100000 B4138 R4700 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S120 ; Set temperature limit for heater 0 to 120C
    M305 P1 T100000 B4138 R4700 ; Set thermistor + ADC parameters for heater 1
    M143 H1 S280 ; Set temperature limit for heater 1 to 280C
    M305 P2 T100000 B4138 R4700 ; Set thermistor + ADC parameters for heater 2
    M143 H2 S280 ; Set temperature limit for heater 2 to 280C

    ; Fans
    M106 P0 S0 I0 F500 H T45 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on
    M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on

    ; Tools
    M563 P0 S"Principal" D0 H1 ; Define tool 0
    G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
    G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C
    M563 P1 S"DX nozzle" D1 H2 ; Define tool 1
    G10 P1 X14 Y0 Z0 ; Set tool 1 axis offsets
    G10 P1 R0 S0 ; Set initial tool 1 active and standby temperatures to 0C

    ; Automatic saving after power loss is not enabled

    ; Custom settings are not configured

    But when I try to make home the X axes the results is the message: Error: Attempt to move motors when VIN is not in range

    I've just connect the X axis, and I don't heve the endstop, because I want use the "User Seeks Home" in clearpath software (0_1566401900974_ClearPath User Manual_pgs182_188.pdf pag 182-188 of manual).

    Where is the error?

    If you need another info, please tell me,

    Thanks a lot,


  • administrators

    @alil2096 said in Configuration duet wifi + clearpath:

    Error: Attempt to move motors when VIN is not in range

    How are you powering the Duet? It sounds to me that you haven't connected VIN power.



  • oh, sorry.

    I use this power supply:

    0_1566404244134_photo_2019-08-21_18-16-46.jpg

    Thanks,

    Andrea



  • Ok, little update. Now the motor is alive ( 😄 ) but it doesn't work as it should..

    Home dosen't work, someone use this motor? I want use the option "Shaft angle motor", but the motor dosen't stop in right position..

    P.s. I've just reconnect the power supply and the motor can moves..



  • Update (again):
    After abandoning the idea of ​​using a sensorless system, I installed two mechanical microswith, but I have a home problem.
    The movement system is CoreXY. Giving the commands G91 - G1 S2 X10 F3000 and G91 - G1 S2 Y10 S3000 the printer moves correctly, but when I go to press the home for the x axis the printer moves in the X + direction and if I press the microswitch nothing is happening. The micro are correctly configured, in NC, the LEDs on the duet stay on, if I press them the LEDs go off, it should be the correct behavior. Where am I wrong?


  • administrators

    @alil2096 how are your homex.g and homey.g setup?



  • The home problem was a settings in Clearpath software. In clearpath software there is an option for home, if you want to use the "classic homing" (with duet) you must disable the home into clearpath software..

    Now the home is work, BUT....

    I don't know how set the microstepping.. In clearpath motor I've set 1600step/rotation, but which value I must set in config.g??

    Then, when I move the Y axis there are some vibration.. but only when I move Y, if I try to make the home for X axis all work perfect (but the microstepping is very wrong, the axis is long about 400mm, but if I move for 70-80mm the X axis is in the final section of rail)..

    Do you have some ideas?

    Do you need a video of Y axis?

    Thanks a lot for all


  • administrators

    @alil2096 said in Configuration duet wifi + clearpath:

    1600step/rotation

    you don't have microstepping in this case - or rather any "microstepping" is being handled by the external setup. So if its 1600 steps/revolution then you work out the gearing of your setup (pulleys/belts or leadscrews) so 1 revoltuion of the servo = how much liner movement. That then determines the steps/mm so if 1 motor revolution leads to 10mm of movement, thats 160 steps/mm



  • Ok, I've calculated the correct steps with: (Steps/revolution)/(Pulley tooth count*Belt pitch)

    I've increase the number of steps/revolution at 8000, so, the results is 200step/revolution.

    I've deleted the X and Y number of steps and I've set the correct steps in M92 line. The dimensional movement is correct now.

    The last problem is the vibration during movement on Y axis..

    Whatch the attached video..

    Thanks,

    Andrea

    ; Drives
    M569 P5 S1 T3:3:3:3 ; Driver X
    M569 P6 S1 T3:3:3:3 ; Driver Y
    M569 P2 S1 ; physical drive 2 goes forwards
    M569 P3 S1 ; physical drive 3 goes forwards
    M569 P4 S1 ; physical drive 4 goes forwards
    M584 X5 Y6 Z2 E3:4 ; set drive mapping
    M350 Z16 E16:16 I1 ; configure microstepping without interpolation
    M92 X200 Y200 Z4000.00 E420.00:420.00 ; set steps per mm
    M566 X9000.00 Y9000.00 Z12.00 E120.00:120.00 ; set maximum instantaneous speed changes (mm/min)
    M203 X12000.00 Y12000.00 Z180.00 E1200.00:1200.00 ; set maximum speeds (mm/min)
    M201 X10000.00 Y10000.00 Z20.00 E250.00:250.00 ; set accelerations (mm/s^2)
    M906 X800 Y800 Z800 E800:800 I30 ; set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout



  • Hi everyone..

    I've another problem with the clearpath..

    When the toolhead move from X=0 and Y=0 to X=400 and Y=400 all works fine, but when I try to move the toolhead from X=0 and Y=400 to X=400 and Y=400 there are a lots of vibration.

    But only in this direction, and I don't understand why.

    Someone have an idea?

    Thanks,

    Andrea



  • Try adjust motor current, and possibly max motor speeds.


  • administrators

    @alil2096 said in Configuration duet wifi + clearpath:

    Hi everyone..

    I've another problem with the clearpath..

    When the toolhead move from X=0 and Y=0 to X=400 and Y=400 all works fine, but when I try to move the toolhead from X=0 and Y=400 to X=400 and Y=400 there are a lots of vibration.

    But only in this direction, and I don't understand why.

    Someone have an idea?

    Thanks,

    Andrea

    Is this a CoreXY machine? If so, the first move you describe uses only one motor, but the second uses both.



  • Yes, it's a coreXY.

    In second case the machine use only the right motor..

    But the motor works well, because when the motors work togheter there are no vibration..this is the stranger thing


Log in to reply