Nema23+tb6600 what code do i need to change

Did you try the AccelStepper ProportionalControl example? If you can get that to work, then the connections should be working.