FYP Thesis
FYP Thesis
                      May 2018
                                                                                    ii
DECLARATION
I hereby declare that this project report is based on my original work except for
citations and quotations which have been duly acknowledged. I also declare that it has
not been previously and concurrently submitted for any other degree or award at
UTAR or other institutions.
Signature :
ID No. : 13UEB03027
 Date         : 15/04/2018
                                                                              iii
Approved by,
Signature :
Date :
Signature :
 Date            :
                                                                                 iv
       The copyright of this report belongs to the author under the terms of the
copyright Act 1987 as qualified by Intellectual Property Policy of Universiti Tunku
Abdul Rahman. Due acknowledgement shall always be made of the use of any material
contained in, or derived from, this report.
ACKNOWLEDGEMENTS
I would like to thank everyone who had contributed to the successful completion of
this project. I would like to express my gratitude to my research supervisor, Dr.
Yogeswaran a/l Mohan, Dr. Tey Jing Yuen and Mr. Chong Yu Zheng for his invaluable
advice, guidance and his enormous patience throughout the development of the
research.
ABSTRACT
3D printing denotes to processes which material is fused and solidified under computer
control to construct a three dimensional object. It can produce complex objects directly
by using computer aided design. This technology has traditionally been applied by
large companies to perform rapid prototyping before production. Moreover, there has
also been a change to adopt the technology as customise printing solution in the recent
years. The advent of 3D printers that are capable of multi-material printing such as
ProJet MJP 5600 from 3D Systems has create a breakthrough that enables the users to
create product with different mechanical properties over its structure. However,
current multi-material printing solution only offers up to discrete selection of printed
material matrix in a single printing process. Therefore, this project intends to develop
a multi-material composite 3D printer that is capable in selecting wide variation of
material matrix for printing through a single extruder. The framework for interpreting
G-code generated and performing 3D printing process is designed and developed in
this project. To ensure accurate and reliable system, configurations and
experimentations are performed to measure the performance of the system. Accuracy
and reliability of the system are determined and proven based on the experimental
results obtained. Low accuracy and performance system will be calibrated based on
the system behaviour. Furthermore, this project also covers the techniques to link user
interface with system framework. System framework will have certain level of
flexibility of controls by the non-technical users via user interface. Critical status of
the system will also be linked from the system framework to user interface for users
to understand the system condition.
                                                       vii
TABLE OF CONTENTS
DECLARATION                                             ii
APPROVAL FOR SUBMISSION                                iii
ACKNOWLEDGEMENTS                                        v
ABSTRACT                                               vi
TABLE OF CONTENTS                                     vii
LIST OF TABLES                                          x
LIST OF FIGURES                                        xi
LIST OF SYMBOLS / ABBREVIATIONS                       xiii
LIST OF APPENDICES                                    xv
CHAPTER
   1       INTRODUCTION                                 1
           1.1    General Introduction                  1
           1.2    Importance of the Study               2
           1.3    Problem Statement                     2
           1.4    Aims and Objectives                   3
           1.5    Scope and Limitation of the Study     3
           1.6    Contribution of the Study             4
           1.7    Outline of the Report                 4
   2       LITERATURE REVIEW                            6
           2.1    Introduction                          6
           2.2    Additive Manufacturing                7
           2.3    Working Principle of 3D Printer     10
           2.4    Temperature Sensor                  14
           2.5    Extrusion Process                   17
           2.6    System Controller                   19
                                                          viii
REFERENCES 59
APPENDICES                                     63
                                                                   x
LIST OF TABLES
LIST OF FIGURES
3D           Three dimensional
e.m.f        Electromagnetic force
AM           Additive Manufacturing
FDM          Fused Depostion Modelling
SLA          Stereolithography Apparatus
SLS          Selective Laser Sintering
RAM          Random Access Memory
HMI          Human Machine Interface
SSR          Solid State Relay
EMR          Electromechanical Relay
AC           Alternating Current
DC           Direct Current
BJT          Bipolar Junction Transistor
IC           Integrated Circuit
CNC          Computer Numerical Control
CPU          Central Processing Unit
Gr           Pinion to gear ratio, 1
𝑇𝑃           Number of teeth of pinion
𝑇𝐺           Number of teeth of gear
d            Distance travelled by the pinion per rotation, mm/rad
dpp          Pitch-to-pitch distance of the screw/auger, mm/rad
SF           Scaling factor
𝑑𝑟𝑒𝑣         Distance travelled per revolution
RMSE         Root Mean Square Error
n            Number of readings
𝑦𝑖           Measured reading
𝑦̂𝑖          Actual reading
𝜔𝑚𝑎𝑥𝑝𝑖𝑛𝑖𝑜𝑛   Maximum angular velocity of pinion
𝑣𝑚𝑎𝑥𝑔𝑒𝑎𝑟     Maximum velocity of gear
𝑓𝑏𝑎𝑠𝑒        Base frequency
𝑓𝑚𝑜𝑡𝑜𝑟       Motor frequency
                                              xiv
LIST OF APPENDICES
CHAPTER 1
1 INTRODUCTION
       Depending on the physical and chemical properties of the final printed products,
the materials used for 3D printing is selected. In some occasions, there are a need to
create product with varying physical or chemical properties over the product. Current
multi-material additive manufacturing systems have encountered severe shortcomings
of technology in achieving this condition (Sitthi-Amorn et al., 2015). The current 3D
printer technology can concurrently use, at most, only three different materials (Sitthi-
Amorn et al., 2015). More of that, the ideas of using multiple extruders can only
produce a discrete selection on the material properties. The hardware and software
architectures of the current multi-material 3D printers are exclusive and inextensible.
Therefore, this project intends to develop a 3D printers that is capable of printing
product with varying local chemical composition over the product. The general
methodology of the stated idea is by controlling the mixing ratio of two types of
materials with different matrix properties. Accuracy and reliability of the framework
are two important criteria to be considered before performing investigation and study
on the chemical fusion of the materials.
                                                                                      2
The importance of the undertaking project is to propose and develop a new method of
3D printing where the mechanical, electrical, chemical and optical properties of the
output product can be controlled. This is achieved by modifying the mother matrix of
a material with different proportion of additive added. Depending on the mixing ratio,
a product with different properties can be produced. With a success in the respective
proposed method, a complex structure like badminton racquet which require a softer
texture on the gripper but rigid structure on the other parts can be easily produced.
Furthermore, this idea can also create a gradient transition over the mechanical
structure to reduce the maximum concentrated stress applied on the structure. Due to
time limitation, the project only be focusing on the framework development. In
summary, the importance of this project is to act as a stepping stone in the future
progress of constructing a 3D printer which allows variable material properties
printing with a single extruder.
In the current 3D printing technology, the outcome of the printed products is almost
impossible to be possessed with different material properties over the products. This
often creates an issue especially on complicated products which requires to have mild
flexibility and soft texture over its product. A solution to this problem can be applied
by using a multi-material feeding 3D printer that is capable of multi-material mixing.
With the ability to print products that contained the composition of multiple materials,
the printer can provide an additional control over the local chemical composition of
the printed material.
connections for system to perform command and control operation. In addition, the
accuracy and reliability of the system are also investigated to ensure proper printing
operation. The parameters are fine-tuned to produce a machine with better accuracy.
Human Machine Interface is developed to interface the users with machine’s command
and response.
The physical and chemical behaviour of the plastic pellets are the aspect of the 3D
printing which is essential in ensuring expected quality products. It is to be highlighted
that to understand chemical behaviour especially the chemical fusion of the two plastic
materials required high level of chemical fusion knowledge and many chemical
experiments to be done. All properties including the fluidity and the fusion rate must
be considered properly in order to ensure that the particular mixing ratio can be printed
out at the right moment.
                                                                                       4
With the completion of this project, one essential contribution is the limitation of the
variety in printing material of a 3D printer. From the view of engineering, it helps by
providing information on the integrating process of the structure and the factor on the
printer that needs to be to be closely considered. From the view of end-users, this
technology paves a new and better ways of printing product. End-users without
professional technical knowledge will be able to print a high quality product with ease.
The main chapters that will be covered in this report will be the literature review and
methodology. Literature review summarises the relevant researches that had been done
on the 3D printing concepts, technology and their limitations. Fundamental 3D
printing concepts such as the control system, components required and the processing
techniques will be discussed in literature review.
CHAPTER 2
2 LITERATURE REVIEW
2.1 Introduction
       Each of the AM techniques have their unique specifications and pros and cons
in terms of cost, printing speed and structure of printed products. However, among all
the AM techniques mentioned, FDM is one of the most recommended method used
for rapid prototyping. One of the main factor leading to this conclusion is due to the
cost-effective printing operations and high speed printing. FDM perform its 3D
printing operation by heating up production-grade thermoplastics to glass transition
phase and extrude it on a platform known as heat bed according to the commands given
to the machine.
       Finally, controls and commands display are another important aspects to study
before proceeding into practical hands-on. Important information should be summarise
and displayed to speed up printing configuration and process. Data presentation is a
key focus when designing the user interface. Furthermore, techniques to interface
between back-end configuration and front-end user display is to be study. In conclude,
the data presentation and interfacing methods are to be reviewed.
thermoplastics which are equipped with excellent mechanical, thermal and chemical
qualities as shown in Figure 2.1 (Sidambe, 2014). FDM technology produces 3D
object by heating and extruding thermoplastic filament over a platform from bottom
up, layer by layer ("Types of 3D printers or 3D printing technologies overview | 3D
Printing from scratch", 2018). Thermoplastic is heated to its glass transition
temperature by the printer and extruded out from the extruder nozzle onto a platform
along the calculated path. After the printed layer binds to the layer beneath it, the
plastic cools down and hardens. Once a layer is finished, either the platform is lowered
or the extruder is raised to proceed print on the next layer.
platform. In short, FDM has good accuracy, compact machine structure, required
supporting frames for overhanging structures and limited printing resolution.
       Lastly, SLS utilises the AM technology by using a laser to selectively scan and
sinter thin layer of powder particles. To summarize the working principle of SLS, the
powder in a container is swept upon the construction stage by a recoater. Then, a laser
selectively scans through the thin layer of powder, sintering the powder particles
together. The build platform is then lowered by one layer depth and a new coat of
powder is applied by a recoater as shown in Figure 2.3. The advantages of SLA
includes the capability to use wide variation of thermoplastics, no necessities for
support structure and it is easy for post-processing (Negi, Dhiman and Kumar Sharma,
                                                                                     10
The main control system that required close consideration is the motor selected for the
axes and extruder. There are essential in ensuring accuracy. The most frequently used
system in 3D printer world is the simple stepper control where the system is an open
loop unit driving the stepper motor. Figure 2.4 shows a clearer picture on the operation
of simple stepper control (Reprap.org, 2017).
                                                                                    11
       Stepper motors are used to drive the dynamic motion of the machine. In many
automation problems and machine control, there could be two or more axes of motion
that must be coordinated (Automation.com, n.d.). The terms “multi-axis
synchronisation” refers to the techniques used to achieve control of motion and the
motion requires for coordination (Kim et al., 1996). When there are two or more axes
                                                                                        12
G-code Interpreter
        Each line of G-code tells the machine to execute one discrete action, including
position, rotation and velocity (Rapid S., 2016). Shapes are formed by stringing
together point-by-point sets of instructions (Shin, Suh and Stroud, 2007). All the
commands are usually read as a string without information understood by the machines.
Parsing and extraction of information are required in order to allow the machine to
understand the steps or procedures and the actions to be made in every step. The
interpreter should be flexible in interpreting all variety length of commands and able
to extract the relevant details.
        One example of G-code that is commonly used for motion control is the G01
which is linear interpolation. G01 executes a movement following a straight line at a
set feed rate as shown in Figure 2.7. The feed rate that is programmed into the G01
command is the actual feed rate along the proposed tool path rather than the feed rate
of each axis (CNC Machining Handbook, 2010). On motion that involved two or more
axes movement, all the slides have to execute exactly the same length of time in order
to generate a single vector move. The machine controller will calculate the separate
feed rate of each axes, allowing the vector feed rate to be equal to that stated in G01
command.
        Circular interpolation is also one of the common G-code command that is used
for CNC control. G02 and G03 are clockwise and counter-clockwise circular
interpolation commands (CNC Machining Handbook, 2010). The letters I and J are
                                                                                      14
addressed to program an arc motion. I relates to the address of X and its incremental
value and direction from the initial point of the arc on the X axis to the arc centre as
shown in Figure 2.8 (Denford G and M Programming for CNC Milling Machines,
n.d.).. J relates to the address of Y and is the incremental value and direction from the
initial point of the arc on the Y axis to the arc center (Denford G and M Programming
for CNC Milling Machines, n.d.).
       Thermocouples are inexpensive, operate over a wide range, stable, rugged, and
are relatively linear over a wide range but deviate significantly at extremely cold or
                                                                                     15
hot temperatures. A thermocouple adhere the Seeback effect to generate voltage that
correlates to the temperature. To improve the accuracy of a thermocouple, a controller
equipped with a Seeback coefficients and look-up table of thermoelectric voltages is
required to generate linear signal. Thermocouples also have a faster response time as
compare to NTC thermistors followed by RTDs (Brei T. M., 2013).
       Thermistors are temperature sensitive resistors which are known for a rapid
response. Resemble to RTDs, thermistors also have a varying resistance value
depending on the temperature change and require excitation. Thermistors generally
have higher resistance value as compare to RTDs. Therefore, it is operated under lower
reference currents and thus required lesser energy consumption. NTC thermistor
usually has a temperature drift of lower than 0.2 ֯C per year while thermocouple has a
lower stability which gives a 1 ֯C to 2 ֯C temperature drift per year (Ametherm, 2017).
However, thermistors do not have good linearity between temperature and its
resistance value. In result, a look-up table or equation is needed to interpret the
temperature values in relation to the output. Figure 2.9 shows a comparison graph of
resistance against temperature between various thermistors and platinum RTD.
                                                                                       16
Figure 2.9 Graph of resistance against temperature for RTD and various thermistors
                             (Source: Texas Instruments)
It is declared that the concept of producing 3D printer plastic at home can be developed
using single screw extruder as shown in Figure 2.10 (“3D Printing for Beginners”,
2016). The working principles of a single screw extruder starts from a hopper. All
materials are fed in from the hopper into the barrel containing a screw, which is the
main part of the extruder (Wagner, Mount and Giles, 2014). On one end, the screw, or
sometimes referred to as auger is connected to an electric motor which helps to
transport the fed pellets towards the tip of the extruder or also known as the extruder
nozzles. A heater is placed as the extruder nozzles to soften and melt the material in
order to allow it to be extruded and form continuous filament strand.
                                                                                     18
       The materials that is fed into the hopper are usually tiny solid pellets to speed
up heating and reduce friction on the screw. A progressive increased in temperature
profile with the setpoints temperature increasing continually from the hopper to the
extrusion nozzle is necessary to prevents premature melting and reduces melt plug
formation around the screw of bridging the throat in the hopper wall (Wagner, Mount
and Giles, 2014). This can avoid polymers or additives to becoming sticky and
adhering to the hopper wall.
       To clearly define the temperature profile along the extruder barrel, the
temperature zone is separated into four zones; the feed zone, transition zone and
metering zone wall as shown in Figure 2.11 (Wagner, Mount and Giles, 2014). Resins
are input through the feed zone and the root diameter along this zone is constant. The
transition zone has a progressively increasing root diameter as compression is applied
(Whelan and Dunning, 1988). This zone is where the solid pellets is melted into molten
material. Finally, the metering zone has a uniform flight depth that transfers the melt
and controls the volumetric flow rate through the extruder into the die (Whelan and
Dunning, 1988).
                                                                                     19
        These controllers excluded the needs for rewiring and adding extra hardware
devices for each new configuration of logic. With that, it drastically reduced the
cabinet space that housed the logic while increasing the functionality of the controls.
PLC contained of CPU, inputs and outputs logical port as shown in Figure 2.12. The
CPU directs the PLC to perform control instructions, perform logic and arithmetic
operations, connect with other devices and execute internal diagnostics. Apart from
                                                                                    20
that, CPU also performs memory routines, constantly inspecting the PLC to avoid
programming errors and to protect the memory from being damaged.
       There are four fundamental procedures in the process of all PLCs; input scan,
internal program execution, output update and internal checks as shown in Figure 2.13
(Agarwal T., 2015). Input scanning operation detects the condition of all input devices
that are linked to PLCs while the output update process energize or de-energize the
output devices based on the CPU internal response. Most PLCs provide libraries of
function blocks for complicated controls such as temperature control and motion
control. Components can simply be control by setting the basic parameters needed into
the function block and the output is linked to the devices required to take response.
Internal program execution run the program logic created by the user. Lastly, internal
checks performs housekeeping operation which helps communicate PLCs with
programming terminals and execute internal diagnostics.
                                                                                   21
         PLCs uses five type of high level programming languages that are defined by
the international standard IEC-61131 (Gonzalez, 2015). Its solid standardization and
simple programming techniques speed up the production process of a machine maker.
Ladder logic is one of the most frequently used PLC languages where it utilises the
use of symbols and rungs for input and output logical control. Function block diagram
is another programming languages used in PLC where it describes the functions
between input and output variables. Structured text is a high-level language that
resembles modern C programming language. It uses sentenced commands to create
programs. Instruction list, on the other hand, is a low level language that contains
functions and variables defined by a simple list (Gonzalez, 2015). Sequential function
chart language is a technique of programming complex control system where it divides
large and complicated programming operations into simpler and more manageable
tasks.
2.6.2 Microcontroller
Microcontrollers are special purpose logic controllers that execute one operation
repeatedly. They are dedicated for single task execution. Similar to a PLC, they also
have CPU to execute the programs, RAM for data storage and input and output ports
that are capable for microcontrollers to process user command and perform a specific
                                                                                  22
       The development time taken for microcontrollers is longer than PLC due to
their usage of tedious machine language. More of that, microcontrollers do not offers
a standard user interface platform. The interfacing features might need to be
programmed manually onto an LCD or LED display.
        In this approach, most of the variables are passed from one module to another
whenever the other module is called. In short, modular programming has similar
behaviour with plugin where the function are added whenever it is needed. Versioning
is considered to be one of the most popular approach to ensure those independent
functions to work together (Chapter 2: The Benefits of Modular Programming, 2007).
Basically, it means that every module will have a consistent passing variables. The
modification of each module will be done only in the process being programmed in
the module.
CHAPTER 3
3.1 Introduction
       From the aspects of software configuration, the first step for a 3D printing
process is reading and interpreting the language used for human-machine
communication. This required machine to have its knowledge to identify and
understand the command. The system should made capable in performing actions
based on the command interpreted. Further than that, simplified information and
settings should be presented and accessible by end users. This involves interfacing the
                                                                                        26
       system program with end users via user interface. Linkage is made for end users to
       have appropriate level of control on the system actions.
       There are two main operations that are executed by the system during the operation;
       motion control and temperature control. Temperature control input setpoint
       temperature value from the HMI while performing controlling feedback operation on
       the temperature at different zone. Motion control reads file from HMI to perform
       interpretations and printing actions based on the file command. The general flow of
       the concept for the framework will be described in Figure 3.1.
Function
Modules
Based on the literature that have been reviewed previously, some of the basics
languages are required in order to allow human to interact with a machine which
includes the usage of G-code. Moreover, machine required to be equipped with the
knowledge to understand the language ‘spoken’ by a human to them. The knowledge
is induced into the machines by equipping G-code Interpreter in the machines. The
objective for such implementation to allow the machine to extract the relevant
information out from the commands and perform operation.
        The length of commands can be varied in length. For instance, a single ‘G01’
command can have all X, Y and Z position and might also only contain the X position.
Furthermore, in order to ensure robust G-code Interpreter, the position of each
information in a string of command should also be considered. One method proposed
is by first finding all the alphabets of relevant data that might exist in the string of
command. Rearranging and identify which data is before or after another.
        Lastly, extract the value of the particular alphabet by taking the middle
information between the alphabet and the one after it. Each line of commands is
extracted and stored in an array of structure, where the structure is the final information
of all positions and extrusion rate. In order to ensure reliable and stable G-code
Interpreter, several samples of G-code is used to test the interpreter as shown in
Appendix A and Appendix B. An overview flowchart of the G-code Interpreter is as
shown in Figure 3.2.
                                                28
The information extracted from G-code Interpreter during the pre-processing is then
used for the main 3D printing process. This is also considered as the main framework
for the 3D printing. The framework will starts by initializing and resetting all position
value and velocity relevant for the normal function of the 3D printer.
        After that, it will read the first structure of instruction from the array of G-code
information. All commands are grouped into a separate function block. G command
being extracted will go through each and every command and check for a match. The
particular function block will be run when it found a match. All function blocks are
programmed according to the modular programming approach to ease future
improvements. The G-code and M-code being included in the program are shown in
Table 3.1 and Table 3.2.
  G-code                                      Description
    G0       Rapid Coordinated Movement X Y Z E
    G1       Coordinated Movement X Y Z E
    G10      Retract filament according to settings of M207
    G11      Retract recover filament according to settings of M208
    G28      Home one or more axes
    G90      Use Absolute Coordinates
    G91      Use Relative Coordinates
    G92      Reset Current Coordinate as 0 Position
       Each of the code has its individual breakdown program flow. For instance, the
G-code G28 which is homing function initialize by commanding rapid motion for all
3 axes towards the direction of hardware configured home position. Each of the axis
stop when it reaches the minimum limit of the system and touches the end stop limit
switch. The stop command is completed by utilising the M112 emergency stop
command of the M Code. The absolute position is reset when all 3 axes reaches its
minimum limit. The program flow is as shown in Figure 3.3.
                                                                                   31
M112
G92
       After completing the executed function block, the next structure of instruction
will be read and the loop of flow continues. All other motion correction, temperature
                                                                                      32
control and emergency stop tasks are added in the loop of the framework as separate
task. Each task execution is weight by using the priority set.
Planning and designing are the initial procedures to construct an electrical system.
Cooling fan is mounted on the control panel to assist air ventilation within the control
panel. The arrangement of the devices in the control panel is arranged based on the
heat dissipation capability of the device. The larger the heat dissipated by the device,
the nearer it should be placed in the control panel to improve ventilation on the device.
        TB6600 motor drivers are selected for mixer stepper motor control due to the
limited cost available for purchasing EL7031 Beckhoff stepper motor card. This motor
driver, with its controller board mounted on a heat sink, has larger heat dissipation
capability. Therefore, it is placed beside the cooling fan as shown in Figure 3.4. Power
supplies are isolated from the controller to reduce the risk of short circuit. Power and
ground terminals are introduced to redirect and complete all connections.
                                                                                      33
       Labelling has been tagged on each cables to ease future development. Larger
cables are used for heavy duty applications such as triggering the heating of the heat
cartridge through a SSR. Shielded wires are used as signalling wire to reduce the risk
of e.m.f disturbance. Trunking is built to ensure proper arrangement of wires in the
control panel. Capacitive and inductive coupling can happen when all wires are
arranged and direct through the trunking. However, with shielded wires, the
disturbance can be reduce and it can reduce the effect of noise.
Grounding is categorized into 3 categories which is the power earth, safety earth and
signal earth. All 24V, 12V and 5V direct current supply are grounded to the power
earth. Alternating current is grounded to safety earth. Lastly, instead of separating
logic earth and analogue earth, all signals including digital and analogue signals’ wires
are grounded to signal earth. The electrical schematic is drawn as shown in Appendix
H before connection process begin.
                                                                                        34
There are two relays that are recommended to be applied in controlling the response
of the heat cartridge which is the SSR and EMR due to its suitability in input response.
However, SSR is selected to be used instead of EMR. This is because SSR generate
relatively smaller electrical disturbance as compare to EMR. More of that, SSR also
required lower input power for switching loads as compare to EMR.
        The 3D printer aims to print plastic materials which are usually melted below
540 ֯C and the heat bed temperature should be above room temperature to avoid
deflected printed product. Therefore, type K thermocouple is used as it has better
linearity among all the other type of thermocouple, good resistance against oxidation
below 1000 ֯C and it is the most stable among thermocouple of inexpensive material.
Thermocouple extension cables is used to extend the thermocouple from the machine
to the control panel which directly linked into the EL3314 Beckhoff 4-channel
thermocouple input terminal. However, in order to standardize all cables extension
through a 72 ways socket crimp connectors, thermocouple wires are extended through
a normal crimp connectors instead of a standard thermocouple extension connectors.
Therefore, the measured value of thermocouple might experience a slight differ in
temperature from the actual due to the potential drop between different materials of
connectors and thermocouple.
The stepper motor used in all axes has a specification of 1.8 ֯ angular displacement per
pulse and it is not equipped with any encoder feedback control. It is controlled by
system framework via EL7031 Beckhoff stepper card as shown in Figure 3.5.
...
PLC
         Moreover, the X, Y and Z axis stepper motor is equipped with a gear transition
and a lead screw which converts rotational motion to translational motion. The gear
ratio and the pitch-to-pitch distance of the lead screw is determined for accurate
positioning. The distance travelled per revolution of the axis motor is determined by
utilising the equation 3.1. The EL7031 Beckhoff stepper card required a software
configuration of scaling factor based on the motion transition for synchronisation
purpose with the stepper motor. Equation 3.2 is an equation provided by Beckhoff to
determine the software scaling factor required to configure for stepper motors without
                                                                                      37
encoder feedback control. By combining equation 3.1 and 3.2, the total equivalent
equation for determining the scaling factor is as shown in equation 3.3.
𝑑 = 𝐺𝑟 𝑥 𝑑𝑝𝑝 (3.1)
                                              𝑑𝑟𝑒𝑣
                           𝑆𝐹 =
                                    𝑓𝑢𝑙𝑙 𝑠𝑡𝑒𝑝𝑠 𝑥 𝑚𝑖𝑐𝑟𝑜𝑠𝑡𝑒𝑝𝑠                       (3.2)
                                            𝐺𝑟 𝑥 𝑑𝑝𝑝
                           𝑆𝐹 =
                                    𝑓𝑢𝑙𝑙 𝑠𝑡𝑒𝑝𝑠 𝑥 𝑚𝑖𝑐𝑟𝑜𝑠𝑡𝑒𝑝𝑠                       (3.3)
TG = 30 teeth
dpp = 5mm/rev
TP = 12 teeth
                                            𝐺𝑟 ∗ 𝑑𝑝𝑝
                           𝑆𝐹 =
                                    𝑓𝑢𝑙𝑙 𝑠𝑡𝑒𝑝𝑠 𝑥 𝑚𝑖𝑐𝑟𝑜𝑠𝑡𝑒𝑝𝑠
                                                                                       38
                                               𝑇𝑃
                                                    ∗ 𝑑𝑝𝑝
                                               𝑇𝐺
                            𝑆𝐹 =
                                    𝑓𝑢𝑙𝑙 𝑠𝑡𝑒𝑝𝑠 𝑥 𝑚𝑖𝑐𝑟𝑜𝑠𝑡𝑒𝑝𝑠
                                          12 𝑡𝑒𝑒𝑡ℎ
                                                      ∗ 5𝑚𝑚
                                           30 𝑡𝑒𝑒𝑡ℎ
                            𝑆𝐹 =         𝑠𝑡𝑒𝑝𝑠
                                   200         𝑥 64 𝑚𝑖𝑐𝑟𝑜𝑠𝑡𝑒𝑝𝑠
                                         𝑟𝑒𝑣
       The maximum angular velocity that can be achieved by the stepper motors is
determined by using the equation 3.4 according to the documentation stated in the
commissioning techniques of Beckhoff EL7031 stepper motor card. The base
frequency is configured to 8000 fullsteps/s while the motor frequency, depending on
the stepper motor used, is 200 fullsteps/rev. By using the parameters identified, the
maximum velocity is calculated as shown below.
                                                       𝑓𝑏𝑎𝑠𝑒
                                   𝜔𝑚𝑎𝑥𝑝𝑖𝑛𝑖𝑜𝑛 =
                                                      𝑓𝑚𝑜𝑡𝑜𝑟                       (3.4)
                                                𝜔𝑚𝑎𝑥𝑝𝑖𝑛𝑖𝑜𝑛
                               𝑣𝑚𝑎𝑥𝑔𝑒𝑎𝑟 =
                                                 𝐺𝑟 𝑥 𝑑𝑝𝑝                          (3.5)
𝑣𝑚𝑎𝑥𝑔𝑒𝑎𝑟 = 20 𝑚𝑚/𝑠
       The distance travelled per revolution for the stepper motors at feeder and mixer
are also calculated using equation 3.1. The accuracy and reliability of the stepper
                                                                                         39
motors using the calculated scaling factor is determined by using mean root square
error and correlation method respectively. The accuracy can be determined from the
equation 3.4. The lower the root mean square error, the better the accuracy. As for the
reliability measurement, it is determined via correlation formula as shown in equation
3.5. Similar to correlation, the higher the correlation value, the higher the reliability of
the system.
                                            𝑛
                                    1
                            𝑅𝑀𝑆𝐸 = √ ∑(𝑦𝑖 − 𝑦̂𝑖 )2
                                    𝑛
                                           𝑖=1
                                                                                     (3.6)
The main materials that will be used in this project will be thermoplastics. In order for
it to be melted, fused and extruded successfully, the temperature along the extruder
should be controlled. There are total three thermocouples and two heaters along the
barrel for extrusion and one thermocouple and heater is placed at the tip of the extruder
which is the nozzle to keep the temperature in control. The temperature will be
increasing along the barrel up until the extruder nozzle. The extruder nozzle
temperature will be at or slightly above the maximum glass transition temperature of
both fused thermoplastic.
The final part for the 3D printer is on the HMI. This will be a user friendly interface
that is built to ease non-technical personnel to key in relevant information for the
printer to print an object. The interface will have a direct link to the variables of the
program during the execution phase. Commands that are needed to be added into the
interface will be such as the text reading, commence printing, emergency stop and
some basic resets, homing control and temperature control. An overview of the HMI
is shown in Figure 3.7.
       File reading operation is interfaced with HMI to obtained direct command from
the user. It awaits for a trigger from the File Read button and input the file path from
the HMI. The operation check for file existence before commencing reading operation.
Error description will be displayed on the HMI if the file cannot be found and it will
wait for another triggering of file read operation. The program flow of the file reading
task interfacing via HMI is shown in Figure 3.8.
                                                                               42
Figure 3.8 Program Flow of File Reading Operation Interfaced with HMI
       The HMI should display the actual temperature measured by the thermocouple
and the setpoint temperature configured by the user. Temperature is controlled by
background temperature controller function interfacing with HMI. The temperature
controller compare setpoint temperature obtained from HMI with the actual
                                                                                      43
temperature measured by thermocouple and uses PID to control the heat cartridge
response accordingly. For instance, if setpoint temperature is higher than actual
temperature, the temperature controller will trigger the heat cartridge to heat up to the
respective temperature. A logical flow of temperature controlling via HMI is shown in
Figure 3.9.
CHAPTER 4
4.1 Introduction
       The first step for a 3D printing process is receiving and interpreting the
language used for human-machine communication. This required machine to have its
knowledge to identify and understand the command. After interpreting the command,
3D printer should have its ability to perform operation automatically and pause or stop
the process when the process might harm the surrounding. The reliability of the
interpreter is determined by measuring the flexibility and repeatability of the
interpreter in reading and extracting the correct information from random orientated
G-code.
This subsection will provide a little recap on the experiment carried out during the first
part of this project and also some of the improvements made. The early experiment
instilled thoughts and critical thinking in enhancing the interpreter framework to
                                                                                           45
ensure stability and reliability. The following content will summarise the details of the
experiment, results and the improvements made to obtain a better interpreter.
        G-code Interpreter commenced by reading all the G-code from a declared text
file and storing it in a buffer. The raw data from the text file is not relevant in the future
process of 3D printing. Therefore, a temporary buffer with limited size is used to read
the text file. When the buffer is filled, G-code Interpreter will parse the raw data and
stored in into lines of code by identifying the next line command being read. After that,
it will check for end of file state from the text file being read and repeat if it is not the
end of file. The code will proceed to the extraction of information from every line of
G-code for the next step.
        The results of the G-code Interpreter using the sample G-code shown in
Appendix A is shown in Table 4.1. More of that, the result of the testing for G-code
Interpreter on the G-code shown in Appendix B is shown in Table 4.2. All commented
lines of G-code is filtered at the first stage of G-code Interpreter which is the reading
from text file stage.
       From the results of the 2nd attempted G-code Interpreter, it is shown that all the
G-code from the sampled code is extracted correctly in stored in correct location. All
extracted data of the G-code is stored within an array of structure known as the
“GCodeStructure”. The size of the array is set up to 20,000 during the testing to ensure
all lines of G-code in the sample can be stored.
                                                                                  48
                                         In progress
                                         Completed
                                         Tested
                                         Probe Function
                                         Report Function
                                                                                    49
The testing of the operation for motion and temperature control required
implementation on hardware structure. The connections and position of all hardware
are configured before testing is performed on the machine as shown in Figure 4.1.
       The mechanical end-stop switch is mounted on the end of each axis to perform
homing operation and to avoid machine from exceeding minimum or maximum
allowable travel limit for machine safety purposes. End-stop switch is mounted only
at one end of each axis for homing configuration and minimum allowable travel limit.
The maximum allowable travel limit is set via software configuration of limit switch.
An overall schematic of the end-stop is shown in Figure 4.2.
       The temperature control also required heating the heat cartridges and obtaining
feedback temperature value from thermocouples. Heat cartridges is triggered by SSR
and controlled by temperature control function of Beckhoff libraries using setpoint
temperature obtained from HMI and actual temperature fed from thermocouples. The
schematic flow of the temperature control is shown in Figure 4.3.
The electronic components wiring from the machine are connected to the 72 ways
socket female connector on the back of the machine accordingly. Similarly, another
set of wires are connected from the 72 ways socket male connector into the control
panel to complete the wiring connections. Cooling fans within the control panel which
is driven by AC supply is directly connected to the main AC power supply to
constantly ventilate the control panel. Testing is done and is concluded that the
electrical wiring for the device is completed.
       There are total three stepper motors that are mainly driven by stepper motor
driver. And the control of stepper motor required a 5V pulse. Therefore, voltage
regulators are applied to step down digital voltage output from Beckhoff digital output
card. 5V pulse is successfully sent into the motor driver. An overview of the circuit
connection in the control panel is as shown in Figure 4.4.
                                                                                     51
Supply
        The HMI of the 3D Printer is shown in Figure 4.5. It is separated into 3 sets
which is the overall system status, control and configuration and selection box. Overall
system status is shown in the left side of the HMI. It gives an overview of temperature
in all points of the extruder and heat bed. The control and configuration box is
positioned in the middle, allowing user to have manual control and simple
configuration of the system. User can commands any of the axes to jog or perform auto
homing via user interface. Furthermore, temperature for all points in the system is also
configured via the control and configuration box. Lastly, the selection box consists of
categories of control and configuration. User can configured system temperature by
selecting the “Settings” in the selection box. Other than that, manual interrupt such as
pause and emergency stop which is used for safety and flexibility purpose can also be
controlled via selection box.
                                                                                    52
        Experiments are conducted to identify the accuracy and reliability of the scale
factor configured and the stepper motor performance as shown in Appendix F. The
root mean square error and correlation of the translated motion is calculated using
excel sheet based on the experimental data. The root mean square and correlation is 0
and 1 respectively. There are no tolerance between the actual and programmed. By
referring to Graph 1, it is shown that the programmed travelled distance has a perfect
linear relationship with actual travelled distance. Similar position is experimented
repeatedly to ensure reliable performance. In conclude, the motion of the system is
measured to be accurate and reliable.
                                                                                                                  53
                                      Furthermore, calibration has been made and the printing volume is identified
to be 210 x 158 x 76mm. However, the printing volume is scale down to 200mm x
150mm x 76mm to avoid the hardware structure from over run that can cause damage.
                                      According to the Graph 2 and the correlational value, it is shown that the
temperature measured by thermocouple shows a near to linear relationship with respect
                                                                                                                  54
                                      225
                                      175
                                      125
                                       75
                                       25
                                            25        75        125     175       225        275    325     375
                                                                 Temperature of Thermistor ( ֯C)
𝑇𝑡ℎ𝑒𝑟𝑚𝑜𝑐𝑜𝑢𝑝𝑙𝑒 = 241.6 ֯C
𝑇𝑚𝑒𝑎𝑠𝑢𝑟𝑒𝑑                                        = 200.0 ֯C
                                                                         𝑇𝑡ℎ𝑒𝑟𝑚𝑜𝑐𝑜𝑢𝑝𝑙𝑒 − 𝑇𝑚𝑒𝑎𝑠𝑢𝑟𝑒𝑑
                                        𝑃𝑒𝑟𝑐𝑒𝑛𝑡𝑎𝑔𝑒 𝑒𝑟𝑟𝑜𝑟, 𝑒𝑎𝑐𝑡𝑢𝑎𝑙 =                                𝑥 100%
                                                                                 𝑇𝑚𝑒𝑎𝑠𝑢𝑟𝑒𝑑
                                                                                241.6 − 200
                                                  𝑃𝑒𝑟𝑐𝑒𝑛𝑡𝑎𝑔𝑒 𝑒𝑟𝑟𝑜𝑟, 𝑒𝑎𝑐𝑡𝑢𝑎𝑙 =               𝑥 100%
                                                                                   241.6
                                                           𝑃𝑒𝑟𝑐𝑒𝑛𝑡𝑎𝑔𝑒 𝑒𝑟𝑟𝑜𝑟, 𝑒𝑎𝑐𝑡𝑢𝑎𝑙 = 20.8%
                                                                                  55
By using the calibrated equation generated, the percentage error using the stated
equation can be identified. The percentage error is reduced by 20.3% from the actual
thermocouple measurement. In conclusion, the accuracy can be improved by using the
polynomial equation generated. However, further calibration need to be performed to
refined the accuracy of the thermocouple system response.
                                          𝑇𝑐𝑎𝑙𝑖𝑏𝑟𝑎𝑡𝑒𝑑 − 𝑇𝑚𝑒𝑎𝑠𝑢𝑟𝑒𝑑
        𝑃𝑒𝑟𝑐𝑒𝑛𝑡𝑎𝑔𝑒 𝑒𝑟𝑟𝑜𝑟, 𝑒𝑐𝑎𝑙𝑖𝑏𝑟𝑎𝑡𝑒𝑑 =                           𝑥 100%
                                                  𝑇𝑚𝑒𝑎𝑠𝑢𝑟𝑒𝑑
                                              201.0 − 200.0
            𝑃𝑒𝑟𝑐𝑒𝑛𝑡𝑎𝑔𝑒 𝑒𝑟𝑟𝑜𝑟, 𝑒𝑐𝑎𝑙𝑖𝑏𝑟𝑎𝑡𝑒𝑑 =                 𝑥 100%
                                                  200.0
                      𝑃𝑒𝑟𝑐𝑒𝑛𝑡𝑎𝑔𝑒 𝑒𝑟𝑟𝑜𝑟, 𝑒𝑐𝑎𝑙𝑖𝑏𝑟𝑎𝑡𝑒𝑑 = 0.5%
                                                                                       56
CHAPTER 5
5.1 Conclusions
Based on the results obtained with the assessment of the performance of the framework
and reliability of the system, the main aim of developing a PC based 3D printer is
fulfilled. The minimum objective which is to develop a framework for the 3D printing
process is accomplished through the development of G-code Interpreter techniques
which provides flexibility in reading codes with inconsistent arrangement of position
and the motion control of the printer.
       The reliability and accuracy of the motion positioning system of the printer is
guaranteed via configuration of scale factor. Experiments were conducted to prove the
accuracy and reliability of the motion positioning system. The accuracy is very high
as the root mean square error calculated using the data obtained is 0. The reliability of
the system is very high as the programmed distance travelled has perfect linear
relationship with the measured distance travelled.
       The other objectives are also initiated and in progress throughout the period of
development. Tasks are taken to paves way for future development. The practice of
printer development in different areas which includes the arrangement of wires,
                                                                                    57
Future development can be done by fine tuning the PID temperature control function
of the system. The temperature system response is required to be configured to
optimise the temperature control system. Overshoot can be implemented to speed up
the heating process. However, the overshoot percentage should not be too high to avoid
time taken required for the temperature to reach stable condition.
       More of that, more improvements can also be done on the HMI by adding more
features to the HMI. Due to time limitations and many literatures are required to
review and development work are required, HMI is only completed up to the minimal
requirements of controlling the motion. In the current state, the buttons for most of the
features are created for future progress but not all features are fully programmed and
equipped.
REFERENCES
Dan (2016). How to build an 2-axis Arduino CNC Gcode Interpreter. [online]
Available at: https://www.marginallyclever.com/2013/08/how-to-build-an-2-axis-
arduino-cnc-gcode-interpreter/ [Accessed 1 Apr. 2018].
Brei, T. (2008). RTD vs Thermocouple - What's the difference?. [online] Sure Controls.
Available at: http://www.surecontrols.com/rtd-vs-thermocouple/ [Accessed 1 Apr.
2018].
Heath, J. (2016). Temperature Sensors: thermocouple vs. RTD vs. thermistor vs.
semiconductor     IC.     [online]    Analog      IC    Tips.    Available at:
http://www.analogictips.com/temperature-sensors-thermocouple-vs-rtd-vs-
thermistor-vs-semiconductor-ic/ [Accessed 1 Apr. 2018].
Chen, K. (2015). Choice of Wiring System & Types of Cables Used In Internal Wiring.
[online] Linkedin. Available at: https://www.linkedin.com/pulse/choice-wiring-
system-types-cables-used-internal-kevin-chen [Accessed 1 Apr. 2018].
Kain, A., Mueller, C. and Reinecke, H. (2009). High aspect ratio- and 3D- printing of
freestanding sophisticated structures. Procedia Chemistry, 1(1), pp.750-753.
Argawal, T. (2015). Different Types of Relays used in Protection System and their
Workings. [online] ElProCus - Electronic Projects for Engineering Students. Available
at:   https://www.elprocus.com/different-types-of-relays-used-in-protection-system-
and-their-workings/ [Accessed 1 Apr. 2018].
Wendt, Z. (2017). Solid State vs. Electromechanical Relays. [online] Available at:
https://www.arrow.com/en/research-and-events/articles/crydom-solid-state-relays-vs-
electromechanical-relays [Accessed 1 Apr. 2018].
                                                                                      60
Jose, J. (2014). Design, Development and Analysis of FDM based Portable Rapid
Prototyping Machine. International Journal of Latest Trends in Engineering and
Technology (IJLTET), [online] 4(4), pp.1-5. Available at: https://www.ijltet.org/wp-
content/uploads/2014/11/1.pdf [Accessed 1 Apr. 2018].
Negi, S., Dhiman, S. and Kumar Sharma, R. (2014). Basics and applications of rapid
prototyping medical models. Rapid Prototyping Journal, [online] 20(3), pp.256-267.
Available at:
https://www.researchgate.net/profile/Sushant_Negi2/publication/262574639_Basics_
and_applications_of_rapid_prototyping_medical_models/links/568cac2408ae153299
b66f3d.pdf [Accessed 1 Apr. 2018].
Sitthi-Amorn, P., Ramos, J., Wangy, Y., Kwan, J., Lan, J., Wang, W. and Matusik,
W. (2015). MultiFab. ACM Transactions on Graphics, 34(4), pp.129:1-129:11.
Holmström, J., Partanen, J., Tuomi, J. and Walter, M. (2010). Rapid manufacturing
in the spare parts supply chain. Journal of Manufacturing Technology Management,
21(6), pp.687-697.
Wagner, J., Mount, E. and Giles, H. (2014). Extrusion. Oxford [u.a.]: Andrew,
Elsevier.
Kim, N., Ryu, M., Hoo, S., Saksena, M., Choi, C. and Shin, H. (1996). Visual
Assessment of a Real-Time System Design: A Case Study on a CNC Controller.
IEEE Real-Time Systems Symposium. [online] Available at:
https://www.researchgate.net/profile/Manas_Saksena/publication/3677999_Visual_A
ssessment_of_a_Real-
Time_System_Design_A_Case_Study_on_a_CNC_Controller/links/00b49519f97e5
0a4d7000000/Visual-Assessment-of-a-Real-Time-System-Design-A-Case-Study-on-
a-CNC-Controller.pdf [Accessed 1 Apr. 2018].
Shin, S., Suh, S. and Stroud, I. (2007). Reincarnation of G-code based part programs
into STEP-NC for turning applications. Computer-Aided Design, [online] 39(1),
pp.1-16. Available at:
http://www.alvarestech.com/temp/ana/Reincarnation%20of%20G-
code%20based%20part%20programs%20into%20STEP-NC%20for.pdf [Accessed 1
Apr. 2018].
Denford G and M Programming for CNC Milling Machines. (n.d.). West Yorkshire:
Denford Limited, pp.30-33.
                                                         63
APPENDICES
  ; thinWallAllowedOverlapPercentage,30
  ; singleExtrusionMinLength,1
  ; singleExtrusionMinPrintingWidthPercentage,50
  ; singleExtrusionMaxPrintingWidthPercentage,200
  ; singleExtrusionEndpointExtension,0.2
  ; horizontalSizeCompensation,0 G90
  M83
  G28 ;z
  G1 X50 Y0 Z10 F3000 ; move to wait position off
  table
  M106 S0 ;fan speed
  M190 R60 T0;stabalize heat bed temperature
  M109 R235 T0;stabalize extruder temperature
  M300 S1000 P400 ; Beep
  M300 S1500 P400 ; Beep
  G92 E0               ;zero the extruded length again
  G1 Z0.5 ; position nozzle
  G1 X100 Y0 E8 F1000; slow wipe
  G92 E0
  ;Put printing message on LCD screen
  M117 Printing...
  G1 Z0.270 F1800
  ; process Process1
  ; layer 1, Z = 0.270
  T0
  ; tool H0.300 W0.528
  ; skirt
  G1 X76.713 Y120.897 F4000
  G1 X77.683 Y120.495 E0.0212 F1440
  G1 X97.694 Y120.495 E0.4036
  G1 X98.126 Y120.567 E0.0088
  G1 X98.572 Y120.721 E0.0095
  G1 X98.957 Y120.930 E0.0088
  G1 X100.218 Y121.913 E0.0323
                                               64
      Research            on
      methods proposed
M1    by other parties in
      3D Printing and
      controller used.
      Research            on
      techniques           to
      interpret          and
M2
      perform      G-code
      function            for
      Beckhoff PLC.
      Assemble
      mechanical
M3
      structure for mixer
      and extruder.
      Perform          wiring
      connection          for
      stepper          motor,
M4
      thermocouple and
      switches          with
      Beckhoff IO Card.
      Study       on      the
      programming
      techniques           of
M5    required     sensors
      and actuators and
      Beckhoff          PLC
      programming.
                                                                                                       66
      Brainstorming              3D
M6    Printer              firmware
      architecture
D                                                                                                                                                                        D
                           10
C C
                         55
B                                                                                                                                                                        B
                UNLESS OTHERWISE SPECIFIED:     FINISH:                                    DEBURR AND
                                                                                                                     DO NOT SCALE DRAWING            REVISION
                DIMENSIONS ARE IN MILLIMETERS                                              BREAK SHARP
                SURFACE FINISH:                                                            EDGES
                TOLERANCES:
                  LINEAR:
                  ANGULAR:
CHK'D
APPV'D
                MFG
A               Q.A                                                  MATERIAL:                           DWG NO.                                                         A
                                                                                                                                                                    A4
                                                                                   Mild Steel
                                                                                                                  Z Axis Spacer1
                                                                     WEIGHT:                             SCALE:1:1                          SHEET 1 OF 1
    6   5                    4                                                 3                                      2                                         1
                                                                           69
90.6    77    13.6
89.3    75    14.3
88.1    74    14.1
86.3    73    13.3
 84     73    11
82.8    72    10.8
 81     71    10
80.1    69    11.1
79.9    68    11.9
77.9    67    10.9
77.1    66    11.1
75.3    65    10.3
73.3    63    10.3
70.2    62    8.2
69.8    60    9.8
65.5    57    8.5
61.9    54    7.9
54.9    48    6.9
51.6    46    5.6
                     72
47.5   43     4.5
45.1   41     4.1
43     39      4
39.8   37     2.8
37.1   35     2.1
35.6   33     2.6
34.3   32     2.3
34.2   32     2.2
28.1   30     1.9
27.4   30     2.6
26.9   29     2.1
26.6   28     1.4
77.4   65     12.4
76.3   65     11.3
59.3   54     5.3
58.4   54     4.4
49.8   46     3.8
48.6   44     4.6
41.2   38     3.2
39.4   36.5   2.9
                                            73
                                                                                                                                                                                                                               REVISION
                                                                                                                      PC-BASED 3D PRINTER                                                                                        0
                                                                                                                                                                           0   27/1/2018   Vincent
                                                                                                                                                                          REV.    DATE         NAME               CHANGES      SCHEME
                                                                                             LOCATION:                                                                    User data 1                            User data 2
                          CONTRACT:                                                                             +L1                                          Location 1   Vincent Hoong
                                                                                                                                                                                                                                 02
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                              2           3              4                 5      6     7                          8                9                10
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                              2          3                   4            5           6          7                    8                   9                   10
                                                                                                                                   -TRUNKING
                                                                           MOTOR CARD (S1)            MOTOR CARD (S2)
                                                                           RELAY (H1)
                                                                                        GROUND 12V      24V       LIVE  NEUTRAL
                                                                                        TERMINALTERMINALTERMINALTERMINALTERMINAL
RELAY (H2)
                                                                                                                                                                                   AIR FILTER
                                                                           RELAY (H3)      RELAY (H4)        RELAY (H5)
BASE PANEL
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                               2   3            4           5         6       7                   8                   9                10
                                                                                                   24V DC                                           P24
                                                                                                POWER SUPPLY                                        G
                                                                                                   12V DC                                           P12
                                                                                                POWER SUPPLY                                        G
                                                                                                    LCD
                                                                                                   DISPLAY
FAN
L N PE
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                              2                            3                          4                    5      6               7                   8                   9                10
C-S1 P5-S1
                                                                                  GND P24
                                                                                                        GND P5
5V
                                                                                            -U1
                                                                                                  12V
                                                                                             C-S2                                                                  P5-S2
                                                                                                                     GND P24
                                                                                                                                           GND P5
5V
                                                                                                                               -U2
                                                                                                                                     12V
                                                                           C-S3                                                                            P5-S3
                                                                                  GND P24
                                                                                                        GND P5
5V
                                                                                            -U3
                                                                                                  12V
                                                                                             C-S4                                                                  P5-S4
                                                                                                                     GND P24
                                                                                                                                           GND P5
5V
                                                                                                                               -U4
                                                                                                                                     12V
                                                                                                                                                            20
GND
                                                                                  GND P24
                                                                                                        GND P5
5V
                                                                                            -U5
                                                                                                  12V
                                                                                                                                                                    21
GND
                                                                                                                     GND P24
                                                                                                                                           GND P5
5V
                                                                                                                               -U6
                                                                                                                                     12V
                                                          P24
                                                                GND
                          PROJECT:                                                                               TITLE:                                                                                                    PREVIOUS   REVISION
                                             PC-BASED 3D PRINTER                                                                     POWER SCHEMATIC CIRCUIT 2                                                               05           0
                                                                                                                                                                            0    28/1/2018   Vincent
                                                                                                                                                                           REV.     DATE         NAME            CHANGES     NEXT        SCHEME
                                                                                                                                                                           DRAWN BY:                    APPROVED BY:
                          CONTRACT:                                                                                                                                        Vincent Hoong
                                                                                                                                                                                                                             08           06
                                                                                                                                                    UTAR
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                              2   3                       4        5         6          7                   8                   9                10
H1
                                                                               H1
                                                                                    -H1
                                                                                                                           C49                                            C49
H2
                                                                               H2
                                                                                    -H2
                                                                                                                           C50                                            C50
H3
                                                                               H3
                                                                                    -H3
                                                                                                                           C51                                            C51
H4
                                                                               H4
                                                                                    -H4
                                                                                                                           C52                                            C52
H5
                                                                               H5
                                                                                    -H5
                                                                                                                           C53                                            C53
                                                          L
                                                              L
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                                2                               3                                               4                        5      6           7                               8                                       9                               10
P12 P12
-GND 1 -GND 2
                                                         20                                                                                                  -DIR-1   1                      20                                                                                  -DIR-2   1
                                                                                                                                                                          20                                                                                                                  20
                                                                       -DIR+1   1                                                                                                                  -DIR+2   1
                                                         20                                                                                                  -PUL-1   1                      20                                                                                  -PUL-2   1
                                                                                                                                                                          P5-S1                                                                                                               P5-S2
                                                                       -PUL+1   1                                                                                                                  -PUL+2   2
                                                         20                                                                                                  -ENA-1   5                      20                                                                                  -ENA-2   1
                                                                                                                                                                          20                                                                                                                  20
                                                                       -ENA+1   1                                                                                                                  -ENA+2   2
                                                                                             C25
                                                                                                              C26
                                                                                                                               C27
                                                                                                                                                  C28
                                                                                                                                                                                                                         C29
                                                                                                                                                                                                                                         C30
                                                                                                                                                                                                                                                      C31
                                                                                                                                                                                                                                                                   C32
P12 P12
-GND 3 -GND 4
                                                         21                                                                                                  -DIR-3   1                      21                                                                                  -DIR-4   1
                                                                                                                                                                          21                                                                                                                  21
                                                                       -DIR+3   3                                                                                                                  -DIR+4   4
                                                         21                                                                                                  -PUL-3   1                      21                                                                                  -PUL-4   1
                                                                                                                                                                          P5-S3                                                                                                               P5-S4
                                                                       -PUL+3   3                                                                                                                  -PUL+4   4
                                                         21                                                                                                  -ENA-3   1                      21                                                                                  -ENA-4   2
                                                                                                                                                                          21                                                                                                                  21
                                                                       -ENA+3   3                                                                                                                  -ENA+4   4
                                                                                       C33
                                                                                                        C34
                                                                                                                         C35
                                                                                                                                            C36
                                                                                     C33                C34              C35              C36
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                                   2                  3            4            5               6   7                   8                          9            10
-EL7031(X AXIS)
P24 A+ A- B+ B- G
                                                                                         C1
                                                                                                                C2
                                                                                                                                   C3
                                                                                                                                                   C4
                                                                                P24
                                                                                                                                                                                  GND
24V C1 C2 C3 C4 GND
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                                   2                  3            4            5               6   7                   8                          9            10
-EL7031(Y AXIS)
P24 A+ A- B+ B- G
                                                                                         C5
                                                                                                                C6
                                                                                                                                   C7
                                                                                                                                                   C8
                                                                                P24
                                                                                                                                                                                  GND
24V C5 C6 C7 C8 GND
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                                   2                  3            4            5               6        7                   8                          9            10
-EL7031(Z AXIS)
P24 A+ A- B+ B- G
                                                                                P24
                                                                                         C13
                                                                                                                C14
                                                                                                                                   C15
                                                                                                                                                        C16
                                                                                                                                                                                       GND
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                                   2                  3            4            5               6        7                   8                          9            10
-EL7031(E AXIS)
P24 A+ A- B+ B- G
                                                                                P24
                                                                                         C19
                                                                                                                C20
                                                                                                                                   C21
                                                                                                                                                        C22
                                                                                                                                                                                       GND
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                                   2                  3             4               5                 6          7                   8                            9            10
-EL2008
                                                                                        H1
                                                                                                   H2
                                                                                                                 H3
                                                                                                                                 H4
                                                                                                                                        H5
                                                                                 P24
                                                                                                                                                   C47
                                                                                                                                                                C55
                                                                                                                                                                                  C57
                                                                                                                                                                                                 GND
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                                  2                    3             4                5                   6           7                   8                            9            10
-EL2008
                                                                                 P24
                                                                                        C-S1
                                                                                                    C-S2
                                                                                                                  C-S3
                                                                                                                                   C-S4
                                                                                                                                                                                                      GND
24V C-S1 C-S2 C-S3 C-S4 NIL NIL NIL NIL GND
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                                  2                    3             4             5                   6          7                   8                             9            10
-EL1889
                                                                                                                                        98
                                                                                                                                                    99
                                                                                 P24
                                                                                                                                                                 100
                                                                                                                                                                                   101
                                                                                        C10
                                                                                                    C12
                                                                                                                  C18
                                                                                                                                C24
                                                                                                                                                                                                   GND
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                              2   3            4          5         6      7                   8                   9                10
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                                2                3            4         5           6    7                   8                   9                10
                                                                                                                     -E1
                                                                                                           C23                                                                    C24
                                                                                                                                        C24
EMERGENCY STOP
                                                                                                                     -ES1
                                                                                                           C9                                                                     C10
                                                                                                                                        C10
X-AXIS ENDSTOP
                                                                                                                     -ES2
                                                                                                           C11                                                                    C12
                                                                   C23
                                                                                                                                        C12
Y-AXIS ENDSTOP
                                                                         C9
                                                                              C11
                                                                                                                     -ES3
                                                                                                           C17                                                                    C18
                                                                                                                                        C18
Z-AXIS ENDSTOP
                                                                                    C17
                                                         FROM 72 WAY SOCKET
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                                      2                   3                                   4                         5                            6                                  7                          8                                9                            10
C1 C5 C13 C19
                                                                       C3
                                                                                     C4
                                                                                                                                           C7
                                                                                                                                                         C8
                                                                                                                                                                                                            C15
                                                                                                                                                                                                                           C16
                                                                                                                                                                                                                                                                                            C21
                                                                                                                                                                                                                                                                                                           C22
                                                                            -MotB1
                                                                                                                                                -MotB2
                                                                                                                                                                                                                  -MotB3
                                                                                                                                                                                                                                                                                                  -MotB4
                                                                                                       C27
                                                                                                                      C28
                                                                                                                                                                              C31
                                                                                                                                                                                             C32
                                                                                                                                                                                                                                                                C35
                                                                                                                                                                                                                                                                                C36
                                                                                                             -MotB5
                                                                                                                                                                                    -MotB6
                                                                                                                                                                                                                                                                      -MotB7
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                              2              3                 4      5           6         7                   8                   9                10
                                                                           C37   -+   20                                       C39       -+   21
                                                                                       -THERMOCUP1                                             -THERMOCUP2
C38 -- 20 C40 -- 21
                                                                           C41   -+   22                                       C43       -+   23
                                                                                       -THERMOCUP3                                             -THERMOCUP4
C42 -- 22 C44 -- 23
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
                                        1                              2   3                  4      5                     6      7                   8                   9                10
                                                                               C49                       -L   17
                                                                                                               -HEAT CATRIDGE 1
-N 17
                                                                               C50                       -L   18
                                                                                                               -HEAT CATRIDGE 2
-N 18
                                                                               C51                       -L   19
                                                                                                               -HEAT CATRIDGE 3
-N 19
SOLIDWORKS Electrical
                        Document realized with version : 2015.0.3.24
4/16/2018                  Beckhoff Embedded PC series CX5000 - CX5010, CX5020 | Embedded PC series with Intel® Atom™ processor
CX5010, CX5020
                                                                                       Status
  Ethernet and                                                                         LEDs
  USB connection
                                                                                       Battery compartment
                                                                                       (behind the flap)
  DVI connection
                                                                                       Compact
                                                                                       Flash insert (behind
  Optional interfaces                                                                  the flap)
  e. g. RS232, PROFIBUS,
  CANopen
Depending on the installed TwinCAT runtime environment, the CX5010/CX5020 can be used for the implementation of PLC or PLC/Motion
Control projects (with or without visualisation).
The extended operating temperature range between -25 and +60 °C enables application in climatically demanding situations.
 Accessories
 CX1900-0204                                                                                                        1 GB DDR2 RAM for CX5020,
                                                                                                                    instead of 512 MB DDR2 RAM;
                                                                                                                    pre-assembled ex factory
 CX1800-0400                                                                                                        Windows Embedded Standard 7 E
                                                                                                                    instead of Windows Embedded
                                                                                                                    Standard 2009; requires at least 1
                                                                                                                    GB RAM and 8 GB Compact
                                                                                                                    Flash; supported devices: CX5020
 CX1800-0401                                                                                                        Windows Embedded Standard 7 P
                                                                                                                    32 bit instead of Windows
                                                                                                                    Embedded Standard 2009; requires
https://www.beckhoff.com/english.asp?embedded_pc/cx5010_cx5020.htm                                                                                       2/4
4/16/2018                 Beckhoff Embedded PC series CX5000 - CX5010, CX5020 | Embedded PC series with Intel® Atom™ processor
                                                                                                       at least 1 GB RAM and 8 GB
                                                                                                       Compact Flash; supported devices:
                                                                                                       CX5020
 CX1900-00xx                                                                                           Optionally expandable memory ex
                                                                                                       factory.
                                                                                                       Instead of 128 MB Compact Flash
                                                                                                       card: 1, 2, 4 and 8 GB Compact
                                                                                                       Flash card
 CX1900-00xx                                                                                           Aditionally expandable memory: 1,
                                                                                                       2, 4 and 8 GB Compact Flash card
 CX1900-001x                                                                                           Formatting a Compact Flash card
                                                                                                       (bootable)
 Optional interfaces
 CX5010-N020                                                                                           audio interface, 3 x 3.5 mm jack
                                                                                                       sockets, Line In, Mic In, Line Out
                                                                                                       or 5.1 Surround
 CX5010-N030                                                                                           RS232 interface, D-sub plug, 9-pin
 CX5010-N031                                                                                           RS485 interface, D-sub socket, 9-
                                                                                                       pin, configuration as an end point,
                                                                                                       without echo, termination on
 CX5010-N031-0001                                                                                      RS485 interface, D-sub socket, 9-
                                                                                                       pin, configuration as an end point,
                                                                                                       with echo, termination on
 CX5010-N031-0002                                                                                      RS485 interface, D-sub socket, 9-
                                                                                                       pin, configuration as drop point,
                                                                                                       without echo, termination off
 CX5010-N031-0003                                                                                      RS485 interface, D-sub socket, 9-
                                                                                                       pin, configuration as drop point,
                                                                                                       with echo, termination off
 CX5010-N031-0004                                                                                      RS422 interface, D-sub socket, 9-
                                                                                                       pin, configuration as full duplex
                                                                                                       end point, termination on
 CX5010-B110                                                                                           EtherCAT slave interface,
                                                                                                       EtherCAT IN and OUT (2 x RJ45)
 CX5010-M310                                                                                           PROFIBUS master interface, D-sub
                                                                                                       socket, 9-pin
 CX5010-B310                                                                                           PROFIBUS slave interface, D-sub
                                                                                                       socket, 9-pin
 CX5010-M510                                                                                           CANopen master interface, D-sub
                                                                                                       plug, 9-pin
 CX5010-B510                                                                                           CANopen slave interface, D-sub
                                                                                                       plug, 9-pin
 CX5010-M930                                                                                           PROFINET RT, controller
                                                                                                       interface, Ethernet (2 x RJ45)
 CX5010-B930                                                                                           PROFINET RT, device interface,
                                                                                                       Ethernet (2 x RJ45 switched)
 CX5010-B950                                                                                           EtherNet/IP slave interface,
                                                                                                       Ethernet (2 x RJ45 switched)
 CX5020-N020                                                                                           audio interface, 3 x 3.5 mm jack
                                                                                                       sockets, Line In, Mic In, Line Out
                                                                                                       or 5.1 Surround
 CX5020-N030                                                                                           RS232 interface, D-sub plug, 9-pin
 CX5020-N031                                                                                           RS485 interface, D-sub socket, 9-
                                                                                                       pin, configuration as an end point,
                                                                                                       without echo, termination on
 CX5020-N031-0001                                                                                      RS485 interface, D-sub socket, 9-
                                                                                                       pin, configuration as an end point,
                                                                                                       with echo, termination on
 CX5020-N031-0002                                                                                      RS485 interface, D-sub socket, 9-
                                                                                                       pin, configuration as drop point,
                                                                                                       without echo, termination off
 CX5020-N031-0003                                                                                      RS485 interface, D-sub socket, 9-
                                                                                                       pin, configuration as drop point,
                                                                                                       with echo, termination off
 CX5020-N031-0004                                                                                      RS422 interface, D-sub socket, 9-
                                                                                                       pin, configuration as full duplex
                                                                                                       end point, termination on
https://www.beckhoff.com/english.asp?embedded_pc/cx5010_cx5020.htm                                                                           3/4
4/16/2018                 Beckhoff Embedded PC series CX5000 - CX5010, CX5020 | Embedded PC series with Intel® Atom™ processor
*CX50x0 systems with Microsoft Embedded Standard 2009 require Compact Flash with a capacity of at least 2 GB (must be ordered
separately).
https://www.beckhoff.com/english.asp?embedded_pc/cx5010_cx5020.htm                                                                       4/4
  Digital input                       EL1889
Input 1 Input 9
Input 2 Input 10
  Input 3                            Input 11
  Power contact
  +24 V
  Input 4                            Input 12
  Input 5                            Input 13
  Power contact 0 V
  Input 6                            Input 14
Input 7 Input 15
Input 8 Input 16
The EL1889 EtherCAT Terminal takes the 24 V power contact as its reference for all inputs. The conductors can be connected without tools in the case of
solid wires using a direct plug-in technique.
The HD EtherCAT Terminals (High Density) with increased packing density feature 16 connection points in the housing of a 12 mm terminal block.
BECKHOFF New Automation Technology                                                                                               We reserve the right to make technical changes.
  Digital output                     EL2008
Output 1 Output 2
  Output 3                          Output 4
  Power contact
  +24 V
  Output 5                          Output 6
  Power contact 0 V
Output 7 Output 8
BECKHOFF New Automation Technology                                                                                      We reserve the right to make technical changes.
  Analog input                       EL3054
Input 1 Input 2
  +24 V                             +24 V
  Power contact
  +24 V
  Input 3                           Input 4
  Power contact 0 V
+24 V +24 V
BECKHOFF New Automation Technology                                                                                               We reserve the right to make technical changes.
  Analog input                        EL3314
+TC1 -TC1
  +TC2                               -TC2
  Power contact
  +24 V
  +TC3                               -TC3
  Power contact 0 V
+TC4 -TC4
 Related products
 EL3314-0010                            4-channel thermocouple input terminal, high-precision, with open-circuit recognition
 EL3314-0020                            4-channel thermocouple input terminal, high-precision, with open-circuit recognition, with calibration certificate
 EL3314-0090                            4-channel thermocouple input, 16 bit, TwinSAFE SC
BECKHOFF New Automation Technology                                                                                                We reserve the right to make technical changes.
  Motion                             EL7031
A1 A2
  B1                                B2
  Power contact
  +24 V
Power contact 0 V
E1 E2
 Accessories
 EL9576                                  brake chopper terminal, 72 V, 155 µF
 AS20xx | AS10xx                         Product overview stepper motors
 Leitungen und Getriebe                  Prefabricated connecting cables in IP 20 and IP 67 protection for AS10xx stepper motors
BECKHOFF New Automation Technology                                                                                                 We reserve the right to make technical changes.
 Related products
 EL7037                     stepper motor EtherCAT Terminal, IMAX = 1.5 A, 24 V, IP 20, vector control
 EL7041                     stepper motor EtherCAT Terminal, IMAX = 5 A, 50 V, IP 20
 EL7047                     stepper motor EtherCAT Terminal, IMAX = 5 A, 50 V, IP 20, vector control
 EP7041-0002                stepper motor EtherCAT Box (industrial housing), IMAX = 5 A, 50 V, IP 67
 KL2531                     stepper motor Bus Terminal, IMAX = 1.5 A, 24 V, IP 20
 KL2541                     stepper motor Bus Terminal, IMAX = 5 A, 50 V, IP 20
BECKHOFF New Automation Technology We reserve the right to make technical changes.