I have done a simple test with simulation software for PLC program test (using virtual PLC i.e. PLCSim). Here is the setup.
All the necessary files for this test is attached here as well (download from attachment). You should go to the following link to see the total setup instruction video.
utility.zip (2.78 MB)