So, what you do is:
1. Place a Fluid/Solid Canning Machine.
2. Turn it into "Fuel/Enrich" mode.
3. Place a CF Sprayer <empty> in the top left slot
4. Place an *exact quantity (8) CF Powder in the center slot - no more!
5. Place an Industrial craft Pump directly behind the Fluid/Solid Canning Machine - such that the two machines are facing back to back.
6. Build a pool of water in front of the Pump so that it is touching the water with its front.
7. Insert a "Fluid Ejector Upgrade" into the Pump.
8. Under these machines, hook them up to some Tin cable.
The pump will suck up water blocks and fill the LEFT tank of the Fluid/Solid Canning Machine.
The Fluid/Solid Canning Machine will fill the CF Sprayer with 8000 units of ic/2 Construction foam and then move the CF Sprayer to the right slot.
If there are MORE than 8 CF Powder in the center position, or the CF Sprayer is not in the Fluid/Solid Canning Machine THEN it will place (up to) 8000mB of construction foam in the right hand (output) tank.
If the output tank becomes full of construction foam the machine will get stuck. If it is full, you can unstick it by shift-right clicking on it with a Universal Fluid Cell <empty> to extract construction foam from the output tank. If the output tank is NOT full, you can unstick it by inserting an CF Sprayer <empty> in the top left slot, and adding some CF Powder - this will start the machine and it will drain the output tank into the CF Sprayer.
You can then switch to 'drain Fluid from cell into Tank' mode to empty the universal fluid cell (making sure not to fill the output tank!)
Alternatively, you build a 2nd Fluid/Solid Canning Machine directly adjacent to the first, and place a second Fluid Ejector Upgrade in the first. This will empty its output tank into the second machines Input tank - the second machine is then simply left in "Fill Cell from Tank" mode and will fill any cells, CF Backpacks or CFSprayers inserted in the left slot.
No Buildcraft, Ender IO or other mods need to be involved in this.