You sound like your on the right track with the optos. I have made a few projects involving PLCs but I always interfaced to them using RS485 but I guess yours doesn't have that option.
You shouldn't have a problem using optos to interface to the 24VDC but I don't think you need any diodes just the optos and some matching resisters but I could be wrong.
Bookmarks