Methinks if you are a mechano, you may be biting off a little more than you can chew. Running pumps off of VFDs usually means you want to vary the speed to match some sort of process condition. For example, you want to maintain a particular flow rate (you mentioned flow). To do that effectively, you need what is called a PID control loop. That could be in the PLC, but now days, chances are really good that it is in the VFD as well. In fact, if this is all you are doing, I'd venture to say you can do everything you need to inside the VFD, forget the PLC.
But all that aside, assuming you have some other valid reason for having the PLC, you can usually do on-off control through the analog input as well, eliminating the DI altogether. What you do is program the VFD t turn itself off if the AI drops below some threshold value, and wake up to run if it increases above it. So for example, let's say you are using 0-10VDC as your speed command. First you program the AI speed response to vary from 0-100% speed on the AI going from 1-10V, then tell it that if it is even below 1V, shut down. It's done all the time, I'm sure the Baldor drive has that capability.
"If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -- Abraham Lincoln
For the best use of Eng-Tips, please click here -> faq731-376