How is the integration between hardware and software is done
The AI/DI are integrated to controller when you associated a "Variable" in DI or AI channel.
The same way to output, If you wanna send a command to motor start, for example you can associated a Variable in DO and connect this to a input start of this motor.
It's clean for you?
This picture illustrate a DI.