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: Scale and Normalize Instructions in PLC
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 > PLC Tutorials > Scale and Normalize Instructions in PLC

Scale and Normalize Instructions in PLC

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

Scale Instruction

SCALE_X scales the normalized real parameter VALUE where ( 0.0 <= VALUE <= 1.0 ) in the data type and value range specified by the MIN and MAX parameters:

Contents
Scale InstructionNormalize InstructionPLC ladder program explanationPLC Ladder Programming

OUT = VALUE ( MAX – MIN ) + MIN

For SCALE_X, parameters MIN, MAX, and OUT must be the same data type. NORM_X normalizes the parameter VALUE inside the value range specified by the MIN and MAX parameters:

OUT = ( VALUE – MIN ) / ( MAX – MIN ), where ( 0.0 <= OUT <= 1.0 )

Normalize Instruction

For NORM_X, parameters MIN, VALUE, and MAX must be the same data type.

Note: SCALE_X parameter VALUE should be restricted to ( 0.0 <= VALUE <= 1.0 )

If parameter VALUE is less than 0.0 or greater than 1.0:

The linear scaling operation can produce OUT values that are less than the parameter MIN value or above the parameter MAX value for OUT values that fit within the value range of the OUT data type. SCALE_X execution sets ENO = TRUE for these cases.

It is possible to generate scaled numbers that are not within the range of the OUT data type. For these cases, the parameter OUT value is set to an intermediate value equal to the least-significant portion of the scaled real number prior to final conversion to the OUT data type. SCALE_X execution sets ENO = FALSE in this case.

If parameter VALUE is less than MIN or greater than MAX, the linear scaling operation can produce normalized OUT values that are less than 0.0 or greater than 1.0. NORM_X execution sets ENO = TRUE in this case.

NORM_X and SCALE_X instructions. Explain the instructions with example.

How to use Scale and Normalize Instructions in PLC

PLC ladder program explanation

General NORM_X and SCALE_X instructions are used for scaling the value or we can use this instruction in analog value scaling.

By using NORM_X instruction we can normalize the actual value in leaner scale within the value range.

For example, here the input value is 0 to 27648 and this value needs to be normalized in linear scaled value range from 0.0 to 1.0.

After this normalization of the value we can use this output as input value of the SCALE_X instruction. This instruction maps the value in required range (here 0 to 100). This instructions generally used in Siemens S7-1200 PLC.

List of Inputs/Outputs

  • Register A :- For analog value (0 to 27648).
  • Register B :- Out of NORM_X
  • Register C :- Output value of SCALE_X instruction.

PLC Ladder Programming

NETWORK 1 :-

Norm X Instruction

Here define MIN value and MAX value of the actual input.

For example if analog sensor is connected in the analog channel, MIN value is 0 and MAX value is 27648.

The instruction will scale the actual input value into normalized value (0.0 to 1.0).

NETWORK 2 :-

Scale X Instruction

Here SCALE_X instruction is used. After normalization of the actual value, we can convert it into desired value range (0 to 100).

For example purpose, we have taken here 0 to 100 range but we can take other value also.

Note :- Above application may be different from actual application. This example is only for explanation and educational purpose only. We can implement this logic in other PLC also. This is the simple concept of NORM_X and SCALE_X, we can use this concept in other examples also.

All parameters and graphical representations considered in this example are for explanation purpose only, parameters or representation may be different in actual applications. Also all interlocks are not considered in the application.

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.

Read Next:

Siemens Comparator Logic

How scaling works in PLC ?

Motor Logic with Push buttons

Basics of Interlocking in PLC

Ladder Logic with Timers

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

All About Fieldbus Protocols
Difference Between CompactLogix and ControlLogix
Scheduled Daily Plant Watering PLC Program
How to Filter Digital and Analog Inputs in a PLC?
Automatic Vacuum Cleaner Programming in Omron PLC
Types of Noise in Electronics
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

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

Normally-Closed Contacts for Stop Buttons
What are High-Speed Inputs in PLC?
Electrical Switches Principle & Types
Step by Step Guidelines to Download Free Robotics Software
What are Analog and Digital Signals? Differences, Examples
Testing and Validation in PLC Development
How to Create DFB in Schneider PLC? – Derived Function Block
Omron PLC Logic for Washing Machine Automation

Keep Learning

WHILE DO Statement in SCL Language

WHILE DO Statement in SCL Language

Instrumentation Earthing

Instrumentation Earthing

LES and GRT Blocks in PLC Programming

Allen Bradley Math Functions

Preventive Maintenance of Variable Frequency Drive

Preventive Maintenance of Variable Frequency Drive (VFD)

PLC Program for motor operation based on time cycle

PLC Motor Operation based on Time Cycle Sequence – Program

Factory IO PLC Course

Factory I/O PLC Automation Training Course (Free)

PLC Program for 2 Push buttons to Control 1 Output

PLC Program for 2 Push buttons to Control 1 Output

Push button Motor PLC Logic

Push button Motor PLC Logic

Learn More

Hydraulic Systems Objective Questions

Hydraulic Systems Objective Questions

PLC Programming Projects for Beginners

PLC Programming Projects for Beginners

Features of Scada Which are Must in an IoT System

Features of Scada Which are Must in an IoT System

Automatic Car Door Simulation

Automatic Door Operation PLC Programming and Simulation

Radiometric level Principle

Radiometric level measurement Working Principle

How to Troubleshoot a PLC System

How to Troubleshoot a PLC System?

PLC Program to Drain Same Products from Two Tanks

PLC Program to Drain Same Products from Two Tanks

Learning Programming

How to Begin Learning Programming and Succeed?

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?