The beneficiary chose the second solution, so S.C. Hasel Invent S.R.L. proceeded to form a team of specialists and start the reverse engineering works for the gas measuring station in question. The deadline for completion of the work was one month, time during which the installation had to be re-commissioned at the initially designed parameters and with extended functionality as required by paragraphs 1-4, listed above, one of the important requirements being total control from the remote dispatching.
Under these conditions, all the elements of the installation were initially identified and individually verified, from the inputs and outputs of the PLC modules, from the automation cabinet to the electric and pneumatic valves in the field. After the necessary findings were made and an initial relevance was achieved, the communication testing between the PLCs present in the automation room and the field elements was started. Four serial lines of communication were identified, two of them using the Profibus DP communication protocol, and the other two, the Modbus RTU protocol. The communication telegrams of the valves were then checked, using a test PLC, thus maintaining the possibility of restoring the station to its original operating parameters. This way, during the entire testing period, it was not necessary to stop the station or to divert the natural gas on another route, because after each testing phase, it was possible to return to the original configuration by installing the PLCs with the original program, and then they would be formatted and loaded with the new programs only after completing all the tests of the new software applications.
After checking the communication between the PLCs and the field elements, the functionality of the monitoring and control application installed on the two servers and on the two customers in the station was checked. It was decided that in order to be able to perform a faster maintenance in the station in the future, it is necessary to implement in the application a section that allows the testing and verification of analog and digital inputs and outputs in the system, as well as of the communication telegrams with the valves, both through the Modbus RTU protocol and through the Profibus DP protocol. Thus, the implementation of a new section of the program, dedicated to maintenance, was achieved.
Finally, the software applications created by Hasel were tested and installed on the same equipment, thus achieving the performance of taking control of equipment that normally should have been given up due to the lack of passwords to access the modification of the original software applications. Reverse engineering has proven to be very useful for solving problems and gaining total control over an installation. Its use has thus allowed both the improvement of the system and the avoidance in the future of the occurrence of difficulties related to the maintenance of such systems.