By Steve BaileyUpdated 6 December 2004. Per requests I have added ladder logic to go along with the simulation. It's in a separate pdf file so if you want to try writing your own code just ignore it.
This is a simulation of a tank fill/drain system. The s