I've got a few minutes until the next pot of coffee is done, so I'll take a poke at this one.
This answer is based on the assumption that somewhere in the question there is a freq drive of some brand or another, and also assumes there is some form of communication between the freq drive and the PLC. If those assumptions are correct then read on. If any of those assumptions is incorrect, then I'm just typing to enjoy the sound of the keyboard.
The quick and easy way to do this is to use an EQUAL and a MOVE. And it would look something like this:
If Product_Count EQUAL 10 then MOVE 42.5 to freq drive commanded speed.
If Product_Count EQUAL 12 then MOVE 42.5 to freq drive commanded speed.
There are so many ways to skin this cat, we could spend the rest of this year and next debating the pros and cons of each idea. This one will get the job done, and your local Bubba will have no excuse for not being able to understand it.
Bubba.