AutomationDirect
Search
Login | Register
Accounts & Orders
Cart
0
$0.00

Recent Orders

View and Manage | Request Cancellation

Your Account

Account Home

Checkout   $0.00


  • My Orders
  • Product Returns (RMAs)
  • Pay Proforma Invoices
  • Pay Freights
  • Invoices / Invoice Reprint
  • Quotes / Favs / BOMs
  • Packing List Reprint
  • My Product Docs
  • Credit Application
  • Tax Exemption
| Direct Sales in US and Canada | 1-800-633-0405 | About Us | Contact Us | Line Card
Products | Support
| Compare
  
Ordering Tools  
warning Cookies are not enabled on your browser.
Cookies are required for our site. Please enable cookies in your browser preferences to continue.
+
Navigation
+
Shopping Categories
  • Barcode / RFID / Vision
  • Bulk Wire & Cable
  • Cables (Terminated)
  • Circuit Protection / Fuses / Disconnects
  • Communications
  • Drives & Soft Starters
  • Enclosure Thermal Management & Lights
  • Enclosures & Racks
  • Field I/O
  • HMI (Human Machine Interface)
  • Hydraulic Components
  • Motion Control
  • Motor Controls
  • Motors
  • Pneumatic Components
  • Power Products (Electrical)
  • Power Transmission (Mechanical)
  • Process Control & Measurement
  • Programmable Controllers
  • Pushbuttons / Switches / Indicators
  • Relays / Timers
  • Safety
  • Sensors / Encoders
  • Stacklights
  • Structural Frames / Rails
  • Tools & Test Equipment
  • Valves
  • Water (Potable) Components
  • Wiring Solutions
  • Retired Products
+
Learn More
  • Brand Line Card
  • What's New
  • E-newsletter
  • Online PDF Catalog
  • Video Tutorials
  • Company Reviews
  • Learning Library
  • Affordable Training
  • Free Online PLC training
  • Cybersecurity
+
In Depth Product Sites
  • Programmable Logic Controllers
  • Productivity1000 PLCs
  • Productivity2000 PLCs
  • Productivity3000 PLCs
  • ProductivityCODESYS
  • LS Electric XGB Series PLCs
  • ProductivityOpen
  • CLICK PLCs
  • Do-more H2 PLCs or
    Do-more T1H Series
  • Do-more BRX PLCs
  • C-more Touch Panels
  • AC & DC Drives
  • Motion Control Components
  • Servos
  • StrideLinx
  • Pneumatics
+
Product Selectors &
Configuration Utilities
  • PLC Family Selector
  • P1000 PLC Systems
  • P2000 PLC Systems
  • P3000 PLC Systems
  • ProductivityCODESYS
  • CLICK PLC Systems
  • Do-more® BRX PLC Systems
  • LS-Electric® XGB PLC Systems
  • Productivity®Open Systems
  • AC Motors
  • Datalogic® Safety Light Curtains
  • LS-Electric® Servo Systems
  • Nitra® Pneumatic Grippers
  • Object Detection (Sensors)
  • PAL Controller Configurator
  • Precision Gearbox Selector
  • Protos X® Field I/O
  • Quadritalia® Modular Enclosures
  • Stellar® Soft Starters
  • Stepper System Selector
  • SureFrame T-slot Extrusion
  • SureMotion® XYZ Gantry
  • SureServo2® System Selector
  • SureStep® Linear Actuators
  • Timing Belts & Pulleys
  • Werma® Stacklights
  • ZIPLinks

BRX Do-more Simulation PID Temperature Part 4A from AutomationDirect


Related Products

BX-04ADM-1
BX-04ADM-1 Thumbnail
BX-04AD-1
BX-04AD-1 Thumbnail
BX-08AD-1
BX-08AD-1 Thumbnail
BX-16AD-1
BX-16AD-1 Thumbnail
BX-04AD-2B
BX-04AD-2B Thumbnail
BX-08AD-2B
BX-08AD-2B Thumbnail
BX-16AD-2B
BX-16AD-2B Thumbnail
BX-04DA-1
BX-04DA-1 Thumbnail
BX-08DA-1
BX-08DA-1 Thumbnail
BX-04DA-2B
BX-04DA-2B Thumbnail
BX-2AD2DA-1
BX-2AD2DA-1 Thumbnail
BX-4AD2DA-1
BX-4AD2DA-1 Thumbnail
BX-2AD2DA-2B
BX-2AD2DA-2B Thumbnail
BX-4AD2DA-2B
BX-4AD2DA-2B Thumbnail
BX-08DA-2B
BX-08DA-2B Thumbnail
BX-04THM
BX-04THM Thumbnail
BX-08THM
BX-08THM Thumbnail
BX-4THM4DA-1
BX-4THM4DA-1 Thumbnail
BX-06RTD
BX-06RTD Thumbnail
BX-4RTD4DA-1
BX-4RTD4DA-1 Thumbnail
BX-08NTC
BX-08NTC Thumbnail
BX-HSIO1
BX-HSIO1 Thumbnail
BX-HSIO2
BX-HSIO2 Thumbnail
BX-08SIM
BX-08SIM Thumbnail
H2-DM1
H2-DM1 Thumbnail
H2-DM1E
H2-DM1E Thumbnail
T1H-DM1
T1H-DM1 Thumbnail
T1H-DM1E
T1H-DM1E Thumbnail
H2-DM-M
H2-DM-M Thumbnail
T1H-DM-M
T1H-DM-M Thumbnail
BX-DM1E-10ED13-D
BX-DM1E-10ED13-D Thumbnail
BX-DM1E-10ED23-D
BX-DM1E-10ED23-D Thumbnail
BX-DM1E-10ER3-D
BX-DM1E-10ER3-D Thumbnail
BX-DM1E-10AR3-D
BX-DM1E-10AR3-D Thumbnail
BX-DM1-10ED1-D
BX-DM1-10ED1-D Thumbnail
BX-DM1-10ED2-D
BX-DM1-10ED2-D Thumbnail
BX-DM1-10ER-D
BX-DM1-10ER-D Thumbnail
BX-DM1-10AR-D
BX-DM1-10AR-D Thumbnail
BX-RTB10
BX-RTB10 Thumbnail
BX-RTB10-1
BX-RTB10-1 Thumbnail
BX-RTB10-2
BX-RTB10-2 Thumbnail
BX-DM1E-M
BX-DM1E-M Thumbnail
BX-DM1E-M-D
BX-DM1E-M-D Thumbnail
BX-DM1E-18ED13
BX-DM1E-18ED13 Thumbnail
BX-DM1E-18ED23
BX-DM1E-18ED23 Thumbnail
BX-DM1E-18ER3
BX-DM1E-18ER3 Thumbnail
BX-DM1E-18AR3
BX-DM1E-18AR3 Thumbnail
BX-DM1E-18ED13-D
BX-DM1E-18ED13-D Thumbnail
BX-DM1E-18ED23-D
BX-DM1E-18ED23-D Thumbnail
BX-DM1E-18ER3-D
BX-DM1E-18ER3-D Thumbnail
BX-DM1-18ED1
BX-DM1-18ED1 Thumbnail
BX-DM1-18ED2
BX-DM1-18ED2 Thumbnail
BX-DM1-18ER
BX-DM1-18ER Thumbnail
BX-DM1-18AR
BX-DM1-18AR Thumbnail
BX-DM1-18ED1-D
BX-DM1-18ED1-D Thumbnail
BX-DM1-18ED2-D
BX-DM1-18ED2-D Thumbnail
BX-DM1-18ER-D
BX-DM1-18ER-D Thumbnail
BX-RTB18
BX-RTB18 Thumbnail
BX-RTB18-1
BX-RTB18-1 Thumbnail
BX-DM1E-36ED13
BX-DM1E-36ED13 Thumbnail
BX-DM1E-36ED23
BX-DM1E-36ED23 Thumbnail
BX-DM1E-36ER3
BX-DM1E-36ER3 Thumbnail
BX-DM1E-36AR3
BX-DM1E-36AR3 Thumbnail
BX-DM1E-36ED13-D
BX-DM1E-36ED13-D Thumbnail
BX-M1E-36ED23-D
BX-M1E-36ED23-D Thumbnail
BX-DM1E-36ER3-D
BX-DM1E-36ER3-D Thumbnail
BX-DM1-36ED1BX-DM1-36ED2
BX-DM1-36ED1BX-DM1-36ED2 Thumbnail
BX-DM1-36ER
BX-DM1-36ER Thumbnail
BX-DM1-36AR
BX-DM1-36AR Thumbnail
BX-DM1-36ED1-D
BX-DM1-36ED1-D Thumbnail
BX-DM1-36ED2-D
BX-DM1-36ED2-D Thumbnail
BX-DM1-36ER-D
BX-DM1-36ER-D Thumbnail
BX-RTB36
BX-RTB36 Thumbnail
BX-RTB36-1
BX-RTB36-1 Thumbnail


To learn more: https://www.AutomationDirect.com/Do-more-PLCs?utm_source=i9AVMG83YVE&utm_medium=VideoTeamDescription

(VID-DH-0017)

Learn how to use the PID Process Simulator built into the Free Do-more Designer software. This is a great way to set up and test your PID tuning without taking your system offline and also a great way to learn about PID. We'll show you from beginning to end how to get the most out of this really cool feature!

Online Support Page: https://community.automationdirect.com/s/?utm_source=i9AVMG83YVE&utm_medium=VideoTeamDescription

**Please check our website for our most up-to-date product pricing and availability.


Hide Transcript
View Transcript

In this video, we want to replace all of this process hardware stuff that we used in the previous videos with a software process simulation, so we can test our system and experiment with PID on the Do-more PLC simulator and not have to take our real system offline or worry about the possibly damaging our hardware while we develop and test our code. The PID instruction outputs 0 to 100%. The PLC simulator has 12-bit analog I/O, so unlike the previous video, we will need output scaling. The process simulation expects that on analog output WY0. The process simulation is just a first order filter with a delay. That is, it takes any change, delays it, rounds it off and sends it back out. Which if you think about it, describes most processes you’ll encounter. In fact, it looks just like the heater curves we had in the previous video, doesn’t it? We’ll see you how to configure the process simulator in just a minute. The process simulator sends the result back in on analog input WX0 as our Process Variable and that will appear as a 12-bit number on this PLC Simulator. We want to scale that to degrees Fahrenheit so we can enter degrees Fahrenheit as our setpoint, but how do we know what values to put here so this will match our hardware? Well, guess what? We already have that answer. Remember this graph we created in the previous video? With the heater power off, the box stayed at room temperature. Heater power at 25%, the box rose to this temperature. 50%, this temperature. 75 power got the box to this temperature and 100% heater power got the box to this temperature. Well, that’s it. Zero to 100% heater power scales to 72.3 to 160.1 degrees F. That’s our scaling. Which means, this 0-4095 scales to 72.3 to 160.1 degrees. Now we can manually enter our setpoint in degrees Fahrenheit and everything will work. So … we only have two things to do. Add a PID instruction, paying special attention to the scaling in that instruction, and configure and enable the process simulation. Let’s do it! To configure our process simulator, we need to know two things about the system we want to emulate, the dead time and the time constant. To get those, bring your system up to its operating level. I got our system up to the 110 degrees we have been shooting for and started recording the trace. Wait a little bit to capture some of that steady state data, and then you want to bump the PID output a few percent. I increased our output 5% just so it would be easier for us to see. Anything that gets your system to react a little is fine. We can see the temperature starting to rise. We want to let that run for however long it takes to get to a new stable value. I’m going to let ours run for an hour or two which is overkill, but it will let us see what the long term stability of our system is. Ok, about 2 hours have passed. I’ll hit the history button and we see that we are missing some of the blue process variable data. That’s because the display buffers aren’t large enough. This data is noisy, so it takes a lot of data points to capture that. The white setpoint and green output don’t change at all so their respective buffers didn’t run out. We right click, go to options and make the buffer larger it we want to, but since we were recording all of this trend data, all we have to do is stop the recording and save the data as either an csv file for spreadsheets or a trend archive. I’ll save both. If I bring up a new instance of Do-more Designer, I can import that trend simply by opening the file. Let’s zoom in so we can see this better. Right click, trend view options, and modify the time and vertical axis. We see our green output trace went up 5 percent as we requested, and the blue process variable rose from 110.5 degrees – I’m reading the cursor values down here - and would have settled out at around 115 degrees. These variations look rough but it’s really only plus or minus a degree. I’ll going to use this slide to zoom the time scale even more so we can measure the time constant which is the difference between when the process variable started to change and when it reaches 63 percent of its final value. That’s about here, so our time constant is this. If we zoom in even more, we see the output changed here, but the process variable didn’t really start to change until here. That’s the dead time Did we really have to do all of this measuring stuff to use the process simulator? No! We could have simply guessed what the dead time and time constant were and probably have gotten pretty close. So if you want to get up and running quickly, guess. If you want an accurate simulation – then measure. Great, now that we have our system dead time and time constant, we can finally set up our simulation. I created a new offline project and I’ll connect that to the simulated PLC. And remember, we only need to do two things: add a PID instruction and set up the process simulator. Here we go. Step 1: Add a PID instruction. Give it a structure name. All these default values are fine. We just need to do the scaling. We said the process variable is coming from analog input WX0 which is 12 bits and that we need to scale it from this to this. Make sure you enter these as REAL numbers with a decimal point. If you don’t add the decimal the Do-more engine will assume you wanted integer calculations which will change the scaled values from smooth plots to discrete stair steps and mess everything thing up. Let’s add our units label. And the output needs to scale back to the 12-bit 4095 number and go to analog output WY0. Done. And yes, we do want Do-more Designer to create that new OvenSim structure for us. I’m gonna force the PID instruction to be in auto mode at all times, just so I can show how to use the override feature in the PID view window. Let’s put the PLC in terminal mode so we can write the program to it and accept and write it out. Now that we are connected to the simulated PLC with an active PID instruction, we can bring up the PID view utility. I love this thing because it lets me control and view everything I need to know about PID in one place. When we tell the PLC to RUN, everything gets updated. Note that the default PID constants are all zero, so while PID is enabled, it isn’t actually doing anything. Let’s override the PID instruction and give ourselves manual control of the PID output. That does the same thing as turning this rung off. It doesn’t disable the instruction – it’s still running – it just gives US manual control of the output. Because we are in manual mode, this output box is now active, so we can manually enter the PID output values to drive the process. What process? We’ll we haven’t set that up yet have we? If we bring up the simulated PLC and click on “Sim,” we can set up the process simulator. All we have to do is enter our dead time and time constant. We can add noise if we want to – we’ll skip that for now, and we need to enable the process simulator. Hit update and we are good to go. The process simulation is now running. In the next video, we’ll run an Auto-Tune on our new simulated process and then we’ll run some live examples to see how well it works. Mostly though, we’ll see what a fantastic tool this is for getting comfortable with PID. Why? Because it allows you to try things you wouldn’t normally be able to do on your real system because it would take the system offline too long or be too expensive or possibly even too dangerous. Or maybe you don’t have access to the hardware. All those issues go away when you are running PID in a simulated environment. Click here to see all the videos in this play list. Click here to learn more about our award winning Free tech support options. And click here to subscribe to our YouTube channel so you will be notified when we publish new videos.



No data returned!
An error has occurred! Please contact support
Videos Home > BRX Do-more Simulation PID Temperature Part 4A from AutomationDirect
Contact, Connect & More
Sign Up
to receive:
FREE e-Newsletter
sign up today!
Connect With Us
Social Media Channels:
linkedin    facebook    x    instagram    youtube
Company Information
About Us
Brand Line Card
System Integrator Program
International Sales
Panel Builder Program
Site Help
Company Reviews
Download Price List
Contact Us
Contact Options
1-800-633-0405
Monday - Friday
9 a.m. - 6 p.m. ET
excluding holidays
Career Opportunities
Voted #1 mid-sized employer in Atlanta
We're a great place to work!
Check out our job openings

Need Training?
Affordable Training by Interconnecting Automation
Free Online PLC Training
FREE Video Tutorials
Information & News
What's New / In The News
FREE e-Newsletter
Automation Notebook
Product Literature
White Papers
News, Product and Training Bulletins
E-Books
Shop with confidence
Checked   Safe & Secure
payment methods


We accept VISA, MasterCard, Discover, American Express, PayPal or company purchase orders.
AutomationDirect

BBB Accredited

Voted #1 mid-sized employer in Atlanta
Check out our job openings

Copyright © 1999-2025 AutomationDirect.  ALL RIGHTS RESERVED.
Site Map     Send Us your Feedback     Unsubscribe     Email Preferences     Legal & Business Policies     YouTube Terms of Service
Clear login credentials



Back to Top


spinner Updating...
Info
„