I’m sorry that has happened to you. Depending on the severity of your injury the road to recovery (once it has been repaired) might take a while. In the mean time you can try some exercises with the small battling ropes (1.5 inches) and see if that helps (and you feel no discomfort). Avoid circular motions and overhead movements and of course this is if your gym has one. You can ask a trainer there to show you how to use the ropes correctly to avoid any other shoulder discomforts. Ropes can be a good alternative to the ergometer, but they have to be done the right way. Once you are in physical therapy, you can ask your therapist for more exercises since you will have been properly assessed.
I hope this helps.