Excel programming of K8055RS

I have a K8055RS completed and operating, but no programming experience. I can usually work through learning what I need to know, but am pounding my head against the wall needing a program to run a test. I keep getting compile errors, then the program shuts down.

If someone would be willing to help me by modifying the excel example file to do the following, I would really appreciate it.

Field to display the counter of Digital Input #1.
Button to reset the counter and one to start/pause running the program.
Once program started, I need Digital Output #1 to go “on”, then wait
When Digital Input #1 goes on, it should switch Digital Output #1 off and increment the counter (I think that is built in) then wait.
When Digital Input #2 goes on, it should switch Digital Output #1 back on and the loop should start over until the pause button is pressed.

It would be nice to have an “elapsed time” field as well so that I could compute cycles/minute but that is not necessary.

Formatting is not critical as I seem to be able to change all that… it is the logic that I am not able to do without errors.

mike.toolman (at) gmail.com