Full text
TRABAJO DE FIN DE GRADO Grado en Ingeniería Electrónica Industrial y Automática MIGRATION AND REDESIGN OF THE CONTROL SYSTEM FOR THE PROCESS OF SYNTHESIS AND UNLOAD OF LIQUEFIED PETROLEUM GAS Report Autor: Àlex Forner Gómez Director: Guillermo Ramírez Sanz Co-Directores: Joan Domingo Peña Convocatoria: Octubre 2019
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas i Abstract This project presents the modification for the optimization and updating of the control system of a plant's specific area, which is dedicated to the LPG (Liquefied petroleum gas) synthesis and unload process. In this area, there is a control system pending renewal, both in hardware and software, as well as an error in the unloaded material values of around 10% and 15%. A solution has been developed to face these problems, which is based on: The process automation program has been redesigned and implemented in a new PLC. In addition, the piping and actuators installation that takes care of the process, has been extended. Thanks to these modifications, errors in unloaded LPG quantities are minimized and the PLC system is migrated to an improved model with greater capacity and execution power. The entire SCADA system has also been renewed, which is characterized by using a simplified communications system and having an optimized integration to work with the new PLC. This new SCADA system provides a quality improvement in the process control system and allows a future union with the rest of the plant control system. Overall, this renovation provides greater reliability, expansion capacity and integration with the rest of the plant, and a longer lifetime for the LPG synthesis and unload process control system.
Report ii Resum Aquest projecte presenta la modificació per a la optimització i actualització del sistema de control d’una regió específica d’una planta, que està dedicada a la síntesis i descàrrega de LPG (Liquefied petroleum gas). En aquesta regió, hi ha un sistema de control pendent de renovar, tant en hardware com en software, així com un error en els valors de matèria dosificada de l'ordre del 10% i 15%. Davant d'aquestes problemàtiques, s’ha desenvolupat una solució la qual es basa en: S'ha redissenyat el programa d'automatització del procés i s'ha implementat en un nou PLC, a més, s'ha ampliat de la instal·lació de canonades i actuadors que s'encarrega del procés. Gràcies a aquestes modificacions es redueixen al mínim els errors en les quantitats de LPG descarregades i es migra el sistema PLC a un model millorat amb major capacitat i potència d'execució. També s'ha renovat tot el sistema de SCADA que es caracteritza per utilitzar un sistema de comunicacions simplificat i tenir una integració optimitzada per a treballar amb el nou PLC triat. El nou sistema SCADA proporciona un salt de qualitat en el sistema de control del procés i permet una futura unió amb la resta del sistema de control de la planta. En general, aquesta renovació proporciona una major fiabilitat, capacitat d'expansió i integració amb la resta de planta i una major vida útil al sistema de control del procés de síntesi i descàrrega de LPG.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas iii Resumen Este proyecto presenta la modificación para la optimización y actualización del sistema de control de una región específica de una planta, que está dedicada a la síntesis y descarga de LPG (Liquefied petroleum gas). En esta región, hay un sistema de control pendiente de renovar, tanto en hardware como en software, así como un error en los valores de materia descargada de orden del 10% y 15%. Ante estas problemáticas, se ha desarrollado una solución la cual se basa en: Se ha rediseñado el programa de automatización del proceso y se ha implementado en un nuevo PLC, además, se ha ampliado de la instalación de tuberías y actuadores que se encarga del proceso. Gracias a estas modificaciones se reducen al mínimo los errores en las cantidades de LPG descargadas y se migra el sistema PLC a un modelo mejorado con mayor capacidad y potencia de ejecución. También se ha renovado todo el sistema de SCADA que se caracteriza por usar un sistema de comunicaciones simplificado y tener una integración optimizada para trabajar con el nuevo PLC escogido. El nuevo sistema SCADA proporciona un salto de calidad en el sistema de control del proceso y permite una futura unión con resto del sistema de control de la planta. En general, esta renovación proporciona una mayor fiabilidad, capacidad de expansión e integración con el resto de planta y una mayor vida útil al sistema de control del proceso de síntesis y descarga de LPG.
Report iv
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas v Acknowledgements To all my co-workers, friends and especially my family, who have supported and helped me in the development of this bachelor's thesis.
Report vi
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas vii Glossary AND: Logic and code block FB: Composed code block FT: Flow Transmitter FTRIG: Falling edge detector code block FU: Basic code block HMI: Human-Machine Interface HV_x: Two-states Valve num. x. I/O: Inputs and Outputs LI: Level Indicator LPG: Liquefied Petroleum Gas MD: Mode OP: Process order of a variable OR: Logic or code block P_x: Pump num. x. PIC: Pressure Integral Control PT: Pressure Transmitter PV: Process Value of a variable RS: Set-Reset code block (Reset-dominant) RTRIG: Rising edge detector code block RV_x: Regulating Vale num. x. SEL: Selector code block
Report 4 As can be seen in the Figure 2.1, the process is based on a double supply from two non-automated source tanks, one for butane and one for propane. The customer did not require any loading control of the source tanks, so there is no tank sensor connected to the dosing control system. Currently, the sensor of each supply line consists of a temperature sensor, a pressure sensor and a flow meter. Also each of the supply lines consists of a centrifugal pump and an automatic regulating valve with PID (later specifications on the instrumentation will be given). In order to be able to unload and mix the gases correctly, it is necessary to work with them in a liquid state. This is the function of the automatic regulating valves, which, by means of a PID control, modify the flow through the pipe in order to increase its pressure and temperature and maintain the gases in a liquid state. For this purpose, pressure and temperature sensors are used, as well as being able to calculate the density of the fluid in real time and control the process value of the pressures for PID control. Nowadays this unloading process is entirely autonomous from the rest of the plant, both in the control system and physically. This supply process does not depend on other plant systems, it is treated as a continuous process and not as a Batch process, as there is only one supply line from the tanks of source to the product outlet and there are no other possible supplies. 2.1.1. Thermodynamic system concepts As mentioned above, in order to transport butane and propane and mix them, they must be in a liquid state. To achieve this, the pressure and temperature of the product must be regulated. Both butane and propane are easy to liquefy gases and the change of state is determined by their vapour pressure. Temperature and pressure are related by the difference of energies and volumes of both coexisting phases, deduced by the Frenchman Émile Clapeyron in 1834. Such behavior is theorized in the Clausius-Clapeyron equation (Martínez 1992, 113-114). Equation 2.1 Where 𝑑𝑝 is the pressure differential, 𝑑𝑇 the temperature differential, Δ𝐻 the phase change enthalpy and ΔV the volume variation.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 5 In our process, an approximation of the Clausius-Clapeyron ecution, proposed in 1888 by the Frenchman Louis Charles Antoine, is used to determine the vapour pressure: ln(𝑝)=𝐴− 𝐵 𝑇+𝐶 Equation 2.2 Where 𝑝 is the pressure (kPa), 𝑇 the temperature (°K) and the factors A, B and C are empirical parameters, specific to each substance (Martínez 1992, 115). These parameters in the case of butane and propane can be found in the annex to the abovementioned book (Martínez 1992, 611). Table 1 Antoine equation parameters for Butane and Propane Substance Formula A B C n-Butane 𝐶4𝐻10 13.98 2292 -27.86 Propane 𝐶3𝐻8 13.71 1873 -25.10 With this data we can plot the equations and compare with the LPG physical properties data provided by the client in order to verify the process. The tables and graphs provided by the client are shown below. In the graphs, a mixture of LPG of 100% butane and 0% propane is determined, so the green line is butane and the blue line is propane (in Figure 2.3, propane is represented by red). In the tables three reference values of each magnitude are taken, then we will compare these points according to Equation 2.2.
Report 6 Figure 2.2 LPG vapour pressure graph (Source: Client database) Figure 2.3 LPG density variation with temperature graph (Source: Client database)
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 7 Table 2 BUTANE Temperature ( °C ) Vapor Pressure ( bar ) Density ( kg/m3) Minimun 0 1.026 601.540 Mean 25 2.417 573.274 Maximum 45 4.302 548.802 Table 3 PROPANE Temperature ( °C ) Vapor Pressure ( bar ) Density ( kg/m3) Minimun 0 4.715 529.533 Mean 25 9.422 493.101 Maximum 45 15.055 459.181 In order to compare with Equation 2.2, this must first be adapted in order to be able to work with the same units (in this equation one works in kPa and the temperature in °K), therefore the conversion factors of temperature and pressure are remembered. 1 𝑏𝑎𝑟= 105 𝑃𝑎=102 𝑘𝑃𝑎 0 °C=273.15 °K Equation 2.3 Equation 2.4 𝑝(𝑏𝑎𝑟)=10−2 ·𝑒𝐴 − 𝐵 𝐶 + ( 273.15 + 𝑇(0𝐶) ) Equation 2.5 Figure 2.4 Antoine equation for Butane. Y axis = Pressure (bar), X axis =Temperature (°C)
Report 8 Figure 2.5 Antoine equation for Propane. Y axis = Pressure (bar), X axis =Temperature (°C) As you can see, the Antoine equation perfectly approximates the variation of vapour pressure with temperature. As previously mentioned, in this process it is necessary to work in a liquid state for the correct synthesis and transport of fluids. To achieve this, the temperature and pressure are regulated with the opening percentage of the automatic regulating valve. The variation in pressure due to the action of the regulating valve is described by the Bernoulli equation and the continuity equation. The Bernoulli equation describes the behaviour of a fluid along a current line. ∫𝜕𝑣 𝜕𝑡 2 1𝑑𝑠+∫ 𝑑𝑝 𝜌 2 1+𝑣2 2−𝑣1 2 2+𝑔(𝑧2−𝑧1)+𝑤𝑟𝑜𝑧 1−2 =0 Equation 2.6 Where 𝑣 is the fluid velocity, 𝑑𝑝 is the pressure differential, 𝜌 the fluid density, 𝑔 is the gravitational constant, 𝑧 is the distance from the centroid on x-y plane, and 𝑤𝑟𝑜𝑧 1−2 are the friction losses. The equation is simplified to unsteady frictionless flow along a streamline, compressible flow, steady state and negligible elevation changes. For simplify the equation, pressure is considered not temperature dependent, but the process fluids are not incompressible, therefore we consider the density temperature dependant. The final Bernoulli’s equation to be use will be (White 2011, 169-172). 𝑝2−𝑝1 𝜌(𝑇) +𝑣2 2−𝑣1 2 2=0 Equation 2.7 In order to determine the velocities, deducing from the law of conservation of mass and applying the equation of continuity, the velocity will be considered exclusively dependent on the pipe section and the volumetric flow rate that passes through it.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 9 𝑚𝑠𝑦𝑠𝑡 =𝑐𝑜𝑛𝑠𝑡 ⟹ 𝑀𝑖𝑛 =𝑀𝑜𝑢𝑡 Equation 2.8 𝑀=𝜌·𝑉⟹𝑉=𝐴·𝑣 Equation 2.9 𝜌1·𝐴1·𝑣1=𝜌2·𝐴2·𝑣2 Equation 2.10 Constant density and volumetric flow are considered. It is also considered that the automatic regulating valve modulates the output section, therefore: 𝐴2=𝑥 100·𝐴1 Equation 2.11 Where 𝑀 is the mass flow rate ( kg/𝑠 ), 𝑉 is the volumetric flow rate ( 𝑚3/𝑠 ), 𝜌 the density ( 𝑘𝑔/𝑚3), 𝑣 is the fluid velocity ( 𝑚/𝑠2 ), 𝐴 is the pipe section ( 𝑚2 ) and 𝑥 is the opening percentage of the automatic regulating valve ( % ), considering 100% as the maximum opening and 0% as the closed valve. 𝑣1=𝑉 𝐴·𝑥 𝑣2=𝑉 𝐴 Equation 2.12 With both Equation 2.7 and Equation 2.12 the final equation is obtained, which will be used to determine the pressure according to the position of the regulating valve. 𝑝1 Will be considered as the initial pressure at which the fluid is in the source tank. 1 𝑝2=𝑝1+1 2·𝜌(𝑇)·( 𝑉2 𝐴2·𝑥2− 𝑉2 𝐴2) Equation 2.13 To determine the variation in density with temperature, a second-degree regression will be made in the point cloud of the Figure 2.3 graph provided by the client. 1 Information provided by the client
Report 10 Figure 2.6 Data tables from Figure 2.2 Figure 2.7 Second-degree regression of butane density variation with temperature Equation 2.14
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 11 Figure 2.8 Second-degree regression of propane density variation with temperature Equation 2.15 After obtaining the equations Equation 2.13, Equation 2.14 and Equation 2.15; the simplified mathematical approximation of the entire thermodynamic process is complete.
Report 12 2.2. Control system Bellow the entire control architecture currently installed is presented, starting with the hardware and instrumentation devices, the control PLC software, the SCADA system and the communications system. Figure 2.9 is a basic chart of the control system currently in operation at the plant. Figure 2.9 Control system architecture chart 2.2.1. PLC Controller The main control device for industrial processes is the PLC. A PLC (Programmable Logic Controller) are essentially digital computers used to control electromechanical processes. The PLC is designed for multiple inputs and output arrangements, extended temperature ranges, immunity to electrical noise, and resistance to vibration and impact. Programs to control machine operation are typically stored in battery-backed or non-volatile memory. It is also an example of a real-time system since output results must be produced in response to input conditions within a bounded time; otherwise, unintended operation will result. The main difference from other computers is that PLCs are armoured for severe conditions and have the facility for extensive I/O modules 1 , these connect the PLC to sensors and actuators (Lamb 2013, 62-63). Currently the PLC in charge of automating this process is isolated from the rest of the plant control system, as well as the process itself. Previously this device was chosen to exclusively control this process, so, in its day, this was the best solution. 1 I/O is understood as inputs and outputs. An I/O module is a specific device that is in charge of processing the inputs or outputs wired to this module in order to get the PLC to work with them correctly.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 13 The currently installed controller is Honeywell ControlEdge RTU2020, this was designed specifically to work in harsh environments and separate or isolated from the control centre. Its main features are: Operates in harsh environments with low power consumption. On-board I/O, expansion I/O modules and wireless I/O solution. Built-in HART 1 I/O. Electronic Flow Metering (EFM) capability for both gas and liquids. Block-valve automation. Ideal for gas stations. Low power consumption. Ideal for remote installation and operation on solar power (ControlEdge RTU 2014). In this installation, the controller's own I/O ports are enough, so there is no need extra I/O modules. The wiring of electrical signals and planes is not part of the company's competence; therefore, relative information is not attached. Figure 2.10 ControlEdge RTU2020 Controller (ControlEdge RTU 2014) 1 HART is the global standard for sending and receiving digital information across the 4-20mA analog current loops that connect the vast majority of field instruments with distributed control systems. HART technology offers a reliable, long-term solution for plant operators who seek the benefits of intelligent devices with digital communication, while preserving existing investments in analog instrumentation and plant wiring (HART communication protocol 2018).
Report 20 Figure 2.17 Honeywell HCiW07-TE (Source: Honeywell) In this independent unit is not necessary the Sector Control System, normally this is used to restrict the information to be displayed in each sector of the plant. In this case there is also no system of operators, only contains a general access key for any user. In the Honeywell HCiW07-TE the set of displays to visualize and control the process are loaded by USB port or network to the internal memory. The data that is loaded contains all the displays files, as well as the basic configuration of security, users, menus and others. To edit the data the software XDesignerPlus of the manufacturer M2I Corp was used, this software allows editing the displays and the previously mentioned configuration. The system of displays that was installed in his day is very simple, consists of 4 displays: Main screen: In this display, you can select the quantity and percentage of LPG to be unloaded. There are also the process control buttons, START and STOP, as well as the process status display and some alarms. Auxiliary screen: Here you can view the status of the system devices, the values of the analog sensors and the amount of LPG loaded. In addition, analog input alarms can be visualized. PID Tuning 1 y 2: In these two screens you can see the analog variables that the PID has in a graph. You can also edit the control parameters and the mode of operation of the PID. We can see in the following examples that the designs are simple and only the basic information is represented. Figure 2.18 is the display when edited in XDesignerPlus. As we can see, the 'Out of range' alarms are visible, if they were in online mode on the Honeywell HCiW07-TE screen they would only be displayed if the alarm were active. In Figure 2.19 the picture is taken from Honeywell HCiW07-TE itself with the PLC running, so you can see the values and graphs live. This is the usual visualization state in a SCADA display.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 21 Figure 2.18 Auxiliary screen display in edition mode Figure 2.19 PID Tuning 2 display in online mode
Report 22 2.2.5. Communications As can be seen in Figure 2.9 the different devices that make up the system are connected to each other. Each device can communicate by various methods with the others, it also depends on the data you want to send or receive, a specific communication method has to be chosen. First, the communication between plant signals (from devices and sensors) with the PLC will be explained. As previously commented, in the current installation pending renovation, no additional I/O modules are used, ControlEdge RTU's own modules are enough, so the plant signals are physically connected directly to the PLC controller ports. The internal PLC ports are configured directly from the PLC software control, in this case the Honeywell RTU Builder. The PLC software control is located on the plant server, and this must be connected to the same Ethernet network 1 as the PLC controller in order to communicate. This way you can download the program and the configuration correctly to the PLC. For the correct communication of values between the PLC, the server and the SCADA interface control, the binding protocols must be configured, also from Honeywell RTU Config. The currently implemented system communicates in the controller's own internal protocol, RTU Configuration Protocol, and a protocol of general use in the industry, the Modbus TCP Slave 2 . Figure 2.20 Modbus communication configuration (Source: Honeywell RTU Config) 1 Ethernet is a technology that connects wired local area networks (LANs) and allows the device to communicate with each other through a protocol that is the common network language. 2 Modbus is a serial communication bus protocol initially used for PLC, characterized by having a simple and robust structure, was established as standard to communicate electronic devices at industrial level. The company Modicon created it in 1979. TCP Slave is a specific protocol for servers.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 23 The Modbus is the protocol that was chosen for this system, in the previous figure its configuration can be appreciated The external variables, which are the ones that you want to communicate with the PLC and the SCADA control interface, to be able to manipulate or supervise them in the displays, you have to assign them a Modbus address, this is also configured in Honeywell RTU Config. Figure 2.21 External variables Modbus address configuration (Source: Honeywell RTU Config) Lastly, in order to visualize the data of interest, to be able to modify the load consignments and to control the operation of the process; it is necessary to connect the PLC controller with the interface control. As previously mentioned, these two are connected by serial port, whose configuration is also done from the RTU Config. In Figure 2.22, COM4 serial port configuration of the Honeywell ControlEdge RTU2020 can be appreciated. Figure 2.22 Serial Port Configuration (Source: Honeywell RTU Config)
Report 24 2.3. Problems and potential improvements So now, we have seen the control system that is currently implemented in the plant, in this section we will see the problems that this currently presents and possible improvements that could be applied to the system. For the PLC controller that is used now, this is a 2014 hardware. There are better alternatives on the market nowadays. It is also a limited controller, is not intended for large applications or sectors and is not the best option if you want to unify the plant control system. Currently the I/O ports are all in use, you could not do a small extension without getting a new I/O module, and these will eventually become incompatible with ControlEdge RTU2020. LPG unloading made until today show errors of between 10% and 15%. The communications protocol and each of the external variables have to be configured manually, the Honeywell RTU Config software has no direct integration with the SCADA system. Nor do they have the latest Honeywell bookstores. In the current programme, the programming of the butane and propane supply lines are not independent of each other. For example, if the propane centrifugal pump fails, it will affect the entire process. Programming is very limited and does not consider extra details that could help operators; the same can be applied to displays. The program is not well structured; it has many blocks of code in unrelated worksheets. The devices have a very simple programming. Only the logic for the output command is programmed. Failures in the devices or their alarms are not considered, this could cause errors in the automation. There is no specific alarm, only pump failure or analog inputs. The equations used for the measurement of vapour density and pressure could be more accurate. In the program, the quantity that remains in the pipes when stopping pumps and closing valves are not considered and could cause errors in the product supply. Variables and program code do not have explanatory descriptions. Possible future modifications are difficult. The reset control to initial conditions is not fully automatic. On the display, there are no graphs of the evolution of certain measures of interest such as temperatures, loaded quantity of each product and opening percentage of the automatic regulating valves.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 25 The HCiW07-TE control interface is very limited. It can only be used for a single application and is not a part of the station system. The four displays that are loaded on this control interface contain very few information. Information about system variables, their status or if there is an error cannot be accessed. The alarm system is very limited and there is no exclusive display for it. The new improvements proposed and requested by the client are: To have access to the control displays of this process from more stations of the plant. Reduce unload errors as much as possible. To have the two product supply lines independent of each other, from the program point of view, in order to avoid that an error in a device or sensor of the butane line hinders a possible load of butane alone. A renewal of the control system: New hardware and software. Have more detailed displays and user profiles in order to control the process. Able to increase the number of automated processes in the same PLC.
Report 26 2.4. Suggested solutions The solutions proposed to correct the errors and implement the improvements proposed in the previous section will be shown below. All proposals will be based on Honeywell products and will be sorted in ascending order according to the size of the system modification. Modification 1: The most basic proposal offered is to modify the most relevant program errors, as well as to add basic functions that do not exist right now. This improvement could slightly reduce the errors in the unloaded product quantities, also by programming a calibration system of the remaining quantity in the piping system when closing the devices. Another essential program modification would be to improve the management of the devices, in order to improve the security and robustness of the system. In addition, a modification of the displays to make them more complete and comfortable to use for the operators. The architecture of the control system would not be modified; all the changes would be made in the software that is used right now. Modification 2: This second option contemplates the same program changes as in the first modification proposal, with the same PLC, but proposes a new SCADA system in which all the displays will be redesigned to control and supervise the process. It is proposed a new SCADA system that can be integrated with the rest of the plant system, the system is Honeywell Experion HS. This software has detailing variables default displays, advanced alarm control, displays in auto scalable format HMTL 1 , management of users and integrated plant areas, among others. A great advantage it also has is that it has open connectivity to facilitate the integration of the project (Experion HS 2018). Modification 3: In this proposal both the PLC, the control software and the SCADA system are changed. The modification of the new SCADA system will be the same as in the previous proposal. 1 HTML (Hypertext Markup Language) is the standard code used to structure and visualize a web page and its content.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 27 The Honeywell ControlEdge is proposed as a new PLC, when combined with the SCADA system Experion HS, reduces integration costs for balance of plant operations, minimizes downtime through unified support, decreases risk with embedded cyber security, and lowers total cost of ownership through extended system lifecycle. It also provides greater flexibility and expansion capacity, more power than the one currently in use and a wider range of communication protocols available (ControlEdge PLC 2018). With the new PLC control, software the whole program would be programmed from scratch to implement all the proposed improvements and solve problems. Modification 4: The last proposal is based on the whole modification of the SCADA system, new PLC and new control program, as well as on the previous proposal. However, in order to minimize unloading errors to practically zero and make automation much more solid, it is proposed to improve the current installation. A new automatic bottom valve is proposed for each product tank, to be able to control with more precision the supply, as well as to add another final automatic valve shared by the two supply lines, to be able to have a more exact control of the supply cut. It is also proposed to adapt the refilling system of the source tanks to be able to manage the unloads to the tank from other sectors of the plant, complementing it with a low-pressure sensor in each source tank to automate when they have to be refilled.
Report 28 2.5. Solution Choice After proposing and studying the possible solutions between the client and the collaborating company, it has been decided that modification 4 is the best for the future; the process is fully optimized and would be implemented with the rest of the plant. It has been organized to make the modification in two parts: The first part, on which this bachelor's thesis will be based, will renew the entire LPG supply and synthesis process, implementing new PLCs and new software, as well as the extension of the installation with the new devices. The second will include the progressive migration of the rest of the plant to the new system proposed for the specific LPG process, therefore, the automation and refilling of the original tanks will take place in the second part of the project. The most complete modification has been chosen because it involves a long-term project with the customer, as well as the in-depth exploration of the new products that Honeywell offers for the industry.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 29 3. Solution Implementation 3.1. Control system architecture As previously decided, the solution to be implemented entails a change of the entire control system that had been described in the previous sections. Each of the new control devices and the software used to programme them are presented below. In addition, new actuators and devices for the process. The control system will maintain the same structure: A system of sensors and automatic actuators to automate the process, a PLC that will control the previous devices' variables, a SCADA system that will create a process control environment and a group of software to program the different systems. 3.1.1. Sensors and Devices To achieve error reduction in product unloads, the plant infrastructure must be expanded and improved. As mentioned in previous sections, it was decided to add a series of valves to each supply line in order to be able to unload LPG more accurately. Lastly, each supply line will be formed by: A low-pressure sensor in the source tank that will indicate when it is not possible to unload a certain product. “LI” in Figure 3.1. An automatic bottom valve for each of the origin tanks will help make the supply cut off more instantly to avoid overloading. “V_01” and “V_02” in Figure 3.1. A centrifugal pump that pumps the product through the piping system. “P_01” and “P_02” in Figure 3.1. A pressure sensor and a temperature sensor to control the process variables. “TT” and “PT” in Figure 3.1, “PIC” means pressure-integral-control, in reference to the PID control according to pressure of the automatic regulating valve. An automatic regulating valve that will regulate the pressure so that butane and propane are unloaded in a liquid state. “RV_01” and “RV_02” in Figure 3.1. A volumetric flow meter to display the amount of product being pumped. “FT” in Figure 3.1. An automatic valve at the end of the piping system, shared for the two supply lines, which, like the bottom valves, will help to control more accurately the amount of product unloaded. “V_03” in Figure 3.1.
Report 36 from where ControlEdge Builder is to communicate correctly. It will be detailed more in the communications section. When the PLC is connected, it is possible to download. There are two types of download. First, the Bootproject is downloaded, this Bootproject will be a backup copy in case of any problem and then the program will be downloaded again to have the PLC updated with the latest modifications made. Once all the above conditions are accomplished, the PLC can be started and go online mode in ControlEdge Builder. The online mode is very useful in the review and testing period, as you can analyse the changes in real time. ControlEdge Builder adds a new native Honeywell library, which contains programming blocks to control devices, more complete algorithms of totalizers and PID systems among others. The design of the program and the operation of the new FB library will be described in section 3.2. 3.1.4. SCADA system The new SCADA system to be used will be Honeywell Experion HS, it is a new software that integrates the entire SCADA system efficiently, it can be used with PLC of any manufacturer, but is specifically designed to integrate easily with Honeywell ControlEdge controllers. Thanks to the optimized integration of Experion HS and ControlEdge PLC, an integrated configuration environment is obtained that allows configuration changes online and offline and minimizes process interference. Experion HS and ControlEdge PLC are very recent and there is no online information to learn how to use them. The manufacturer's manuals are used to learn the whole scope of the functions they offer and to understand how they work. It incorporates MatrikonOPC's robust industrial power technology, which provides equipment data connectivity to all control systems based on the OPC standard and extends supervisory control functionality. This open connectivity allows Experion HS to operate seamlessly with a variety of thirdparty controllers and devices. The system has built-in detail screens based on Honeywell's partnership with Abnormal Situation Management (ASM) 1 to define principles and practices for safe screens. Experion HS contains prebuilt 1 The Abnormal Situation Management (ASM) Consortium is a group of leading companies and universities involved with process industries that have jointly invested in research and development to create knowledge,
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 37 standard screens to facilitate and reduce display setup time. Some of these screens are process group screens, point detail, trends, alarms and curve programmers. Experion HS works with HMIWeb screens, these give a lot of advantages and possibilities to have a more complete and adaptable interface, some of them are: Drop-down menus and toolbars to set up a simpler and more intuitive navigation system. Ability to have graphics of a maximum of 32 different variables simultaneously, with integrated markers and default settings. Much more intuitive and flexible HMI (Human-Machine Interface) environment, auto-scalable screens and standard HTML and XML technology. Process data is a crucial element in manufacturing. Increasingly, industries require documented data of the manufacturing process before obtaining permission to sell their products, also to improve the process and have the data stored in case any network or memory error causes the loss of data. That is why Experion HS has an integrated historian to collect data and events, allowing instant access to process data that interest or are critical. For this purpose, there are also commonly used industry standards and the Microsoft ExcelTM add-in, which offers more options for generating reports from process data (Experion HS 2018) . Figure 3.7 All stations are connected to the same Experion HS History system (Experion HS 2018). Unlike the SCADA system currently installed, the new Experion HS system will be installed in the general station network, as shown in Figure 3.3. Previously we could only see the control displays on the tools and products designed to prevent, detect and mitigate abnormal situation that affect process safety in the control operations environment (ASM 2019).
Report 38 Honeywell HCiW07-TE screen, attached to the rest of the system. With the new system, the LPG unload and synthesis process can be controlled from all the stations of the plant, or just from those that are wanted. It has been decided to design the new displays that are going to be made based on a new trend that is presented increasingly in SCADA displays in the industry. This new design trend is stipulated by the ISA 101, which sets standards and recommendations for human-machine interfaces (HMI). The ISA 101 main features are: An HMI system should not use the graphic toolkits used until now and its design should be based only on the P&ID 1 . Object animation should be simple and effective, as well as navigation through the display system. Consistent colours, process objects from a common toolkit, embedded trends will be used. Grey backgrounds will be used to minimize glare and objects high contrast. Bright colours should only be used for alarms and abnormal situations. These colours should not be used for other purposes in order to relate certain colours to specific events. Use more graphs instead of indicators that only give instantaneous information. (Hawryo 2016). Figure 3.8 ISA 101 aplication example (Nasby 2017). Section 3.3 will detail the entire design and configuration process of the Experion HS SCADA system. 1 Piping and instrumentation diagram (P&ID) is a diagram showing the process flow in the pipe system, as well as the installed equipment and instrumentation.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 39 3.1.5. Communications Thanks to the new PLC and the new SCADA system chosen, communications are greatly simplified compared to most systems in this sector of the industry. As can be seen in Figure 3.3, the entire system will be connected to the same redundant Ethernet network, so you only need to configure the PLC to connect properly to Experion HS. As previously mentioned, a CPU simulator model 900CP1-200, Release 151.1 was used to work and develop the project before its start-up. To simulate that the PLC is connected to the same network as the development station, the 3 Network Adapter of the virtual machine must be configured in "Bridged" mode, this mode simulates that the virtual machine is in the same address as the Host. Figure 3.9 ControlEdge PLC Ethernet configuration (Source: ControlEdge Builder Configuration) To configure the PLC communications, it must be accessed from the ControlEdge Builder, more specifically in the Configuration Window section. Once there, it is possible to access the Ethernet ports configuration, the first two ports will require configuration, assigning them the IP address in which PLC has been configured, that is, the system common network.
Report 40 The protocol is then selected in the same Ethernet port configuration section. The protocol that will be used to communicate in this system is the OPC UA, this is a multi-platform industrial communication technology, open, service-oriented, secure, and with extensive information models. This technology perfectly complements the communication between ControlEdge PLC and Experion HS. As mentioned in the previous sections ControlEdge PLC and Experion HS have a direct integration, therefore, in our case, the stations connected to the network that you want to include in the Experion system have to be configured. The configuration of the communication and the integration between PLC and SCADA will be detailed in the section 3.3.2.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 41 3.2. PLC program This section will present all the PLC configuration and programming built with the ControlEdge Builder software. The software is divided into two parts: One of them for the configuration of various PLC features (Configuration Window) and the other one for the development of the PLC program. To be able to start developing the program it is necessary to do a previous configuration: When the program is created the CPU must be chosen, in this case 900CP1. Name the PLC to work with, configure the starting status of the PLC, configure whether it is a redundant PLC or not and configure the Ethernet ports (see section 3.1.5). Configure the date, time and access password to connect the PLC. Within the program development window, the Hardware window must be opened, from there the PLC type must be configured, to develop before the start-up a simulator is used that involves a special configuration. PLC type: eCLR. Processor type: I486_LE_GCC3. The program code execution type should be configured in this case: Cyclic Task type. The specific configuration can be seen in Figure 3.10. Figure 3.10 PLC program task setting (Source: Honeywell ControlEdge Builder) Lastly, in the libraries window the libraries you want to activate or import have to be configured. Unlike the RTU Builder, in ControlEdge Builder a new native Honeywell library can be imported. This library contains device control FB and other more complete and perfected algorithms. The operation of the new FBs used will be detailed in the following sections. The following sections will detail the variables declaration and the I/O configuration; it will also explain the entire process automation program, the new algorithms used and the differences between the used in the previous program. Lastly, the development of the simulation system and its justification will be detailed.
Report 42 3.2.1. Program structure As in the previous program, this one is structured in different worksheets that are divided according to their function. By making the automation program more complete, this project has been divided into more specific parts, in order to be able to navigate more easily and not have too much programming blocks gathering in a single worksheet. The programme will be divided into the following parts: Main: This worksheet contains the part of the program related to the start conditions of the process and the determination of products set points. Finish: The conditions to finish the process and restart the conditions are located in this worksheet. Alarm_Locks: The conditions to stop the process, interlock devices and the alarm management are programmed in this worksheet. Simulation_Devices: This small section manages the activation and control of the devices to be able to work in simulation mode. Simulation_BUTANE and Simulation_PROPANE: In these worksheets, you will find the simulation programming of the analog inputs of each product. Status_Word: The status word of the process is configured among other tasks. Analog_IN: The system's analog inputs are configured. Analog_IN_2: Auxiliary configuration of the analog pressure inputs. Valves_Devices: Management of the automation of the system's automatic valves. Pumps_Devices: Management of the automation of the system's centrifugal pumps. Totalisers: Configuration of the flowmeters totalization for each product, calculation of the instantaneous product density and calculation of final product variables of interest. PID_1 and PID_2: The instantaneous vapour pressure of butane and propane respectively is calculated and the PID control algorithm is implemented for each automatic regulating valve.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 43 3.2.2. Variables definition and I/O configuration As explained in section 3.1.3, the variable types are the same as in RTU Builder. This section will present the internal variables definition, the choice of external variables and its justification and the I/O variables configuration. As already mentioned, internal variables are, all those that are used in the program and are automatically created in the DefaultPOUV list. FBs are also referenced in the list as internal variables, but they can never be declared as external variables. Figure 3.11 Example of internal variables declaration (Source: Honeywell ControlEdge Builder) The external variables that have been chosen have increased as the displays have been developed and taken their final form. External variables will be used to display data, to animate an object, or to write a variable value in the control interface. Being able to differentiate between internal and external variables simplifies the integration of the points with the Experion HS system, as only the variables of interest have to be configured. Section 3.3.1 and 3.3.2 details the use and integration of these variables. Thanks to ControlEdge Builder the I/O modules configuration is simplified and speeded up a lot. Next, the configuration of the 3 I/O modules used in this system will be shown, as well as some examples of analog or digital inputs or outputs configuration. Figure 3.12 Universal I/O module configuration
Report 44 First, the I/O module to be configured must be selected; section 3.1.2 specifies all the necessary models. It is necessary to select the number of rack in which it will be installed and its position, the slot, that will be connected. It is also possible to configure the scanning time and universal I/O modules, I/O type have to be configured. Figure 3.13 Channel 1: Analog Input configuration. Channel 14: Digital Input configuration. (Source: Honeywell ControlEdge Builder) The variables previously declared as I/O must be linked to each channel of the I/O module, which generates a unique address for each of the I/O variables. The I/O module does not need to use all ports; they can be left empty without configuration, to use in future expansions. The following parameters must be configured for analog inputs or outputs: sensor type, whether the device is HART type or not, maximum and minimum ranges, unit of measurement and fail-safe value. For digital devices, the following must be configured: Addressing type and state description.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 45 3.2.3. Process managing This section will include most of the program; the process control is built in different worksheets, which will be explained in detail below. To begin with, the process has been divided into states, in each one actions will be performed. Next, there is a GRAFCET, a step and transition control diagram, which schematise the different states of the process and the transitions between them. Figure 3.14 Process Status GRAFCET
Report 52 To calculate the butane and propane density the temperature measurement, Equation 2.14 and Equation 2.15 are used. In this way, the exact density of the product is obtained and no averages are used, with the density we can obtain the mass flow rate, in this case in kg/min, which is also displayed on the control interface. In the Figure 3.22 the calculation of the density of butane can be seen. Figure 3.22 PLC Program content. Worksheet: Totalisers (Source: ControlEdge Builder) The Figure 3.23 shows the use of FB from the new Honeywell library, HWTOTALISER, which is used to calculate the amount of product unloaded totalizing the flowmeter analog input. Figure 3.23 PLC Program content. Worksheet: Totalisers (Source: ControlEdge Builder)
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 53 This FB has more operation possibilities than the one used in the RTU Builder, you can configure what kind of input the FB receives with the MODE input and the operation mode when receiving NaN data. Because there is an analog signal flowmeter, it is configured to work in input integration mode and in 𝑘𝑔/𝑠 units. For butane, for propane the HWTOTALISER configuration is the same, each one with its particular variables. In the RST input of the block the conditions are configured to reset the totalizer count, if STOP is activated it resets instantaneously, if the unload is finished correctly, it waits until the last valve is closed to consider the remaining product of the pipes. You can also configure the rollover value, which, like the progressive shutdown times, must be measured at start-up to be more accurate. The output of the HWTOTALISER is a data structure that is contained in the variable TOTALS_1_SCADA and is used to create a table of unloaded material data every hour, day, etc. For this program only the total of each unload is used, which is assigned to the variables MC_1 and MC_2 which summed are the total amount of unloaded LPG, MC_3. In order to have more information in the control interface, two more variables are created related to the LPG unload. The M_P variable is created to see what percentage of the desired quantity has been unloaded and MC_P is the butane percentage of the unloaded LPG quantity. M_P is described in Equation 3.1 Equation 3.2and Figure 3.24. If the process is not running, the value is zero and to avoid a division by zero, as long as no GLP_A setpoint has been assigned, MC_3 will be divided by one. MC_P is described in Figure 3.25 and Equation 3.1 Equation 3.2, but the equation is only applied if butane and propane both are unloaded, if the unloading is a single product, the values are automatically written in 100% or 0% in each case. Like M_P, to avoid a division by zero, while the MC_2 value is less than 1 kg, it will be divided by 1, as soon as its value is greater than 1 kg, the corresponding equation will be applied. For both variables, if the calculated value is greater than 100%, due to a malfunction caused by a program execution time failure, it is set to 100% to avoid giving erroneous and confusing information. 𝑀_𝑃= 𝑀𝐶_3 𝐺𝐿𝑃_𝐴·100% 𝑀𝐶_𝑃= 𝑀𝐶_1 𝑀𝐶_1+𝑀𝐶_2·100% Equation 3.1 Equation 3.2
Report 54 Figure 3.24 PLC Program content. Worksheet: Totalisers (Source: ControlEdge Builder) Figure 3.25 PLC Program content. Worksheet: Totalisers (Source: ControlEdge Builder) At the end of the unload, an unloading report will be provided, in order to visualize exactly the real unloading parameters and be able to check the error percentage of the process automation. The report will show the total amount of unloaded product (MC_3), the percentage of butane of the unloaded product (MC_P) and the unloading time (TIME_LPG). To visualize MC_3 and MC_P, once the unload ends these values return to 0 for the next unloading, for that reason they are copied before being restarted in an auxiliary variable to show it in the control interface. To calculate the unload time, a TON acts as a counter is activated with a rising edge of the RUN variable, so if it is paused, the counter does not stop, it will only stop if STOP is activated or the unload ends. The unloading report can be visualized once the unload has finished correctly, once the operator confirms as finished unload, the whole process is restarted and it returns to IDLE state. The report operation will be detailed in section 3.3.1.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 55 3.2.4. Devices managing The new Honeywell library that incorporates ControlEdge Builder also has FB for device management, which are used in this program. The automatic regulating valves are controlled by a PID system FB and it will be detailed in the next section. The automatic valves and centrifugal pumps have been programmed with the HWSDV and HWMCC blocks respectively. For the two-state automatic valve control block shown in the Figure 3.26, two limit sensors are required for each valve, for open and closed confirmation; these are connected to the ZCS and ZSO inputs (The simulation of the digital inputs will be detailed in section 3.2.6). The OP and MD inputs are variables that will be controlled from Experion HS's predefined device screens, and are used to control the operating mode and process order in manual mode. Figure 3.26 PLC Program content. Worksheet: Valves_Devices (Source: ControlEdge Builder) In automatic mode the valve opening is controlled with HS input, which is active when RUN is active and some product is required for unloading, SP_1_YES or SP_2_YES. There are also three kinds of interlocks for the valve, the PIC, which are conditions for to close the valve, PIO, conditions to open the valve and SI, safety conditions that will override other controls and set the valve in the fail-safe position. An additional configuration added to all devices is the deactivation of the interlocks; this is achieved by activating the variable, in Figure 3.26, HV_1_NO_LCK, which deactivates SI and PIO interlocks. The safety position is determined in the SAFEOP input, in this program; the valve safe-position is closed.
Report 56 Other HWSDV configurations are: LOCAL: When active, the valve control is performed manually from the physical valve, in this system, the valves cannot be operated manually, so the LOCAL input is zero. FO: The fail-safe position is configured in case of power failure, in this program, the fail-safe position is closed. TT: Maximum time for valve position change, if the valve takes longer than the time stipulated in TT, an alarm be activated. In this program, 5 seconds are set as a reference; the final configuration is made at start-up. INVET, CLOSE, OPEN, BAD: Integer value assignment for each possible valve state. The outputs of the HWSDV are XY, the digital output that will control the automatic valve is connected. PV output provides an INT data to consult the valve status. ZA is the common alarm for the whole HWSDV block, this signal will be used to supervise the valve alarms. To control the centrifugal pumps of the system the HWMCC FB is used (Blue FB in Figure 3.27), which operates very similarly to the HWSDV, therefore, only the configuration and operating differences between these FB will be explained. This FB contemplates pumps that can run in reverse mode, for this process, they have only been configured for two states, forward run and stop. Figure 3.27 PLC Program content. Worksheet: Pumps_Devices (Source: ControlEdge Builder) The start and stop confirmation digital input is connected to the ZSF input, the ZSR input is for reverse run confirmation, it is not used. The other digital input, which indicates a pump fault, is connected inversely to the RDY input, if the input is active, the pump can be managed. The PIF and PIR inputs allows forward run and reverse run respectively. Lastly, FR is used to allow the transition from forward to reverse run. The outputs are the same as for the HWSDV, but in this case, only the XYF output is connected, which gives the forward run command.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 57 3.2.5. PID configuration The automatic regulating valves are controlled by a PID system, which is managed by the new FB HWPID. The calculation of the pressure set point to achieve a liquid unload is explained below. Equation 2.5 represents the Antoine’s equation used to determine the vapour pressure, for butane and propane in this process. To have liquid products unloaded and mixed, it is necessary to work at a higher pressure than vapour pressure. Equation 3.3 (Green) and Equation 3.4 (Red) Equation 3.5 (Green) and Equation 3.6 (Red) The blue equations represent the previously described Antoine's Equation, the red equations are the ones used in the previous program and the green equations are the ones used in the new program. Figure 3.28 Butane vapour pressure equations
Report 58 Figure 3.29 Propane vapour pressure equations In the previous graph are represented all three mentioned equations. The real vapour pressure will follow the behaviour described by the blue graph, therefore, in order to be in liquid state, it will always be necessary to work in pressure-temperature points above the blue graph. To achieve this, in the old program a safety pressure was added to the calculated value, so that the red graph would rise linearly above the blue graph. In the new program, the Antoine's equation has been modified (As shown in the Figure 3.30) by adding an exponential value to ensure the calculated pressure is always higher than the vapour pressure described by the blue graph. Figure 3.30 PLC Program content. Worksheet: PID_1 (Source: ControlEdge Builder) To work with the HWPID block we will use an auxiliary copy of the pressure sensor analog input. With the HWAI2PV block (Left blue FB in Figure 3.31), we will assign the ANALOG_TYPE variable, from PT_1 or PT_2 data structure, to the PT_1_AUX and PT_2_AUX variables respectively. Once the variable is copied, the data from the data structure is copied from PT_x to PT_x_AUX.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 59 Figure 3.31 PLC Program content. Worksheet: Analog_IN_2 (Source: ControlEdge Builder) An additional PID_2_TIMEOUT alarm has been configured, to those already predermined in HWPID. This alarm is activated when the value of the analog output variable, OPRC_1 or OPRC_2, is more than 5% away from PRV_1_AUX or PRV_2_AUX, for over 30s (This time is adjustable). PRV_1_AUX and PRV_2_AUX are an analog variable copy of the automatic regulating valve position input, this auxiliary copy is used to simulate the analog input function. Figure 3.32 PLC Program content. Worksheet: PID_1 (Source: ControlEdge Builder)
Report 60 HWPID is also from the new ControlEdge PLC library and is configured to have special integration into Experion HS. It is normally used together with an analog output management block, HWAO. The function of the FBs inputs and outputs is described below: PV: The process variable is connected, in this case the auxiliary copy of the pressure sensor analog input. MODE: Work mode selection. Manual, the process command is written manually or by logic, Automatic, the set point is written manually or by logic, Cascade, the set point is determined by another primary HWPID. SP: PID system set point for automatic mode. OP: PID system order process for manual mode. RSP: PID system set point for cascade mode. CTLACTN: Input to determine the operating direction of the PID system on the OP output. For this application the forward acting is used (CTLACTN=0), for a positive error between the PV and the SP, the output OP will increase its value; for a negative error, OP will reduce its value. CTLEQN: Choice of PID equation to use. For this program the PID equation B (CTLEQN=1) is used, the proportional and integral terms act on the PV-SP error and the derivative term acts on the PV changes. This equation is used to avoid spikes generated by the derivative action due to fast SP changes. BDCTL: Action selection when bad control alarm is activated. For this program in case of alarm, OP will be changed to its security value (BADCTL=4). SPTRACK: For manual mode, configure whether the SP tracks PV or not. For this program, this option is activated. K, T1, T2 and DB: Parameters of the PID equation. These parameters are tuned in the plant start-up, for simulations and demonstrations; the same values tuned in the previous program will be used. There is no derivative action or deadband, it is recommended for temperaturepressure PID control only use the proportional and derivative action. SPHLIM and SPLOM: Upper and lower limits respectively of the SP variable. In this case, the limits are the same as those given by the instrumentation, between 0 and 20 bars of pressure. OPROCLM: Configuration of the maximum output change rate in %/min. OPHILM and OPLOLM: Upper and lower limits respectively of the output variable OP. The automatic regulating valves are controlled with an analogue signal scaled between 0% and 100%. SI: Activation of PID interlocks. The automatic regulating valves stop when the process ends after the automatic bottom valves of the source tanks close, to avoid having remaining product in the piping system. They also interlock in case of position sensors failure of the final
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 61 automatic unload valve. Like other devices, it is possible to deactivate the interlocks, in this case with the variables RV_1_NO_LCK and RV_2_NO_LCK. SIOPT: When interlocked, HWPID acts according to the action determined in the SIOPT input, in this case the same as in the BADCTL input. If SI is activated, the OP will change to its safety position (SIOPT=4). SAFEOP: OP safety position assignment for BADCTL and SIOPT. In this program the safety position is closed, 0.0%. BCIN and BCOUT: Input and output of the HWPID and HWAO blocks respectively that connect the PID system feedback. CV and AO: CV is the OP output in Analog_Type data type of the HWPID that is connected to the HWAO CV input. AO is the output OP in REAL data type; it is connected directly to the analog output OPRC_1 or OPRC_2. BADCTRL: General failure activation in the PID control, this output is used as a general internal alarm of the automatic regulating valves. During plant start-up, the two PIDs will be tuned using the Ziegler-Nichols tuning method. This method allows the PID to be empirically tuned, without needing to know the equations of the plant or the controlled system. The first method proposed by Ziegler and Nichols will be used, it is the most widely used and ideal method for systems that do not present behavioural curves with overshoots. For this method, the system must be adapted temporarily, in Figure 3.33 the system is observed in normal state, to apply the method the SP value will be written manually and the SP logic calculated in Figure 3.30 will be ignored. Figure 3.33 Closed-loop PID control system
Report 68 The automatic regulating valve in this process regulates the pressure of butane and propane, but also affects the fluid flow, so this effect is simulated. Assuming the maximum flow rate offered by the centrifugal pump is 40𝑚3/ℎ, the square root of the opening percentage of the regulating valve is multiplied. This calculation is an approximation to make the simulation of the volumetric flow behaviour more real. Figure 3.43 Over-damped response for centrifugal pump volumetric flow with 35% opening of the automatic regulating valve. Figure 3.44 PLC Program content. Worksheet: Simulation_BUTANE (Source: ControlEdge Builder) When the SIM_BUT or SIM_PROP is active and the corresponding unload line is open, the pressure is determined following Equation 2.13. For the equation the density variables according to the temperature variation (DEN_1 and DEN_2) and the simulated volumetric flow variable (FT_1 and FT_2) will be used. The pipe section has been approximated, as there is not enough information avaliable about the plant architecture. Butane pipe: Section = 0.0008 𝑚3. Radius ≅3.2 𝑐𝑚.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 69 Propane pipe: Section = 0.0003 𝑚3. Radius ≅2 𝑐𝑚. Equation 3.10 and Equation 3.11 are plotted in Figure 3.45 (red and green graph respectively). In order to achieve high pressures it is necessary to have a regulating valve opening lower than 30%. The equilibrium points of the PID control have also been indicated, as in Figure 3.40 and Figure 3.41, it can be appreciated that even having a smaller pipe section, to liquefy propane a smaller opening than propane will be needed. Equation 3.10 Butane pressure (y) variation with regulating valve position (x), measured volumetric flow and butane density. Equation 3.11 Propane pressure (y) variation with regulating valve position (x), measured volumetric flow and propane density. Figure 3.45 Butane and propane pressure graph with the variation of the regulating valve position. The activation of the system simulations can be controlled from the SCADA displays, and the simulation test results will be detailed in section 3.4.
Report 70 3.3. SCADA system configuration The Experion HS SCADA system is built in two parts: First, all desired displays are designed using HMIWeb Display Builder tool, where you can configure the appearance and animation of the objects and figures. The second part consists in the PLC information integration to work with Experion HS, the program points will be configured using Quick Builder tool. The entire creation procedure of the SCADA control environment with Experion HS will be detailed below. 3.3.1. Displays design As previously mentioned, this project displays will be designed based on the standard ISA 101, in addition, compared to the previous SCADA system, it has been decided to re-organize and increase the displayed information to obtain greater efficacy in the remote control of the process. Different file types can be created in HMIWeb Display Builder: Display, Popup, Shape Sequence and Dynamic Shape. In this program only Displays, Popups and dynamic shapes are used. Dynamic shapes are a great tool that in previous SCADA system was not available, dynamic shapes allow you to create objects that can be linked to a group of SCADA points and to be referenced as many times as you want in the displays. Next, the dynamic shapes used in this project will be described, as well as their configuration and operation. Two_states valve: For this process automation, three automatic valves with two states (closed and opened) are used. A dynamic shape is created for them to avoid having to repeat the same procedure three times. Figure 3.46 Two-state valve Dynamic Shape design (Source: HMIWeb Display Builder)
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 71 Starting from the main figure of the dynamic shape, object number 1 will show the PV status and object number 2 the OP of the valve linked to the object. Object number 1, is animated according to the value of the valve PV status variable (3.2.4), so it will have 4 possible colours: Light grey for the transition state, black for the closed state, white for the open state and dark grey for the bad state. Object number 2 will only have 2 states: Black for the close order and white for the open order. Object number 4 is an alphanumeric object that will show the name of the linked valve. Object number 3 will be visible if the operating mode of the valve is manual, otherwise nothing will be shown. Object number 5 animates the status of the valve interlock and there are three options: The valve is locked and the padlock is shown, the valve is not locked and no figure is shown or if the valve interlock is deactivated, a padlock with a red cross above will be visible. Lastly, objects 6 and 7 are used to visualize whether the valve is in simulation mode or has an activated alarm, respectively. If there are no alarms activated or you are not in simulation mode, they are not displayed. Regulating Valve: Similar to the previous one, a new dynamic shape is created to refer to the two automatic regulating valves of the system. Figure 3.47 Regulating valve Dynamic Shape design (Source: HMIWeb Display Builder) Objects 4, 5, 6 and 7 have exactly the same functionality as the previous two-states valve. The object number 3, now has three possible operating modes, for the cascade mode another object will be shown, the other two modes will work like the previous dynamic shape. Object number 12 is the PID_TIMEOUT indicator that is shown when the valve variable is activated.
Report 72 For the regulating valve, objects 1 and 2 are animated according to the opening percentage (PV) or opening order (OP), for more visual information the percentage is indicated in the objects colour; black is 0% and white is 100%. The alphanumeric objects 8, 9, 10 and 11 indicate the analog values of the PID: opening order of the regulating valve, position of the regulating valve, PID pressure setpoint and pressure signal measured in the plant. Two_states pump: The dynamic shape used for pumps has almost the same functioning as that used for automatic valves. Figure 3.48 Two-state pump Dynamic Shape design (Source: HMIWeb Display Builder) The only difference of this dynamic shape is the number of device PV states, object number 1 has only 2 states: Black for pump stopped and white for pump running. Once the dynamic shapes used in this project are presented, they will be used as an example to explain the procedure of animation and configuration of a dynamic shape. Each dynamic shape created in HMIWeb Display Builder has a configuration window where a virtual point must be created in order to link it with the desired SCADA point. A program point or SCADA point is the element used to reference an external variable in the SCADA system. Normally SCADA software licenses are licensed by number of points, therefore, it is important to optimize the point use. Each created object can be linked to a point, for example, to make the dynamic shape of the automatic valves animate object 1 of Figure 3.46, object 1 must be linked to the created fictitious point (Tag) and to the parameter you want to read (PV).
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 73 Figure 3.49 shows the configuration window of data link of an object, in this case because it is a dynamic shape, in the 'Point' section you have to put the virtual point created. For variables that you want to write, activate or modify in the SCADA display, 'Data entrey allowed' box should be activated. Figure 3.49 Link configuration between an object and a point (Source: HMIWeb Display Builder) Figure 3.50 shows the animation configuration window, in this example is the animation of the automatic valve and the four states defined previously. In this window you can also configure the animation to fill the figure with a color according to an analogical variable, as it is done in the regulating valves. Figure 3.50 Object Animation Configuration (Source: HMIWeb Display Builder)
Report 74 For other types of object animation you must do it manually from the scripts in VisualBasic 1 . Each created object has its own script for additional configurations if required. Figure 3.51 shows a fragment of the script of the dynamic shape 'Two-state valve', which is used to make visible or not an object, in this example the object Alarm. All the objects that have been animated in the displays of this project are based on the previous examples of animation: colour change, gradual colour change or visibility change. Figure 3.51 Object Animation Script (Source: HMIWeb Display Builder) When dynamic shapes have already been designed, they must be added to a display and be assigned to one point, in order to link correctly the objects of the dynamic shape with the parameter of the indicated point. In Figure 3.52, the dynamic shape inserted in the display, named HV_1, is assigned point HV_1 to the virtual point Tag. Figure 3.52 Point-dynamic shape link configuration window (Source: HMIWeb Display Builder) The dynamic shapes that have been presented are added to a display or popup, in this project the information visualization has been compressed and optimized to work with a single general display. Figure 3.53 shows the 'Main' display, which has been numbered in order to reference the different objects in the text. 1 Visual Basic (VB) is an event-driven programming language, developed by Alan Cooper for Microsoft. This programming language is a BASIC dialect, with relevant additions. Its first version was presented in 1991, with the intention of simplifying programming using a development environment (Wikipedia - Visual Basic 2019).
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 75 Figure 3.53 Main display design (Source: HMIWeb Display Builder)
Report 76 Figures 1, 2, 3, 4, 5, 6 and 7: Dynamic shapes inserted in the general display will show the status and characteristics of a device. Dynamic shapes that are associated to device points have exclusive features that facilitate the monitoring and control of these. Figure 8 and 9: These two figures symbolize the source tanks of butane and propane respectively. The alarm indicator is only visible if the digital input for low tank pressure is activated, it can be clicked to activate a popup that indicates the problem. Figure 10 and 11: They are the temperature indicators of butane and propane respectively. Clicking twice on them will access to the automatic detail screen of Experion HS (section 3.3.3). Figure 12 and 13: These are the flow indicators for butane and propane respectively. They can be displayed in two measure units: 𝑚3/ ℎ, which are used by the flow meter, and 𝑘𝑔/ 𝑚𝑖𝑛, which provide information that is easier to understand for users. Figure 14: This rectangle offers all the information corresponding to the configuration of the unload you want to make. Unlike the previous SCADA system, this unload configuration is on the same display as the other objects. The butane percentage that is needed and the desired LPG value can be written, also select if this last value will be in kilograms or litres. Once the above data has been introduced, the total amount needed of each product is shown in kilograms. From this set of figures, you can control the START, PAUSE and STOP_O buttons. These can only be clicked in the allowed states, defined in section 3.2.3, if they are unavailable to be clicked, the color of the button is changed, and if clicked, a 'Control Fail' alarm will be triggered. Lastly, there is an alphanumeric object that shows the state of the process. Figure 3.54 shows an example of this figure while actively unloading.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 77 Figure 3.54 Unload configuration box while active unload (Source: Experion HS) Figure 15: This tank represents the exit tank where the product is unloaded; its design is based on the new minimalist trend of the ISA 101, where the graph and indicators are inside the tank to optimize the display space. The SP unload data are at the top (in % and kg); on each side there are two indicators, one alphanumeric and one graphic. They are used to display the value of the variables MC_P and M_P (Left and Right respectively), which as explained above, represent the butane percentage of the current unload quantity and the percentage of unload completed. In the central part we can see the graph that shows the unloads course. It is a scalable graph on both axis and with three live signals at the same time, historic values can also be viewed. Figure 3.55 shows an example of the figure while unloading, with the red indicator instantaneous values can be consulted. Lastly, the lower part shows an alphanumeric indicator of the total quantity of product unloaded, MC_3. Figure 3.55 Unload Tank behaviour while active unload (Source: Experion HS)
Report 84 Possibility of collecting several variables in a single point. The default configuration of the device points already contains at least four variables, apart you can link all that are needed. Decrease in points. Thanks to the above feature, the number of points used can be greatly reduced, for example, for the automatic butane-regulating valve, with a single point RV_1, 15 variables are included. In other softwares it is not possible to group variables in a single point. License cost reduction. As previously mentioned, number of points used licenses most SCADA software. The possibility of reducing all the points used by a device to a single point generates a license price reduction. 3.3.3. Experion HS default displays As already mentioned, one of the best features of Experion HS is its pre-designed displays that integrate perfectly when used in conjunction with ControlEdge Builder. This section will present the different default displays used in this application and their features. Experion HS contains a predefined alarm system, all generated points have basic default alarms configured, but as explained above, additional alarms can be added. Experion HS alarms can be classified in several ways. By relevance: Low priority, High priority and Urgent priority. By status: Recently unshelved, shelved, suppressed and unacknowledged By location in the defined plant sectors (not applicable in this project). All alarms that have been activated remain visible until their display is confirmed by activating the 'Acknowledge Alarm' option. In Figure 3.65 we can see an example of 3 different alarms activated: Alarm 1: The first alarm in the list is an alarm generated automatically, in the Source column we can see to what point it belongs and in Condition column the type of alarm. In this case it is a control failure of the START button, operator tries to write the value 1 (Trip Value) but the value remains at 0 (Live Value). Alarm 2: This alarm is generated manually; it is activated when the state of the variable ALHV_1 is 1. We can see in the column Description the reason of the activation of the alarm.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 85 Alarm 3: The last alarm is also generated automatically for points coming from analog inputs or outputs. The system creates alarms when the maximum or minimum values configured in the I/O modules are exceeded. Figure 3.65 Experion HS Alarms system example (Source: Experion HS) Another type of predefined Honeywell screens are the point detail screens, in Figure 3.66 we can see an example of the analog point detail screen of TT_2. As we can see in the upper part, we have windows like the ones we saw in Quick Builder. As mentioned before, if you have access to a user with permission you can change point settings. It is recommended to activate the option to visualize the PV history of analog points, so we get realtime graphs of PV values and you can access historical data, all from within the detail screen of the point. You can also see the left column that offers information about more control variables linked to this point (SP, OP or MD), in this case there are no additional control variables linked. Figure 3.66 TT_2 detail display (Source: Experion HS) The left column of the detail screen can also be displayed on the faceplates. These are a predefined type of popup special for device points, used for faster access to the device controls. In the case of Figure 3.67, the floating popup on the general display, allows to visualize and act on the main control parameters.
Report 86 Faceplates also provide information about if there is an active related alarm and the possibility to mark them as acknowledge. The faceplates are activated by clicking once on the object that animates the PV parameter, in points that are not devices, by default they do not have faceplate available. Figure 3.67 RV_1 faceplate in live unload (Source: Experion HS) Lastly, the last distinguished feature of Experion HS's automatic displays is the automatic generation of a PID control graph. This tool allows you to view SP, PV and OP parameters in real-time, as well as edit PID control parameter values. In this auxiliary graph you can also access historical values of the PID control. Figure 3.68 RV_2 PID behaviour graph in Auxiliary detail display (Source: Experion HS) Overall, these default displays offer a high level process control and accessibility, with automatic integration in most cases.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 87 3.4. Simulation Results The simulation system has been used to test and improve the automation system of the LPG synthesis and unload process. In the last development month, different types of unloads have been simulated in order to improve and adjust the automatisms. Figure 3.69 shows a graph of the absolute errors of unload parameters for 100 unloading simulations and the trends that characterize their behaviour For 100 simulations, the following data have been collected: Setpoint of percentage of butane, setpoint of quantity to unload, final percentage of butane and final quantity unloaded. With the use of Equation 3.12 and Equation 3.13, the absolute error between setpoint and process value has been determined and the graph of Figure 3.69 has been generated. 𝑃𝑒𝑟𝑐𝑒𝑛𝑡𝑎𝑔𝑒𝑂𝑃 −𝑃𝑒𝑟𝑐𝑒𝑛𝑡𝑎𝑔𝑒𝑃𝑉 =𝐸𝑎𝑏𝑠_𝑃𝑒𝑟𝑐𝑒𝑛𝑡𝑎𝑔𝑒 =% 𝐴𝑏𝑠_𝑒𝑟𝑟𝑜𝑟 Equation 3.12 𝐿𝑃𝐺_𝑄𝑢𝑎𝑛𝑡𝑂𝑃 −𝐿𝑃𝐺_𝑄𝑢𝑎𝑛𝑡𝑃𝑉 =𝐸𝑎𝑏𝑠_𝐿𝑃𝐺_𝑄𝑢𝑎𝑛𝑡 =𝐾𝑔 𝐴𝑏𝑠_𝑒𝑟𝑟𝑜𝑟 Equation 3.13 As can be seen in the trend lines, the latest unloads have minimized the error to under 1% on average. The green trend-line should only be considered since data number 46, the previous unloads were only butane or propane (Percentage 100% or 0%) and the program logic fixes the process value with the same value as the SP, therefore, there is no error. Figure 3.69 Simulation Test Error Trend -5,00 0,00 5,00 10,00 15,00 20,00 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93 97 ABSOLUTE ERROR TEST NUMBER SIMULATION TESTS ERROR TREND % Abs_error Kg Abs_error Polinómica (% Abs_error) Polinómica (Kg Abs_error)
Report 88 Thanks to the development of a complex simulation system, it has been possible to detect all possible errors in the process automation during the development of the project, in order to improve the system to its optimum operation. Figure 3.70 Main display while unloading simulation (Source: Experion HS) Figure 3.71 PID behaviour graph while unloading simulation (Source: Experion HS)
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 89 Figure 3.72 Main display at the end of an unloading simulation (Source: Experion HS)
Report 90 3.5. Regulations In this project, for certain parts development, norms and standards have been used to standardize programming and design and to facilitate the interpretation and communication of automatic control systems. 3.5.1. PLC program As previously mentioned, programming in ControlEdge Builder is based on the IEC 61131-3 standard. This standard, created by the common effort of 7 multinationals of the sector, intends to standardize programming languages in industrial automation and communication between control devices and other systems. IEC 61131-3 can be divided into two different parts: Common elements: Standardization of general use variables, tasks, resources, internal organization of the program, functional blocks (FU and FB) and sequences, among others. 5 types of standard programming languages are defined: o Literal: Instruction List (IL) and Structured Text (ST). o Graphic: Diagram Ladder (LD), Sequential Function CHART (SFC) Function Block Diagram (FBD). (IEC 61131-3 2008, 1-2). This last type of defined language (FBD) is the one used in ControlEdge Builder. 3.5.2. SCADA design As detailed in section 3.1.4, the design of the SCADA has been based on ISA 101. This standard HMI display design for SCADA systems is oriented to continuous processes, where it is not necessary to highlight with bright colours a normal behaviour such as switching a valve on or off, bright colours are used for extraordinary situations such as alarms and emergencies. Another great proposal that will mark the path of future SCADA systems is the optimization of space and the management of information to be shown. ISA 101 recommends a increased usage of dynamic indicators that offer temporary information in substitution of the ones used until now, ne moment in time indicators.
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 91 3.5.3. Codification The P&ID instrumentation documents and GRAFCET process graphics in this project have been made based on ISA S5.5 and IEC 848 respectively. ISA S5.5 establishes a graphic system of symbols to visualize plant devices and processes, also a coding for the devices that compose a system and are represented in a P&ID. The following table shows the coding standard: Table 5 ISA S5.5 Identification letters (ISA 1985, 41) IEC 848 presents a standard description of actions associated with stages, applicable to GRAFCETs. The program used to design the GRAFCETs seen in the report, OFT2 Grafcet, is based on this standard. The SFC programming language proposed in IEC 61131-3 is based on this GRAFCETS design standard. The symbology and coding of devices used in the design of SCADA displays has been based on the standard commonly used in projects developed by the collaborating company.
Report 92 Conclusions The main objective was the renovation and improvement of the process automation system. Despite the absence of physical test evidence, it can be concluded that the proposed control system improve capacity and quality compared to the previous control system. Thanks to the simulations made on, the redesign of the process automation and the extension of calibration variables, it can be forecasted that errors in unloading will be reduced from 10-15 % to a maximum of 2 %. All the specific and secondary objectives determined at the beginning of the project have been successfully completed. A deep insight in industrial automation has been gained, obtaining knowledge of continuous process programming, PID controls, valves and pumps configuration, FBD programming language, OPC communication between industrial control equipment, among others. A large number of possible improvements to the previous control system were detected and solved in the new control system. Although it was a risky bet to work with software without other installations or online information, the result has been quite satisfactory. Because of the lack of information, a large part of the work consisted in investigating the functioning of the programming tools of this system: ControlEdge Builder, Experion HS, Quick Builder and HMIWeb Display Builder. In conclusion, it has been a tough task to learn how such a large amount of software works, but at the end, an advanced knowledge of Honeywell control systems has been achieved. The PLC program has been improved, the main new features that have been developed are: Honeywell's native FBs have been used to control the devices. Butane unloading has been separated from propane unloading to avoid unnecessary interlocks. New tuning variables have been configured for the start-up. Automatic control has been redesigned for the new valve system. Process status system has been generated to improve process management, among other minor improvements. Simulation system has been added. Lastly, it has been possible to apply the knowledge acquired in different subjects of the degree such as Thermodynamics, digital electronics and automatic regulation, among others. In addition, the development of this bachelor's thesis I have improved my project planning and writing skills. There are a set of possible improvements that could not be made in time, for example:
Migration and redesign of the control system for the process of synthesis and unload of liquefied petroleum gas 93 Integrate the individual simulation control of each device into the autogenerated popup faceplate. Generation of a more realistic simulation of temperature variation with pressure. Configure plant sectors and user permissions in Experion HS for project part two. The final own evaluation is very positive, despite the great time and effort dedicated to the project; personally, the project results have been very satisfying.
Report 100 ISA. “ISA-5.5-1985.” Graphic Symbols for Process Displays. 03 02 1985. https://campusvirtual.univalle.edu.co/moodle/pluginfile.php/444192/mod_folder/content/0 /S_55.pdf?forcedownload=1 (accessed 09 20, 2019). Jenkins, Hodge E. “Mercer University - Dr. Hodge Jenkins .” Mercer University - Dr. Hodge Jenkins . 14 02 2012. http://faculty.mercer.edu/jenkins_he/documents/TuningforPIDControllers.pdf (accessed 09 20, 2019). Lamb, Frank. Industrial Automation: Hands On. New York: McGraw-Hill Education, 2013. Martínez, Isidoro. Termodinámica básica y aplicada. Madrid: Dossat, 1992. Nasby, Graham. “Using ISA-101 & High Performance HMIs for More Effective Operations.” Using ISA- 101 & High Performance HMIs for More Effective Operations. 14 09 2017. http://www.grahamnasby.com/files_publications/NasbyG_2017_HighPerformanceHMIs_Int elligentWastewaterSeminar_WEAO_sept14-2017_slides-public.pdf (accessed 04 12, 2019). Noticias Jurídicas. Noticias Jurídicas - Ley21/2013. 12 12 2013. http://noticias.juridicas.com/actualidad/noticias/3412-publicada-la-ley-21-2013-de- evaluacion-ambiental/ (accessed 09 24, 2019). Pérez-López, Esteban. “Los sistemas SCADA en la automatización industrial.” 27 02 2015. https://dialnet.unirioja.es/descarga/articulo/5280242.pdf (accessed 09 08, 2019). Universidad de Oviedo - Área de Ingeniería de Sistemas y Automática. “IEC 61131-3.” Estandarizacion en la programacion del control industrial. 10 04 2008. http://isa.uniovi.es/docencia/IngdeAutom/transparencias/iec1131-3%20espa%F1ol.pdf (accessed 09 20, 2019). White, Frank M. Fluid Mechanics. New York: The McGraw-Hil Companies, 2011. Wikipedia. Wikipedia - Visual Basic. 03 09 2019. https://es.wikipedia.org/wiki/Visual_Basic (accessed 09 15, 2019).