• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

Duet2 and yl620 vfd, chinese spindle control

Scheduled Pinned Locked Moved
CNC
4
8
1.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    leehakmin
    last edited by leehakmin 6 Sept 2019, 18:26 9 Jun 2019, 18:10

    0_1560104764901_YL620-A.pdf
    I bought the name yl620-a vfd. I want to control the yl620 vfd on the duet2 board. Please tell me how.

    0_1560103297147_수정됨_HTB1MWwfX.LrK1Rjy1zbq6AenFXaH.jpg
    0_1560103310072_HTB1a_cYcFHM8KJjSZFwq6AibXXaM.jpg 1_1560103332509_KakaoTalk_20190609_183146720.jpg 0_1560103332509_KakaoTalk_20190609_183146198.jpg

    1 Reply Last reply Reply Quote 0
    • undefined
      HebigT
      last edited by 10 Jun 2019, 01:01

      You should be able to configure a Duet Servo output to do this? I am not an expert, but I came across this video recently:

      https://www.youtube.com/watch?v=6QpJ_aUhH1s

      https://www.youtube.com/redirect?q=http%3A%2F%2Frwgresearch.com%2Fopen-projects%2Fbrushless-cnc-spindle-build-3d-printer%2F&redir_token=353Q-hdpZXxLmiZWqLGDCoTTadp8MTU2MDIxNDg3MUAxNTYwMTI4NDcx&v=6QpJ_aUhH1s&event=video_description

      1 Reply Last reply Reply Quote 0
      • undefined
        Catalin_RO
        last edited by 10 Jun 2019, 05:11

        I have a similar looking PWM to 0-10V converter connected as follows:

        • DIN- - FAN1-
        • DIN+ - V_FAN
        • 12-30V - the Duet power supply
        • AO/A0 - the VFD VI pin (VI1 in your case)
        • GND - the Duet power supply and the GND pin on the VFD (can also be named ACM)

        Set the PWM input signal level to 24V or you might break the optical coupler at its input.

        On the VFD you also need to short FWD (can also be named FOR) to XGND (can also be named DCM or COM).

        Enable the spindle on FAN1 output by adding the following into the config.g script, replacing the R24000 parameter with the maximum speed of your spindle:

        M453 P21 R24000 F1000
        M563 P2 S"Spindle"

        Specify in the post-processor of the CAM software:

        • M3 {$s} G4 S30 for spindle start - this is for CamBam, for other CAM software the {$s) variable might look differently; adjust the S30 to allow the spindle reach maximum speed before plunging into the material.
        • G4 P0 M5 for spindle stop - the default M5 doesn't wait for all movement to finish!!!

        Check in the VFD manual for P00.01 and P07.08. They both need to be properly set in order for the VFD to use the signal on VI1 for speed control. In case of Huanyang VFDs, check PD001and PD070.

        The VFD might also have some small switches near the control terminals connector, usually undocumented.

        I also have a spindle warmup macro that I run before doing the first machining of the day, as you need to get the grease fluid enough for top speed:

        M3 S5000 G4 S120
        M3 S10000 G4 S120
        M3 S17000 G4 S120
        M3 S24000 G4 S120
        M5

        With the above, the spindle RPM will be correct at top speed, being 10-20% higher at lower RPMs.

        undefined 1 Reply Last reply 12 Jun 2019, 19:59 Reply Quote 2
        • undefined
          Yesealex @Catalin_RO
          last edited by 12 Jun 2019, 19:59

          O@catalin_ro hi there, a fantastic post. I was quite far in the build, but now I made some more steps.

          I can control 1-10v signal.
          I can control the rpm.

          I just can't control the motor from starting or stopping. It always keeps spinning at 6000rpm. 6000 is the bottom programmed speed, should I reduce this to 0 or is there another parameter that i need to change? I would love to hear back from you.

          Kind regards,

          Alexander

          undefined 1 Reply Last reply 12 Jun 2019, 21:02 Reply Quote 0
          • undefined
            Catalin_RO @Yesealex
            last edited by 12 Jun 2019, 21:02

            @yesealex Reduce the minimum speed to 0 and consider the limit when generating the GCode files with the CAM software. I have myself an 800W spindle, air cooled, and it is also specified for minimum 6000RPM, but I have used it at speeds as low as 4000RPM, just that only for brief periods of time. Lower speeds are usually not justified as they are usually specific to much larger tools, way beyond what a 2.2kW spindle can handle.

            Alternatively, a separate CW/FOR/FWD pin would need to be used and I have not tested this solution so far!

            undefined 1 Reply Last reply 13 Jun 2019, 05:27 Reply Quote 0
            • undefined
              Yesealex @Catalin_RO
              last edited by 13 Jun 2019, 05:27

              @catalin_ro hi!

              Once again thank you for the response. Which parameter would control the minimum frequency? PD011?

              Thanks for the help.

              Kind regards,
              Alexander

              undefined 1 Reply Last reply 13 Jun 2019, 19:03 Reply Quote 0
              • undefined
                Catalin_RO @Yesealex
                last edited by 13 Jun 2019, 19:03

                @yesealex hi!

                Yes, PD011 seems to be. I have changed on my VFD only the parameters that I really needed to change.

                undefined 1 Reply Last reply 19 Jun 2019, 17:05 Reply Quote 0
                • undefined
                  Yesealex @Catalin_RO
                  last edited by 19 Jun 2019, 17:05

                  @catalin_ro hi there! I just managed to re program the vfd and this now works! It is awesome!

                  Thanks for all the help,
                  Alex

                  1 Reply Last reply Reply Quote 0
                  3 out of 8
                  • First post
                    3/8
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA