For those interested in using PIC18F for control-based projects VPS_P18 ver2.0 now includes a simulator which makes it very easy to develop and test your application without having to assemble some hardware. I have attached the setup file and the doc for FB181 because this function block was changed to use another (better?) algorithm. Be sure to also check the readme file.