Home » Scaling with Parameters (SCP) Instruction in PLC
PLC Tutorials

Scaling with Parameters (SCP) Instruction in PLC

To study the working of Scaling with Parameters (SCP) Instruction in Allen Bradley programmable logic controllers (PLC).

Scaling with Parameters (SCP) Instruction

Scaling with SCP Instruction

Block Name: SCP – Scaling with parameters

In the above picture, there are totally six parameter ,

Input

Integer Value address-From Field instrument which is to be scaled

Input Minimum

Minimum Input value (Ex: 4 to 20 mA from level transmitter means 4 mA is the input minimum value)

Input Maximum

Maximum Input value (Ex: 4 to 20 mA from level transmitter means 20 mA is the input maximum value)

Scaled Minimum

Minimum scale value (0 to 32767 is the maximum positive acceptable number in AB PLC-Minimum Scaled value is 0)

Scaled Maximum

Maximum scale value (0 to 32767 is the maximum positive acceptable number in AB PLC-Maximum Scaled value is 32767).

Function of SCP :

The Input value is scaled to a range determined by creating a linear relationship between input min and max values and scaled min and max values. The scaled result is returned to the address indicated by the output parameter.

Parameters may be integer, long, floating-point or immediate data values or addresses containing values. The Input value is scaled to a range determined by creating a linear relationship between input min and max values and scaled min and max values.

The scaled result is returned to the address indicated by the output parameter.

Program Logic :

Let s study the working with simple example,

Get the level of the water from level transmitter (4 to 20mA),

Give the notification

If level transmitter become faulty,

If level transmitter range between 4 to 8 mA, give the notification as water level low

If level transmitter range between 16 to 20 mA, give the notification as water level high.

If level transmitter reaches 20mA, give the notification to stop motor.

PLC Program :

Push button Latched with Memory

Rung 0000 :

Start/Stop  PB latched with memory.

Rung 0001 :

When Start is pressed move the value stored in N7:0 to N7:1

Scaling Block (SCP) in PLC

Rung 0002 :

Scaling block is used to scale the input to PLC value.(4mA -0 /20mA-32767)

Rung 0003 :

Level transmitter is configured to give 4mA when tank level is zero, if transmitter gives 0 instead of 4mA it means transmitter is faulty. Comparator block is used to compare and give notification to any one of the digital output like lamp.

Limit Block in PLC

Rung 0004 :

Limit block is used to range the values between 4 to 8mA, and give the notification as water level is low.

Rung 0005 :

Limit block is used to range the values between 16mA to 20mA, and give the notification as water level is high.

Comparator Block in PLC

Rung 0006 :

Comparator block is used to compare the high end value and give the notification to turn stop motor.

Example PLC Logic with SCP Instruction

When Level Transmitter gives 0 mA (N7:1)

Scaling Example in PLC

When Level Transmitter gives 7 mA (N7:1)

Level Transmitter configuration in PLC

When Level Transmitter gives 18 mA (N7:1)

Scale with Parameters (SCP) Instruction

Limit Instruction in Ladder Logic

When Level Transmitter gives 20 mA (N7:1)

Working Scaling block in AB PLC

Allen Bradley Scaling Logic

Conclusion:

We can use this example to understand the working scaling block in AB PLC.

Author : Hema Sundaresan

Articles You May Like :

Single Push button Ladder Logic

Motor Logic with Push buttons

What is Latching in PLC ?

Masked Move Instruction in PLC

What is Interlocking in PLC ?

Related Articles

PLC Ladder Logic for Lube Oil Pump Motor

S Bharadwaj Reddy

PLC based Metro Automation Project

S Bharadwaj Reddy

Motor Trip Logic using PLC Programming

S Bharadwaj Reddy

Making Multi Way Switches using PLC

S Bharadwaj Reddy

What is SCADA ? How does SCADA Works ?

S Bharadwaj Reddy

PLC Program for Latching and unlatching Circuit

S Bharadwaj Reddy

1 comment

Jairo Francisco Oliveira Paula August 12, 2019 at 5:39 am

the SPC function is an advanced level instruction in programming .. I would like posts to turn signal 4 to 20 mA through that instruction

Reply

Leave a Comment

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Scaling with Parameters (SCP) Instruction in PLC

WordPress Image Lightbox

Send this to a friend