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

Productivity PID Loop Part 6 - Scaling from AutomationDirect


Related Documents


PID Loop Programming Parts 1-11 - Slides


Productivity3000 - PID Demo Project


C-more Touch Panel - PID Demo Project



Related Products

PCON-KIT
PCON-KIT Thumbnail
P1-USER-M
P1-USER-M Thumbnail
P1-10RTB-1
P1-10RTB-1 Thumbnail
P1-10RTB
P1-10RTB Thumbnail
P1-04PWM
P1-04PWM Thumbnail
P1-02HSC
P1-02HSC Thumbnail
P1-04RTD
P1-04RTD Thumbnail
P1-4ADL2DAL-2
P1-4ADL2DAL-2 Thumbnail
P1-4ADL2DAL-1
P1-4ADL2DAL-1 Thumbnail
P1-08DAL-2
P1-08DAL-2 Thumbnail
P1-08DAL-1
P1-08DAL-1 Thumbnail
P1-08ADL-2
P1-08ADL-2 Thumbnail
P1-08ADL-1
P1-08ADL-1 Thumbnail
P1-04AD
P1-04AD Thumbnail
P1-16TR
P1-16TR Thumbnail
P1-08TA
P1-08TA Thumbnail
P1-08NA
P1-08NA Thumbnail
P1-15TD2
P1-15TD2 Thumbnail
P1-15TD1
P1-15TD1 Thumbnail
P1-16NE3
P1-16NE3 Thumbnail
P1-08NE3
P1-08NE3 Thumbnail
P1-01DC
P1-01DC Thumbnail
P1-550
P1-550 Thumbnail
P1-540
P1-540 Thumbnail
P1-START
P1-START Thumbnail
MICSD-16G
MICSD-16G Thumbnail
P1-01AC
P1-01AC Thumbnail
P1-08ND3
P1-08ND3 Thumbnail
P1-08TD1
P1-08TD1 Thumbnail
P1-08TD2
P1-08TD2 Thumbnail
P1-15CDD1
P1-15CDD1 Thumbnail
P1-15CDD2
P1-15CDD2 Thumbnail
P1-16CDR
P1-16CDR Thumbnail
P1-08TRS
P1-08TRS Thumbnail
P1-04ADL-1
P1-04ADL-1 Thumbnail
P1-04ADL-2
P1-04ADL-2 Thumbnail
P1-04DAL-1
P1-04DAL-1 Thumbnail
P1-04DAL-2
P1-04DAL-2 Thumbnail
P1-04THM
P1-04THM Thumbnail
P1-04NTC
P1-04NTC Thumbnail
P1-08SIM
P1-08SIM Thumbnail
PS-PGMSW
PS-PGMSW Thumbnail
P2-550
P2-550 Thumbnail
P2-RS
P2-RS Thumbnail
P2-START2
P2-START2 Thumbnail
P2-04B
P2-04B Thumbnail
P2-07B
P2-07B Thumbnail
P2-11B
P2-11B Thumbnail
P2-15B
P2-15B Thumbnail
P2-01AC
P2-01AC Thumbnail
P2-01DCAC
P2-01DCAC Thumbnail
P2-08ND3-1
P2-08ND3-1 Thumbnail
P2-08NE3
P2-08NE3 Thumbnail
P2-16ND3-1
P2-16ND3-1 Thumbnail
P2-16NE3
P2-16NE3 Thumbnail
P2-32ND3-1
P2-32ND3-1 Thumbnail
P2-32NE3
P2-32NE3 Thumbnail
P2-08TD1S
P2-08TD1S Thumbnail
P2-08TD2S
P2-08TD2S Thumbnail
P2-08TD1P
P2-08TD1P Thumbnail
P2-08TD2P
P2-08TD2P Thumbnail
P2-15TD1
P2-15TD1 Thumbnail
P2-15TD2
P2-15TD2 Thumbnail
P2-16TD1P
P2-16TD1P Thumbnail
P2-16TD2P
P2-16TD2P Thumbnail
P2-32TD1P
P2-32TD1P Thumbnail
P2-32TD2P
P2-32TD2P Thumbnail
P2-08NAS
P2-08NAS Thumbnail
P2-16NA
P2-16NA Thumbnail
P2-08TAS
P2-08TAS Thumbnail
P2-16TA
P2-16TA Thumbnail
P2-08TRS
P2-08TRS Thumbnail
P2-16TR
P2-16TR Thumbnail
P2-04AD
P2-04AD Thumbnail
P2-08AD-1
P2-08AD-1 Thumbnail
P2-08AD-2
P2-08AD-2 Thumbnail
P2-08ADL-1
P2-08ADL-1 Thumbnail
P2-08ADL-2
P2-08ADL-2 Thumbnail
P2-16AD-1
P2-16AD-1 Thumbnail
P2-16AD-2
P2-16AD-2 Thumbnail
P2-16ADL-1
P2-16ADL-1 Thumbnail
P2-16ADL-2
P2-16ADL-2 Thumbnail
P2-04DA
P2-04DA Thumbnail
P2-04DAL-1
P2-04DAL-1 Thumbnail
P2-04DAL-2
P2-04DAL-2 Thumbnail
P2-08DA-1
P2-08DA-1 Thumbnail
P2-08DA-2
P2-08DA-2 Thumbnail
P2-16DA-1
P2-16DA-1 Thumbnail
P2-16DA-2
P2-16DA-2 Thumbnail
P2-08DAL-1
P2-08DAL-1 Thumbnail
P2-08DAL-2
P2-08DAL-2 Thumbnail
P2-16DAL-1
P2-16DAL-1 Thumbnail
P2-16DAL-2
P2-16DAL-2 Thumbnail
P2-8AD4DA-1
P2-8AD4DA-1 Thumbnail
P2-8AD4DA-2
P2-8AD4DA-2 Thumbnail
P2-08THM
P2-08THM Thumbnail
P2-06RTD
P2-06RTD Thumbnail
P2-08NTC
P2-08NTC Thumbnail
P2-SCM
P2-SCM Thumbnail
P2-HSI
P2-HSI Thumbnail
P2-HSO
P2-HSO Thumbnail
P2-08SIM
P2-08SIM Thumbnail
P3-550E
P3-550E Thumbnail
P3-550
P3-550 Thumbnail
P3-530
P3-530 Thumbnail
P3-RS
P3-RS Thumbnail
P3-RX
P3-RX Thumbnail
P3-EX
P3-EX Thumbnail
P3-03B
P3-03B Thumbnail
P3-05B
P3-05B Thumbnail
P3-08B
P3-08B Thumbnail
P3-11B
P3-11B Thumbnail
P3-01AC
P3-01AC Thumbnail
P3-01DC
P3-01DC Thumbnail
P3-08ND3S
P3-08ND3S Thumbnail
P3-16ND3
P3-16ND3 Thumbnail
P3-32ND3
P3-32ND3 Thumbnail
P3-64ND3
P3-64ND3 Thumbnail
P3-08TD1S
P3-08TD1S Thumbnail
P3-08TD2S
P3-08TD2S Thumbnail
P3-16TD1
P3-16TD1 Thumbnail
P3-16TD2
P3-16TD2 Thumbnail
P3-32TD1
P3-32TD1 Thumbnail
P3-32TD2
P3-32TD2 Thumbnail
P3-64TD1
P3-64TD1 Thumbnail
P3-64TD2
P3-64TD2 Thumbnail
P3-08NAS
P3-08NAS Thumbnail
P3-16NA
P3-16NA Thumbnail
P3-08TAS
P3-08TAS Thumbnail
P3-16TA
P3-16TA Thumbnail
P3-08TRS
P3-08TRS Thumbnail
P3-08TRS-1
P3-08TRS-1 Thumbnail
P3-16TR
P3-16TR Thumbnail
P3-04ADS
P3-04ADS Thumbnail
P3-08AD
P3-08AD Thumbnail
P3-16AD-1
P3-16AD-1 Thumbnail
P3-16AD-2
P3-16AD-2 Thumbnail
P3-08RTD
P3-08RTD Thumbnail
P3-08THM
P3-08THM Thumbnail
P3-04DA
P3-04DA Thumbnail
P3-08DA-1
P3-08DA-1 Thumbnail
P3-08DA-2
P3-08DA-2 Thumbnail
P3-06DAS-1
P3-06DAS-1 Thumbnail
P3-16DA-1
P3-16DA-1 Thumbnail
P3-16DA-2
P3-16DA-2 Thumbnail
P3-8AD4DA-1
P3-8AD4DA-1 Thumbnail
P3-8AD4DA-2
P3-8AD4DA-2 Thumbnail
P3-SCM
P3-SCM Thumbnail
P3-HSI
P3-HSI Thumbnail
P3-HSO
P3-HSO Thumbnail
P3-16SIM
P3-16SIM Thumbnail


To learn more: https://www.automationdirect.com/productivity?utm_source=Yv3cq6O9PuQ&utm_medium=VideoTeamDescription

(VID-P3-0039)

Part 6 of 11

Programming

Scaling.

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

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


Hide Transcript
View Transcript

Next I use the Scale Linear Instruction to determine our Process Tanks volume based on the water level as seen by the Ultrasonic Sensor. I also use Scaling to create a variable that will allow us to display the Diaphragm Pumps output rate in gallons per minute on our C-more Touch Panel. Now that we have a better understanding of what is going on with the analog input module that is fed with the 0 to 10 volt DC analog signal from the Ultrasonic Sensor, we are ready to use the Scale (Linear) Instruction to provide our Tank Volume in engineering units of gallons of water. But first we need to assign a Tagname to the first channel, AIS32-0.1.3.1, on our P3-04ADS analog input module to which we have our Ultrasonic Sensor wired. We will rename this existing Tagname to Ultrasonic_600, which represents the sensors 0 to 10 volt DC analog signal with a maximum sense range of 600 mm, although in our application we have converted this maximum range value to 23.62 inches, because we are working in English measurements. As seen here, the Hardware Configuration tool is used to edit the existing Tagname that is automatically assigned to the analog input. Next drag and drop the Scale (Linear) Instruction into the next available END coil position on the ladder logic. In our case, this looks to be Rung number 4. The Scale (Linear) Instruction dialog window will open. Lets insert the new Tagname Ultrasonic underscore 600 into the Scale Instructions Input parameter. It will produce a count range of 0 to 65,535, so for the minimum input parameter called In Min, we can enter a zero. For the maximum input parameter called In Max, we can enter the value 65,535. The next two parameters, Out Min and Out Max, become a simple matter to insert the Tagnames we created earlier for our Maximum underscore Volume and Minimum underscore Volume, but again because our maximum volume is seen when the water is closest to the sensor, with the sensor reading zero, and vice a versa for our minimum volume, the Maximum underscore Volume Tagname should be used for the Out Min parameter, and the Minimum underscore Volume Tagname for the Out Max parameter. This is a little confusing, and there are different ways we could handle this condition, but being able to plug all of our parameters into one instruction to produce our final results makes programming a lot simpler. Next, we need to create another new Tagname for our result that goes into the Scale Instructions Output parameter. We will name this Tagname Tank underscore Volume. If you have followed along so far, the value in Tank underscore Volume will become our Process Variable used in our PID Loop calculations. The output of our PID Loop calculation, as we have discussed, will provide a 0 to 10 volt DC signal from the P3-04DA analog output module to a Dart 12 volt DC variable speed motor controller. The motor controller will provide power to the 12 volt DC Diaphragm Pump motor. The Diaphragm Pump is capable of producing a flow rate up to 1 gallon per minute. The analog output module uses a 32-bit integer value with a range of 0 to 65,535 to produce the 0 to 10 volt DC signal. As seen in the PID Loop Instruction that follows, we will use the PIDs Process Output directly to control the pump rate. This will give us the maximum resolution without the need to scale. We will actually create a Tagname called Pump underscore Speed? that is used as the PID Loops Process Output that directly controls the analog ouput modules channel 1, which is wired directly to the Dart DC motor controllers 0 to 10 volt DC analog input. Again, using the Hardware Configuration tool, create a Tagname for the P3-04DA analog output modules first channel, AOS32-0.1.4.1, and rename it as Pump underscore Speed. This Tagname will be used in our PID Loop Instruction, and represents the calculated rate the pump needs to operate to maintain the water level in the Process Tank. The rate will be somewhere between zero and one gallon per minute. Jumping a little ahead of ourselves in the program, it would be nice to have our C-more Touch Panel display the actual Diaphragm Pump rate in gallons per minute. This is another easy task that makes use of our Scale (Linear) Instruction. Our goal is to create a value of 0 to 1,000 based on the Pump_Speed value of 0 to 65,535 at any given instant. In the C-more Touch Panel we will display the result to show 0 to 1.000 gallons per minute by using a decimal point three places to the left. Drag and drop the Scale Instruction into the next End coil. Next select the Tagname Pump underscore Speed in the Scale Instructions Input parameter. For the In Min parameter, we will enter zero, and the In Max will be 65,535. To produce the 0 to 1,000 value to display on the C-more, enter zero for the Out Min parameter, and 1,000 for the Out Max. Enter Cmore underscore PID underscore Output in the Output parameter, then click OK. The Define Tags dialog box will come up in the programming software. I have assigned Cmore underscore PID underscore Output as an Integer, 16 Bit Data Type. Follow me to Part 7 as I get to the heart of this video series and explain the use of the Productivity 3000s PID Loop Instruction.



No data returned!
An error has occurred! Please contact support
Videos Home > Productivity PID Loop Part 6 - Scaling 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
„