I'm guessing this isn't a printer application?
Have you reviewed this document? https://docs.duet3d.com/User_manual/Reference/Gcodes#introduction
The first sections give some idea on how gcodes are processed, and the G0/G1 commands explain how movement is carried out.
What kinematics are you actually using? The default assumption is a cartesian system with an X, Y, Z, and E axis. Movement is coordinated by the firmware to complete the move in XYZ space at the fastest feed rate allowed by the individual axis up to the specified feed rate.
Homing moves are also a particular case, in that movement is started and carried out for the distance specified up until the endstop is triggered.
You've asked a number of fairly specific questions with only a vague idea of what is actually required to happen. Without more details about your endgoals and setup it is hard to recommend solutions.