News:

  • June 28, 2026, 01:04:55 PM

Login with username, password and session length

Author Topic: Do More PID  (Read 9769 times)

Henryp

  • Hero Member
  • *****
  • Posts: 161
Do More PID
« on: October 11, 2013, 10:21:42 AM »
Does anyone have a sample example of how a PID loop is done in a Do More?


plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Do More PID
« Reply #1 on: October 11, 2013, 10:25:42 AM »
I "believe" there is a sample located in:

Projects>>Examples>>Do-more Simulator>>PID1
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Do More PID
« Reply #2 on: October 11, 2013, 12:04:43 PM »
The Do-more Simulator not just simulates the Do-more control engine, it also has a "Process Simulator" that you can enable that takes control over your WX0 (first analog input) to simulate a process variable based on WY0 (first analog output).

The sample project mentioned then utilizes that feature in the Sim to control "the process" via the code in the project.  Just look at the Start Page in that project for details on what it does and what you can do with it.

Henryp

  • Hero Member
  • *****
  • Posts: 161
Re: Do More PID
« Reply #3 on: October 11, 2013, 06:42:34 PM »
Thanks, it seems like a conversion from a 450 to a do more will not be as hard as I thought. The math, analog and PID functions seem to work well without a lot of code or hassle.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Do More PID
« Reply #4 on: October 11, 2013, 11:35:24 PM »
Thanks, it seems like a conversion from a 450 to a do more will not be as hard as I thought. The math, analog and PID functions seem to work well without a lot of code or hassle.
That's great!

Math is much simpler (one MATH box where you can mix and match decimal and real values in Excel/Basic/IBox-like expressions). 

Analog "just works" - it shows up as WX/WY, just like discrete X/Y in classic DirectLOGIC PLCs.  No pointer method setup.  Definitely no multiplexing.  No logic whatsoever (WX0's value contains the first analog channel on your first analog input module, just like how X0 contains the first discrete input point on your first discrete input module; and yes, WX analog input values are live even in PROGRAM mode, just like X discrete input values are live in PROGRAM mode).

PID is much more flexible via the PID instruction, along with separate Ramp/Soak, High/Low Alarm, Rate Alarm, Filter instructions (and more), providing a simple software interface, but powerful toolbox for your process logic.