Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
org/rame
*1
Abstract
CNC technology has not only brought innovation to the
traditional manufacturing industry, but also promote d the
rapid deve lopme nt of high-technology industry. The core of
computer nume rical control te chnology is the CNC system.
The high-e nd CNC syste m is ve ry e xpe nsive , and the lowe nd marke t capacity is very big; the refore, an embe dde d
highly cost-e ffective low-e nd e mbe dde d CNC system is
designe d to de ve lop. This paper introduces the
characte ristics of STM32F407 controlle r. It proposes a ne w
embe dde d CNC syste m base d on this processor. It analyses
hardware architecture , software design method and
achieve d function of this CNC syste m. The syste m has
conducte d e xpe riments testing a nd e ngineering applications,
and the results showe d that the achie ve d function is
comple te correct, the spee d and accuracy has met the
re quire me nts, high e fficie ncy has achie ve d. And it has a
much lowe r cost, there fore it got a ce rtain application in
practice and actual production.
Keywords
STM32F407 Controller; Embedded CNC System; Hardware
Platform; Software Design; Achieved Function
Introduction
STM32F407 is a high-performance digital signal
controller, which is based on the kernel of the latest
embedded processor ARM Cortex M4. It is often used
to a hybrid digital control market of control and signal
processing. The Cortex-M4 kernel has the function of
DSP processing instructions with enhanced floating
point operations, huge storage, 1Mbytes of on-chip
flash memory, 196Kbytes of embedded SRAM and
flexible external memory interface. The controller
(MCU) improved the operation speed. Its working
frequency is 168MHz. And it has obtained the
widespread application on the market. Aimed at NC
machine tools, machining center and other fields, this
paper applied the controller of cost-effective, designed
a STM32F407IG as the core processor of the CNC
digital controller. After analyzing the characteristics of
the STM32F407IG, CNC numerical control system is
put forward to it as the core of the design. It describes
50
Operation
Panel
Mode
selection
switch
STM32F
407IG
Cutting
speed
Spindle
speed
Spindle
speed
Optocoupler, level
conversion, drive circuit
Axis
motion
Optocoupler, level
conversion, drive circuit
Optocoupler
isolation level
Optocoupler
isolation level
Emergency Handwheel
Switch
Interface
http://www.se ipub.org/rame
51
http://www.se ipub.org/rame
Turn on communications
DESCRIPTION
Function
Module
Instruction Code
G0,G1,G2,G3
G4
G10
G17,G18,G19
G20,G21
G28,G28.1
G40,G41,G42,G43,
G49
G Code
G53,G54-G59
G61,G61.1,G64
G80
G81-G89
G90,G91
M Code
G92,G92.1,G92.2,
G92.3
G93,G94
G98,G99
M0,M1,M2,M30,
M60
M3,M4,M5
M6
M7,M8,M9
M48,M49
others
Description
Linear and arc interpolation
Dwell
Coordinate system data
XYZ plane selec tion
Selec t a unit of length
Homing control
Tool radius, length compensation
Absolute coordinates, relative
coordinates selec t
Path control mode selec tion
Cancel sport mode
Closed loop control
Absolute-inc remental distanc e
selec tion
Coordinate system offset
Pause
flag
Continue
flag?
Emergency
stop switch
pressed?
Restart
Wait to
continue
Re-planning movement
according to the status
before interrupt
Continue
N
Homing
flag?
N
Y
Closed loop
control flag
N
Tool
Compensation
Sign?
N
Hand wheel
control Sign?
System
Reset
XYZA
BCTFP
Various parameters configuration
SIJKQ
RNHDL
Change tool
flag?
N
Emergency
stop signs?
52
IO detection
flag?
N
PC
Command
flag?
http://www.se ipub.org/rame
Yau,
M.T.
Lin,
M.S.
Tsai.
Real-time
NURBS
Servo motor
Speed Control
Position
Control
Interpolation
operation
Input
program
Pretreatme
Conclusions
This paper describes the embedded numerical control
system based on the AR M COR TEX M4 of STM32F407
in detail. It concludes hardware design, principle
block diagram, system software, and the functions of
Technology, 2011(11).
53