Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: PLC Analog Input Scaling
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > Formulas > PLC Analog Input Scaling

PLC Analog Input Scaling

Last updated: March 4, 2021 4:31 pm
Editorial Staff
Formulas PLC Tutorials
5 Comments
Share
3 Min Read
SHARE

An Allen-Bradley SLC500 programmable logic controller (PLC) uses a 16-bit analog-to-digital converter ( in its model 1746-NI4 ) in analog input card to convert 4-20 mA signals into digital number values ranging from 3277 (at 4 mA) to 16384 (at 20 mA).

However, these raw numbers from the PLC’s analog card must be mathematically scaled inside the PLC to represent real-world units of measurement, in this case 0 to 700 GPM of flow.

PLC Analog Input Scaling

Formulate a scaling equation to program into the PLC so that 4 mA of current registers as 0 GPM, and 20 mA of current registers as 700 GPM.

PLC Analog Input Scaling

We are already given the raw number values from the analog card’s analog-to-digital converter (ADC) circuit for 4 mA and 20 mA: 3277 and 16384, respectively.

These values define the domain of our linear graph:

PLC ADC counts

Calculating and substituting the slope (m) value for this equation, using the full rise-over-run of the linear function:

PLC Scaling Formula

Also Read : PLC Raw Count Calculation

This type of scaling calculation is so common in PLC applications that Allen-Bradley has provided a special SCL (“scale”) instruction just for this purpose.

Instead of “slope” (m) and “intercept” (b), the instruction prompts the human programmer to enter “rate” and “offset” values, respectively.

Furthermore, the rate in Allen-Bradley’s SCL instruction is expressed as the numerator of a fraction where the denominator is fixed at 10000, allowing fractional (less than one) slope values to be specified using integer numbers.

Aside from these details, the concept is exactly the same. Expressing our slope of 700/13107 as a fraction with 10000 as the denominator is a simple matter of solving for the numerator using cross-multiplication and division:

PLC multiplication factor

Thus, the SCL instruction would be configured as follows

PLC SLC instruction Block

Also Read : 4-20mA Conversion Formulas

Credits : by Tony R. Kuphaldt – Creative Commons Attribution 4.0 License

PLC Tutorials :

  • What is Programmable Logic Controller  ?
  • What is Ladder Diagram Programming ?
  • History of Programmable Logic Controllers
  • Mis-conceptions of PLC Ladder Logic
  • Contacts and coils in PLC
  • Digital Input and Output Modules
  • Analog I/O and Network I/O
  • PLC Input/Output Modules
  • Memory Mapping in PLC
  • Analog Input Scaling
  • PLC Example with Switches
  • Counter Instructions
  • Timer Instructions
  • Math instructions
  • Data Instructions
  • Ladder Logic Questions

If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

Difference Between PLCSIM and PLCSIM Advanced? – Siemens PLC
Augmented Reality and Virtual Reality in Industrial Automation
PLC Sequential Operation Example Program
How to Solve Electrical Ground Loop Problems?
Process Interlocks and Trips
Timers in Codesys – Timer ON, Timer OFF, Pulse Timer
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
5 Comments
  • youcef says:
    August 11, 2017 at 10:50 am

    thank you

    Reply
  • Sanaullah M. Hasni says:
    July 26, 2019 at 7:42 pm

    Please tell me 4-20 mA is analog input or analog output in plc /Scada system.
    Thanks

    Reply
    • S Bharadwaj Reddy says:
      July 26, 2019 at 8:24 pm

      Always see the signal from control systems point of view.

      Example-

      Field transmitters signal is Analog Input to PLC or DCS.

      PLC or DCS signal to Control Valves is Analog Output.

      Reply
      • Satheesh says:
        December 31, 2019 at 11:06 am

        Sir please injection moulding plc check

        Reply
  • Alex says:
    February 25, 2020 at 8:02 am

    Wow what an information is shared in this platform. I am impressed thank you Inst Tools

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

PLC Program for Paint Spraying
Sorting & Distribution Line PLC Programming – Advanced Logic
OFF Delay Timer using PLC
How to Train Your Maintenance Team for Industrial Automation Systems?
Bread Oven Control in Auto and Manual Modes PLC Program
Automated Garage Gate Control – PLC Ladder Logic
Free Omron PLC Programming Course in HINDI
Sequential Operation of Output Bits using Two Push buttons

Keep Learning

Does Really a Safety Barrier is Important

Does Really a Safety Barrier is Important? – PLC DCS Systems

Open Platform Communication (OPC)

Open Platform Communication (OPC)

SCADA and PLC Configuration

Examples of SCADA and PLC Configuration Systems

PLC Program Upload

How to Upload Siemens PLC Programs?

Ccomparator in PLC Programming

Comparator in PLC Programming

PLC Program for Boolean Expression

PLC Program for Boolean Expression

SCADA

Top 100+ SCADA Questions

Using Clock Memory Bits in TIA Portal - Siemens PLC

Using Clock Memory Bits in TIA Portal – Siemens PLC

Learn More

Problem on PLC, HMI, VFD, and Motor Circuit

Problem on PLC, HMI, VFD, and Motor Circuit

Transformer Efficiency

Transformer Efficiency

Cobot - Collaborative Robot

What is Cobot? – Collaborative Robot

Logic Gates and Truth tables

Logic Gates and Truth tables

Oscillating Piston Flow Meters Animation

Oscillating Piston Flow Meters Working Principle

Quiz on Electrical Meters and Measurement

200+ Quiz on Electrical Meters, Measurement, and Troubleshooting

Fieldbus Transmitter Calibration

Fieldbus Transmitters Calibration and Ranging

Digital Electronics Multiple Choice Questions

Counter Implementation Objective Questions

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?