By writing the code that will read the inputs at the appropriate rate and modify the outputs based on their values. Then uploading the sketch to the Arduino board.
If you're going to be really vague, I will be too.
i had once ask this question on the forum. but really after a while i learn that it is quite easy to make the transition. tell me how your program work and i will try to help you
Honestly that's about as good as I can do with such a vague question.
Computing is a precise vocation, be precise.
Would you ask a builder how to build a house and say "I know there's a hammer involved and materials come in and get modified and I heard something about it taking quite some time"
The problem is that some outputs are delays dependent, so it makes the programming issue harder.
No, it doesn't. The time to turn an output on, relative to an event, may not be exactly when the event occurs. So, make note of when the event occurred, and, periodically, see if it is time to perform the action.
The time to turn the output off may be relative to when the output was turned on. If so, see above, and change on to off.
"make note of when the event occurred" can you explain please ?
If you need to bake a cake, and it needs to bake for 25 minutes, how do you determine when to take it out? You make note of when you put it in the oven. You need to do the same thing, here. The difference is that the watch/clock here is the millis() function.
If it is worthwhile, please visit site http://www.arduoplc.blogspot.it
and select your preferred language.
Find in alpha version a simulator / compiler for Arduino PLC.