Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: BobO on February 21, 2016, 12:27:03 PM
-
Was just doing a bit of testing and thought I'd toss this out for your enjoyment.
In this picture I am running a hardware-based PWM on Y0, which is running at 1000Hz, and is looped to X0. I also use two hardware-based high speed timers to measure both the rising-to-rising and rising-to-falling time of X0. I then use the time values to regenerate the duty cycle from the PWM. I feed the raw input duty cycle into a 1 second (1024ms actually) delay line created using a 1ms interrupt, and then filter the output of the delay line with a 10 second filter, thus creating a FOPDT process simulation. I used the simulated process as the PV of a PID loop, which I auto-tuned and bumped a few times.
May not look like much, but there is a whole bunch of cool on that screen.
And for those who might notice some other 'details' on the screen, don't too excited, we tend to use many temporary things that change before release...like names and versions.
-
...and I neglected to mention that I did the entire thing with five instructions. Five.
-
And continuing the fun...this picture is of a log file of my simulated process I created on the SdCard.
If it wasn't clear, all of this is being done on the new platform...coming soon(ish) to your favorite direct marketer of quality automation products!
-
Wow, if that's what you do on your day off, can't wait to see the finished product.
-
Mostly just goofing off. Since I live 800 feet from the office, I tend to hang around more than I should...not to mention the office's coffee is awesome and available 24/7 at the push of a button. Takes less time to drive here than to make it at the house.
I had just finished adding the PWM hardware and got full path through DmD and the PLC OS, and was just wanting to exercise it a bit. After seeing how easy it was to use and how well it worked, I was sitting here with a dumb grin on my face and nobody to share it with.
-
...and I neglected to mention that I did the entire thing with five instructions. Five.
Sweet! 8)
-
Very exciting stuff!