G92 X0 Y0 Z0 would tell the printer that the current position is X0 Y0 Z0
You could do this, then move X carriage say 20mm
You could return to X0 by issuing G0 X0 F1800 <that'd be 30mm/sec * 60 to achieve mm/min
But homing is different
It actually issues G28, it works in a way that it moves the direction it's told that the endstop (min or max) and expects to hit it, then stops. Counts that as 0
You'll need to do few things
Make sure that on the endstop switches themselves, you should have wires to the C and NC terminals
If your electronics have pins for Min and Max endstops, make sure they're connected to the Min
While looking at the printer from the front
X endstop should be at the Left
Y endstop should be at the Back
Z endstop should be at the bottom
Move the carriage and bed so none of the endstop switches are being triggered
Send M119
It'll tell you the status of the endstops
They should all read OPEN
If they read TRIGGERED
Test them by holding them down and sending M119
Whichever one you're holding down
If it doesn't change, you've got a wiring problem
If it switches to OPEN you have it wired up to the wrong terminal, double check that you have it connected to C and NC on the switch
If you do have it connected that way, it's inverted in firmware
You will go to your firmware and look for the following lines:
#define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
For whichever Axis are working the opposite (Eg, TRIGGERED when switch is not pressed, OPEN when switch is pressed), change it to the opposite from what it is (Eg, false to true, etc)
Also in your firmware, make sure these are like this:
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR -1
After you flash your firmware
Send M502
Then M500
(Shouldn't hurt even if you have eeprom off)
Then test
Place the carriage and bed in the middle of their travel
Also get ready to pull the power
Try one Axis at a time
Send G28 X0
It should move toward the endstop
If it does not, turn the power off and flip the X motor connector around
Test again the same way
It should now move toward the endstop
Press the endstop with your finger
It should stop
If not, something else is wrong
Do this same process for all your Axis