Research Article | Open Access

Volume 2016 |Article ID 1965923 | https://doi.org/10.1155/2016/1965923

Naif B. Almutairi, Mohamed Zribi, "Fuzzy Controllers for a Gantry Crane System with Experimental Verifications", Mathematical Problems in Engineering, vol. 2016, Article ID 1965923, 17 pages, 2016. https://doi.org/10.1155/2016/1965923

# Fuzzy Controllers for a Gantry Crane System with Experimental Verifications

Revised26 Mar 2016
Accepted29 Mar 2016
Published26 Apr 2016

#### Abstract

The control problem of gantry cranes has attracted the attention of many researchers because of the various applications of these cranes in the industry. In this paper we propose two fuzzy controllers to control the position of the cart of a gantry crane while suppressing the swing angle of the payload. Firstly, we propose a dual PD fuzzy controller where the parameters of each PD controller change as the cart moves toward its desired position, while maintaining a small swing angle of the payload. This controller uses two fuzzy subsystems. Then, we propose a fuzzy controller which is based on heuristics. The rules of this controller are obtained taking into account the knowledge of an experienced crane operator. This controller is unique in that it uses only one fuzzy system to achieve the control objective. The validity of the designed controllers is tested through extensive MATLAB simulations as well as experimental results on a laboratory gantry crane apparatus. The simulation results as well as the experimental results indicate that the proposed fuzzy controllers work well. Moreover, the simulation and the experimental results demonstrate the robustness of the proposed control schemes against output disturbances as well as against uncertainty in some of the parameters of the crane.

#### 1. Introduction

Gantry cranes are used in many industrial applications. Generally, they are used in maintenance and in manufacturing applications because in these applications the efficiency and the downtime are very important economic factors.

In controlling a gantry crane, one has to ensure that the cart is properly positioned while minimizing the swings of the payload. Hence, the cart of the crane should move toward its destination as fast and as precise as possible while the swings of the payload should be kept as small as possible. However, the motion of the cart of the crane is always accompanied with swings of the payload. These swings can be dangerous and may cause damage or accidents. Moreover, the parameters of the crane and the payload are generally not known exactly; also external disturbances might act on the crane system. Therefore, it is necessary to develop controllers to properly control gantry cranes even when some of their parameters are not known exactly and/or when some disturbances are acting on crane.

A lot of research studies were completed on the control of gantry cranes . Also, the fuzzy control technique has shown successful results when applied to many real-life problems including gantry crane systems .

Fuzzy control systems are knowledge-based or rule-based systems. The heart of a fuzzy control system is the knowledge base which consists of the so-called fuzzy IF-THEN rules. A fuzzy IF-THEN rule is an IF-THEN statement in which some linguistic variables are characterized by mathematical functions called membership functions. A fuzzy controller is a control system based on analyzing analog signals using linguistic variables. These linguistic variables can take values in the range between zero and one .

Using fuzzy control, we can represent and analyze human expertise used to solve control problems. This is due to the approximation characteristics of artificial intelligent techniques such as fuzzy logic and neural networks. In recent years, there was a rapid growth in the design and the implementation of fuzzy logic control techniques in a wide range of applications, particularly applications related to engineering systems such as electromechanical systems , chaotic systems , and chemical reactor systems [9, 10]. In the following two paragraphs, we will review some of the research studies done on the different applications of fuzzy logic controllers to gantry cranes.

In , a fuzzy controller based on single input-rule modules for motion control of a gantry crane system is developed. In , an adaptive fuzzy sliding mode controller was employed to control a gantry crane system. A fuzzy logic-based robust feedback antisway control system applied on a gantry crane system was presented in . In , the authors proposed a hierarchical multiobjective fuzzy controller for a gantry crane system. The proposed controller consists of three components: a multiobjective optimization controller, an actuation signal modulator, and a fuzzy logic regulator; the linear model of the gantry crane was used in the design of this hierarchical fuzzy controller. A combination of the backstepping control technique with a fuzzy logic system was proposed in  to control the position of the cart of the gantry crane and to control the swing of the payload of the crane; two fuzzy systems were used: the first one is an online scheme while the second fuzzy system is an offline scheme. In , a PD controller with a fuzzy mode is used to control both the position tracking and the antiswing problems of a crane. A fuzzy PID antiswing controller is applied to the linear model of a gantry crane system in ; the proposed fuzzy system was used to tune the PID gains. Two antiswing controllers for the linear model of a gantry crane system were proposed in ; the first controller was a delayed feedback controller, while the second controller was a PD-type fuzzy controller. A fuzzy controller based on the Takagi-Sugeno fuzzy model of the gantry crane was proposed in , while another fuzzy controller based on an IF-THEN fuzzy model of a gantry crane system was proposed in . It is shown in  that using a fuzzy descriptor system instead of the traditional Takagi-Sugeno fuzzy system in modeling a gantry crane system resulted in a fewer number of fuzzy rules used to describe the system. On the other hand, the fuzzy controller proposed in  was based on the projection of the swing angle vectors of the gantry crane system on the two-dimensional plane and the remaining distance to the destination; the proposed method modifies the accelerating direction instead of decelerating the trolley during the motion. An antiswing fuzzy controller for a gantry crane system was proposed in ; this fuzzy controller consists of three components: a travel controller, a hoist controller, and an antiswing controller. The ranges of the input and output variables of the three fuzzy controllers were set using the inverse dynamics based on the system’s characteristics and the desired motion of the gantry crane.

A control scheme consisting of a trajectory following controller and a fuzzy controller was proposed in ; the trajectory following controller was used to control the position of the trolley while the fuzzy controller was used to suppress the swing vibration of the payload. Two fuzzy controllers were designed in ; the first controller was a displacement fuzzy controller while the second one was an antiswing fuzzy controller. An antiswing fuzzy controller based on the time-delayed feedback of the load swing angle was proposed in ; the fuzzy rules of the second controller were generated by mapping the performance of a time-delayed feedback controller. A fuzzy controller that mimics the operator behavior was proposed in ; the authors assumed that the crane dynamics consists of two decoupled subsystems so that the number of fuzzy rules is reduced. Another human knowledge-based antiswing fuzzy controller was proposed in . In addition, a control scheme applied to the gantry crane system and based on the so-called single input-rule modules was proposed in ; the proposed controller was designed using a dynamic fuzzy inference model. In addition, a fuzzy controller designed to control the motion in the three directions of the crane was proposed in ; a distance-speed reference curve for the control of the crane system was designed. A fuzzy controller applied to a gantry crane was proposed in ; the fuzzy controller was used with a swing-damped bang-bang motion profile based on the natural frequency of the payload of the crane.

This paper proposes two fuzzy controllers to control the position of the cart of a gantry crane while minimizing the swing angle of the payload. The first controller is a dual PD fuzzy controller which uses two fuzzy PD subsystems to achieve the position regulation and the swing suppression. The second controller is a fuzzy controller which uses only one fuzzy system to achieve the control objective. The simulation results as well as the experimental results indicate that the proposed two fuzzy controllers work well under different operating conditions.

The rest of the paper is organized as follows. The mathematical model of the gantry crane system is presented in Section 2. A dual PD fuzzy controller is proposed in Section 3; simulation results are presented to show the effectiveness of the proposed controller. A fuzzy controller which is based on heuristics is presented in Section 4; simulation results are also presented. Section 5 studies the robustness of the two proposed control schemes through extensive MATLAB/Simulink simulations. Experimental results of the proposed control schemes are presented and discussed in Section 6. Finally, some concluding remarks and possible future work are given in Section 7.

Sometimes, the arguments of a function will be omitted in the analysis when no confusion may arise.

#### 2. The Dynamic Model of the Gantry Crane System

A gantry crane system is shown in Figure 1. The system can be modeled as a cart with a mass moving on a one-dimensional track with a pendulum attached to it; a payload of mass is attached to the pendulum. The movement of the cart causes the pendulum to swing.

As illustrated in Figure 1, the positive rotation is defined to be counter-clockwise (CCW), when facing the cart. Also, the zero angle corresponds to a suspended pendulum which is vertical and pointing downwards. The positive direction of the displacement is to the right when facing the cart. In the figure, is the position of the cart, is the -coordinate position of the payload, is the -coordinate position of the payload, and are the masses of the cart and the payload, respectively, and is the length of the pendulum. The angle between the pendulum and its resting position is denoted by while the angular velocity of the payload is . Note that the force acting on the cart, , is given by , where is the velocity of the cart, and are constants which are functions of the parameters of the crane, and is the voltage applied to the servomotor driving the cart.

The nonlinear equations of motion of the gantry crane system are given in  as follows:where the constants and are such that

Note that the definitions of the parameters of the gantry crane and their numerical values are given in Table 1.

 Symbol Description Value Unit The armature resistance of the motor 2.6 The torque constant of the motor 0.00767 N⋅m/A The efficiency of the motor 100% Back EMF constant of the motor 0.00767 V⋅sec/rad Planetary gearbox ratio 3.7 Planetary gearbox efficiency 100% Mass of the cart 1.0731 Kg The viscous damping at motor pinion 5.4 N⋅m⋅sec/m The radius of the motor pinion m Mass of the payload 0.23 Kg The length of the pendulum 0.3302 m The moment of inertia of the pendulum Kg⋅m2 The viscous damping at pendulum axis 0.0024 N⋅m⋅sec/rad Gravitational constant 9.81 m/sec2

The objective of this paper is to design a fuzzy control scheme for the gantry crane such that the cart moves to a desired position as fast as possible while the swing of the payload is minimized.

#### 3. Design of Dual PD Fuzzy Controller

Motivated by the work done in , where a serial PD controller with a constant PD gains was designed, we propose a dual PD fuzzy controller with variable PD gains. In this control scheme, the gains are adjusted such that the objective of the control scheme is achieved. Recall that the control objective is to move the crane to a desired position while suppressing the swings of the payload of the crane.

##### 3.1. Controller Design

The proposed dual PD fuzzy controller consists of two fuzzy systems. The first fuzzy system is designed to tune the gains of the first PD controller which is used for regulating the position of the cart. The second fuzzy system is used to tune the gains of the second PD controller which is used for suppressing the swing of the payload during the movement of the crane. Recall that a PD controller can be written aswhere is the control signal and represents the error signal. The gain is the proportional gain constant and the gain is the derivative gain constant. For the proposed dual PD fuzzy controller, the proportional and derivative gains are tuned using fuzzy systems.

The proposed dual PD fuzzy controller for the crane system is depicted in Figure 2. For the first PD controller, define the error in the cart position to be , where is a constant representing the prespecified desired position of the cart. Then, the first PD controller is given bywhere and are the proportional gain and the derivative gain, respectively. These gains are adjusted using the first fuzzy system. The output is an intermediate variable representing the desired path of the swing angle of the payload during the motion of the cart towards the desired position. This variable will be used in computing the error signal of the second PD-type fuzzy controller. In the second PD controller, we define the error in the swing angle of the payload to be , where is the output of the first PD controller. Then, the second PD controller is given bywhere is the proportional gain and is the derivative gain. These gains are adjusted using the second fuzzy system. The output is the voltage applied to the servomotor driving the cart.

In the proposed control scheme, each of the two fuzzy systems is designed using the methodology proposed in . In this methodology, an online gain scheduling scheme of the PD gains is used. To do this, two different fuzzy rule bases were designed. The first fuzzy rule base is used to tune the proportional gain, while the second fuzzy rule base is used to tune the derivative gain.

In the first fuzzy system, the error in the cart position, which is limited to the range of , and its derivative, which is limited to the range of , are the input linguistic variables. The output linguistic variables for this fuzzy system are the gains and ; these gains are normalized so that they are limited to the range of . Then, the gains of the first PD fuzzy controller are given bywhere , , , and are the minimum and maximum values which bound the range of operation in each gain.

We use seven fuzzy sets (three for the negative portion, three for the positive portion, and the Zero fuzzy set) with their associated mathematical membership functions to cover the range of each input variable. The three fuzzy sets (or membership functions) used to describe the negative portion of each input linguistic variable range are denoted by Negative Big (NB), Negative Medium (NM), and Negative Small (NS). The Zero fuzzy set is denoted by (ZE). While the three fuzzy sets used to describe the positive portion of each range of the input linguistic variable are denoted by Positive Small (PS), Positive Medium (PM), and Positive Big (PB). In addition, two fuzzy sets are used to cover the range of each output variable. These two fuzzy sets are denoted by Small (S) and Big (B) .

All membership functions used in this fuzzy system are assumed to be triangular membership functions. The membership functions used to describe these linguistic variables are shown in Figure 3. In this figure, the values of , , , and are taken to be  (cm),  (cm),  (cm/sec), and  (cm/sec).

In the second fuzzy system, the error in the swing angle of the payload is limited to the range of , and its derivative is limited to the range of . The error and its derivative are the input linguistic variables. The output linguistic variables for this fuzzy system are the gains and ; these gains are normalized so that they are limited to the range of . Then, the gains of the second PD fuzzy controller are given bywhere , , , and are the minimum and maximum values which bound the range of operation in each gain.

The membership functions used to describe these linguistic variables are shown in Figure 4. In this figure, the values of , , , and are taken to be  (rad),  (rad),  (rad/sec), and  (rad/sec).

From the above input and output linguistic variables and the associated membership functions used to describe these variables, a total of 49 fuzzy rules were used in each fuzzy rule base. These fuzzy tuning rules are given in Tables 2 and 3.

 NB NM NS ZO PS PM PB NB B B B B B B B NM S B B B B B S NS S S B B B S S ZO S S S B S S S PS S S B B B S S PM S B B B B B S PB B B B B B B B
Note that when tuning , and when tuning .
 NB NM NS ZO PS PM PB NB S S S S S S S NM B B S S S B B NS B B B S B B B ZO B B B B B B B PS B B B S B B B PM B B S S S B B PB S S S S S S S
Note that when tuning , and when tuning .

We used the product inference engine, the singleton fuzzifier, and the center average defuzzifier, to combine the 49 rules in each fuzzy system .

##### 3.2. Simulation Results

The controller designed in this section was simulated using the MATLAB/Simulink© software. The system parameters used in these simulations are for the Quanser Gantry Crane apparatus  and they are given in Table 1. It should be mentioned that the voltage applied on the servomotor of the cart of the gantry crane varies from −20 V to +20 V. Hence, to obtain realistic results, the simulations are carried out using the following servomotor voltage constraint:

The initial conditions used in all simulations in this paper are assumed to be zero. To show the effectiveness of the proposed control scheme, the desired cart position, , takes three different set point values. First the desired position is set to 20 (cm), then it changes from 20 (cm) to −20 (cm), and finally it changes from −20 (cm) to 0 (cm). The desired trajectory versus time is depicted in Figure 5.

In the following, the simulation results are presented and discussed. The cart position versus time is shown in Figure 6(a).

It can be seen from Figure 6(a) that the cart position achieved the desired values in a reasonable time. The swing angle of the payload is shown in Figure 6(b). This figure confirms that the desired values of the cart positions are achieved with small swing angles. The input voltage applied on the servomotor is shown in Figure 6(c). This figure shows that the input voltage is bounded such that  (volt). Moreover, the control parameters of the serial PD fuzzy controllers are shown in Figure 7. Note that the PD parameters limits are ,  (rad/cm), ,  (rad·sec/cm), ,  (volt/cm), , and (volt·sec/cm).

To show the effectiveness of the proposed control scheme, the settling times as well as the maximum percentage overshoots of the cart position trajectories for each of the different reference positions are computed. In addition, the maximum swing angles associated with each reference position are computed. The results are summarized in Table 4.

 Desired position, , in (cm) Settling time for in (sec) 3.36 3.19 3.36 Maximum% overshoot for 0% 0% 0% Maximum swing angle in (deg) 3.35 7.22 3.35

The results in Table 4 indicate that the settling times for each of the three cases is less than 3.4 (sec) and the maximum swing angle is less than 7.5°. The responses of the three cases did not display any overshoot. Also, it should be mentioned that the control input signal is within an acceptable range.

Therefore, it can be concluded from the simulation results that controlled gantry crane achieved the desired objective, that is, moving the cart of the crane to the desired position while maintaining a small swing angle.

#### 4. Design of a Heuristic Fuzzy Controller

In the previous section, we proposed a fuzzy controller which consists of two fuzzy systems to achieve the desired control objective. In this section, we will design a fuzzy controller which consists of one fuzzy system to achieve the desired control objective. This controller is called heuristic fuzzy controller; it is based on developing heuristic fuzzy rules (in terms of fuzzy IF-THEN rules) obtained from an expert in controlling gantry cranes.

##### 4.1. Controller Design

The heuristic approach is a conventional method to design a fuzzy controller for a given system. This approach needs a good understanding of the physics of the system and the knowledge of an experienced operator in order to construct the fuzzy rules that describe an expert operator action. The heuristic approach consists of the following four steps.(1)Analyze the real system and choose the states and control variables.(2)Derive fuzzy IF-THEN rules that relate the state variables to the control variables.(3)Combine these derived fuzzy IF-THEN rules with a fuzzy system.(4)Test the performance of the closed-loop system when using the developed fuzzy system as the controller.

In order to develop a fuzzy controller based on heuristic rules for the gantry crane system, the following linguistic variables and their associated fuzzy sets are used to describe the fuzzy controller.

The first linguistic input variable for this fuzzy controller is the error in the cart position: namely, . To describe this variable, three fuzzy sets used to describe this variable are used to cover the range of this variable in the interval . The fuzzy sets used are Negative (NE), Zero (ZE), and Positive (PO). The membership functions used to describe this linguistic variable with  (cm) and  (cm) are shown in Figure 8(a). The second linguistic input variable is the velocity of the cart, namely, . This variable is limited within a range of . Again, three fuzzy sets are used to describe this variable: Negative (NE), Zero, (ZE) and Positive (PO). The membership functions are shown in Figure 8(b) with  (cm/sec) and  (cm/sec). The third linguistic input variable is the swing angle of the pendulum, . This variable is limited within a range of . Again we used three fuzzy sets, namely, Negative (NE), Zero (ZE), and Positive (PO), to cover its range. The membership functions used to describe this linguistic variable are shown in Figure 8(c) with and . The fourth linguistic input variable is the angular velocity of the payload, . This variable is within a range of ; the fuzzy sets used to describe this variable are Negative (NE), Zero (ZE), and Positive (PO). The membership functions used to describe this linguistic variable with  (deg/sec) and  (deg/sec) are shown in Figure 8(d).

The linguistic output variable for this fuzzy controller is the voltage applied to the servomotor, ; it has a range of . We use nine fuzzy sets to cover this range. The fuzzy sets used to cover the negative portion of this range are denoted by Negative High (NH), Negative Big (NB), Negative Medium (NM), and Negative Small (NS). The Zero fuzzy set is (ZE), while the four fuzzy sets used to cover the positive portion of the range are Positive Small (PS), Positive Medium (PM), Positive Big (PB), and Positive High (PH). The membership functions used to describe the linguistic output variable are shown in Figure 8(e) with (volt) and (volt). All membership functions used in this control scheme are assumed to be Gaussian functions .

From the above input and output linguistic variables and the associated fuzzy sets used to describe these variables, a total of 81 fuzzy rules were derived based on heuristics and a deep understanding of the dynamics and the control of the gantry crane system. The objective of these fuzzy heuristic rules is to control the position of the cart while suppressing the swing angle of the payload. The generated 81 fuzzy rules are listed in the Appendix. To combine these rules, we have used a product inference engine, a singleton fuzzifier, and a center average defuzzifier.

##### 4.2. Simulation Results

The simulation results when using the proposed heuristic fuzzy controller are presented and discussed in this section. The simulations are performed using the zero initial conditions and the desired cart position profile depicted in Figure 5. The actual and desired cart positions when using the heuristic fuzzy controller are shown in Figure 9(a), while the swing angle of the payload is shown in Figure 9(b). The input voltage applied to the servomotor of the cart is shown in Figure 9(c).

It can be seen from Figure 9 that the cart position reached its desired values in a reasonable time with small swing angles. The settling times as well as the maximum percentage overshoots of the cart position trajectories for each of the different reference positions are computed. In addition, the maximum swing angles associated with each reference position are computed. These results are summarized in Table 5.

 Desired position, , in (cm) Settling time for in (sec) 2.34 2.11 2.33 Maximum% overshoot for 0% 0% 0% Maximum swing angle in (deg) 3.56 6.23 3.56

The summary of the results in Table 5 indicates that the settling times for each of the three cases are less than 2.5 (sec) and the maximum swing angle is less than 6.5°. The responses of the three cases did not display any overshoot. Moreover, it is noted that the control input signal is within an acceptable range. Therefore, it can be concluded that the proposed heuristic fuzzy controller when applied to the gantry crane system works well.

#### 5. Robustness Studies

In this section we will present more simulation results of the performances of the controlled gantry crane system using the two proposed fuzzy control schemes. These results are given to investigate the robustness of the proposed controllers when an output step disturbance acts on the cart position. In addition, we will investigate the performance of the controlled system when some of the parameters of the gantry crane are not known exactly.

##### 5.1. Output Step Disturbance Rejection

A step disturbance of magnitude 5 (cm) is applied at  (sec) to the gantry crane when the crane is at rest position (i.e., when the crane is at zero cart position and at zero swing angle). The controlled gantry crane performance when using the dual PD fuzzy controller is shown in Figure 10. The actual position versus time is shown in Figure 10(a); the swing angle versus time is depicted in Figure 10(b). The motor voltage versus time is shown in Figure 10(c).

The simulation performance when using the heuristic fuzzy controller is shown in Figure 11. The actual position versus time is shown in Figure 11(a); the swing angle versus time is depicted in Figure 11(b). The motor voltage versus time is shown in Figure 11(c).

Hence, it can be concluded that both control schemes were able to reject a step output disturbance.

##### 5.2. Uncertainty in the Parameters of the Gantry Crane

In general, the parameters of the gantry crane system are not known exactly. For example, the gantry crane carries payloads of different weights and volumes. To investigate the robustness of the proposed control schemes, the controlled gantry crane system is simulated under the following changes of the parameters:(i)The value of the gantry crane cart mass, , is replaced by 10 times of its nominal value.(ii)The value of the payload mass, , is replaced by 10 times of its nominal value.(iii)The viscous damping coefficient at the motor pinion, , is decreased by 10% of its nominal value.

It is worth mentioning that the parameters of the controller were maintained the same as in the nominal case. The simulation results when using the dual PD fuzzy controller are shown in Figure 12, while the simulation results when using the heuristic fuzzy controller are depicted in Figure 13. In these simulations, a desired cart position of magnitude 20 (cm) is used.

The cart positions versus time when using the dual PD fuzzy controller in the absence of uncertainties (continuous line) and in the presence of uncertainties (dashed line) are shown in Figure 12(a). The swing angles versus time in the absence of uncertainties (continuous line) and in the presence of uncertainties (dashed line) are shown in Figure 12(b). The input voltages versus time in the absence of uncertainties (continuous line) and in the presence of uncertainties (dashed line) are shown in Figure 12(c).

Figure 13(a) shows the cart positions versus time when using the heuristic fuzzy controller in the absence of uncertainties (continuous line) and in the presence of uncertainties (dashed line). Figure 13(b) shows the swing angles versus time; Figure 13(c) depicts the input voltages.

It can be seen from Figures 12 and 13 that both control schemes work well and that the performances of the closed-loop system are acceptable even when uncertainties are present in the system. Also it is clear that the proposed dual PD fuzzy controller gave better results. The performances of the system when controlled using the PD-type fuzzy controller in the presence of uncertainties are similar to its performance in the absence of uncertainties.

#### 6. Experimental Results

The controllers designed in Sections 3 and 4 were implemented on a gantry crane apparatus using the MATLAB/Simulink software. A dSPACE 1104 card is used for the implementation purposes. The experimental setup of the gantry crane apparatus is shown in Figure 14.

The experimental setup consists of a pendulum mounted on a cart which is free to move along the cart’s axis of motion. The cart is made of solid aluminum and it is driven by a rack and pinion mechanism using a DC motor. The cart slides along a stainless steel shaft using linear bearings. The cart position is measured using a potentiometer coupled to the rack via a pinion, while the swing angle of the pendulum is measured using another potentiometer coupled to the pendulum via an additional pinion. In addition, the velocity of the cart and the angular velocity of the payload are computed by differentiating the cart displacement and the swing angle of the payload, respectively. This was done using the differentiation Simulink block.

In all experiments, we used the desired cart position profile depicted in Figure 5.

##### 6.1. Experimental Results of the Dual PD Fuzzy Controller

The experimental results are shown in Figures 15 and 16. The trajectory of the cart position versus time is shown in Figure 15(a) while the swing angle trajectory versus time of the payload is shown in Figure 15(b). The applied voltage signal versus time to the servomotor of the gantry crane is shown in Figure 15(c). The trajectories of the parameters of the dual PD controller are shown in Figure 16.

Therefore, the experimental results verify that the proposed dual PD fuzzy controller works well. The control objective of moving the gantry crane smoothly to its desired values while having minimal swing angles of the payload is achieved.

##### 6.2. Experimental Results of the Heuristic Fuzzy Controller

Figure 17 shows the experimental results of the cart position, the swing angle, and the voltage applied to the servomotor versus time. These figures illustrate that the proposed heuristic fuzzy controller performed very well and that the crane moved smoothly to the desired positions while maintaining the swing angles of the payload very small.

The computer simulation results in Sections 3.2 and 4.2 are compared. These results are summarized in Tables 6 and 7.

 ⁢Desired position, , in (cm) Settling time for in (sec) Simulation 3.36 3.19 3.36 Experimental 4.50 7.30 6.30 Max.% overshoot for Simulation 0% 0% 0% Experimental 0% 0% 5% Max. swing angle in (deg) Simulation 3.35 7.22 3.35 Experimental 1 2 1
 ⁢Desired position, , in (cm) Settling time for in (sec) Simulation 2.34 2.11 2.33 Experimental 3.10 5.20 2.80 Max.% overshoot for Simulation 0% 0% 0% Experimental 0% 0% 0% Max. swing angle in (deg) Simulation 3.56 6.23 3.56 Experimental 1 1 2

The results in Tables 6 and 7 indicate that the experimental results are close to the simulation results. However, there are some differences between them. The discrepancies between the simulation and experimental results could be attributed to several factors such as modeling errors (friction is not included in the mathematical model) and the uncertainties in the parameters of the gantry crane system. Moreover, the sensors used to measure the positions and velocities are not very sophisticated and hence some errors in the measurements are expected.

##### 6.3. Robustness to Output Disturbance

To verify experimentally that the proposed fuzzy controllers are able to reject a step disturbance, we performed the following test on the gantry crane apparatus. First, the crane is at rest, and then a step disturbance of magnitude 5 (cm) is applied. The results are shown in Figure 18.

The figure clearly shows that both proposed fuzzy controllers are robust against a step output disturbance. This confirms the simulation results shown in Section 5.1. This result illustrates the importance of using fuzzy control schemes in industrial applications.

Thus, the experimental results as well as the simulation results show that the proposed fuzzy control schemes achieved the control objective of the gantry crane control. This is an expected result since fuzzy controllers generally have successful results when applied to industrial applications .

#### 7. Conclusion

In this paper, we proposed two fuzzy controllers to control the motion of a gantry crane system while suppressing the swings of the payloads. The first proposed controller consists of two PD-type fuzzy subsystems. The first fuzzy subsystem is used to control the motion of the cart of the gantry crane, while the second fuzzy subsystem is used to suppress the swing angle of the payload during the motion of the crane. The second proposed fuzzy controller was designed based on heuristic fuzzy rules collected by observing an expert crane operator moving the payload from one position to another while suppressing the swing angle of the payload. This controller uses a single fuzzy system to achieve the control objective. The controlled gantry crane system with the proposed fuzzy controllers was simulated using the MATLAB/Simulink software. Also some robustness studies of the proposed schemes were presented to show that the controllers have some robustness features. Moreover, the proposed controllers were implemented on a test-bed apparatus. The simulation results as well as the experimental results confirm that the proposed controllers work very well.

Future research directions include the design of fuzzy sliding mode controllers and comparing them with conventional sliding mode controllers; the results will be verified using computational simulations as well as experimental implementations. Moreover, fuzzy observers will be designed to estimate some of the states of the crane especially the velocity of the cart and the angular velocity of the payload. Finally, the use of fuzzy input observers for gantry crane will be investigated.

#### Appendix

See Table 8.

 Fuzzy rule number Variables 1 NE NE NE NE ZE 2 NE ZE NE NE NS 3 NE PO NE NE NM 4 NE NE NE ZE ZE 5 NE ZE NE ZE NS 6 NE PO NE ZE NM 7 NE NE NE PO ZE 8 NE ZE NE PO NS 9 NE PO NE PO NM 10 ZE NE NE NE NM 11 ZE ZE NE NE NB 12 ZE PO NE NE NH 13 ZE NE NE ZE NS 14 ZE ZE NE ZE NM 15 ZE PO NE ZE NB 16 ZE NE NE PO ZE 17 ZE ZE NE PO NS 18 ZE PO NE PO NM 19 PO NE NE NE NM 20 PO ZE NE NE NB 21 PO PO NE NE NH 22 PO NE NE ZE NM 23 PO ZE NE ZE NB 24 PO PO NE ZE NH 25 PO NE NE PO NM 26 PO ZE NE PO NB 27 PO PO NE PO NH 28 NE NE ZE NE PS 29 NE ZE ZE NE ZE 30 NE PO ZE NE NS 31 NE NE ZE ZE PM 32 NE ZE ZE ZE PS 33 NE PO ZE ZE ZE 34 NE NE ZE PO PB 35 NE ZE ZE PO PM 36 NE PO ZE PO PS 37 ZE NE ZE NE ZE 38 ZE ZE ZE NE NS 39 ZE PO ZE NE NM 40 ZE NE ZE ZE PS 41 ZE ZE ZE ZE ZE 42 ZE PO ZE ZE NS 43 ZE NE ZE PO PM 44 ZE ZE ZE PO PS 45 ZE PO ZE PO ZE 46 PO NE ZE NE NS 47 PO ZE ZE NE NM 48 PO PO ZE NE NB 49 PO NE ZE ZE ZE 50 PO ZE ZE ZE NS 51 PO PO ZE ZE NM 52 PO NE ZE PO PS 53 PO ZE ZE PO ZE 54 PO PO ZE PO NS 55 NE NE PO NE PH 56 NE ZE PO NE PB 57 NE PO PO NE PM 58 NE NE PO ZE PH 59 NE ZE PO ZE PB 60 NE PO PO ZE PM 61 NE NE PO PO PH 62 NE ZE PO PO PB 63 NE PO PO PO PM 64 ZE NE PO NE PM 65 ZE ZE PO NE PS 66 ZE PO PO NE ZE 67 ZE NE PO ZE PB 68 ZE ZE PO ZE PM 69 ZE PO PO ZE PS 70 ZE NE PO PO PH 71 ZE ZE PO PO PB 72 ZE PO PO PO PM 73 PO NE PO NE PM 74 PO ZE PO NE PS 75 PO PO PO NE ZE 76 PO NE PO ZE PM 77 PO ZE PO ZE PS 78 PO PO PO ZE ZE 79 PO NE PO PO PM 80 PO ZE PO PO PS 81 PO PO PO PO ZE

#### Competing Interests

The authors declare that they have no competing interests.

#### Acknowledgments

This research was supported and funded by the Research Sector, Kuwait University, under Grant no. [EE01/14].

1. M. A. Karkoub and M. Zribi, “Robust control schemes for an overhead crane,” Journal of Vibration and Control, vol. 7, no. 3, pp. 395–416, 2001. View at: Publisher Site | Google Scholar
2. M. A. Karkoub and M. Zribi, “Modelling and energy based nonlinear control of crane lifters,” IEE Proceedings—Control Theory and Applications, vol. 149, no. 3, pp. 209–216, 2002. View at: Publisher Site | Google Scholar
3. M. A. Karkoub and M. Zribi, “Modelling and non-linear discontinuous feedback control of crane lifter systems,” Proceedings of the Institution of Mechanical Engineers. Part I: Journal of Systems and Control Engineering, vol. 216, no. 2, pp. 157–167, 2002. View at: Publisher Site | Google Scholar
4. N. B. Almutairi and M. Zribi, “Sliding mode control of a three-dimensional overhead crane,” Journal of Vibration and Control, vol. 15, no. 11, pp. 1679–1730, 2009.
5. I. S. Shaw, Fuzzy Control of Industrial Systems: Theory and Applications, Springer, Berlin, Germany, 2013. View at: MathSciNet
6. G. Chen and T. T. Pham, Introduction to Fuzzy Systems, Chapman & Hall/CRC, Boca Raton, Fla, USA, 2006.
7. Y. Li, S. Tong, Y. Liu, and T. Li, “Adaptive fuzzy robust output feedback control of nonlinear systems with unknown dead zones based on a small-gain approach,” IEEE Transactions on Fuzzy Systems, vol. 22, no. 1, pp. 164–176, 2014. View at: Publisher Site | Google Scholar
8. Y. Gao and Y.-J. Liu, “Adaptive fuzzy optimal control using direct heuristic dynamic programming for chaotic discrete-time system,” Journal of Vibration and Control, vol. 22, no. 2, pp. 595–603, 2016. View at: Publisher Site | Google Scholar | MathSciNet
9. Y. J. Liu, Y. Gao, S. Tong, and Y. Li, “Fuzzy approximation-based adaptive backstepping optimal control for a class of nonlinear discrete-time systems with dead-zone,” IEEE Transactions on Fuzzy Systems, vol. 24, no. 1, pp. 16–28, 2016. View at: Publisher Site | Google Scholar
10. Y.-J. Liu and S. Tong, “Adaptive fuzzy control for a class of unknown nonlinear dynamical systems,” Fuzzy Sets and Systems, vol. 263, pp. 49–70, 2015. View at: Publisher Site | Google Scholar | MathSciNet
11. D. Qian, S. Tong, and S. Lee, “Fuzzy-Logic-based control of payloads subjected to double-pendulum motion in overhead cranes,” Automation in Construction, vol. 65, pp. 133–143, 2016. View at: Publisher Site | Google Scholar
12. S. Pezeshki, M. A. Badamchizadeh, A. R. Ghiasi, and S. Ghaemi, “Control of overhead crane system using adaptive model-free and adaptive fuzzy sliding mode controllers,” Journal of Control, Automation and Electrical Systems, vol. 26, no. 1, pp. 1–15, 2014. View at: Publisher Site | Google Scholar
13. J. Smoczek, “Fuzzy crane control with sensorless payload deflection feedback for vibration reduction,” Mechanical Systems and Signal Processing, vol. 46, no. 1, pp. 70–81, 2014. View at: Publisher Site | Google Scholar
14. H.-Y. Zhang, J. Wang, and G.-D. Lu, “Hierarchical fuzzy-tuned multiobjective optimization control for gantry cranes,” Proceedings of the Institution of Mechanical Engineers, Part C, vol. 228, no. 7, pp. 1119–1131, 2014. View at: Publisher Site | Google Scholar
15. A. Saedian, M. Adeli, H. Zarabadipour, and M. A. Shoorehdeli, “Hybrid control for an overhead crane,” International Journal of Physical Sciences, vol. 7, no. 14, pp. 2220–2224, 2012. View at: Google Scholar
16. W. Yu, M. A. Moreno-Armendariz, and F. O. Rodriguez, “Stable adaptive compensation with fuzzy CMAC for an overhead crane,” Information Sciences, vol. 181, no. 21, pp. 4895–4907, 2011. View at: Publisher Site | Google Scholar | MathSciNet
17. M. I. Solihin, Wahyudi, and A. Legowo, “Fuzzy-tuned PID anti-swing control of automatic gantry crane,” Journal of Vibration and Control, vol. 16, no. 1, pp. 127–145, 2010. View at: Publisher Site | Google Scholar
18. M. A. Ahmad, “Active sway suppression techniques of a gantry crane system,” European Journal of Scientific Research, vol. 27, no. 3, pp. 322–333, 2009. View at: Google Scholar
19. J. Smoczek and J. Szpytko, “A mechatronics approach in intelligent control systems of the overhead traveling cranes prototyping,” Information Technology and Control, vol. 37, no. 2, pp. 154–158, 2008. View at: Google Scholar
20. Y.-J. Chen, W.-J. Wang, and C.-L. Chang, “Guaranteed cost control for an overhead crane with practical constraints: fuzzy descriptor system approach,” Engineering Applications of Artificial Intelligence, vol. 22, no. 4-5, pp. 639–645, 2009. View at: Publisher Site | Google Scholar
21. C.-Y. Chang and K.-H. Chiang, “Intelligent fuzzy accelerated method for the nonlinear 3-D crane control,” Expert Systems with Applications, vol. 36, no. 3, pp. 5750–5752, 2009. View at: Publisher Site | Google Scholar
22. M. B. Trabia, J. M. Renno, and K. A. F. Moustafa, “Generalized design of an anti-swing fuzzy logic controller for an overhead crane with hoist,” Journal of Vibration and Control, vol. 14, no. 3, pp. 319–346, 2008. View at: Publisher Site | Google Scholar
23. Wahyudi, J. Jalani, R. Muhida, and M. J. E. Salami, “Control strategy for automatic gantry crane systems: a practical and intelligent approach,” International Journal of Advanced Robotic Systems, vol. 4, no. 4, pp. 447–456, 2007. View at: Google Scholar
24. M. T. Hayajneh, S. M. Radaideh, and I. A. Smadi, “Fuzzy logic controller for overhead cranes,” International Journal for Computer-Aided Engineering and Software, vol. 23, no. 1, pp. 84–98, 2006. View at: Publisher Site | Google Scholar
25. H. M. Omar and A. H. Nayfeh, “Anti-swing control of gantry and tower cranes using fuzzy and time-delayed feedback with friction compensation,” Shock and Vibration, vol. 12, no. 2, pp. 73–89, 2005. View at: Publisher Site | Google Scholar
26. F. Omar, F. Karray, O. Basir, and L. Yu, “Autonomous overhead crane system using a fuzzy logic controller,” Journal of Vibration and Control, vol. 10, no. 9, pp. 1255–1270, 2004. View at: Publisher Site | Google Scholar
27. T.-Y. Lee and S.-R. Lee, “Anti-sway and position 3D control of the nonlinear crane system using fuzzy algorithm,” International Journal of the Korean Society of Precision Engineering, vol. 3, pp. 66–75, 2002. View at: Google Scholar
28. J. Yi, N. Yubazaki, and K. Hirota, “Anti-swing and positioning control of overhead traveling crane,” Information Sciences, vol. 155, no. 1-2, pp. 19–42, 2003. View at: Publisher Site | Google Scholar
29. C. Li and C.-Y. Lee, “Fuzzy motion control of an auto-warehousing crane system,” IEEE Transactions on Industrial Electronics, vol. 48, no. 5, pp. 983–994, 2001. View at: Publisher Site | Google Scholar
30. M. J. Nalley and M. B. Trabia, “Control of overhead cranes using a fuzzy logic controller,” Journal of Intelligent and Fuzzy Systems, vol. 8, no. 1, pp. 1–18, 2000. View at: Google Scholar
31. Quanser, “Linear experiment #4: pole placement of single pendulum gantry (SPG),” in Single Pendulum Gantry Control Laboratory—Student Handout, Quanser, 2003. View at: Google Scholar
32. S. Galvan-Colmenares, M. A. Moreno-Armendáriz, J. de Jesús Rubio, F. Ortíz-Rodriguez, W. Yu, and C. F. Aguilar-Ibáñez, “Dual PD control regulation with nonlinear compensation for a ball and plate system,” Mathematical Problems in Engineering, vol. 2014, Article ID 894209, 10 pages, 2014. View at: Publisher Site | Google Scholar | MathSciNet
33. Z.-Y. Zhao, M. Tomizuka, and S. Isaka, “Fuzzy gain scheduling of PID controllers,” IEEE Transactions on Systems, Man and Cybernetics, vol. 23, no. 5, pp. 1392–1398, 1993. View at: Publisher Site | Google Scholar
34. L.-X. Wang, A Course in Fuzzy Systems and Control, Prentice Hall, Upper Saddle River, NJ, USA, 1997.

#### More related articles

We are committed to sharing findings related to COVID-19 as quickly as possible. We will be providing unlimited waivers of publication charges for accepted research articles as well as case reports and case series related to COVID-19. Review articles are excluded from this waiver policy. Sign up here as a reviewer to help fast-track new submissions.