Here's another approach that might be a little easier. Set up your high speed counter minimum and maximum values at zero and 99, so that it rolls over every 100 counts. Every time it rolls over, increment a standard counter instruction. You would have a counter for each of the energy levels. At 1.7 KHz, 100 counts is 58.8 mS, so a ladder logic counter should work fine.