Welcome to the forum. Unfortunately you have not given near enough information for anybody to be of much assistance. If you can include part numbers for the steppers, part numbers for the cards, and the PLC you are using (RS500 doesn't tell us much), you might get more help. The more detailed you can get, the easier it is for people to help you.
With that being said, start with the manuals for the cards. See what they say about setting up the cards and see if they have examples on how to use the appropriate commands. Go to the manufacturers website and see if they have sample code that you can browse.