Drilling Rig Hoisting Platform Security Monitoring System Design and Application

Drilling rig hoisting platform security monitoring system has played a very important role in oil exploration. And drilling parameters and working condition of workers are particularly important, because these parameters indicate that whether the drilling work is safe and effective directly. A security monitoring system is established to provide the real-time parameters for drilling safety is the purpose of this study. The monitoring system includes a top drive, a traveling block hook, an oil derrick and a driller room, and the controller of the system is programmable logic controller PLC. The procedure of the system is written by the RSLogix5000 software, the PC configuration is used force control monitor configuration software. According to the system, top drive, driller room and environment wind speed parameters in real-time are collected and displayed in the configuration of upper computer, the collected parameters can be used to determine the working conditions of the top drive and to send timely warnings for inspection maintenance to avoid drilling safety accidents. Work fatigue remind of driller and regularly remind of derrick check can be as much as possible to reduce safety accidents. And automatic operation of traveling block hook reached the default point faster and more smoothly than manual operation given the other uncontrollable factors in manual operation. The application of the system is successfully working in the drilling work site.


Introduction
A drilling rig hoisting platform is an indispensable piece of equipment in oil exploration.The entire platform mainly includes a top drive, a traveling block hook, an oil derrick, and a driller room [1], as shown in Figure 1.The top drive rotates the drilling tool and circulates the mud, shackle, and pick up pipe [2].The oil derrick lays the crown block, suspends the traveling block hook and top drive, and stores the drill pipe [3].The driller room, which has various electrical, mechanical, and communication technologies as an organic whole, provides a comfortable working environment for the driller [4].The rig hoisting platform is a cornerstone in a drilling operation.It is particularly important to ensure safety because the complexity of the actual working condition and working environment is prone to accidents.Addressing the potential safety hazard in the process of drilling and properly documenting casualties and economic losses caused by accidents are urgently needed.So establishing the rig hoisting platform's security monitoring system is necessary.Many scientific research institutions and scholars have conducted studies on the security monitoring system of a rig hoisting platform and had significant achievements.Pavel et al. (2004) [5] designed a system for the remote monitoring of a drilling stand using Internet technologies.Franco-Gasca et al. (2006) [6] described a driver current signal analysis that estimates the tool condition using the discrete wavelet transform to extract information from the original cutting force.Rigserv Company (Houston, TX, USA) (2008) [7] investigated and developed a rig safety control system by combining the advanced programmable logic controller PLC and automation industrial control hardware and software with modern drilling machinery.Datalog Company (Bologna, Italy) (2008) [8] used the TCP/IP network protocol to conduct communication and the friendly icon interface of WellWizard to access information accurately and display the drilling parameters in real time.Wang et al. (2008) [9] introduced the principle of the top drive DC control system's external fault alarm and recommended check methods to shorten the time of fault diagnosis.Zhang et al. (2009) [10] developed a drilling rig remote security control system based on the general packet radio service, which can remotely monitor the security of the drilling rig.Zhang et al. (2009) [11] proposed general diagnosis methods for faults based on the combined information fusion of fuzzy reasoning and a neural network, and set up the structural model of fault diagnosis.Wang (2010) [12] used distributed data acquisition system, set up an experimental device, and achieved the detection of the drilling rig working condition parameters and feedback control.Cheng et al. (2013) [13] used the fiber Bragg grating (FBG) strain sensor in oil and gas derricks for health monitoring and found that the monitoring system had the advantages of high accuracy, good repeatability, large capacity, and realtime monitoring ability.Deng and Chang (2013) [14] analyzed the anti-jamming performance of the top drive control system and gave the corresponding solution to the interference.
Above all, there are many researches on the drilling safety, using the internet remote monitoring technology, drilling safe monitoring based on programmable logic controller (PLC) technology, realtime display technology by IP network protocol distribute technology, distribute data acquisition system technology and so on.In these studies, there are few researches on the safety monitoring of the whole drilling platform.In this paper used the Rockwell PLC system and Profibus technique to design a set of relatively complete drilling rig hoisting security monitoring system.The parameters of the drilling operation were collected in real time, and the working condition of the top drive and the general condition of the drilling formation were analyzed through the collected data.Especially, the traveling block hook was automatically controlled and moved to the default location, so that it will improve work efficiency and safety.And a work fatigue reminder for the driller and a regular reminder for derrick check were designed, it will reduce man-made safety hazards.The whole system can provide drilling safety and work efficiency.And the entire system was applied to the field test and operation.Many scientific research institutions and scholars have conducted studies on the security monitoring system of a rig hoisting platform and had significant achievements.Pavel et al. (2004) [5] designed a system for the remote monitoring of a drilling stand using Internet technologies.Franco-Gasca et al. ( 2006) [6] described a driver current signal analysis that estimates the tool condition using the discrete wavelet transform to extract information from the original cutting force.Rigserv Company (Houston, TX, USA) (2008) [7] investigated and developed a rig safety control system by combining the advanced programmable logic controller PLC and automation industrial control hardware and software with modern drilling machinery.Datalog Company (Bologna, Italy) (2008) [8] used the TCP/IP network protocol to conduct communication and the friendly icon interface of WellWizard to access information accurately and display the drilling parameters in real time.Wang et al. (2008) [9] introduced the principle of the top drive DC control system's external fault alarm and recommended check methods to shorten the time of fault diagnosis.Zhang et al. (2009) [10] developed a drilling rig remote security control system based on the general packet radio service, which can remotely monitor the security of the drilling rig.Zhang et al. (2009) [11] proposed general diagnosis methods for faults based on the combined information fusion of fuzzy reasoning and a neural network, and set up the structural model of fault diagnosis.Wang (2010) [12] used distributed data acquisition system, set up an experimental device, and achieved the detection of the drilling rig working condition parameters and feedback control.Cheng et al. (2013) [13] used the fiber Bragg grating (FBG) strain sensor in oil and gas derricks for health monitoring and found that the monitoring system had the advantages of high accuracy, good repeatability, large capacity, and real-time monitoring ability.Deng and Chang (2013) [14] analyzed the anti-jamming performance of the top drive control system and gave the corresponding solution to the interference.
Above all, there are many researches on the drilling safety, using the internet remote monitoring technology, drilling safe monitoring based on programmable logic controller (PLC) technology, real-time display technology by IP network protocol distribute technology, distribute data acquisition system technology and so on.In these studies, there are few researches on the safety monitoring of the whole drilling platform.In this paper used the Rockwell PLC system and Profibus technique to design a set of relatively complete drilling rig hoisting security monitoring system.The parameters of the drilling operation were collected in real time, and the working condition of the top drive and the general condition of the drilling formation were analyzed through the collected data.Especially, the traveling block hook was automatically controlled and moved to the default location, so that it will improve work efficiency and safety.And a work fatigue reminder for the driller and a regular reminder for derrick check were designed, it will reduce man-made safety hazards.The whole system can provide drilling safety and work efficiency.And the entire system was applied to the field test and operation.

Composition of the Drilling Rig Hoisting Security Monitoring System
The rig hoisting platform monitoring system comprises three parts: the upper machine, the controller programmable logic controller PLC, and the device layer.The network diagram of the entire system is shown in Figure 2.
As shown in Figure 2, the control layer is the middle layer of the system.It is the hinge of the system in which all types of data are transmitted.The controller property is important.The programmable logic controller PLC has so many advantages that other fields aside from the petrochemical industry field use it.The main advantages of the programmable logic controller PLC [15] are as follows: (1) High reliability and strong anti-jamming capability; (2) Complete supporting facilities, fully functional, and high applicability; (3) Rich I/O interface module; (4) Small volume, light weight, low energy consumption; (5) Strong commonality, variable control program, and easy to use.Aside from the control layer, the information layer and device layer have their own functions.The information layer displays data to users, thus enabling users to be intuitive, understand the scene, and send the command control field device through this layer.The device layer is analogous to human skin tissue, and it can turn the scene situation into the corresponding voltage or current signal.
The working process of the entire system is the device layer, which turns the scene situation into the corresponding voltage or current signal.Then, the control layer collects the voltage or current signal using fieldbus technology.As the last step, the information layer analyzes data using special processing software and displays the working condition of the scene on the screen, in this paper used RSLogix5000 to analyze data and force control monitor configuration to display the working condition.The information layer can transmit the control signal to the device layer according to the control layer.Therefore, the system realizes the functions of monitoring and control.

Composition of the Drilling Rig Hoisting Security Monitoring System
The rig hoisting platform monitoring system comprises three parts: the upper machine, the controller programmable logic controller PLC, and the device layer.The network diagram of the entire system is shown in Figure 2.
As shown in Figure 2, the control layer is the middle layer of the system.It is the hinge of the system in which all types of data are transmitted.The controller property is important.The programmable logic controller PLC has so many advantages that other fields aside from the petrochemical industry field use it.The main advantages of the programmable logic controller PLC [15] are as follows: (1) High reliability and strong anti-jamming capability; (2) Complete supporting facilities, fully functional, and high applicability; (3) Rich I/O interface module; (4) Small volume, light weight, low energy consumption; (5) Strong commonality, variable control program, and easy to use.
Aside from the control layer, the information layer and device layer have their own functions.The information layer displays data to users, thus enabling users to be intuitive, understand the scene, and send the command control field device through this layer.The device layer is analogous to human skin tissue, and it can turn the scene situation into the corresponding voltage or current signal.
The working process of the entire system is the device layer, which turns the scene situation into the corresponding voltage or current signal.Then, the control layer collects the voltage or current signal using fieldbus technology.As the last step, the information layer analyzes data using special processing software and displays the working condition of the scene on the screen, in this paper used RSLogix5000 to analyze data and force control monitor configuration to display the working condition.The information layer can transmit the control signal to the device layer according to the control layer.Therefore, the system realizes the functions of monitoring and control.

Design Scheme of the Drilling Rig Hoisting Security Monitoring System
To guarantee the safety of drilling operations, monitoring and mastering the drilling working conditions are necessary.

Design Scheme of the Drilling Rig Hoisting Security Monitoring System
To guarantee the safety of drilling operations, monitoring and mastering the drilling working conditions are necessary.

Top Drive Monitoring Scheme Design
With the development of drilling technology, the top drive drilling system gradually replaced the rotary drilling rig [16].In the process of drilling, the top drive drilling systems provides the drilling motive, circulates drilling fluids, and reduces the number of connecting single pipes.It plays an important role in the entire process of drilling.Real-time mastery of the working conditions of the top drive drilling system is necessary.The top drive drilling system mainly consists of a top-drilling motor assemble, motor bracket/guide block assemble, make-up or break-out device of the drill pipe assemble, and other auxiliary systems.
The top-drilling motor assemble provides the drilling motive [16] and enables the motor speed and the motor temperature to indicate if the motor is running normally.As wind pressure of the cooling fan also affects the motor temperature, it needs to be monitored.The reduction gearbox, which is responsible for the temperature and oil pressure, is indispensable as it determines the working condition.In the drilling process, if sticking or other accidents that require the motor to be stopped occur, the pressure of the brake cylinder should be controlled.Changing the pressure of the brake cylinder can realize the automatic start-stop motor control of this control system.
The make-up or break-out device of the drill pipe assemble provides service for the trip [16].It possesses the greatest advantages of the top drive drilling equipment, and it can save drilling time and reduce the labor intensity of workers.Therefore, monitoring this part is important for the drilling operation.Controlling the turret head motor can master the location of the turret head in real time.Controlling the cylinder oil pressure of the inclined structure can determine the location of the inclined structure.More importantly, pressure in the well should be monitored and alarm should be given in a timely manner.
The monitoring parameters of the top drive drilling system is shown in Figure 3.
In the current paper, the monitoring system of the DQ-90 top drive type is investigated.The design parameters of the DQ-90 top drive [17] are presented in Table 1.With the development of drilling technology, the top drive drilling system gradually replaced the rotary drilling rig [16].In the process of drilling, the top drive drilling systems provides the drilling motive, circulates drilling fluids, and reduces the number of connecting single pipes.It plays an important role in the entire process of drilling.Real-time mastery of the working conditions of the top drive drilling system is necessary.The top drive drilling system mainly consists of a top-drilling motor assemble, motor bracket/guide block assemble, make-up or break-out device of the drill pipe assemble, and other auxiliary systems.
The top-drilling motor assemble provides the drilling motive [16] and enables the motor speed and the motor temperature to indicate if the motor is running normally.As wind pressure of the cooling fan also affects the motor temperature, it needs to be monitored.The reduction gearbox, which is responsible for the temperature and oil pressure, is indispensable as it determines the working condition.In the drilling process, if sticking or other accidents that require the motor to be stopped occur, the pressure of the brake cylinder should be controlled.Changing the pressure of the brake cylinder can realize the automatic start-stop motor control of this control system.
The make-up or break-out device of the drill pipe assemble provides service for the trip [16].It possesses the greatest advantages of the top drive drilling equipment, and it can save drilling time and reduce the labor intensity of workers.Therefore, monitoring this part is important for the drilling operation.Controlling the turret head motor can master the location of the turret head in real time.Controlling the cylinder oil pressure of the inclined structure can determine the location of the inclined structure.More importantly, pressure in the well should be monitored and alarm should be given in a timely manner.
The monitoring parameters of the top drive drilling system is shown in Figure 3.
In the current paper, the monitoring system of the DQ-90 top drive type is investigated.The design parameters of the DQ-90 top drive [17] are presented in Table 1.

Traveling Block Hook Monitoring Scheme Design
The traveling block can relieve winch work load in the process of drilling or well repairing, and it is indispensable in connecting a single root, drilling, and tripping [1].
In connecting a single pipe in the process of normal drilling, the borehole continuously excavated and the pipe column should always be connected.The driller adjusts the traveling block

Traveling Block Hook Monitoring Scheme Design
The traveling block can relieve winch work load in the process of drilling or well repairing, and it is indispensable in connecting a single root, drilling, and tripping [1].
In connecting a single pipe in the process of normal drilling, the borehole continuously excavated and the pipe column should always be connected.The driller adjusts the traveling block hook height to fit the operation to connect the single pipe.As the driller's perspective is limited, monitoring and controlling the height of the traveling block hook is necessary.Aside from increasing the crown block protector, a special hook stay location is added to the automatic push-button control.A transmitter is installed on the default location of derrick, photosensitive sensor installed on the traveling block, the photosensitive sensor signal that reaches the default location is tested, and the system will judge is to stop or continue movement.When the button is pressed, the hook automatically moves to the default height.This mechanism is used during special emergency situations instead of manual control.This control method can also be applied to the operation.
Different drilling pressures are needed in a drilling operation.The height of the traveling block hook is adjusted to meet the process of the downhole operation.Grasping the work situation underground is difficult because of the limits of technology.An emergency device is added to send out an alarm when sticking or other emergencies occur in the drilling process to immediately stop the entire system.
The monitoring parameters of the traveling block hook are shown in Figure 4.There is no direct relationship between several parameters.Emergency device provides a way to deal with emergencies for workers, and alarm device is a reminder for staff that the system reaches a safe limit position.
Machines 2017, 5, 19 5 of 15 hook height to fit the operation to connect the single pipe.As the driller's perspective is limited, monitoring and controlling the height of the traveling block hook is necessary.Aside from increasing the crown block protector, a special hook stay location is added to the automatic push-button control.
A transmitter is installed on the default location of derrick, photosensitive sensor installed on the traveling block, the photosensitive sensor signal that reaches the default location is tested, and the system will judge is to stop or continue movement.When the button is pressed, the hook automatically moves to the default height.This mechanism is used during special emergency situations instead of manual control.This control method can also be applied to the operation.Different drilling pressures are needed in a drilling operation.The height of the traveling block hook is adjusted to meet the process of the downhole operation.Grasping the work situation underground is difficult because of the limits of technology.An emergency device is added to send out an alarm when sticking or other emergencies occur in the drilling process to immediately stop the entire system.
The monitoring parameters of the traveling block hook are shown in Figure 4.There is no direct relationship between several parameters.Emergency device provides a way to deal with emergencies for workers, and alarm device is a reminder for staff that the system reaches a safe limit position.

Oil Derrick and Driller Control Room Monitoring Scheme Design
The oil derrick and driller control room are essential parts of drilling equipment.The normal work safety of the oil derrick and the comfortable working environment for the driller are major concerns.
The oil derrick supports the entire lifting equipment, and it is where various drilling tools can be conveniently tripped or hung.However, oil drilling is conducted in difficult conditions, and thus mastering the working condition of the oil derrick is important.In field work, regular checks on the derrick condition are usually overlooked.A regular reminder device is necessary for the programmable logic controller PLC to provide a time delay control program while the system emits warning instructions at regular intervals.Just like other systems, monitoring the environment wind is also essential.When the wind reaches the preset alarm value, an alarm will be set off.
The driller control room is the brain of the platform.It is where the driller is located, many instruments are displayed, and important drilling operations are conducted.Therefore, the work environment of the driller is important.Monitoring the temperature and humidity of the driller control room is necessary.A driller work fatigue reminding system is set to consider the driller's fatigue.
The monitoring parameters of the oil derrick and driller control room are presented in Figure 5.
In this paper, the monitoring system of a type "A" derrick is examined, as shown in Figure 1 is a type "A" derrick.The parameters of the type "A" derrick [18] are listed in Table 2.
Wind load is an important parameter in the process of drilling for the derrick.Reference [19] introduces the maximum wind speed of a derrick in different working states, as shown in Table 3.

Oil Derrick and Driller Control Room Monitoring Scheme Design
The oil derrick and driller control room are essential parts of drilling equipment.The normal work safety of the oil derrick and the comfortable working environment for the driller are major concerns.
The oil derrick supports the entire lifting equipment, and it is where various drilling tools can be conveniently tripped or hung.However, oil drilling is conducted in difficult conditions, and thus mastering the working condition of the oil derrick is important.In field work, regular checks on the derrick condition are usually overlooked.A regular reminder device is necessary for the programmable logic controller PLC to provide a time delay control program while the system emits warning instructions at regular intervals.Just like other systems, monitoring the environment wind is also essential.When the wind reaches the preset alarm value, an alarm will be set off.
The driller control room is the brain of the platform.It is where the driller is located, many instruments are displayed, and important drilling operations are conducted.Therefore, the work environment of the driller is important.Monitoring the temperature and humidity of the driller control room is necessary.A driller work fatigue reminding system is set to consider the driller's fatigue.
The monitoring parameters of the oil derrick and driller control room are presented in Figure 5.
In this paper, the monitoring system of a type "A" derrick is examined, as shown in Figure 1 is a type "A" derrick.The parameters of the type "A" derrick [18] are listed in Table 2.
Wind load is an important parameter in the process of drilling for the derrick.Reference [19] introduces the maximum wind speed of a derrick in different working states, as shown in Table 3.

Realizing the Function of the Monitoring System
As discussed above, the drilling operation safety is ensured by monitoring the parameters of the top drive system, hook hoisting system, derrick system, and drilling control room.The specific functions of the monitoring and control system are as follows: (1) The working parameters of the top drive system, motor temperature, motor speed, cooling fan pressure, reduction gearbox oil pressure, brake cylinder oil pressure, turret head motor speed, inclined structure oil pressure, and well pressure are monitored in real-time.

Software Design and Implementation of the Monitoring System
The software design and application of the corresponding control function are the core of the entire monitoring platform system.Based on the fieldbus technology, sensor module and programmable logic controller PLC collect the data and the industrial personal computer (PC) is utilized to process data.Through the detection signal and determined abnormal signal, the control actuator sends out the alarm and runs the start-stop motor and other control operations.
The force control configuration software, RS5000 programming software, and RSLinx communication software are used to create the entire monitoring system.Force control

Realizing the Function of the Monitoring System
As discussed above, the drilling operation safety is ensured by monitoring the parameters of the top drive system, hook hoisting system, derrick system, and drilling control room.The specific functions of the monitoring and control system are as follows: (1) The working parameters of the top drive system, motor temperature, motor speed, cooling fan pressure, reduction gearbox oil pressure, brake cylinder oil pressure, turret head motor speed, inclined structure oil pressure, and well pressure are monitored in real-time.

Software Design and Implementation of the Monitoring System
The software design and application of the corresponding control function are the core of the entire monitoring platform system.Based on the fieldbus technology, sensor module and programmable logic controller PLC collect the data and the industrial personal computer (PC) is utilized to process data.Through the detection signal and determined abnormal signal, the control actuator sends out the alarm and runs the start-stop motor and other control operations.
The force control configuration software, RS5000 programming software, and RSLinx communication software are used to create the entire monitoring system.Force control configuration software is a professional monitoring configuration software by Beijing 3d force control technology co.LTD, the software can be widely used in oil and gas, chemical, coal, electricity, environmental protection, energy management, intelligent buildings, and other fields.RS5000 programming software is a PLC ladder programming software for Rockwell Automation company in America.RSLinx communication software is the software that controls the communication between the controller and the computer, and is also the product of Rockwell Automation company.

Exploitation and Design of the Force Control Configuration Software
The force control configuration software includes the man-machine interface VIEW, project manager, I/O driver, real-time database DB, control strategy of the generator, and other Web service components, among others [20].The I/O driver and real-time database DB can implement the variable configuration and the link of the OPC database or force control configuration.The software collects field data and controls the system process.It uses the flexible "configuration way" rather than the programming method to integrate the system.The preset software modules are set to obtain a simple configuration to complete the functions and monitor the control layer.Engineers consider it convenient to use and that it greatly improve the efficiency of the integrated system.
The monitoring configuration screen is designed on the basis of the hardware structure of the system and exploitation.The login system and operating system require a dedicated administrator, and thus the system needs login rights management.Each part of the configuration screen is built subsequently.

Top Drive Drilling System
This part includes many monitoring parameters, and an actual engineering application is needed to configure the screen concisely, intuitively, and conveniently.The monitoring configuration screen is shown in Figure 6.Because most of the top drive system is the hydraulic control, oil pressure is very important for top drive.As shown in Figure 5, the oil pressure of different hydraulic cylinder is monitored.At the same time, the driving motor speed and the motor temperature are monitored, so the working condition of the top drive can be well understood in all aspects.
configuration software is a professional monitoring configuration software by Beijing 3d force control technology co.LTD, the software can be widely used in oil and gas, chemical, coal, electricity, environmental protection, energy management, intelligent buildings, and other fields.RS5000 programming software is a PLC ladder programming software for Rockwell Automation company in America.RSLinx communication software is the software that controls the communication between the controller and the computer, and is also the product of Rockwell Automation company.

Exploitation and Design of the Force Control Configuration Software
The force control configuration software includes the man-machine interface VIEW, project manager, I/O driver, real-time database DB, control strategy of the generator, and other Web service components, among others [20].The I/O driver and real-time database DB can implement the variable configuration and the link of the OPC database or force control configuration.The software collects field data and controls the system process.It uses the flexible "configuration way" rather than the programming method to integrate the system.The preset software modules are set to obtain a simple configuration to complete the functions and monitor the control layer.Engineers consider it convenient to use and that it greatly improve the efficiency of the integrated system.
The monitoring configuration screen is designed on the basis of the hardware structure of the system and exploitation.The login system and operating system require a dedicated administrator, and thus the system needs login rights management.Each part of the configuration screen is built subsequently.

Top Drive Drilling System
This part includes many monitoring parameters, and an actual engineering application is needed to configure the screen concisely, intuitively, and conveniently.The monitoring configuration screen is shown in Figure 6.Because most of the top drive system is the hydraulic control, oil pressure is very important for top drive.As shown in Figure 5, the oil pressure of different hydraulic cylinder is monitored.At the same time, the driving motor speed and the motor temperature are monitored, so the working condition of the top drive can be well understood in all aspects.The monitoring configuration screen in Figure 7 considers the drilling workers' working environment and reduces the intensity of their work.
The screen shows the convenient parameters that the driller needs to control the hook height control button.The reminder lamp is set up in an eye-catching location.The monitoring configuration screen in Figure 7 considers the drilling workers' working environment and reduces the intensity of their work.
The screen shows the convenient parameters that the driller needs to control the hook height control button.The reminder lamp is set up in an eye-catching location.

Design and Program of the Procedure
RSLogix5000 was applied to the program.The software provides an integrated programming environment for the programmable logic controller and considers users' actual needs.Users can input and edit the programmable logic controller PLC program, comment and inspect the program, and manage files, among others.

I/O Configuration to Local Module
Before programming, the I/O configuration is added to local module as an important step.The programmable logic controller PLC has local input and output modules, which are analog input and analog output as well as digital input and digital output, respectively.Choosing the right connection module is important.The configuration module used in this monitoring system is presented in Figure 8.In Figure 8, six controller modules are used, which are input and output modules of analog signals and digital signals.

Design and Program of the Procedure
RSLogix5000 was applied to the program.The software provides an integrated programming environment for the programmable logic controller and considers users' actual needs.Users can input and edit the programmable logic controller PLC program, comment and inspect the program, and manage files, among others.

I/O Configuration to Local Module
Before programming, the I/O configuration is added to local module as an important step.The programmable logic controller PLC has local input and output modules, which are analog input and analog output as well as digital input and digital output, respectively.Choosing the right connection module is important.The configuration module used in this monitoring system is presented in Figure 8.In Figure 8, six controller modules are used, which are input and output modules of analog signals and digital signals.The monitoring configuration screen in Figure 7 considers the drilling workers' working environment and reduces the intensity of their work.
The screen shows the convenient parameters that the driller needs to control the hook height control button.The reminder lamp is set up in an eye-catching location.

Design and Program of the Procedure
RSLogix5000 was applied to the program.The software provides an integrated programming environment for the programmable logic controller and considers users' actual needs.Users can input and edit the programmable logic controller PLC program, comment and inspect the program, and manage files, among others.

I/O Configuration to Local Module
Before programming, the I/O configuration is added to local module as an important step.The programmable logic controller PLC has local input and output modules, which are analog input and analog output as well as digital input and digital output, respectively.Choosing the right connection module is important.The configuration module used in this monitoring system is presented in Figure 8.In Figure 8, six controller modules are used, which are input and output modules of analog signals and digital signals.Based on the hardware input and output types, the programmable logic controller PLC module obtains the connection slot number and the convert relational, as shown in Table 4.The designing of the top drive system program goes as follows: The programmable logic controller PLC is powered on, and the module is initialized.Whether or not to push the drive start button is determined.When the top drive is launched, the motor temperature, motor speed, and wind pressure of cooling fan are collected and processed in real time to determine if the temperature is over 135 • C and the wind pressure id less than 1 MPa.If the values are greater than the preset temperature and wind pressure, the motor will send out an alarm and brake.The program flow chart is illustrated in Figure 9.
The other acquisition modules are the real-time monitoring of the reduction of gearbox oil pressure, brake cylinder oil pressure, and inclined structure oil pressure.According to top drive hydraulic design manual, rated pressure of hydraulic system is 16 MPa.If this oil pressure exceeds more than the system rating pressure 16 MPa, the system will send out an alarm and set off the emergency brake.The program flow chart is presented in Figure 10.

Program Design of the Derrick and Driller Room System
The traveling block hook is present in the derrick, and it controls the traveling block hook in the control winch.In this system, photosensitive sensors are used to determine if the hook arrives at the specified location.The module is initialized, determine if the winch start button should be pressed, determine if the automatic button or the manual button should be pressed, and find out if the hook is rising or falling.The hook stops at the specified working location when the automatic button is pressed and when the hook arrives at the specified location and detects the photosensitive sensor signal.If the manual button is pressed, the driller will manually operate the height of the hook.The program flow chart is shown in Figure 11.
The regular inspection of the oil derrick and driller fatigue work reminders should be used in the time delay procedure.A driller mount guard button and an oil derrick check button are present.When the driller mount guard presses the mount guard button, the system starts to monitor the time to set off the alarm once the prescribed working hours are exceeded.Regular checks on the oil derrick are the same as those on the driller mount guard.The program flow chart is shown in Figure 12.

Application
The system was successfully conducted in the laboratory test and operation.The test result was perfect, and real-time acquisition and control of various parameters were successful.After the laboratory test, the monitoring system was also successfully applied to the corresponding function at the drilling scene.

Application of the Top Drive Monitoring System
The top drive monitoring system is successfully applied in well site of Sichuan, China.The system operation process is as follows: the corresponding sensor and the Programmable Logic Controller PLC were installed, the signal cable was connected, and the system was started.The PLC wiring diagram and the configuration of the monitor screen are presented in Figures 13 and 14, respectively.In Figure 13, a CPU and six controller modules are used.
Figure 14 shows the top drive real-time monitoring parameters.The analyzed parameters report forms and receive the drilling condition for a period of time.For example, the analyzed motor speed and temperature can explain the performance of the main motor, the different performances of drilling fluid, whether the motor power supply is stable or not, and the formation conditions.
Most importantly, these data can be used to determine the working conditions of the top drive and to send timely warnings for inspection maintenance to avoid drilling safety accidents.

Application
The system was successfully conducted in the laboratory test and operation.The test result was perfect, and real-time acquisition and control of various parameters were successful.After the laboratory test, the monitoring system was also successfully applied to the corresponding function at the drilling scene.

Application of the Top Drive Monitoring System
The top drive monitoring system is successfully applied in well site of Sichuan, China.The system operation process is as follows: the corresponding sensor and the Programmable Logic Controller PLC were installed, the signal cable was connected, and the system was started.The PLC wiring diagram and the configuration of the monitor screen are presented in Figures 13 and 14, respectively.In Figure 13, a CPU and six controller modules are used.
Figure 14 shows the top drive real-time monitoring parameters.The analyzed parameters report forms and receive the drilling condition for a period of time.For example, the analyzed motor speed and temperature can explain the performance of the main motor, the different performances of drilling fluid, whether the motor power supply is stable or not, and the formation conditions.
Most importantly, these data can be used to determine the working conditions of the top drive and to send timely warnings for inspection maintenance to avoid drilling safety accidents.

Application
The system was successfully conducted in the laboratory test and operation.The test result was perfect, and real-time acquisition and control of various parameters were successful.After the laboratory test, the monitoring system was also successfully applied to the corresponding function at the drilling scene.

Application of the Top Drive Monitoring System
The top drive monitoring system is successfully applied in well site of Sichuan, China.The system operation process is as follows: the corresponding sensor and the Programmable Logic Controller PLC were installed, the signal cable was connected, and the system was started.The PLC wiring diagram and the configuration of the monitor screen are presented in Figures 13 and 14, respectively.In Figure 13, a CPU and six controller modules are used.
Figure 14 shows the top drive real-time monitoring parameters.The analyzed parameters report forms and receive the drilling condition for a period of time.For example, the analyzed motor speed and temperature can explain the performance of the main motor, the different performances of drilling fluid, whether the motor power supply is stable or not, and the formation conditions.
Most importantly, these data can be used to determine the working conditions of the top drive and to send timely warnings for inspection maintenance to avoid drilling safety accidents.

Application of the Traveling Block Hook Monitoring System
The traveling block hook monitoring system was successfully applied in a well site in Sichuan, China.The traveling block hook significantly reduced the labor intensity of the drilling workers.In the drilling work site, the automatic button launched the hook to rise to the present level automatically, the hook reached the preset height accurately, and then worked the trip.Manual and automatic operations were compared with the time change.The hook hike motion curve is shown in Figure 14.
Figure 15 shows that automatic operation reached the default point faster and more smoothly than manual operation given the other uncontrollable factors in manual operation.

Application of the Traveling Block Hook Monitoring System
The traveling block hook monitoring system was successfully applied in a well site in Sichuan, China.The traveling block hook significantly reduced the labor intensity of the drilling workers.In the drilling work site, the automatic button launched the hook to rise to the present level automatically, the hook reached the preset height accurately, and then worked the trip.Manual and automatic operations were compared with the time change.The hook hike motion curve is shown in Figure 14.
Figure 15 shows that automatic operation reached the default point faster and more smoothly than manual operation given the other uncontrollable factors in manual operation.

Application of the Derrick and Driller Room Monitoring System
The derrick and driller room monitoring system was successfully applied in the well site in Sichuan, China.The scene monitoring system configuration screen is shown in Figure 16.The working time of the driller was no more than 4h, and the derrick was regularly checked for less than a month.
As shown in Figure 16, wind speed is safe for drilling work and the environment of driller room is comfortable for drillers.

Application of the Derrick and Driller Room Monitoring System
The derrick and driller room monitoring system was successfully applied in the well site in Sichuan, China.The scene monitoring system configuration screen is shown in Figure 16.The working time of the driller was no more than 4h, and the derrick was regularly checked for less than a month.
As shown in Figure 16, wind speed is safe for drilling work and the environment of driller room is comfortable for drillers.

Application of the Traveling Block Hook Monitoring System
The traveling block hook monitoring system was successfully applied in a well site in Sichuan, China.The traveling block hook significantly reduced the labor intensity of the drilling workers.In the drilling work site, the automatic button launched the hook to rise to the present level automatically, the hook reached the preset height accurately, and then worked the trip.Manual and automatic operations were compared with the time change.The hook hike motion curve is shown in Figure 14.
Figure 15 shows that automatic operation reached the default point faster and more smoothly than manual operation given the other uncontrollable factors in manual operation.

Application of the Derrick and Driller Room Monitoring System
The derrick and driller room monitoring system was successfully applied in the well site in Sichuan, China.The scene monitoring system configuration screen is shown in Figure 16.The working time of the driller was no more than 4h, and the derrick was regularly checked for less than a month.
As shown in Figure 16, wind speed is safe for drilling work and the environment of driller room is comfortable for drillers.

Figure 3 .
Figure 3. Parameters of top drive system.

Figure 3 .
Figure 3. Parameters of top drive system.

Figure 4 .
Figure 4. Parameters of traveling block hook.

Figure 4 .
Figure 4. Parameters of traveling block hook.

( 2 )
The controlled traveling block hook automatically runs to the designated location and initiates the emergency brakes once danger signals are detected.(3) The working time of the driller is calculated and controlled to avoid excessive fatigue.(4) Derrick check workers are reminded to regularly evaluate the working condition of the oil derrick.(5) Alarms are promptly sent out when danger signals are monitored.(6) History data, including storage and display history curves, are supervised and reports are generated.

Figure 5 .
Figure 5. Parameters of derrick and driller room.

( 2 )
The controlled traveling block hook automatically runs to the designated location and initiates the emergency brakes once danger signals are detected.(3) The working time of the driller is calculated and controlled to avoid excessive fatigue.(4) Derrick check workers are reminded to regularly evaluate the working condition of the oil derrick.(5) Alarms are promptly sent out when danger signals are monitored.(6) History data, including storage and display history curves, are supervised and reports are generated.

Figure 6 .
Figure 6.Monitoring configuration screen of top drive.

Figure 6 .
Figure 6.Monitoring configuration screen of top drive.

Figure 6
Figure 6 presents all the top drive monitoring parameters.The top drive is divided into several important components.Each component of the monitoring parameters is detailed in the annotation.The driller can be intuitive and detect the working situation of each part.4.1.2.Oil Derrick and Driller Control Room

Machines 2017, 5 , 19 8 of 15 Figure 6
Figure 6 presents all the top drive monitoring parameters.The top drive is divided into several important components.Each component of the monitoring parameters is detailed in the annotation.The driller can be intuitive and detect the working situation of each part.4.1.2.Oil Derrick and Driller Control Room

Figure 7 .
Figure 7. Monitoring configuration screen of derrick and driller room.

Figure 7 .
Figure 7. Monitoring configuration screen of derrick and driller room.

Machines 2017, 5 , 19 8 of 15 Figure 6
Figure 6 presents all the top drive monitoring parameters.The top drive is divided into several important components.Each component of the monitoring parameters is detailed in the annotation.The driller can be intuitive and detect the working situation of each part.4.1.2.Oil Derrick and Driller Control Room

Figure 7 .
Figure 7. Monitoring configuration screen of derrick and driller room.

Figure 9 .
Figure 9. Program flow chart of top drive.

Figure 10 .
Figure 10.Program flow chart of hydraulic system.

Figure 10 .
Figure 10.Program flow chart of hydraulic system.

Figure 12 .
Figure 12.Program flow chart of remind alarm.

Figure 12 .
Figure 12.Program flow chart of remind alarm.Figure 12. Program flow chart of remind alarm.

Figure 12 .
Figure 12.Program flow chart of remind alarm.Figure 12. Program flow chart of remind alarm.

Figure 14 .
Figure 14.Configuration monitor screen of top drive.

Figure 14 .
Figure 14.Configuration monitor screen of top drive.

Figure 14 .
Figure 14.Configuration monitor screen of top drive.

Figure 15 .
Figure 15.The hook hike motion curve of automatic and manual operation.

Figure 16 .
Figure 16.Configuration monitor screen of derrick and driller room.

Figure 15 .
Figure 15.The hook hike motion curve of automatic and manual operation.

Figure 15 .
Figure 15.The hook hike motion curve of automatic and manual operation.

Figure 16 .
Figure 16.Configuration monitor screen of derrick and driller room.Figure 16.Configuration monitor screen of derrick and driller room.

Figure 16 .
Figure 16.Configuration monitor screen of derrick and driller room.Figure 16.Configuration monitor screen of derrick and driller room.

Table 1 .
Design parameters of DQ-90 top drive.

Table 1 .
Design parameters of DQ-90 top drive.

Table 2 .
Parameters of type 'A' derrick.

Table 3 .
Maximum wind speed of derrick in different working states.

Table 2 .
Parameters of type 'A' derrick.

Table 3 .
Maximum wind speed of derrick in different working states.

Table 4 .
PLC module connection slot number and the convert relational.