Just take some modern PLC (not S...tic), maybe A-B, or even better Sixnet.
You can load maybe some examples and then try to examine that.
i can say.. if you examine some plc, next one is not so different.
( but A-B is new for me )
Allways there is in and out. Switch, or measurement and relay, or current- output.