The heading of the post reads "microcontroller based speed control dc motor" wheras you are asking about optocoupler pin configuration. Ok..anyways..You may be aware that there are thousands of optos arround. Which opto's Pin configuration you require? Good luck