Problem solved! The .ini file looked ok compared to backup so I opened the pncconf wizard and checked all the values which looked correct. I then refreshed the file called my_linuxcnc_machine.pncconf and now the y axis works normally. I am pretty sure the power was interrupted the last time it was used and linux cnc and the pc were not shut down properly. Thanks for the help!
Jack