How-To Guides
Analytics Guides
Use the XMR Chart Function
7min
you can use the xmr chart function to calculate a central line that remains constant the central line is utilized to monitor the consistency and fluctuation of a process over a period of time it comprises two distinct charts individual (x) chart used to trace individual values moving range (mr) chart used to observe the variation between consecutive measurements user scenario review the following scenario for the xmr chart function then, you will simulate plc data and calculate the central line in a pharmaceutical production plant, consistent dosage in pill manufacturing is paramount for patient safety and regulatory compliance high precision scales measure the weight of individual pills, with data points collected at regular intervals the xmr chart function is integral to this process, providing real time monitoring of dosage weights by establishing a central line from initial measurements and calculating moving ranges, the plant ensures each pill is within the stringent weight specifications 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 input1 name select s random value generator value type select float64 polling interval enter 1 tag name enter input1 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 to create an analytics flow with the xmr chart processor function in manufacturing connect edge, navigate to analytics on the analytics canvas, click add processor the create a processor 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 input1 tag click save click add processor again and select the xmr chart processor the edit a processor dialog box appears window size enter a value that represents the range to apply the xmr chart function for this example, we input a value of 100 process limit multiplier it is used to calculate the upper and lower process limits for this example, we input a value of 2 66 timeinterval if you know your input is going to publish at the expected interval, it is better to disable this timer by entering 0 in the field click save connect the datahub subscribe processor (tag input1 ) to the xmr chart 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 xmr chart processor to view the output values the output of the xmr chart function shows a central line at 101 , with an upper process limit of 101 and a lower process limit of 101 once the window is filled, other fields that are calculated as follows moving ranges difference of successive values average moving range average of the moving ranges process limit multiplier calculates the upper and lower process limits upper and lower natural process limit calculated by taking the product of process limit multiplier and average moving range, and adding/subtracting it from the central line in some cases, the central line is adjusted here are the cases if current value is outside the process limits multiple times in a row if the multiple values in a row are closer to either limit than they are to the central line