Application of Open Five-Axis Five-Link CNC System Based on Motion Control Chip AFDX05
1. Introduction At present, the secondary development of various motion control cards is relatively complicated. At present, many domestic engineers are familiar with the G code of the CNC system. Based on the ARM 32-bit single-chip microcomputer and the domestic motion control chip AFD-X05, the five-axis linkage motion controller that can execute the G code has been developed, which makes secondary development It became simple. Using this high-speed and high-precision motion controller that supports five-axis linear interpolation, and then developing various special numerical control systems, engineers only need to focus on the development of large and complex software, without having to understand the hardware.
2. Hardware system of G code five-axis linkage motion controller
2.1 AFDX05 motion control chip The AFDX05 motion control chip developed by Yunshan CNC supports any 2 ~ 5 axis linear interpolation, any 2 axis circular interpolation, up to 6 levels of motion command buffer, especially suitable for high-speed multi-line segments or circles Motion control of arc continuous interpolation, in addition, backlash compensation, speed control, acceleration and deceleration control, position control, general input and output ports, 8 / 16-bit data bus, interrupt occurrence, hardware limit, software limit, Emergency stop, pause, encoder signal input and other functions, drive pulse frequency up to 8MPPS, interpolation accuracy ± 5LSB. It is used to control the servo motor and stepper motor input in pulse sequence mode.
"Chinese core" AFDX05, more in line with the Chinese people's habits. Can control up to 5 axes of point motion, continuous trajectory motion, synchronized motion and other applications.
2.2 ARM 32-bit microcontroller
The CPU is S3C44B0X. 32M Flash. Differential output drive in pulse direction. 60 optocoupler isolated inputs, 42 open collector optocoupler isolated outputs or 36 optocoupler isolated inputs, 20 open collector optocoupler isolated outputs. 5-step stepper / servo motor pulse optocoupler isolated output, the highest frequency is 4MHz. 32-bit logical position and actual position counter. RS232 communication. The hardware part has been modularized and can be developed without any hardware knowledge.
3. Software system of G code five-axis linkage motion controller
3.1 Supported G codes
G code grouping function
* G00 1 positioning (fast moving)
* G01 1 Linear interpolation (feed rate)
G02 1 Clockwise circular interpolation
G03 1 Counterclockwise circular interpolation
G04 0 pause, precise stop
* G17 2 Select X plane
G18 2 Select Z plane
G19 2 Select Y plane
G27 0 Return and check the reference point
G28 0 Return to reference point
G29 0 Return from reference point
G30 0 Return to the second reference point
* G40 7 Cancel tool radius compensation
G41 7 Left tool radius compensation
G42 7 Right tool radius compensation
G43 8 Tool length compensation +
G44 8 Tool length compensationï¼
* G49 8 Cancel tool length compensation
G52 0 Set local coordinate system
G53 0 select machine coordinate system
* G54 14 selects No. 1 workpiece coordinate system
G55 14 selects No. 2 workpiece coordinate system
G56 14 selects No. 3 workpiece coordinate system
G57 14 choose workpiece coordinate system No. 4
G58 14 choose workpiece coordinate system No. 5
G59 14 selects No. 6 workpiece coordinate system
G60 0 Single direction positioning
* G64 15 cutting method
G65 0 Macro program call
G66 12 modal macro program call
* G67 12 modal macro program call cancel
* G90 3 Absolute value command method
* G91 3 incremental value command mode
G92 0 Workpiece zero setting
* G98 10 Canned cycle returns to the initial point
G99 10 Canned cycle return to point R
3.2 Supported M codes
M code function
M00 program stop
M01 Conditional program stop
M02 End of program
M03 Spindle forward
M04 Spindle reverse
M05 Spindle stop
M06 Tool exchange
M08 cooling on
M09 cooling off
M18 Spindle orientation cancel
M19 spindle orientation
M30 program ends and returns to program header
M50 standby output 1 on
M51 Standby output 1 off
M52 Spare output 2 open
M53 standby output 2 open
M54 standby output 3 open
M55 standby output 3 open
M56 standby output 4 open
M57 standby output 4 on ...
M98 call subroutine
M99 Subprogram end return / repeat execution
3.3 Macro programming variable number variable type function
# 0 "Empty" This variable is always empty and cannot be assigned.
# 1 ~ # 33 Local variables Local variables can only be used in macros to maintain the results of operations. Local variables are initialized to "empty" when the power is turned off. When the macro is called, the independent variable is assigned to the local variable.
# 100 ~ # 149
# 500 ~ # 531 Public variables Public variables can be shared among different macro programs. Variables at power off
# 100 ~ # 149 is initialized to "empty", and the variables # 500 ~ # 531 hold the data. The public variables # 150 ~ # 199 and # 532 ~ # 999 can be selected, but when these variables are used, the length of the paper tape is reduced by 8.5 meters.
# 1000 ~ System variables System variables are used to read and write various NC data items, such as current position and tool compensation value
# 2000 ~ # 2059 IO input 60-channel optocoupler isolated input signal
Four, three-axis milling machine CNC numerical control system development example
4.1 Parameter initialization.
The following parameters, five axes, each axis has.
Parameter name Parameter setting parameter unit Pulse equivalent P01 = XXX.XXXXXX mm
G00 command speed P02 = XXXX mm / min
G01 command speed P03 = XXXX mm / min
G02 command speed P04 = XXXX mm / min
G03 command speed P05 = XXXX mm / min start speed P06 = XXXX mm / min acceleration time P07 = XXXX ms positive software limit P08 = XXXX mm negative software limit P09 = XXXX mm backlash compensation P10 = XXXX mm Zero return speed P11 = XXXX mm / min manual speed P12 = XXXX mm / min maximum feed speed P13 = XXXX mm / min total system tool number P14 = XX
M code waiting time P15 = XXXX milliseconds back to reference point coordinate P16 = XXX.XXXXXX mm spindle encoder line number P17 = XXXX (/ R)
Return to zero direction P18 = X
Tool change reference position P19 = XXX.XXXXXX mm tool change safety height P20 = XXX.XXXXXX mm tool change interval P21 = XXX.XXXXXX mm tool change speed P22 = XXX.XXXXXX mm / min maximum stroke P23 = XXX.XXXXXX mm set workpiece Coordinate system P25 = XXX.XXXXXX mm
4.2 Send G code to control the machine tool work. Such as:
G54
M03 X8
G0 G90 G17
G28
G00X-2.046Y59.111Z10.000
Z4.000
G01Z-1.000F300
G17
G02X1.245Y54.864I-54.422J-45.566K0.000F800
X2.203Y53.318I-15.407J-10.613K0.000
G00Z10.000
G91 G28 M09
5. Summary.
Based on the open five-axis five-link CNC system platform for development, only need to transfer the G code to this platform, you can quickly develop a special CNC system based on international standard G code processing. Application developers do not need to know the hardware at all, and concentrate on making a special industry-specific CNC system. Reduce the development cost of CNC system and promote the popularization and application of CNC machine tools.
Welcome to reprint, this article comes from the electronic enthusiast network (http: //)
OEM Li-ion Polymer 3.82v 1715mAh iPhone 6S Battery Pack as original 1:1, iPhone Customized Cell with new 0 cycle, temperature-resistant, High rate discharge, High energy density. iPhone Customized FPC, Pressure resistance, bending resistance, good flexibility. iPhone Repair Battery daily production 100-150,000pcs, refective rate below 3‰.
iPhone 6S Battery Pack
Nominal voltage: 3.82V
Limited charge voltage: 4.35V
Capacity:2915mAh (11.1whr)
Cell size: 33x48x119mm
iPhone 6S Battery
iPhone 6S Battery Pack,iPhone 6S Battery Pack Replacement,Battery Pack For iPhone 6S,iPhone 6S Lithium-Ion Battery
Shenzhen Aokal Technology Co., Ltd. , https://www.aokal.com