Why not?
You basically attach a few digital signals to an FB, and get a value out of it.