Machine triggering its own movement

Hi all

I have a software controlling a machine which runs on Arduino Uno too. I was wondering why my machine will trigger its own movement when it is supposed to wait for user command , which is not following the commands in the G code program?Please share any suggestions you have with regards to this problem. Any help appreciated. Thank you!!

I moved your post to a new thread, since it does not seem to be relevant to the issue in the previous thread.

What stepper motor driver are you using? Can you post pictures of your setup and a video showing the problematic behavior? Also, can you post your entire code here so that I can see if there is something obviously wrong with it?

- Amanda