Thanks... There are good ideas.
I forgot to say that I would put the counter on each input, and several timers.
Ladder is too complicated to be quickly and efficiently done in vb6.
I think I found a good example of what I wanted to do.
These are the moxa controllers with Click & Go logic.
I'll probably use a GPRS connection for monitoring...