Copy the code to a block in Step 7, Use covert to LAD FBD, both should work, i posted it in STL due to Non LAD function in this forum, if you notice there is a L20.0 is a and bit that the LAD part of Step 7 uses.
In your hardware configuration use the Clockbyte, make BYte 0,
Now the 5th bit would be the 1second bit, it is on for 1 sec, then off and then on and so on.
So on a positive edge i trigger a increment, i use the mask bit so that the PLC does not increment on each scan, i reset the mask bit when i see low value at pulse bit.
When you convert this code to STL you will see it is really very simple, you need to read the help file on the clockbyt, you cvan change this adress to 0 on the hardware configuration properties of your CPU.
Hope it helps.
Rheinhardt
--Off all the things i've lost , i miss my mind the most--