1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

G code

Discussion in 'Software' started by Mohammad Nawar, Feb 2, 2017.

  1. Mohammad Nawar

    Mohammad Nawar New Member

    Joined:
    Feb 1, 2017
    Messages:
    5
    Likes Received:
    0
    Hi guys

    Simple question in g code, I want to control one stepper motor from PCB x output, so I need a code to rotate the motor in loop until end stop activated.

    Regards
     
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Do you mean an X/Y/Z stepper or one you are adding somehow?
     
  3. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
  4. Mohammad Nawar

    Mohammad Nawar New Member

    Joined:
    Feb 1, 2017
    Messages:
    5
    Likes Received:
    0
    Yes stepper motor exactly
     
  5. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    #5 mark tomlinson, Feb 2, 2017
    Last edited: Feb 2, 2017
  6. Mohammad Nawar

    Mohammad Nawar New Member

    Joined:
    Feb 1, 2017
    Messages:
    5
    Likes Received:
    0
    Hi @mark tomlinson
    i am sry to bother u again but i am really confused what i have is PCB costume made that read G code from SD card or USB, recently i controlled the motor from screen, and now i want to upload the g code in the SD card and run it from the screen, if you want i can upload pictures to see the chip am just facing the problem that i am beginner with the g code, just need to control the stepper motor as mentioned before.

    Thank you
     
  7. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    What firmware or source is actually reading the Gcode and doing something?
    Different styles of firmware can do things a bit different.

    Whose software is reading the GCode and then making the motor move?
     
  8. Mohammad Nawar

    Mohammad Nawar New Member

    Joined:
    Feb 1, 2017
    Messages:
    5
    Likes Received:
    0
    it's a PCB chip for 3D printer and it's reading g-code to control the X, Y, Z stepper motor, but i want to use to different application and control one stepper motor only. the chip in picture below.
     

    Attached Files:

  9. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    That looks like a RAMBO board or maybe a smoothie board.

    That board has firmware on it (software that runs specifically on that hardware) to do things like read GCode commands to run steppers. You need to start by identifying the board and then the firmware that it uses :)
     
  10. Mohammad Nawar

    Mohammad Nawar New Member

    Joined:
    Feb 1, 2017
    Messages:
    5
    Likes Received:
    0
    Hi @mark tomlinson

    Do you have experience in writing g - code ?
     
  11. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Yes, we had to customize some for the DLP we did.
    Generally speaking "people" don't write GCode, slicers do (or process controllers for CNC machines).

    If you were building a device to just run a motor you wouldn't bother with GCode :)
    You would only bother with GCode if you were adding to or building a 3D printer or computer controlled lathe or CNC machine.
     

Share This Page