I have no experience with tronxy x1, if you don't have manual, search tronxy x1 in youtube
https://m.youtube.com/watch?v=htV6nejX7nY
my guess is you switched y axis and z axis endstop on mainboard or you installed y axis endstop on z axis spot.
if you know how to send gcode command to printer, try send M118 while press your y or z axis endstop and see if the endstop status changes accordingly when you press the endstop manually.
(Da Vinci 1.0, Jr. 1.0 RAMPS, miniMaker) X4, (Creality CR-10S, CR-10 mini, Ender-3) X4, Anycubic MEGA X4, Anycubic Chrion X1, ADMILAB Gantry X2 (MonoPrice Maker Select V2, Plus, Ultimate)X4--Select mini X1, Anycubic photon X4, Wanhao duplicate D7 X1.
iNSTONE Inventor Pro X2, CTC Dual X2, ANET-A8, Hictop 3DP-11, Solidoodle Press, FLSUN I3 2017X1