Final Project Report Automatic Gear Box
Final Project Report Automatic Gear Box
Final Project Report Automatic Gear Box
INTRODUCTION
Utilizing the GEMMA guide, a design manual for start and stop modes, has gained
recognition as an effective strategy for addressing intricate automation challenges.
Despite its limited popularity, it presents a commendable methodological approach that
facilitates a seamless shift from theoretical exercises to real-world industrial
applications. This message aims to highlight an added benefit of the GEMMA guide,
serving as motivation for its adoption, while also emphasizing the significance of
considering the human operator as an indispensable component within the automation
process.
At the core of gearbox automation lies the integration of advanced technologies such as
artificial intelligence, mechatronics, and connectivity. These elements work in synergy to
create an intelligent and adaptable system capable of automatically adjusting gear
ratios based on operating conditions, vehicle load, and driver preferences.
One of the primary benefits of this automation is the improvement in performance and
energy efficiency. By eliminating manual intervention in gear shifting, energy losses are
avoided, and power delivery to the transmission system is optimized, resulting in lower
fuel consumption and reduced pollutant emissions.
Furthermore, gearbox automation increases the precision and speed of gear shifts while
reducing the wear and tear on the transmission system, extending its lifespan and
lowering maintenance costs.
Another key aspect is safety. With an automated system, the risk of human errors during
gear changes is minimized, which is especially relevant in industrial applications.
1. THEORETICAL FRAMEWORK
The acronym GEMMA (Guide d'Étude des Modes de Marches et d'Arrêts) translates to
"Study Guide for Start and Stop Modes." During its development in the year 1993, it was
conceived to comply with European Union safety standards. It is complemented by the
representation of GRAFCET (Graph of States and Transitions) under the French
national standard UTE C 03-191 (AFCET-ADEPA, 1995). The guide aims to provide a
methodology that encompasses sequential control start and stop modes, correct
operation of the controlled process, handling of deteriorated operation in the presence
of anomalies, and even emergency situations to anticipate potential human or material
damage (Garcia, 2004).
The methodology outlined in the GEMMA guide (Ponsa and Vilanova, 2005) consists of
the following set of phases: Automation, Supervisory Control,Interaction,
Implementation, Testing”. With this paragraph we know a little more about the origin of
GEMMA and his purpose. Following the same line the author also says “In the
supervisory control phase, the emphasis is on the operator's role in monitoring the
controlled process (Català et al., 2000; Petersen, 2004; Ponsa and Català, 1999). In the
interaction phase, the operator intervenes using a control panel. It is essential to design
the control panel, considering the operator's physical actions on devices and the
reception of visual or acoustic informative signals (Oncins, 2007). During the
implementation phase, the GEMMA guide is programmed into the automation system
(logical controller or PLC). In the testing phase, the operator can verify proper
functioning and iteratively introduce improvements in each of the mentioned phases.
The GEMMA guide is presented as a graphical list of modes that allows the human
operator to define all the operations and their consequences on the machine from the
beginning (Kontogiannis, 1996). The GEMMA guide is based on various basic concepts:
When the control is powered, the system can be in three situations: working, stopped
(or in the process of stopping) and faulty. There can be production in each of these
three situations; in operation without any doubt but it can also occur when the machine
is in the process of stopping and when the machine is in certain defect conditions
(despite the fact that production may not be usable).
The GEMMA represents each one of the four situations (no power, operation, stop and
defect) by means of two separate rectangles and the production by means of a fifth
rectangle that intersects with the three main rectangles.
Each of the situations mentioned can be subdivided into several such that, in the end,
there are 17 possible operating states that we will study below. It should be mentioned
that not all processes will require all these states, but we can affirm that the necessary
states in each process can easily be related to a part of those proposed by GEMMA.
The guide also proposes the main ways to go from one state to another.”
Figure 1.21 Modes of functioning
Based on these ideas, the GEMMA guide is created as a graphical representation of the
described concepts in the form of operating modes (associated in families of procedures
A, F, D) and transitions between modes.
F1 Normal production. It is the state in which the machine produces normally, that is, it
does the task for which it has been designed. Operation within this state can be
associated with a GRAFCET that we will call the base GRAFCET. This state does not
have to correspond to automatic operation.
F2 Preparation run. It corresponds to the preparation of the machine for operation
(preheating, preparation of components, etc.).
F3 Closing run. It corresponds to the emptying and/or cleaning phase that many
machines have to carry out before stopping or changing some characteristics of the
product.
F4 Verification marches without order. In this case, the machine, normally by order of
the operator, can carry out any movement (or certain pre-established movements). It is
used for maintenance and verification tasks.
F5 Verification gears in order. In this case the machine performs the complete operating
cycle in order but at the rate set by the operator. It is used for maintenance and
verification tasks. In this state there is a possibility that the machine produces.
F6 Test runs. They allow adjustment and preventive maintenance operations to be
carried out.
A1 Stop in the initial state. It is the normal idle state of the machine. It is represented by
a double rectangle. The machine is normally represented in this state (drawings,
electrical diagram, pneumatic diagram, etc.) which usually corresponds to the initial
stage of a GRAFCET.
A2 Stop requested at the end of the cycle. It is a transitory state in which the machine,
which until that moment was producing normally, must only produce until the end of the
current cycle and come to a standstill in the initial state.
A3 Stop requested in a certain state. It is a transitory state in which the machine, which
up to that moment was producing normally, must only produce until it reaches a point in
the cycle that is different from the initial state.
A4 Save obtained. It is a rest state of the machine different from the initial state.
A5 Preparation for commissioning after the defect. Corresponds to the phase of
emptying, cleaning or putting in order that in many cases has to be done after a defect.
A6 Putting the system in the initial state. The system is brought to the initial situation
(usually the rest situation); once done, the machine stops in the initial state.
A7 Putting the system in a certain state. The system is taken to a concrete situation
different from the initial one; once done, the machine stops.
D1 Emergency stop. It contains not only the simple emergency stop but also all those
actions necessary to bring the system to a safe stop situation.
D2 Diagnosis and/or treatment of defects. It allows, with or without the help of the
operator, to determine the causes of the defect and eliminate them.
D3 Production despite defects. Corresponds to those cases in which production must
continue despite the fact that the system does not work correctly. It includes cases in
which, for example, it is produced to run out of a non-storable reagent or those in which
the normal cycle is not followed since the operator replaces the machine in a certain
task due to a breakdown.
Figure 1.21 GEMMA guide visualization
1.3. GRAFCET
Grafcet (Graph of States, Function, and Transitions) is a graphical method used to
model, design, and represent the behavior of sequential control systems. It provides a
visual way to describe the operation of a system or a process and is commonly used for
PLC programming in industrial automation.
Grafcet diagrams are typically represented graphically using symbols to depict the
steps, transitions, and actions, allowing engineers and technicians to visualize the
control process easily. The graphical nature of Grafcet makes it easier to understand
and design complex sequential control systems.
A typical circuit shows contacts on the left-hand side and a coil on the right-hand side.
The control logic represented by such a circuit can be seen as a logical inference with
the contact logic as the antecedent and the coil as the conclusive. To program a Ladder
controller, in addition to being familiar with the rules of switching circuits, it is necessary
to know each of the elements of this language". (Herrero, s. f.)
1.6. CODESYS
CODESYS is a powerful and versatile open-source software designed for programming
PLCs (Programmable Logic Controllers) in the field of physical and industrial computing.
Its significance lies in its adherence to the widely recognized industrial standard, IEC
61131-3, which has made it a popular choice among hardware developers worldwide.
By providing a complete development environment for both PLCs and PCs, CODESYS
has garnered widespread adoption and support, with more than 500 manufacturers
producing over 1000 control devices and PLCs that are compatible with the software.
CODESYS SOFTWARE
At the heart of the acrylic prototype lies an advanced automation system controlled by
CODESYS, a powerful software platform for industrial automation and control. This
integration enables seamless communication and coordination between various
components, enhancing the overall performance and reliability of the gearbox.
In manual mode, the driver can enjoy the tactile experience of gear shifting using a
sleek and ergonomically designed gear lever. The CODESYS system monitors the
driver's input and assists in executing precise gear changes, avoiding any potential
clutch-related issues.
2.3. METHODOLOGY
The development process began with the creation of the main control program, serving
as the core of the automatic gearbox system. The ladder logic within this program
coordinated the different subroutines and managed the overall functioning of the
gearbox. An initialization routine was implemented to handle the initialization of global
variables, sensors, and actuators, ensuring that the system started in a safe state with
default parameter values.
To provide user flexibility, the main control program offered a mode selection interface,
allowing the user to choose between automatic and manual modes. Based on the user's
input, the appropriate subroutine was called to handle the selected mode. Additionally,
the main control program integrated the ABS brake system functionality to ensure safe
and efficient braking during gear shifts or emergency situations. It monitored the brake
status and interacted with the ABS brake subroutine as needed.
Safety mechanisms were integrated into the ladder logic of the main control program to
prevent hazardous conditions. These mechanisms included preventing gear shifts while
the vehicle was in motion, handling emergency stops, and reacting to fault conditions to
ensure the safety of both the vehicle and its occupants.
- Continuously monitor inputs to determine the optimal gear ratio for performance
and fuel efficiency.
- Utilize ladder logic to control gear shifting solenoids and manage smooth gear
transitions based on predefined shift points.
- Implement logic to prevent conflicting gear changes and ensure the selected
gear is engaged safely.
-
The automatic mode subroutine continuously monitored inputs. The ladder logic
controlled gear shifting solenoids and ensured smooth gear transitions based on
predefined shift points, preventing conflicting gear changes and ensuring safe gear
engagement.
-
2.3.3. Manual Mode Subroutine
- Allow the user to take manual control of the gear shifting process.
- Receive input from the user for gear selection commands and execute the
corresponding gear shifts.
- Implement logic to prevent unsafe gear changes and handle user inputs
appropriately.
On the other hand, the manual mode subroutine allowed users to manually control the
gear shifting process. It received input from the user for gear selection commands and
executed the corresponding gear shifts accordingly, ensuring the selected gear was
engaged safely and avoiding unsafe gear changes.
The ABS brake system subroutine monitored the status of ABS sensors to detect
braking conditions. It implemented logic to prevent wheel lock-up and skidding during
gear shifts or emergency stops, and through ladder logic, it controlled the ABS valves
and pumps to achieve safe and controlled braking.
2.3.5. Visualization
- Design a graphical user interface (GUI) for the visual simulation of the automatic
gearbox using CODESYS's graphical capabilities.
- Implement ladder logic to update the GUI in real-time, providing a dynamic and
interactive simulation experience for the user.
Additionally, the visualization subroutine was responsible for creating the graphical user
interface (GUI) for the visual simulation of the automatic gearbox. It utilized CODESYS's
graphical capabilities to design an interactive interface that represented the gear shift
lever, real-time gear ratios, vehicle speed, and other relevant information. The ladder
logic within this subroutine updated the GUI in real-time, providing users with a dynamic
and engaging simulation experience.
Furthermore, a global variables list was defined, containing critical parameters and data
shared among different subroutines and the main control program. This facilitated
efficient communication and data sharing across different parts of the automatic
gearbox system, ensuring smooth coordination and reliable operation.
2.4.1 Grafcets
In the development of the system in CODESYS, GRAFCETs (Graphic Function Chart
Editor) played a central role in the design and implementation process. GRAFCETs
provided a powerful graphical representation of the control logic, enabling a clear and
intuitive visualization of the system's behavior. With its drag-and-drop functionality, the
development team could easily model the sequential steps and transitions of the
gearbox's automation process.
2.4.3 Automata
An automata is essential for this project to ensure efficient and precise gear shifts,
seamless mode transitions between manual and automatic modes, real-time adaptation
to driving conditions for optimal performance and fuel efficiency, integration of safety
features, consistent and reliable operation and seamless integration with the
visualization system for a cohesive user experience. Its implementation enhances the
functionality, safety, and convenience for the end-users, making it a crucial component
of the gearbox system.
Figure 2.26 Automata Finite Main Programm
3. RESULTS
The project focused on the development of an automatic gearbox using CODESYS,
which included the creation of a visual simulation and the implementation of ladder
programs. The project followed the methodology outlined in the GEMMA Guide, which
provided a systematic approach to sequential control start and stop modes, as well as
handling anomalous and emergency situations. The GEMMA Guide helped ensure the
proper organization and safety of the gearbox system.
The first milestone of our project was the successful creation of a comprehensive visual
simulation of the automatic gearbox. Leveraging the capabilities of CODESYS, we
designed an interactive graphical interface that accurately represented the gearbox's
operation. The visual simulation included the following key features:
- Visualization of Gear Shifts: Users could observe the gear shift lever moving
between different positions corresponding to various driving modes, such as
Reverse (R), Neutral (N), Drive (D), and Manual (M).
- Real-Time Gear Ratio Display: The simulation displayed real-time gear ratios
which are in use.
- Input Representation: Various input signals, vehicle speed and brake status,
were visually represented, enabling users to understand the gearbox's response
to different driving conditions.
- System mode: The simulation allows to select two functional modes; manual
mode and automatic mode. Each mode corresponds to a control way for the user
depending on the situation or their liking.
The visual simulation served as a valuable tool for testing and validation, allowing us to
observe the gearbox's behavior under different scenarios and fine-tune its performance.
Figure 3.10 Visualization in codesys
The second crucial aspect of our project involved developing ladder programs to control
the automatic gearbox's functionality. We utilized the GEMMA Guide's concepts to
design a comprehensive set of ladder logic programs that managed gear shifting, torque
conversion, and safety procedures.
- Gear Shift Control: The ladder logic implemented precise gear shift routines
based on inputs such as vehicle speed selected by the driver. It ensured smooth
and efficient gear transitions for optimal driving performance.
Figure 3.20
- Smooth Gear Shifts: The automatic gearbox demonstrated smooth gear shifts,
seamlessly adapting to changes in vehicle speed and acceleration.
Ponsa, P., Vilanova, R., & Díaz, M. (2007). Introducción del Operario Humano en el
Ciclo de Automatización de Procesos Mediante la Guía GEMMA. In Información
tecnológica (Vol. 18, Issue 5). SciELO Agencia Nacional de Investigacion y Desarrollo
(ANID). https://doi.org/10.4067/s0718-07642007000500004
ADEPA (1981). Le gemma. guide d’tude des modes de marches et d’arrts. Montrouge.
AFCET-ADEPA (1995). Le grafcet. second edition. Cpadus.
Boix, O. (n.d.). Descripción de la guía GEMMA. Recursos CITCEA. Retrieved July 27,
2023, from https://recursos.citcea.upc.edu/grafcet/gemma/descrip.html
Catala, A., P. Ponsa and L. Trave-Massuyes (2000). Artificial reasoners for human
process supervision. Revista Iberoamericana de Inteligencia Artificial (9), 76–84.
Kontogiannis, T. (2005). Integration of task networks and cognitive user models using
coloured petri nets and its application to job design for safety and productivity..
Cognition, Technology and Work (7), 241–261.
Types of automatic gearbox and how they work | WEBUyanycar. (s. f.).
https://www.webuyanycar.com/guides/car-ownership/automatic-gear-box/#:~:text=How
%20does%20an%20automatic%20gearbox,the%20transmission%20to%20function%20
properly.
Salama, M. (2023). What is CODESYS? Why do you need to learn it? Inst Tools.
https://instrumentationtools.com/codesys/