October 25, 2020

NORM_X AND SCALE_X value scaling in the S7-1200 PLC

Application: - NORM_X and SCALE_X instructions. Explain the instruction using an example. Write the PLC program using a ladder diagram language.









Explanation

Generally, NORM_X and SCALE_X guidelines are utilized for scaling the worth or we can utilize this guidance in simple value scaling.

By utilizing NORM_X guidance we can standardize the genuine incentive in more slender scale inside the value range.

For instance here the info range is 0 to 27648 and this value should be standardized indirect scaled value range from 0.0 to 1.0.

After this standardization of the worth, we can utilize this output as an information estimation of the SCALE_X guidance. This guidance maps the incentive in the required range (here 0 to 100).

These directions for the most part utilized in Siemens S7-1200 PLC.

PLC program:-

Write the ladder program for the above application using ladder diagram language. Here for ladder logic, we can use any supported PLC system like S7-1200, S7-300, S7-1500, or any other PLC which can support this instruction. For PLC logic we need digital inputs and outputs.

Define the memory register for the program as per the following address,

List of M Memory

MW10:-For analog value (0 to 27648).

MW12:-Out of NORM_X

MW14:-Output value

 
















PLC program Explanation:-

In network 1, we used NORM_X instruction for input value conversion. So input value will be converted from 0.0 to 1.0 scale range.

 

In network 2, we used SCALE_X instruction to convert NORM_X value into output. So the value will be converted into range 0 to 100 from 0.0 to 1.0