1. Introduction
Crane systems greatly influence transport, as they are used to load and unload ship containers in the port. The time of loading and unloading of the containers significantly impacts the waiting time of the ships in the port, which depends on the speed of the crane automation system. The tasks imposed on this automation system are transferring cargo from the start to the desired location within a minimum time and maintaining system stability, achieved by maintaining the cargo sway within safe limits.
The cargo transfer includes lifting and lowering the cargo, positioning the cargo, checking the space between adjacent containers, transferring the cargo from the start to the target location, and accelerating and decelerating the cargo. The number of cargo transfers per hour defines the crane speed. The ships’ waiting time can be decreased by increasing the cranes at the terminal or the crane speed.
An increased crane speed negatively affects its stability because it introduces cargo sway. A relevant control system must be installed to achieve fast transfer and eliminate the introduced cargo sway to increase the crane’s speed.
The crane system control methods [
1] used by the automation system can be divided into open-loop [
2,
3], closed-loop [
4,
5,
6,
7,
8], and hybrid control, which use a combination of open- and closed-loop control [
9,
10,
11,
12,
13,
14] and tuned mass-damper [
15,
16] for vibration suppression of structures [
17,
18]. Input shaping is mainly used for open-loop control.
Zhang, Y., and Li, M. [
7] propose a scheme for fast point-to-point transportation of a portal crane, focusing on coupled luffing and rotation motions. They use a Bessel curve to design the transportation trajectory and implement a feedforward controller to guide the crane’s movement. A feedback controller is also employed to stabilize motion and minimize swinging during operation.
A Composite Trajectory Tracking control is proposed by Nguyen N. P. et al. [
8] to improve crane precision and robustness. It utilizes feedback linearization combined with a generalized variable gain super-twisting sliding mode algorithm to manage disturbances and maintain continuous control.
The nonlinear controller that Wang N. et al. [
19] propose is designed using the disturbance decoupling method. This controller addresses the disturbance problem without linearizing the crane model. Young’s inequality is used to handle disturbance terms in the tower crane system. Experimental validation is given.
Tang W. et al. [
6] present an adaptive PID control strategy to improve overhead cranes’ positioning and anti-swing capabilities. The adaptive mechanism is achieved by a neural network-based controller and a seagull optimization algorithm to change parameters and initial weights effectively.
A new ADRC-based control method is achieved in [
20] by Wang, S. et al. to reduce payload swing in 3D overhead cranes during hoisting and lowering operations, improving nonlinear tracking differentiators and using a nonlinear extended state observer to estimate disturbances in the system; all of these were verified only by the simulation.
A simulation of an open-loop input-shaper controller to control the swing of an overhead crane’s payload is presented in [
2] by Awi, A. et al. The study uses MATLAB/Simulink to test several input shaping techniques and evaluate their performance for different payload masses. The ZVDDD controller demonstrated the most significant reduction in payload swing, offering a 91% improvement in both cases, enhancing crane efficiency and safety.
A disturbance–observer-based control approach for overhead crane systems, considering output feedback, input saturation, double-pendulum dynamics, and uncertainties, is developed by Lei, M in the paper [
14], It incorporates a disturbance observer, virtual position signal, and Lyapunov function to enhance controller performance and stability. Simulations confirm the approach’s effectiveness and robustness, and theoretical analysis proves the system’s state convergence.
In the paper [
21], Zhang, Q. et al. propose an active wave compensation strategy for offshore crane ships, which addresses the challenges of hysteresis and nonlinearity in the compensation platform. To enhance the stability and accuracy of crane operations under wave-induced motion, the method combines PI modelling, backstepping control, and sliding-mode control.
Guo, H. et al. [
22] propose a multi-variable state-constrained controller to address control challenges in tower cranes with varying cable lengths. It introduces auxiliary terms to manage actuated and underactuated variables, which ensures precise cargo positioning and suppressing swing. The feasibility and robustness of the method and operational efficiency are validated by a simulation.
A sliding-mode controller to stabilize a gantry crane system and reject external disturbances during transportation, proposed by Zhang, J. et al. [
23], was tested within the simulation. Its effectiveness is proven by semigroup theory and asymptotic stability analysis using the Krasovskii–LaSalle principle.
In this paper [
24], Xia J. et al. give an amplitude-saturated nonlinear output feedback controller for five-degree-of-freedom (5-DOF) underactuated tower cranes, addressing challenges such as lack of velocity measurement and variable rope length. It aims to improve crane safety and efficiency by ensuring asymptotic stability at the target position, even without velocity feedback. The system’s stability is proven using Lyapunov’s theorem and LaSalle’s invariance principle, and the effectiveness of the proposed control method is experimentally demonstrated.
A time-optimal trajectory planning method for the double-pendulum bridge crane system, addressing the complexities that arise when the load volume or hook weight is significant, is given in [
25] by Zhong, K and Qian, Y. Their approach transforms the system’s kinematic model and then converts the optimization problem into a nonlinear programming problem, considering constraints like swing angles, trolley speed, and acceleration limits. The time-optimal trajectory planning method provides effective control performance confirmed by a simulation.
For 5-DOF tower crane systems, a controller that does not rely on velocity signals, addressing key issues like crane swing and vibration, is proposed by Zhang, M. et al. [
26]. The controller employs an adaptive output feedback method with online gravity compensation, overcoming challenges such as velocity unavailability, noise amplification, and steady-state error employed by their controller.
In their paper, Jin, X. and Weimin, X. [
27] propose a model-free control method for multi-lift overhead cranes, addressing inaccurate modeling and system uncertainty. An iterative learning, a time-varying sliding-mode surface, and adaptive super-twisting are used to improve system convergence, robustness, and performance. Lyapunov stability analysis confirms the system’s stability, and using simulation results, the effectiveness of their synchronization control scheme is verified.
A nonlinear optimal control method for boom cranes mounted on vessels, utilizing Taylor series expansion for linearization, is given by Rigatos, G. [
28]. An H-infinity feedback controller is designed, with feedback gains computed using an algebraic Riccati equation at each step. The control approach ensures fast and accurate tracking, with stability proven through Lyapunov analysis.
A nonlinear energy-based controller and Lyapunov-based MPC for shipboard boom cranes addresses state constraints and ship roll influences in the paper [
29] by Cao, Yuchi and Li, Tieshan. Barrier Lyapunov functions (BLFs) and a contractive constraint are introduced to improve control performance and ensure stability in the Lyapunov-based MPC. Theoretical analysis guarantees asymptotic stability, and simulation results validate the improved performance of the Lyapunov-based MPC over the energy-based controller.
The importance of using the anti-sway system is given by a human factor study conducted by Martin, Iain A. and Irani, Rishad A. in [
30] where participants showed up to 49.1% improvement in tracking desired payload targets when using the anti-sway system in a virtual-reality simulator. It provided motion compensation in two coordinate frames. This paper also emphasizes the importance of an anti-swing algorithm in the crane’s control systems.
Hybrid configurations of input-shaping control (ISC) and fuzzy-logic control (FLC) for tower crane systems to improve positioning and anti-swing control were explored by Alhassan, A.B. et al. in [
31]. Three configurations of ISC + FLC were tested, and the results showed a 150% improvement in ISC response and a 72% reduction in oscillation. Compared to full-state feedback controllers, the hybrid ISC + FLC control method is more cost-effective and computationally efficient, using minimal feedback, which is position only.
A fault-tolerant control method for tower cranes is presented by Xia, Jiyu in [
32] using an adaptive backstepping technique, overcoming the need for redundant actuators. The fixed-time convergence optimized backstepping controller ensures smooth operation and updates fault parameters in case of sudden faults. Comparison tests demonstrate that the proposed controller performs excellently in position accuracy, swing elimination, and fault tolerance.
Input-shaping techniques for sway control in tower cranes were used in [
33] by Ishak, H. et al. with a model derived using the Lagrange equation and validated through simulations. Zero Vibration (ZV) and Zero Vibration Derivative (ZVD) shapers were developed and tested to reduce oscillations during payload hoisting.
Kim, C.W. et al. in paper [
15] introduce a control approach for anti-sway in container cranes modelled as a hybrid PDE-ODE system with a flexible cable. Based on Lyapunov’s second method, a control law is derived to suppress transverse vibrations, using time-varying control force and active mass damper. The system’s exponential stability is proven, and simulations show the effectiveness of the proposed control laws in suppressing sway.
A newer study [
16] by Hamanaka, K. et al. proposes a vibration suppression feedforward control for stacker cranes, which also uses an active mass damper (AMD). The method aims to match the carriage acceleration with the travel unit acceleration to reduce excessive vibrations during high-speed operation.
This paper presents a control structure that eliminates the sway induced by cargo acceleration and deceleration. It uses the input shaper technique. The input shaper technique has the benefit of reducing the sway but introduces a negative effect on the position controller of the cargo [
34]. It introduces a decrease in the phase reserve and shifts the control structure to the unstable region. The negative effect is proportional to the natural frequency of cargo. The proposed structure uses Smith’s predictive algorithm [
35], which needed to be modified so that it can be used in a crane to eliminate this adverse effect. This predictive algorithm uses a model of the crane to calculate the control vector one step ahead instead of
N steps ahead and inject it into the system. Using this calculation of control is simplified, and cheaper hardware can be used to run this control algorithm. The suggested controller is compared with the PD position controller without the sway reduction to show the impact of acceleration and deceleration on the cargo sway and the PD position controller with the input shaper technique. The advantage of using this predictive algorithm with the input shaper is shown within the simulation and experimentally on the laboratory crane.
Integral performance criteria [
36] were used to assess the proposed control structure’s impact on the crane’s dynamics and compare it with the PD controller with and without the input shaper technique.
2. Dynamics of the Crane
Figure 1 shows a bridge crane. It consists of the cart of mass
, which is moved along the x-axis, and the cargo of mass
suspended by the ropes, which are modeled with an equivalent rope of length
l. The rope’s mass and flexibility are neglected.
In the Cartesian coordinate system, the position of the cargo’s center of mass is described by the equation
To obtain a mathematical model of the crane, the Lagrange function of the mechanical system shown in
Figure 1 is formulated
where
is the total kinetic energy, and
is the total potential energy. The total kinetic energy of the crane is
and the total potential energy of the crane is
The functional that transforms
to scalar value is
By solving the Euler–Laguange equations:
the cargo trajectory
is obtained which minimizes the functional (
5). The cargo crane’s dynamics is described by this trajectory.
A mathematical model of a bridge crane with one degree of freedom is obtained by including Equation (2) in the Euler–Lagrange Equations (6) and (7)
The crane actuator (DC motor) additionally introduces
where
is the ratios of the gearboxes,
is the armature inductance,
is the armature current,
is the armature voltage,
is the voltage constant,
is the armature resistance, and
is the diameter of cart wheels.
By substituting Equations (10) and (11) in Equations (8) and (9) and neglecting the impact of the cargo sway on the cart position
, the equation which describes the cart speed dynamics is obtained:
where
is the mechanical time constant, and
is the armature constant.
The position dynamics of the cart is described by equation
where
is the proportional gain of the position of the cart.
3. Control Structures for Controlling a Cargo Transfer
The crane control system is tasked with the complex challenge of simultaneously positioning the cargo and reducing its sway. With only one control input, the system’s design is a formidable puzzle. Decoupling these tasks to meet a given percentage is the intellectual challenge at hand.
The position controller is used to accomplish the positioning task, which is usually realized with a linear PD controller. The position control loop is shown in
Figure 2.
The PD position controller is implemented by the equation
where
is proportional gain,
is derivative gain,
is the derivative filter constant,
is sample time, and
is the backward shift operator.
This position control system is configured to produce the control signal, bringing the cargo to the desired position with the minimum time. According to the optimal control for the positioning, the control signal that will position the cargo with minimum time is given by bang-bang control [
37], which is achieved here using the PD controller. However, this bang-bang control will give the maximum acceleration and deceleration of the cargo, producing the maximum sway angles.
The position control system of the crane cart, without the sway reduction algorithm, is not commonly used in practice. However, it is included in this paper to estimate the sway that would occur in its absence. This analysis is crucial in determining the percentage reduction in sway that can be achieved by the proposed control algorithm, underlining its importance and potential impact.
In real-world applications, it is crucial to reduce the sway angle at the goal location and during transport. To achieve this, the sway reduction algorithm
must be an integral part of the position control algorithm, as depicted in
Figure 3.
Because the main reason for the cargo sway is the position control of the cargo, the input shaper technique is chosen to reduce the cargo sway.
The input shaping represents the convolution of the control signal with a sequence of impulses
where
is the i-th impulse time,
is the Dirac delta function,
N is the number of the impulses, and
is the amplitude of the i-th impulse.
The pulses are determined to eliminate system vibrations at precisely known frequencies. This method eliminates cargo oscillations if the system damping and natural frequency are precisely known. Input-shaping methods vary depending on the constraints they use and today there are lots of proposed input-shaping methods depending on the robustness and speed, which are two opposing criteria: ZV (Zero Vibration), ZVD (Zero Vibration and Derivative), ZVDD (Zero Vibration and two Derivatives), etc. The shaped signal at the input shaper output is gained by using convolution of the impulses and input control signal:
This equation can be transferred to the Laplace domain, and because the first impulse of any input shaping method does not have delay, can be written as
The ZV input shaping used in this paper has only two impulses with time shift
. And its amplitude ratio and phase shift are
and
respectively. Using these equations, the Bode’s amplitude and phase diagram can be drawn, shown in
Figure 4 and
Figure 5.
This method is a feedforward method, which introduces a problem when incorporated within the position control loop. This can be seen from these Bode’s diagrams. It decreases the closed-loop phase reserve because it introduces the delay in the position control loop. Because of this, it is intended to be implemented outside of a feedback loop.
This delay introduces the oscillation in the position closed loop, and the only way to use this technique in the position control loop is to decrease the proportional gain of the PD controller, which will decrease the desired positioning speed. If the position speed is decreased, then there is no need to use the input shaper technique because the residual sway would be small because of the small acceleration and deceleration of the cargo.
The Smith predictor is indispensable for using the input shaper technique with the same positioning speed. It ensures that the same PD position control parameters from the position control loop without the sway reduction can be used with the input shaper technique, maintaining the speed of the position with the sway reduction.
Neglecting the mechanical constant of the DC motor, the transfer function Equation (13) becomes
If the sample time is taken to be very small for the transfer function of the closed loop of the Smith predictor according to the disturbance, it can be written in the continuous Laplace domain, which is
By using the theorem of the final value, the static error can be obtained for the input shaper ZV and the ideal transfer function of the PD controller (neglecting the PD first-order derivative filter)
The integral action in the dynamics of the crane cart causes the error in the position, which is proportional to the time constant of the cargo sway
, the overall gain of the crane
, and the value of the disturbance
d. All dynamics that are not modeled, like static and dynamic friction, moving mass effect [
38,
39] (which some authors take care of within their proposed crane models [
40,
41]), cable force, etc., are considered with this disturbance.
From (
22), it can be seen that there will be a static error if there is a disturbance. Additionally, if there is no friction and the forces are produced by the cargo’s sway, the Smith controller will have an error of position of 50%.
Some modifications must be made to use the Smith predictor, which benefits the cargo crane system positioning. The modification of the Smith predictor and the control structure, proposed to be used for the position and the sway reduction, is given in
Figure 6.
This proposed control structure of the crane is made of the position PD controller with the mathematical model of the position dynamics of the crane cart , and the error control loop to eliminate the error of the position because of the unmodeled dynamics and the disturbances. Unmodeled dynamics and disturbances are detected by comparing the output position sensor signal of the crane and its mathematical model . For the error controller, the P controller is used.
The static error of the proposed modified Smith predictor can be obtained similarly to the Smith predictor, which is
By modifying the Smith predictor, the position error of 50% is eliminated, leaving only static error, which can be sufficiently reduced by using a significant value of .
The positioning PD controller is tuned in a way that there is no input shaper between it and the crane. The parameterization is performed like there is a realized closed-position control loop, as shown in
Figure 2.
4. Experimental and Simulation Results
4.1. Laboratory Crane
To test the robustness of the proposed algorithm, a laboratory crane was constructed at the University of Split, Faculty of Electrical Engineering, Mechanical Engineering, and Naval Architecture in Croatia. It was implemented using the Texas Instruments TMS320F2812 microcontroller (Dallas, TX, USA), which features a C28x core. Spectrum Digital’s eZdspF2812 (Sugar Land, TX, USA) is the PCB on which this microcontroller is mounted. It has peripheral expansions and JTAG for programming and debugging.
The C28x core incorporates a dual Harvard architecture, providing high throughput for instructions and data. It has several specialized instructions essential for digital signal processing tasks in real-time control applications. The memory used to implement the control algorithm is 256 KB of on-chip FLASH. For dynamically allocated variables and the realization of STOG memory, 36 KB of on-chip SRAM was used together with 128 KB of off-chip SRAM.
The IDE used to implement the proposed control algorithm was Code Composer Studio C2x ezDSP Kit Tools V2 (C2000). It has all the software components needed to write, build, and debug the algorithm in real time using a JTAG connector over a parallel port.
The proposed control algorithm uses one incremental encoder sensor to measure the cart’s position and one DC motor actuator made of power electronics and a DC motor to drive the cart forward and backwards. To record the cart’s position, serial communication is used between the DSP and PC, while the sway is measured using an infrared camera with a marker. The camera calibration is performed using a mechanical angle sway sensor. In
Figure 7, the described experimental setup is shown.
4.2. Estimation of Parameters of the Laboratory Crane System
A priori knowledge gained from measurements and the technical data provided by the manufacturer is detailed in
Table 1. These measurements were essential for capturing and further evaluating the identified dynamics of the cart’s position and the cargo sway.
The LS (Last Square) offline method was employed to identify the system dynamics. The parametric model used for this purpose was the ARX (AutoRegressive with eXogenous inputs) model, from which the continuous model parameters were obtained (Equations (
9), (
12), and (
13)). All modes of the crane’s dynamics were excited using a PRBS (Pseudo-Random Binary Sequence) signal, shown in
Figure 8.
By use of this signal, the PWM cycle of the crane motor was controlled. Identification of the crane parameters was made partially by model fitting and partially by measurement. Parameters which were obtained by measurement are given in
Table 1. The response of the position and the angle of the cargo, together with estimated responses, which were calculated with estimated parameters, are given in
Figure 9,
Figure 10 and
Figure 11. Because the dynamics of bridge position has astatism of the first order, the minor error in the estimate of the mechanic time constant of the cart will cause deviation in the estimated cart position from the current cart position over time, which can be seen in
Figure 9. Thanks to the error controller of the proposed algorithm, this is not a problem because this error controller will inject the addition signal, bringing the cargo to the goal location within the given position tolerance.
A good fit of the cargo sway and estimated cargo sway obtained by Equations (9) and (13) is shown in
Figure 10, while the speed of the cart and estimated speed of the cart obtained by Equation (12) are shown in
Figure 11.
A deviation occurs in the angle and speed responses from the estimated ones because of the difference between the estimated and actual parameters. The DC motor’s armature resistance varies from 0.6
to 1.3
according to temperature changes while the motor is working. Another reason for the response deviation is the dynamics, which are not incorporated into the mathematical model. Considering this fact, it is concluded that the estimated parameters describe the laboratory crane well and were used in the proposed control structure. Additionally, the difference between the dynamics described by the model which was used for the proposed control structure and the identified dynamics of the laboratory crane can be seen in the Bode amplitude and phase diagram of the sway dynamics, which takes into account the cart, the DC motor, and the sway dynamics, shown in
Figure 12 and
Figure 13, respectively.
The diagrams illustrate the differences between the model descriptions and real-time crane dynamics at low frequencies (below 1.5 rad/s) and higher frequencies (above 7 rad/s). The discrepancies observed at lower frequencies are attributed to friction and the cables that transfer energy for cargo transportation, which the cart’s motor must pull.
At frequencies above 7 rad/s, the influence of sensors on cargo sway measurements becomes evident. Sway was measured using two different methods. The first sensor employs a mechanical approach, tracking the angular displacement of the load with a lever connected to a potentiometer. The second sensor utilizes an optical method, assessing the sway angle with a marker and an infrared camera.
The mechanical sensor was used to test other algorithms but was not employed in the algorithm proposed in this paper. Instead, it was used to calibrate the camera, which was used to document the results of the sway measurements.
Resonant frequency of 2.85 rad/s corresponds to the length of the rope from which the cargo hangs. Another spike occurs at 7 rad/s, corresponding to the lever of the mechanical sensor, which has a length of 20 cm.
To assess the discrete model’s accuracy used in the proposed control algorithm realized by using ZOH discretization, which is commonly used in control applications, in Equations (
9) and (
13), an analysis was made in the frequency domain using standard metrics: MSE (Mean Square Error), RMSE (Root Mean Square Error), bandwidth error, cross-over frequency error of amplitude, and phase frequency responses. The MSE and RMSE values for amplitude are 1.9 × 10
−5 and 1.7 × 10
−2; for frequency responses, they are 7° and (3°)
0.5, respectively. While, the error bandwidth and cross-over frequency are 2.7 × 10
−3 rad/s and 0.71526 rad/s, respectively. All the above suggests that the discrete system has good enough accuracy in representing the continuous system’s amplitude and frequency and can be used for this type of application.
4.3. Experimental Verification of the Proposed Control Structure
To see the impact of the proposed control structure on the crane dynamics and to identify the validity of the proposed control structure, several experimental setups were made and compared with the simulation results:
Case 1: the PD position controller without sway reduction.
Case 2: PD-ZV position control.
Case 3: the proposed control structure without the error controller.
Case 4: the proposed control structure with the error controller
For all cases, the same reference waveform
shown in
Figure 14 was used to compare the obtained responses. This reference waveform can have a positive or negative influence on the cargo sway. That depends on the moment the change of the reference waveform occurs. The reference waveform
was chosen to ensure the maximum sway of crane cargo and see the impact of the sway reduction on the cargo sway. The cargo was transferred multiple times between distances of 1 meter in time intervals of 11.64 s, 21.5 s, 31.0 s, 42.77 s, and 53.5 s. These moments of reference change were measured from the first positive edge of the reference.
In all cases, the same PD position controller
was used, which can be seen in
Figure 2,
Figure 3 and
Figure 6. The parameters of the PD position controller given in
Table 2 and used in all cases were obtained to achieve the maximum positioning speed of the cargo and the robustness and stability of the position control loop.
In Case 1, only the PD position control was used, and there was no sway reduction algorithm. The control structure used in this case is shown in
Figure 2. The responses of the cart position
, the cart speed
, the cargo sway
, and the PD controller output
value are shown and compared with the simulated responses in
Figure 14,
Figure 15,
Figure 16 and
Figure 17.
Figure 16 shows that in every change of the reference value, the cargo sway increases; i.e., the chosen moments negatively affect the cargo sway. Because there is no sway reduction algorithm in Case 1, the magnitude of the cargo sway, which would exist if the crane control system did not have the sway reduction algorithm, can be seen. These responses in Case 1 are the starting point for the comparison and are further used to see the impact of the proposed control algorithm on the positioning and sway reduction in the cargo.
In Case 2, the input-shaping technique was incorporated within the positioning control loop, while the parameters of the PD position controller were left the same as in Case 1. The ZV method was used for the input shaper technique, and its parameters are given in
Table 3. From these responses,
Figure 18,
Figure 19,
Figure 20 and
Figure 21, the impact of the input shaper on the position control loop dynamics can be seen by comparing them with the responses of Case 1. It can be seen that the given PD controller cannot be used with the input shaper technique because it introduces a negative effect on the closed control loop. It decreases phase reserve and gives oscillatory responses.
Adjusting the parameters of the position controller, specifically by reducing the positioning speed, can mitigate oscillatory responses that can occur during operation. This adjustment improves the position system’s stability. However, while achieving stable responses is beneficial, this approach may not fully meet the requirements for effective crane positioning. This is because similar stability could be achieved using a position PD controller without incorporating a sway reduction algorithm.
The difference between the measured and simulated position responses resulted from the cart’s wheels skidding because of inadequate friction between the wheels and the surface during operation. These differences were particularly pronounced because the position sensor is mounted directly on the motor shaft, which does not account for the slippage occurring on the wheels. Consequently, this misalignment led to inaccurate readings of the cart’s actual position compared to the expected simulated data.
While the position response exhibits oscillatory behavior due to the input shaper, it positively influences cargo sway reduction, as seen in
Figure 16 and
Figure 20.
To achieve the same cargo transfer speed as the control structure of Case 1 and to incorporate the shaper technique in the closed control loop, the proposed control structure shown in
Figure 6 without the error controller was used in Case 3. The proposed control structure’s responses are in
Figure 22,
Figure 23,
Figure 24 and
Figure 25.
The speed of position control, as illustrated in
Figure 14 and
Figure 22, remains consistent with the parameters established in Case 1, indicating stable performance across both scenarios. In addition, the cargo sway depicted in
Figure 16 and
Figure 24 has significantly decreased compared to Case 1. This cargo sway reduction suggests improvements in stability and position control.
However, there is a difference between the modeled dynamics and the actual dynamics of the crane cart position, known as the unmodeled dynamics. This difference causes the position error to increase over time, as illustrated in
Figure 22. The error is escalating due to the integral action of the cart dynamics. An error controller has been introduced to address this issue in Case 4, and its parameters are detailed in
Table 4. The responses of the proposed controller given by measurement and simulation are presented in
Figure 26,
Figure 27,
Figure 28 and
Figure 29.
Table 2 and
Table 4 clearly illustrate that the gain of the error controller is significantly lower than that of the PD position controller. This difference in gain indicates that the control output of the PD position controller has a leading role in ensuring wanted position dynamics.
In contrast, the error controller operates with a slower response time, which is advantageous because it prevents potential disruptions to the desired dynamic behavior established by the PD position controller. This harmonious interaction is vital for position control and sway reduction, where rapid adjustments can lead to overshooting or oscillations.
Moreover, while the error controller is less aggressive in its control actions, it effectively addresses positioning errors that may arise due to imperfections or inaccuracies in the mathematical modeling of the position dynamics. Doing so helps enhance system stability and reliability without compromising the overall performance established by the PD position controller and input shaper.
When comparing
Figure 22 and
Figure 26, it becomes apparent that the error controller effectively mitigates the inaccuracies caused by the imperfections in the mathematical model of the position dynamics. This highlights the controller’s role in correcting systematic errors during operation. On the other hand, an analysis of the responses to cargo oscillations (
Figure 24 and
Figure 28) reveals no significant differences between the two figures, indicating that the controller maintains consistent performance in managing cargo sway reduction.
In contrast, a closer examination of the rotation speed shown in
Figure 23 and
Figure 27 and the associated control variable shown in
Figure 25 and
Figure 29 reveals some subtle distinctions. The control signals of the proposed controller, both with and without the error controller (Cases 3 and 4), are depicted in the same
Figure 30. To highlight the impact of the error controller, the signals have been enlarged for one cargo transport scenario. It is evident that the error controller has increased the area under the control signal and, with that, reduced the position error.
The integral performance criteria IAE, ITAE, ISE, and ITSE were used to evaluate the impact of the control structures used in these cases on the dynamics of the cart position and the sway reduction. Using these criteria, these dynamics are assessed with a single number. The integral performance criteria for the position dynamics and sway dynamics are shown in
Figure 31 and
Figure 32, respectively.
A reduction in the position control quality in Case 2 according to Case 1 because of the use of the input shaper technique can be seen from these figures. The position quality reduction is 23% for IAE, 25% for ITAE, 26% for ISE, and 28% for ITSE, while the impact of the input shaper has a positive effect on reducing the cargo sway, which can be seen in
Figure 32. According to this figure, the reduction in the sway is 57% for IAE, 61% for ITAE, 80% for ISE, and 83% for ITSE. Although the input shaper degrades the position quality, it positively impacts cargo sway reduction.
According to Case 2, the sway reduction increased where the proposed control structure was introduced. The sway reduction is 87% for IAE, 89% for ITAE, 98% for ISE, and 99% for ITSE. Concerning Case 2, the increase in the sway reduction is up to 30%.
According to IAE, ITAE, ISE, and ITSE, the positioning quality decreases by 3%, 9%, 8%, and 13%, respectively. This decrease is slight, considering there is no position feedback in this proposed control structure in Case 3. However, position estimation is performed using the mathematical model for cart positioning.
An error controller was introduced in Case 4 to address the error in describing the load position dynamics. This controller aims to eliminate the estimation error. With the implementation of the error controller, improvements in position quality are observed compared to Case 3: an 8% enhancement according to IAE, a 14% improvement according to ITAE, a 10% increase according to ISE, and a 15% increase according to ITSE. Additionally, introducing the error controller did not negatively impact sway prevention; it resulted in a positive reduction in sway, showing an improvement of 2% for both IAE and ITAE.
5. Conclusions
Implementing input shaping within the control loop, particularly within the position controller, significantly reduces the system’s phase margin. This reduction occurs due to the additional delay introduced by the input shaper, which can lead to oscillatory behavior and instability in the load positioning dynamics, potentially jeopardizing the system’s accuracy and responsiveness.
A Smith predictor was employed to mitigate these challenges and achieve satisfactory positioning performance while utilizing input shaping. This advanced control strategy was explicitly modified to address this application’s unique requirements. The necessary adjustments to the Smith predictor were thoroughly documented, providing insights into the rationale behind the modifications and their anticipated effects on system stability and performance.
In this paper, a series of experimental and simulation comparisons were conducted with a laboratory crane to evaluate the effectiveness of the proposed control structure. The performance of this structure was assessed against two benchmarks: one control structure that did not incorporate anti-swaying mechanisms and another that included such mechanisms. The data collected revealed that the proposed control structure successfully maintained the original parameters of the position controller while effectively counteracting the adverse effects of input shaping on positioning quality. Notably, it enhanced the anti-swaying capability by approximately 94% for the load and improved positional quality to 82%. This improvement culminated in achieving non-oscillatory position responses, as determined by the integral performance criteria.
The integral performance criteria employed in the analysis measures the system’s overall performance over time, allowing for a comprehensive assessment of both positional accuracy and sway reduction attributable to the proposed control architecture.
Moreover, an essential advantage of the proposed structure lies in its straightforward implementation on microcomputers. The simplicity of this implementation process is a crucial factor that should instill confidence within the audience, empowering them to effectively apply the proposed control structure in the crane systems without significant barriers to entry.