How-To Guides
Analytics Guides
Use the Normalization Processor Function
11min
you can use the normalization processor function to eliminate redundant data and ensure that collected plc data is on the same scale normalization also eliminates undesirable characteristics like insertion, update, and deletion anomalies the value range is observed, and the next value is normalized to a range between 0 and 1 based on the chosen method the values use a moving window algorithm and are placed between 0 and 1 based on the previous window understanding different normalization types you have the following normalization types min max scale the data points between minimum and maximum values in that window this will ensure that all the transformed values fall between 0 and 1 average standard deviation standardize features in the moving window by subtracting the mean and dividing by the standard deviation this results in features with an average of zero and a variance of one user scenario review the following scenario for the normalization processor function then, you will simulate plc data and normalization outputs using an input processor plc sensors in a beverage bottling plant monitor variables like liquid temperature, fill level, and bottle placement speed applying the normalization function to these readings will help to scale the data points within a 0 1 range for each batch this uniform scaling is crucial for the machine learning model used in quality control, as it compares current production metrics with historical data to detect and rectify any deviations, ensuring consistent product quality and optimal production efficiency step 1 add a device follow the steps to connect a device docid\ nm1lqfefya dsiffitity and configure the following parameters device type simulator driver name generator enable alias topics select the checkbox step 2 add tags after connecting the device, add the following tags see add tags docid\ h5heqicxrcy3nch9kbg9i to learn more tag 1 tag1 name select s random value generator value type select float64 polling interval enter 5 tag name enter tag1 min value enter 101 max value enter 199 step 3 create analytics flows you can now create the analytics flows using data from the device and tag you previously created follow the appropriate step out of 3a or 3b based on the two normalization types you want to use to create an analytics flow with the normalization processor function navigate to analytics on the analytics canvas, click add processor the create a processo r dialog box displays select datahub subscribe in the topic field, click the search icon, select the device you previously created, and then select the alias topic for the tag1 click save step 3a configure min max normalization click add processor again and select normalization processor the following information defines this function mode select the min max normalization type from the drop down menu window size enter the number of values you want the function to consider click save connect the datahub subscribe processor (tag tag1 ) to the normalization processor with a wire and use the events connection on the analytics canvas, click save the configured analytics flows should look like the following step 3b configure average standard deviation normalization click add processor again and select normalization processor the following information defines this function mode select the average standard deviation normalization type from the drop down menu window size enter the number of values you want the function to consider click save connect the datahub subscribe processor (tag tag1 ) to the normalization processor with a wire and use the events connection on the analytics canvas, click save the configured analytics flows should look like the following step 4 view output of processor click the view icon in the normalization processor to view the output values view min max normalization output the normalization function normalizes the last 5 values from the defined tag1 , and the next value is again placed between 0 and 1 based on the previous window view average standard deviation normalization output the normalization function normalizes the last 5 values from the defined tag1 , and the next value is again placed between 0 and 1 based on the previous window