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

    G-code for Controlling the Rotating Speed of Stepper Motor

    Scheduled Pinned Locked Moved
    Gcode meta commands
    1
    1
    241
    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.
    • Asif Istiakundefined
      Asif Istiak
      last edited by Asif Istiak

      I am using Sandbox(cooltool CNC) for controlling the rotating speed of a stepper motor.
      I have been using a motor with Y port and using the code below. But, the speed was so slow for my purpose(1rpm).

      1. I want to control the speed[maximum rpm(10rpm) of the motor, 50% speed of the rpm(10rpm) of the motor].
        How can I edit my code to control it? What are the errors and unnecessary lines in my code?

      2. If I use a motor with Z port, how may I modify the code?

      Code:
      (2712);
      G90 G94 G21;
      (PROFILE);
      M5;
      S2250 M3;
      G0 X0.0 Y0.0 Z0.0 A0.0;
      G1 Y25.0 F1 A90000;
      M5;
      M30;

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