XC709D XC809D-English

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 143

Safety instructions

★★ Please carefully read this manual before using this control system. Please carefully check
whether the wiring is correct before charging up!
This specification describes as fully as possible for the product, but has too many possibilities
involved to allow all permits and omissions All the allowed operation shall be explained,
therefore, to ensure the normal operation of the product and the safety of person and equipment,
the allowed operation not stated in this manual shall be deemed unacceptable.
● Working environment and protection:

1. The operating environment temperature of the control system is-10 ℃ ~50 ℃, or even dead when

exceeding the ambient temperature. The LCD display will display abnormally when the temperature
is too low.
2. 0acbshR-85%.tonrledumiyv
3. Special protective measures must be taken when working in high temperature, humidity and corrosive
gases.
4. Prevent the dust, dust, metal dust and other sundries from entering the control system.

5. The LCD screen (fragile) of the control system shall be protected: keep it away from sharp

objects; prevent objects in the air from hitting the screen; and gently wipe it with soft paper
towel or cotton cloth when the screen needs dust to clean.
● System operation:

When the system operation, you should press the corresponding operation button and press the index
finger or middle finger. Do not press the button with your nail, otherwise it will cause damage to
the key mask and affect your use.
The operator who makes the first operation shall conduct the corresponding operation only after
understanding the correct use method of the corresponding functions. It is strictly prohibited
to operate or change the system parameters for the unfamiliar functions or parameters.
For the problems in the use operation, we provide a telephone consultation service.
● System maintenance:

Operators who have not been strictly trained or units or individuals not authorized by the
Company shall not open the control system for maintenance operation, otherwise they shall be
responsible for the consequences.
● System warranty instructions:

Warranty period: this product is within 24 months from the date of delivery.
Warranty Scope: any failure as required during the warranty
period.During the warranty period, the fault outside the
warranty scope is charged.
All fault repairs are charged outside the warranty period.
◆ The following circumstances are not under the warranty:
1. Any human or accidental failure that the use requirements;

2. Damage caused by electric plug system connection socket;

3. Damage caused by natural disasters and other causes;

4. Damage caused by disassembly, modification and repair without permission.

-7-
1
● Other matters:

If this specification is inconsistent with the system


function, the system software function shall
prevail.Control system functions are subject to change or
improvement (upgrade) without notice.
The product supporting "operating manual" is only provided free of charge. For the latest
operating instructions, request free electronic instructions (PDF format) and inform your E-mail
mailbox in E-mail.

The product functions described in this manual are only for this product, the CNC machine
tools are installed, the actual functional configuration and technical performance by the
machine tool factory
The design decision of the home, the CNC machine tool function configuration and technical
indicators are subject to the instructions of the machine tool manufacturer.

-7-
2
Directory
The first system overview................................................................................................................ 6
1.1 System Introduction...................................................................................................................................... 6
1.2 Technical specifications...........................................................................................................................6
The second connection and commissioning.................................................................................... 8
Chapter I: The Interface...................................................................................................................................8
1.1 Interface introduction........................................................................................................................ 8
1.2 Power supply interface........................................................................................................................ 8
1.3 Enter the interface.............................................................................................................................. 8
1.4 Drive interface...................................................................................................................................... 8
1.5 Output interface.................................................................................................................................... 8
1.6 Main shaft and other interfaces...................................................................................................... 9
Chapter II: Interface connection................................................................................................................ 10
2.1 Drive connection................................................................................................................................. 10
2.1.1 Drive signal connection.................................................................................................................................. 10
2.1.2 Drive alarm connection.................................................................................................................................... 10
2.1.3 Drive Z pulse connection................................................................................................................................ 10
2.2 External key, proximity switch, sensor connection............................................................... 10
2.3 Output port connection...................................................................................................................... 11
2.4 Analog the spindle connection........................................................................................................ 11
2.5 Connection of the hand wheel.......................................................................................................... 12
Chapter III: The commissioning.................................................................................................................... 13
3.1 Motor commissioning........................................................................................................................... 13
3.2 Electronic gear................................................................................................................................... 13
3.3 Maximum speed estimate..................................................................................................................... 13
3.4 Limit protection................................................................................................................................. 13
3.5 Set reference point (return mechanical zero)......................................................................... 14
3.6 Simulate the spindle speed setting.............................................................................................. 14
3.7 Description of some parameters..................................................................................................... 14
3.7.1 Maximum pulse frequency [in integrated parameters]............................................................................. 14
3.7.2 Action delay of fixed circulation disc [in comprehensive parameters]........................................ 14
3.7.3 Extension module address 1~6 [in comprehensive parameters]............................................................ 14
3.7.4 Axis mode [in the axis parameters]............................................................................................................ 14
3.7.5 Axis speed doubling rate [in shaft parameters]..................................................................................... 14
3.7.6 Post-mechanical zero offset [in shaft parameters]............................................................................... 15
3.7.7 Bhole function on and off [in comprehensive parameters]................................................................... 15
3.7.8 Profile error [in comprehensive parameters]........................................................................................... 15
The third operation description.................................................................................................. 16
Chapter I: Interface Display and Setting................................................................................................ 16
1.1 The page appears................................................................................................................................. 16
1.1.1 Page layout.......................................................................................................................................................... 16
1.1.2 The page displays the content...................................................................................................................... 17
1.1.3 Soft function key menu..................................................................................................................................... 18
1.2 Press the key for the description............................................................................................... 18
1.3 Location screen................................................................................................................................... 19
1.3.1 Position and picture composition................................................................................................................. 19
1.3.2 Bhole function setting screen....................................................................................................................... 19
1.3.3 Custom fixed loop G88....................................................................................................................................... 20
1.3.4 Porous editing interface................................................................................................................................. 20
1.3.5 Brief briefly....................................................................................................................................................... 22
1.3.6 Coordinates pair to the knife...................................................................................................................... 22
1.3.7 Customstom interface........................................................................................................................................ 22
1.3.8 Program interface.............................................................................................................................................. 23
1.3.9 Local directory.................................................................................................................................................. 23
1.3.10 The U disk directory...................................................................................................................................... 23
1.3.11 Parameter interface........................................................................................................................................ 24
1.3.12 Alarm and boot screen settings.................................................................................................................. 25
-7-
3
1.3.13 System information.......................................................................................................................................... 27
1.3.14 Trial settings.................................................................................................................................................. 27
1.3.15 diagnosis............................................................................................................................................................ 27
1.3.16 The Port is universally named.................................................................................................................... 27
1.3.17 Communication diagnosis................................................................................................................................ 28
Chapter II: Basic Operation...........................................................................................................................29
2.1 Zero-return........................................................................................................................................... 29
2.2 Against knife....................................................................................................................................... 29
2.2.1 Coordinate system to knife............................................................................................................................. 29
2.2.2 The knife complements the knife.................................................................................................................. 30
2.3 To knife to knife............................................................................................................................... 30
2.3.1 Set the knife...................................................................................................................................................... 30
2.3.2 Hand opposite the knife to the knife........................................................................................................ 30
Chapter III: Automatic operation.............................................................................................................................................. 32
3.1 MDI multi-segment run....................................................................................................................... 32
3.2 Automatic drilling............................................................................................................................. 32
3.3, Handwheel trial processing........................................................................................................... 32
3.4 Single segment, skip, stop............................................................................................................. 32
3.5 The Subroutine calls the M98.......................................................................................................... 32
3.6 Program cycle execution.................................................................................................................... 33
The fourth programming description............................................................................................ 34
Chapter I: An Introduction to Programming.............................................................................................. 34
1.1 Absolute value instruction............................................................................................................. 34
1.2 Incremental value instruction....................................................................................................... 34
1.3 Control shaft....................................................................................................................................... 34
1.4 Decactional point programming....................................................................................................... 34
Chapter II: The Composition of the Procedure........................................................................................ 35
2.1 Procedure................................................................................................................................................35
2.1.1 Program number..................................................................................................................................................... 35
2.1.2 Program number and program segment............................................................................................................. 35
2.1.3 Skip the optional program segment............................................................................................................... 35
2.1.4 Word and address................................................................................................................................................. 35
2.1.5 Basic address and instruction value range.............................................................................................. 36
2.2 End of the procedure......................................................................................................................... 36
Chapter III Preparation Function (G Code).............................................................................................. 37
3.1 G code list........................................................................................................................................... 37
3.2 G00-Quick positioning....................................................................................................................... 38
3.3 G01-straight-line insertion........................................................................................................... 38
3.4 G02/G03-round-arc interpolation................................................................................................... 39
3.5 G12-3 dot circular arc interpolation......................................................................................... 41
3.6 G04-delay delay................................................................................................................................... 41
3.7 Reference point function................................................................................................................. 42
3.7.1 The G28-automatically returns to the reference point........................................................................ 42
3.7.2 The G30-returns the second and third reference point........................................................................ 42
3.8 Coordinate system function............................................................................................................. 42
3.8.1 G53-machine tool coordinate system positioning.................................................................................... 43
3.8.2 The G92,G54〜G59-artifact coordinate system setting.......................................................................... 43
3.8.2.1 The G92-sets the artifact coordinate system................................................................................. 43
3.8.2.2 Automatically sets the artifact coordinate system..................................................................... 44
3.8.2.3 to select the artifact coordinate system (G54-G59)............................................................... 44
3.8.3 Move the artifact coordinate system with the G92 ............................................................................... 45
3.8.4 Set the machine tool coordinates (G93)..................................................................................................... 45
3.8.5 The G52-local coordinate system................................................................................................................ 45
3.8.6 G17/G18/G19-plane selection.......................................................................................................................... 46
3.9 Simplify the programming functions............................................................................................. 46
3.9.1 Overview................................................................................................................................................................ 46
3.9.2 G73-high-speed deep hole machining cycle................................................................................................ 48
3.9.3 G74-counterattack silk cycle........................................................................................................................ 48
3.9.4 G81-drilling circulation, point drilling cycle.................................................................................... 49
-7-
4
3.9.5 G82-drilling hole circulation, boring ladder hole cycle.................................................................. 49
3.9.6 G83-deep hole machining cycle...................................................................................................................... 50
3.9.7 G84-tapping cycle.............................................................................................................................................. 50
3.9.8 G85-boring cycle................................................................................................................................................ 51
3.9.9 G86-boring cycle................................................................................................................................................ 51
3.9.10 G88-custom drill holes.................................................................................................................................. 52
3.9.11 G89-boring cycle.............................................................................................................................................. 52
3.9.12 G80-fixed loop cancelled.............................................................................................................................. 52
3.9.13 G70 Round hole (Group 00)............................................................................................................................ 53
3.9.14 G71 wheel arc drilling (Group 00)............................................................................................................ 53
3.9.15 G72 drilling at an angle (Group 00)........................................................................................................ 53
3.10 The L in the fixed loop................................................................................................................. 54
3.11 G22-G23 cycle execution................................................................................................................. 54
3.12 G31-jump function............................................................................................................................. 54
3.13 G50-G51 position measurement motion......................................................................................... 54
3.14 G37 Auto pairs the knife............................................................................................................... 55
3.15 The G10 modifies the coordinate systems and the knife trim...........................................55
Chapter IV: Auxiliary Function (M Code).................................................................................................. 57
4.1 General information........................................................................................................................... 57
4.2 M code description............................................................................................................................. 58
4.2.1 The MOO-program is paused.............................................................................................................................. 58
The 4.2.2 M01-program is stopped............................................................................................................................ 58
The 4.2.3 M02-program has ended.............................................................................................................................. 58
The 4.2.4 M03-main shaft 1 has a positive rotation........................................................................................ 58
4.2.5 M04-spindle 1 in reverse................................................................................................................................ 58
The 4.2.6 M05-spindle 1 stops.................................................................................................................................. 58
4.2.7 M08/M09-coolant on / off................................................................................................................................ 58
4.2.8 M10/M11-card tight / release........................................................................................................................ 58
The 4.2.9 M13-main shaft 2 has a positive rotation........................................................................................ 59
4.2.10 M14-spindle 2 in reverse.............................................................................................................................. 59
The 4.2.11 M15-spindle 2 stops................................................................................................................................ 59
4.2.12 M19-spindle orientation................................................................................................................................ 59
4.2.13 M20/M21-pull, pine knife.............................................................................................................................. 59
The 4.2.14 M30-program is stopped.......................................................................................................................... 59
4.2.15 M29-spindle P/S switch.................................................................................................................................. 59
4.2.16 M62-speed monitoring...................................................................................................................................... 59
4.2.17 The M63-cancels the speed monitoring...................................................................................................... 59
4.2.18 The M64-counter is used to add one.......................................................................................................... 59
4.2.19 M65-counter zero.............................................................................................................................................. 60
4.2.20 M70-waits for input, output, auxiliary relay...................................................................................... 60
4.2.21 M71-waits for input, output, auxiliary relay valid.......................................................................... 60
4.2.22 M72-input, output, auxiliary relay invalid jump................................................................................ 60
4.2.23 M73-input port, output port, auxiliary relay effective jump........................................................ 60
4.2.24 M74-waits for the input, output, auxiliary relay descent down.................................................... 61
4.2.25 M75-waits for the input, output, auxiliary relay rise.................................................................... 61
4.2.26 M80-output port, auxiliary relay turn off............................................................................................ 61
4.2.27 M81-output port, the auxiliary relay is on.......................................................................................... 61
4.2.28 M82-output port, the auxiliary relay output is closed for a period of time.......................... 61
4.2.29 M83-output, auxiliary relay output waits for one input to be closed........................................ 62
4.2.30 M84-output, auxiliary relay output closes after an input is invalid........................................ 62
4.2.31 M85-output port, auxiliary relay output waiting for one input port is valid, do not close,
perform the next section.............................................................................................................................. 62
4.2.32 M86-output port, auxiliary relay output waiting for one input port is invalid, do not close,
perform the next section.............................................................................................................................. 62
4.2.33 M87-output port, auxiliary relay output waiting for one input port L rise edge, closed
output, mainly used for knife selection................................................................................................ 62
4.2.34 M98/M99-subroutine calls and subroutine to return............................................................................ 63
Chapter V. Cutting Tool Compensation Function...................................................................................... 64
5.1 Tool compensation............................................................................................................................... 64
5.2 Tool Length Compensation (G43, G44, G49).................................................................................. 64
5.3 Tool radius compensation (knife C function)............................................................................ 64

-7-
5
5.3.1 Tool radius compensation offset track...................................................................................................... 65
5.3.1.1 Inside and outside................................................................................................................................... 65
5.3.1.2 knife repair............................................................................................................................................... 66
5.3.1.3 Conduct the knife repair....................................................................................................................... 67
5.3.1.4 Cancel knife cancellation..................................................................................................................... 68
5.3.1.5 Change the compensation direction in the knife repair............................................................. 69
5.3.1.6 The niis temporarily cancelled........................................................................................................... 70
5.3.1.7 Special circumstances............................................................................................................................. 71
5.3.2 Application example........................................................................................................................................... 71
Chapter VI: The User Macro Program............................................................................................................ 73
6.1 Definition..............................................................................................................................................73
6.2 Variables................................................................................................................................................73
6.3 System variable.................................................................................................................................... 74
6.4 Arithmetic and logical operations................................................................................................ 74
6.5 Transfer and circulation.................................................................................................................. 75
Chapter VII. Comprehensive routines.......................................................................................................... 78
7.1 Grinder routine.................................................................................................................................... 78
7.2 No cumulative error segmentation is achieved by macro operation....................................78
7.3 Triaxial circle equal punched....................................................................................................... 78
7.4 Triaxial rectangular array punched.............................................................................................. 79
Article 5. Commissioning and use of the knife library...................................................... 80

-7-
6
The first system overview
1.1 System
Introduc
tion
XC 709D carved milling drilling attack multifunctional CNC system for our company developed a
new generation of CNC system. Support carving, milling, drilling and attack and processing. Using
32-bit high-performance microprocessor, real-time multi-task control technology and hardware
insertion technology, full linkage and high-speed small-line forward algorithm.0.001mm
interpolation accuracy, with a maximum speed of 30 m / min. Is the best choice of carving machine,
small machining center, CNC milling machine, CNC drilling machine.
Software and hardware characteristics of XC709D CNC system:
The ★ is based on a 32-bit microprocessor, full linkage, 0.001mm interpolation accuracy, maximum
speed of 30 m / min, supporting directional + pulses and orthogonal pulses.
★ features 7 inch color widescreen LCD, resolution 800 × 480, Windows interface style. Equipped
with 8 soft function keys, easy operation and easy to learn. Provide parameter classification,
alarm log, system diagnosis and other rich display interface to facilitate debugging and
maintenance.
The ★ International Standard G directive, which is compatible with the FANUC system directive.
★ 40 G instructions to support the drilling cycle, tapping cycle.
★ Part Program full-screen editing, with 1G massive program space built in to store N part programs.
★ has the USB interface, which supports U disk file reading and writing, and data backup.
★ input 24 (to 96), output 24 (to 96) (custom), flexible and convenient.
★ Chinese and English operation interface, complete help information, more convenient operation.
The ★ system adopts the pre-insertion acceleration and deceleration control.
The ★ supports knife long knife repairs and radius knife repairs.
★ supports hand-wheel trial processing to facilitate program debugging.
★ supports multi-level operation authority, convenient equipment management and time-limited system
locking function.
★ supports G code files for third-party software such as UG, Mastercam, PowerMill, FeatureCAM,
ArtCAM, JDPaint, Wentai.
★ supports self-programming knife libraries for the flexible use of multiple knife libraries.

1.2 Technical specifications


Basic functions
Control the number of 3~6-axis (X, Y, Z, A, B, C)
axles
Number of linkage Full linkage
shafts
knife library Support, you need to edit the knife library code
Main shaft 2-way analog spindle where spindle 1 has available
digital spindle (occupying a digital axis)
Spindle monitoring Yes
Minimum instruction 0.001 mm
unit
Maximum instruction ± 999999999 × Minimum Command Unit
value
Fast feed-forward speed 30,000 mm / min
Fast feed-forward F0,25%,50%,75%,100%.
doubling rate
1: Direction + Pulse 2: Orthogonal pulse (recommended,
Pulse mode more interference resistance if drive support)

The 100Khz,200Khz,500KHz can be set up. (The 500KHz was


Maximum frequency
only lost in all orthogonal axes
It can only be implemented in the following way.)
Feed eding speed 0~150%
-7-
7
doubling
Electronic gear ratio 1~65535: 1~65535
Automatic acceleration Yes
and deceleration
Forward-looking Yes
algorithm for the high-
speed small-line
segment
Trial processing of the Yes
hand wheel
Positioning G00 (straight interinterline positioning)
Insertion G01, G02/G03/G12, and spiral line interpolation
Return to the reference Auto-return to the reference point (G28)
point
LCD. 7 " TFT LCD with a resolution of 800 × 480
MDI soft key Eight pieces
Single-step feed x1,x10,x100.
Communication interface U disk interface
External handwheel Yes
interface
I/O interface 24 / 24 (Scalable to 96 / 96)
Pause (in seconds) Yes
Qu-stop state Yes
Stop stop Yes

-7-
8
Store the travel check Yes
The MDI is running Yes, with support for multi-segment operation
Reset it again Yes
Jump switch Yes
Single-segment run Yes
Program protection Yes
switch
Self-diagnostic Yes
function
Emergency stop Yes
Power supply Single-phase AC220V + 10% -15%, 50Hz ± 1Hz
G53, G92,G54~G59, and local coordinates
Coordinate system
The G52 system, and the coordinate system plane is
specified
Automatic coordinate Yes
system setting
decimal decimal input Yes
Auxiliary function
M2 digits, M code custom, manual / MDI/ automatic control
Auxiliary function
of the spindle forward and reverse
Turn and stop; control coolant start-stop; control
lubrication start-stop, etc
Spindle function
Spindle function Double spindle
Digital main axis The spindle 1 supports, occupying the digital axis (not
supported by Z axis) and the speed is more stable.
Stapping Support for this system
Spinshaft analog output Yes, the double spindle
Tool function
Tool function Support automatic knife change, support the center point
knife, three-point round center to the knife
Tool compensation -9999.999~9999.999,99 No
memory
Tool compensation Dao long knife repair and radius knife repair
Edit the operation
Edit feature Parameters, diagnostics by bit input, program editing,
MDI multi-program segment execution
Storage capacity 1G.
Number of stored There are 500 pieces
programs
Display of the program Chinese, English, digital, and combination
name
Program line discovery Yes
Skip the optional Yes
program segment
Program switch Yes
Display
Display Chinese, English
Processing time and Yes
number of parts display
Spindle speed, M/S Yes
instruction

-7-
9
The second connection and commissioning
Chapter I: The Interface
1.1 Interface introduction
On the back of the system are po wer, input, drive, spindle and other and
output interfa ces. Each interfa ce is marked with the sp ecific functio n ne xt to
the bac k of the sys tem. So check. see . connect . mouth. work. Yes. Yes. in .
departm ent, unified , back. face. See...
Note: The interface line sequence in the specification is for the internal circuit diagram, not the
actual value. The actual line sequence shall be marked next to the interface on the back of the
system.

1.2 Power supply interface

If you bring your own power supply, it is forbidden to use the transformer and the
rectifier bridge, and try not to use the LED drive power supply known as 10A or
above.Note: In addition to the power interface, it is strictly prohibited to connect the
system inside. The marked voltage of other interfaces is the voltage provided by the
system.

1.3 Enter the interface

X1~X24: input port 1~X 24

1.4 Drive interface

Note: 5V voltage is only common connection method, no other use. No external 5V power supply is
allowed.
CP +, CP- (pulse negative), DIR +, DIR-(direction negative). Each axis is distinguished by the
previous name, such as the Z axis corresponding to ZCP +, ZCP-, ZDIR +, and ZDIR-.
-7-
10
1.5 Output interface

-7-
11
The Y1~Y24 is the output port 1~24

1.6 Main shaft and other interfaces

SVC1: spindle 1 analog volume (0~10V)


SVC2: main shaft 2 analog
quantity (0~10V) 485A, 485B:
extended IO board
communication port SLA,SLB:
hand wheel A,B signal
BMZ +, BMZ-,BMB +, BMB-,BMA +, BMA-; spindle
encoder interface.Note:
1. oaXtnTcipsrdwhIe.13umfl,bgxv~2

The 2.5V voltage can only be used as a handwheel or spindle encoder power supply. There cannot
be any other usage. No external 5V power supply is allowed.

-7-
12
Chapter II: Interface connection
2.1 Drive connection
Each drive only requires four lines to operate, if servo, set internal drive enable.

2.1.1 Drive signal connection


There are four signals corresponding on each axis system.CP +, CP- (pulse negative), DIR +, DIR-
(direction negative). Each axis
According to the previous name, such as the Z axis corresponds to ZCP +, ZCP-, ZDIR +, ZDIR-.
(Like orthogonal pulse connection, only change the system and drive parameters).

CNC. Servo or step


CP PU L
Drive +.
C P-
+.
PU L-
. .
D IR D IR + (SIG N
+. +)
D IR- I(D
N
R
S
-)G
.

Questions about the electronic gear:


Take the bar as an example without speed reducer. If the wire screw pitch is 5mm, set step or
servo 5000 pulses per lap, servo set molecule 2, dividing nut 1. Ideal state is 1 pulse walking 1
micron. Thus the system molecular denominator is all 1. If it cannot be set to 1: 1, then the
system molecule is the number of pulses per turn of the silk rod, and the denominator is the pitch,
in micrometer.
About the commissioning of the stepping motor:
The three-phase step speed is generally 1000 revolutions, and the two-phase step can not
exceed 800 revolutions. Some customers use 24V, so that the motor has basically no torque. The
step drive for the external power supply uses the maximum voltage. Speed calculation, if the
maximum speed is 800 and pitch 5, the maximum speed is 800 * 5=4000. In the axis parameter [fast
speed G00] set to 4000. If there is a speed reducer, be divided by a deceleration ratio.

2.1.2 Drive alarm connection

CNC. X 1 ~2
Servo A LA M
Input port 4.
G ND.
+.
A LR M-.

The GND here need not necessarily in the input port GND, recommended to the power negative
pole. After receiving the corresponding port in the diagnosis, press [Modify] to set to [a
shaft alarm], and to set to normally closed (generally the servo alarm is normally closed
signal).

2.1.3 Drive Z pulse connection


If high precision zero return is required, the zero return mode in the parameter uses the Z
pulse of + ZCP,.

CNC. X1
Servo O Z.
Input port ~8.
G ND. G ND.

Note: The system requires a servo encoder Z signal collector open circuit output. Only connect input
port 1~8. The corresponding port is set to [a shaft ZCP].

2.2 External key, proximity switch, sensor connection

CNC. S?.
X 1 ~2
Input port 4.
G
ND.
13
Note: If the electronic sensor only accepts type NPN, the PNP. cannot be used
Two-line NPN sensor connection (two-line NPN sensor as little as possible, three lines are
better. Inductors are sensitive to iron and are easily mistriggered). A customer asked what the
sensor accuracy is high, stability and good, perhaps the trough type photoelectric sensor.

14
CNC. NPN.
X 1 ~2 V
Input port 4.
G ND.
+.
V-.

About often open often closed, in addition to emergency stop, other external keys try not to use
often closed (but also not to change often closed). For example, a customer has set up an
external connection
[Auto] (not connected), and External [Auto] is triggered (because it is disconnected). You can
not switch other states, change also can not change, because the requirement to modify in the
editing state, can only take a line to the negative pole (do not let the automatic signal
trigger) to change back.
Only X 1~8 ports to the cutter signal.
After the input port receives the signal, you can go to trigger the button or sensor to see
whether the diagnostic status has changed. Switch to Edit Status Press the Modify key to change
the input port corresponding function. Normally open and closed is set in the parameters.

2.3 Output port connection


The output port of the system can only be connected to 24V relay, due to limited current
supply, solenoid valve, contactors and other other uses must be transferred through 24V relay.
No 220V AC relays or other appliances.
The output port effectively outputs 0V voltage, and the invalid is the disconnected state (no
result with the multimeter, because there is uncertain leakage voltage in the air).

CNC. 14
+
Power supply 24V.
-24V.

13

14
Y1
.
Output
Y2

2.4 Analog the


port
spindle connection
. 13

The system supports two analog main axes, 1 and 2, signal 1 and 2.

CNC. Spindle simulation Frequverconver


SVC1 Vref
Spindle shaft .
volume (0~10V) .

ter
GND AGND
. .
and others
14
+ COM
Power 24V.
K?
.
-24V. . X1(Forw
ard Turn)
supply X2(revers
13
al)
14
Y1(positi
ve)
Output K?
.

Y2(rever
port se)
13

In output diagnosis, Y1,Y2 sets main shaft 1 positive rotation and main shaft 1 reverse. Of
15
course not only Y1,Y2,Y1~Y24, just set the output to the corresponding function.
If the servo is used as the analog spindle:

16
CNC. SV C 1.
sS
(v
d
p
tn
ia
e
m
lu
)o
V
1
~
0
V
S
o
rv
e

Spindle shaft ref.


G ND. A GN D.

and others
+24 C OM +.
Power supply V.
-2 4 V. Enable

Speed instruction reverse

Y 1 (to
enable)
Output
Y2
port
Servo cannot be
(reverse)
soft-enabled. [Speed command reverse] Generally, the server is not set, please
set the corresponding input to refer to the servo manual (the name is not necessarily the name,
but the function is the command reverse in speed mode). Not clear to consult the server vendor.

2.5 Connection of the hand wheel


Single-hand wheel-wheel connection:
CNC.
H
w
d
n
la
e
h

5 V.

G
ND.

Spindle
shaft and SL B. A + B + 0v. V
.
C

others SL A.
AB-.

If the hand wheel, the hand wheel signal still refers to the figure above. Refer to the figure
below.
X 1 3. Axis X

X 1 5. axis Y

X 1 6. axis Z

ratio 1
X 1 7.
Spindle shaft X 1 8.
times

rate 1
and others X 1 9.
0
Holding the
The doubling factor is 1 0 0 handwheel
G ND. C OM.

Three-axis hand-wheel connection routine. Enter the input diagnosis, move the dial shaft
selection and doubling switch, the corresponding port changes, and set the corresponding port to
the correct function.
When the hand-wheel-related functions are set in the input port function, the system
automatically switches to the handheld mode, and the panel buttons do not function. Therefore, to
use the single hand wheel, make sure that there are no hand wheel-related functions in the input
port (e. g., an input port is [hand wheel X shaft]).

17
Chapter III: The commissioning
3.1 Motor commissioning
3.1.1 Motor start-up
If the system is the first time, do not install the motor on the machine, make sure the motor
can turn before the machine.
After the motor is connected, set servo soft capacity. The motor should be locked (not turning
by hand). The system switches to the manual mode. Press the shaft direction key, and the motor
should turn. If not, check the connection and the drives.
Servo motor: the system setting parameter [pulse mode] is orthogonal pulse, and the drive
should also be set to orthogonal pulse (some servers are called AB pulses).

3.2 Electronic gear


3.2.1 Calculation method
Servo: Take the general encoder 2500 line motor as an example?
Each pulse of servo motor is 10000 * servo denominator / servo molecule. If servo molecule 10,
servo denominator 5, the motor pulse 10000 * 5 / 10=5000.
Step: Look at the breakdown table on the drive.
The screw screw L unit is micron, 1 mm =1000 microns. Example of 5 mm pitch.
Each motor pulse shall be set at 5000 (similarly to the upper surface servo drive setting
molecule 10, the denominator 5), i. e. 1 pulse walks 1 micrometer.Then the system molecule
5000, the denominator 5000, may be about 1: 1
The reducer molecules should be multiplied by the deceleration ratio to appropriately reduce each
pulse of the motor.
If it is a rotation shaft, the system denominator is 360 ° * 1000=360000, and the molecule is the
number of pulses turning around the motor.

3.2.2 Test method


If you do not know how much distance each pulse takes, you can test the test distance as long as
possible.
Current system molecular denom inator i:j. Take the Ln =100mm (ratio at low speed, not
necessarily this value). The actual distance is then measured from Lm, then the new molecule /
denominator = (i*Ln) / (j * Lm). You can then continue to repeat the Ln quantity Lm until the
quantity has no error.
If the axis of rotation is to be used in turn, turn around with the scale line, then the
actual Lm=360 degrees, see how much the system Ln shows, and replace the formula. (Do not set it
to the rotation shaft until the electronic gear is correct).

3.3 Maximum speed estimate


If the system instruction is too high, the servo motor will alarm, the step power opportunity
is lost or even blocked. It is important to limit the maximum speed and set the maximum speed to
improve processing efficiency.
Servo motor: see the motor maximum speed M, wire screw pitch L mm, then the maximum speed is M*L.
Stepper motor: step motor shall not exceed 800 revolutions, load.M=800. Algorithm Ibid to.
Whether the motor can reach the maximum speed also depends on the system frequency limit. The
system has a 100K,200K,500K selection.
The 100K: is mainly some step drives above 100K lose pulses.
The 200K: is the factory default.
The 500K: must be achieved with all axes of orthogonal pulses. One
axis that is not orthogonal drops to 200K. Frequency limit / motor
pulse per lap * 60= theoretical maximum speed.
Any deceleration is even * B /A. more than the A:B top speed
The maximum speed per axis is set in the fast rate G00. The system controls each axis not higher
than this speed.

In the parameter [speed ratio]: sometimes we need to rotate the axis by 360 degrees degree
degree control, so that the speed will be very slow, such as 3600 motor only 10 laps per minute,
the efficiency is low, at this time [speed ratio] can be set, the final speed will multiply by the
18
speed. The velocity in the parameter also multiply the rate. [Speed rate] only neutralize the G0
speed, F is not affected in the program.
Stepper motor destep: first, the drive voltage must not be low. Stepper motor at high speed
when the torque depends on the supply voltage, low attenuation quickly. The second reduction and
deceleration, acceleration and deceleration are reduced to 10 is not good. Speed reduction, the
speed drop is very low is not good, the motor is too small to change the motor.

3.4 Limit protection


3.4.1 Hardware limit protection
On the machine tool, the limit switches are generally installed in the positive and negative
directions, which can only move within the limited range of the limit switch. When the limit
switch is triggered, the system immediately stops the tool movement (actually stopped with
emergency stop acceleration and deceleration) and displays the limit trigger alarm message. To
reverse the tool off the limit, press reset to remove the alarm.

3.4.2 Software limit protection


Software limit protection and hardware limit protection have similar functions. Setting the
positive and negative limit in the axis parameters (machine coordinates in micron) and soft limit
action conditions can limit the movement range of the tool.
The actual application is generally a hardware limit and a software limit combined use.

19
3.5 Set the reference point (return to the machine to zero)
The system has the function of coordinate power saving, but in the movement is lost or lost
after the motor sliding is not reliable, so the zero return must be operated. The system has 4
ways to return to zero. Set it up in each axis parameter. General linear axis is recommended
to zero and zero (finite switch
Alarm occurs in motion).
Back to mechanical zero, first set the input port to zero, otherwise will alarm [return zero
port does not match].
Limit back to zero, return to zero direction positive, must have [axis positive limit] port,
if you also have [axis ZCP] signal port for additional ZCP,. If it is negative back to zero, you
must have the [Axis Negative Limit] port.
Zero zero, you must have the Axis Zero port and the Axis ZCP] signal
port if the additional ZCP,.The ZCP returns to zero, and must have an
[axis ZCP] signal port.
The machine coordinates will automatically zero after zero.
Second, the three reference points, are all machine tool coordinates, the unit is micron.

3.6 Simulate the spindle speed setting


The system has two analog main axes, spindle 1 and spindle respectively. The system speed
corresponds to the actual speed, the comprehensive parameter (simulation 10V) must be set.
Spindle 1 analog port is SVC1, Spindle 2 analog port is SVC2.
The main shaft 1 can be configured with an encoder to achieve the tapping function. Set 1000 rpm,
the spindle 1 programming format is S1000, spindle 2
SS1000..

3.7 Description of some parameters


Each parameter in this system is explained in detail, but some are not common and further
explained here.
3.7.1 Maximum pulse frequency [in integrated parameters]
This parameter limits the maximum frequency of instruction pulse output, shared by all axes,
whichever is the lowest of the motor.
0: 100 maximum output 100khz, Some step drive mass is general, over 100khz will lose the pulse,
to set to the 100khz limit.
1: 200 A maximum output of 200khz.
2: 500 A maximum output of 500khz. But. Yes. yes. Yes. Yes. Yes. yes. yes. yes. positive.
pulse. impulse. Can. Yes. effect. if an axis is direction + pulse, control will return to 200khz,
even if the parameter shows 500khz.

3.7.2 Action delay of fixed circulation disc [in comprehensive parameters]


This parameter works with the output port [G8N card disk]. In non-G80 fixed cycles such as
G83, customers need to clamp the artifact and release the tray after completion. You can set the
output port [G8N dial].
Action is: machining shaft to point R → [G8N tray] output → fixed cycle disc action delay →
fixed cycle starts the → fixed cycle end,
[G8N drive] Close → fixed cycle drive action delay → non-machining shaft action to continue the
next hole.

3.7.3 Extension module address 1~6 [in comprehensive parameters]


This system can expand the io port, this parameter control to open the specified address io
board.
There are twelve inputs and 12 outputs on each io board. S pecify the address S
(1~6 via the dial switch) and the io port name is different.Specific calculation is: X
(Y) N= X (Y) n + (S-1) * 12 + 24 on this expansion board
For example, the Y1 address on the S1 number is 1 + (1-1) * 12 + 24=Y25
For example, the Y3 address on the S6 number is 3 + (6-1) * 12 + 24=Y87
Parameter setting 0: do not communicate with this address expansion board,
no connected address to set 0, otherwise the speed of the
20
communication.Parameter setting 1: Communicate with this address expansion
board to disconnect the alarm. Five consecutive communication errors are
treated as disconnected.
Parameter setting 2: Communicate with this address expansion board
and give an alarm after disconnection. Five consecutive communication
errors are treated as disconnected. Communication status is viewed in
the diagnostic → for more → communication diagnostics.

3.7.4 Axis mode [in the axis parameters]


[Axis mode] 0 Rotary axis, 1 straight axis, 2 digital main axis 1,3 knife library
If set to the axis of rotation, the system implements a 360-degree rotation control
(coordinate display range 0~359.999) and is absolutely programmed in the nearest mode. If current
300 degrees, G90 A0, control is turning to 360 degrees instead of reversing. But the incremental
methods will follow the procedure. Example G91 A-3600,A-axis reversal for 10 laps.
In the rotation axis mode, the absolute and machine tool coordinates are always consistent,
and the axis offset and knife repair are invalid. G93 can set the machine coordinates to set the
absolute coordinates. Slow rotation axis speed can set the speed.
The digital spindle 1 and the knife library are required to set the electronic gears according
to the rotation shaft.
The digital spindle 1 replaces the analog spindle 1 for a more stable and accurate
rotational speed. It can achieve inserted rigid tapping, easier to achieve positioning. In
the knife library mode, the motion can only be realized in the knife library back to zero,
T code, and M06 code to control the servo knife library.

3.7.5 Axis speed doubling rate [in shaft parameters]

21
Setting to the rotating shaft affects too slow speed, such as 3600, and the workpiece is only
10 laps per minute. Therefore, using [shaft speed doubling ratio] can improve the processing
efficiency. If it is set to N,, the workpiece is N times faster, and the acceleration increases N
times faster
(Acceleration greatly affects the speed when the distance is small). If it is a stepping motor,
set the doubling rate to run several more times to see whether the return to 0 degrees overlap to
prevent the acceleration overstep. No doubling for linear axis.
[Speed factor] only parameter neutral G0 speed, not supported by F in the program. The ameter
[zero low speed] is not valid for [axis speed factor].

3.7.6 Post-mechanical zero offset [in shaft parameters]


The system has a useful limit switch back to zero (save a zero-point switch). If you stop next
to the limit switch after zero return, a little vibration will trigger the limit alarm, so this
parameter is set away from the limit switch to prevent false triggering. The unit is micron,
without symbols, the direction system will automatically judge.
If the ZCP mode is added, you can first move between the two ZCP s (the specific distance to
test) to prevent a pitch error near the ZCp position before the Zcp detection.

3.7.7 Bhole function on and off [in comprehensive parameters]


Set 0 to open the drilling function to facilitate users who do not need the drilling function to
prevent incorrect operation of the drilling function.

3.7.8 Profile error [in comprehensive parameters]


In high-speed forward-looking algorithms, try to improve the speed within the set error range.
The higher the acceptable error, the higher the speed. Of course, at the given speed, the
controller minimthe error.

22
The third operation description
Chapter I: Interface
Display and Setting

1.1 The page appears


1.1.1 Page layout

23
The Desc
Proj ript
ect ion
Edit, Teaching, Auto, Drilling, MDI,
(1) Working mode
Back Zero, Single Step, Hand wheel,
Manual
(2) Operating status Stop, run, pause, and alarm
(3) Rate of doubling indication The F:100%,G1-factor rate.The F100,G0-
factor rate.
(4) Page name The currently selected home page tag
(5) Soft function key The current page is available for the
F1~F8 set keys

1.1.2 The page displays the content


The system is divided into 6 display pages, respectively, [Location], [Program], [Tool],
[Parameters], [Information], [Diagnostics]. Each page is shown as below.
Page The picture Relevant content and
name shows the operation
content
● Position of the tool in each coordinate ● Location selection of the
system tool in each coordinate
● Current replacement of each shaft system
● Currently set the spindle speed and ● MDI program editor
Location
doubling rate, and the actual speed
● sard/fCpectuln,obig
● The modal value of the current system
● Processing time and part count
● Program information for the auto-runtime
● Process program editing
● Udal(ptifmoCsk)ncugreyh
● hCoandlerNputy ● The machining files are in
Procedur ● Program directory different memory
e Input / output in between

Offset ● Tool offset ● Set the length in each


24
axis direction
● System parameters
● Parameter settings
Parameters ● Logical parameters
● Logical parameter settings
● Advanced Operations
● Alarm view and clearance
● ocitaCTurngelyshmN
Informat ● System information ● Permissions settings
ion ● System locking settings

25
● Parameter switches and
program switches
Diagnos ● idCnformatgscN-el ● Find it by serial number
is

1.1.3 Soft function key menu


Each main page is switched to each subscreen through the soft function key. The soft function key
function is triggered by the user's press lifting action, classified as follows:
A. Operation in the page, not highlighted
B. Go to the next level submenu
C. Page display options or display content switching
D. Pop-up window

1.2 Press the key for the description

Soft function key, corresponding to the screen button above.

Character input area and page toggle key area.

Working mode switching and doubling setting area.


The key is used to switch the Edit Status: the indicator lights on and the indicator flashes.
The key is used to switch Auto Status: The LED lights on, Drilling Status: The lights flash.

Manual control area.


26
[Fast]: Switch between the manual and single-step speed. Light out [manual low speed], set in
the comprehensive parameters (shared by all axes), the doubling rate is the feed doubling rate
F:100%. [Manual Quick], set in each axis parameter (set separately) and F100.

27
[K1]: has no key defined.
[X1 X10 X100]: Adjust the single step or hand wheel doubling rate.

Spindle control and program start area.


[Spindle 1P/S] Spindle 1 Position / Speed Mode switch (digital spindle). Position mode when the
lights are on.

1.3 Location screen


1.3.1 Position and picture composition

The main interface displays the coordinates, processing time, processing parts, shaft
replacement, manual speed, spindle speed, operation information of each program, and some modal M
codes.
The S: spindle 1 will set the speed Actual measured speed of the SE: spindle 1 encoder.
The SS: spindle 2 sets the speed

1.3.2 Bhole function setting screen


Press the soft function key [drilling function] on the position main page to switch to the
drilling page. This page shows the data of the drilling function, as shown in the figure:

Each Explanation:
bhtocaiIDZsmTdfrS.lenup:-xygq

Safety height: the tool positioning the


moving height.F: drilling speed, the
tapping instruction is pitch.

28
Spindle speed: spindle 1 speed, cannot control spindle 2
Current hole number: The number of the current hole at multiple axes. If it is set at the
stop, startup starts with the current hole number.

29
Stop position: the position where the XYZ stops when the entire workpiece processing is
finished.
The R data in the R: fixed cycle, the coordinates where the fixed
cycle starts the processing, refer to the fixed cycle instruction.
The Q parameter in the Q:G73,G83.
PodbmcfGtiplaT(sen).yhx:73,8r

Cooling: Turn on the cooling


during processing.Cping:
whether machining process
clamped automatically.

1.3.3 Custom fixed loop G88

The G88 is a customizable fixed loop. A G88 loop can be set up in 20 minutes. Different speed,
different speed and dandruff mode can be set each time.Depth: The current knife machining
depth, noted from the R plane. If the program specified depth, press the program to specify
the depth and end the following
Cycle. If the current depth is 0, also press the specified depth and end the
following loop. That is to say, the knife time behind 0 is ignored.Speed:
Current knife feed speed, if 0, press the speed specified in the program.
Speed: Current blade spindle 1 speed, if 0, press the speed specified in the procedure. Unable
to control the spindle 2. 2
Return debris: 0: The current knife time does not return. 1: Go back to the R plane and then
quickly to the depth of the hole 2: Reback G83_d. If drilling function, use special d.

1.3.4 Porous editing interface


If it are two axes or more, you can set multiple hole positions. You can use the CAD
coordinate extraction tool to extract all the point data without programming. However, it can only
control the XY position, which ABC cannot control, but is still solved with traditional
programming.

XY, non-machining shaft, hole position, except the first hole, after the hole with XY
coordinates are 0, the hole ends, and the later data ignores. Z, machining shaft, if Z is
not zero, the current hole depth is the Z axis data, otherwise the depth in the drilling
30
function.
You can import data with a U disk in the file directory. If not, use the export first, change it
on the computer and then import it back.
The file format is CSV. The following demonstration to do a file in CSV format, other projects
to use the CSV file practice, the key is to save steps
Suddenly.

31
Create a new one or open a file with excel.A is listed as X axis data, B as Y axis data (that
is, biaxis system to set B column, or 0), and C as Z axis (it must also be known). The first line
can't have anything else, start the data directly, if it is the data extracted by CAD, delete all
that are not the data.

Point excel top left icon, selected in a different format.

Select CSV, to save the name point in the file name.

If there is this point is identified.

Continue with [Yes].


Close excel, point [no]. But if there are changes prior to closing, it is best to save them
32
manually.

33
The files in the directory, put this in the U disk and directory, you can see in the import and
import the system.

1.3.5 Brief briefly


Manual mode under the lower interface

In manual mode, you can set the current point as the origin and quickly go back to the origin.
When returning to the origin, the Z axis returns to [Z axis safety height] and the other axes
return to the coordinate 0.
[To the knife] If the pair knife port is set, press this

button to start the knife automatically.Automatically, the

following interface appears

In automatic mode, press [handwheel trial processing] to use the handwheel commissioning
procedure.

1.3.6 Coordinates pair to the knife


Figure slightly, will be explained in detail in the knife operation.

1.3.7 Customstom interface

34
You can define 24 saved public variable B(#500~ # 599) variable numbers in the first column,
and are named the second column, and the third column is the value of the variable. The nan
represents an invalid value. Apply the variable name example X#500. directly in the program

35
For interface import, please export it from the system first and change it back on the computer.
An example of the parameters.
500 Custom parameter 1
501 Custom parameter 2
Note that the first column variable number does not add #. The range is 500~599, and no other
values appear.

1.3.8 Program interface

The support type of this system is NC, CNC, TAP, TXT file.
1.3.9 Local directory
You cannot enter this page when the running state is not stopped.

1.3.10 The U disk directory

Program import to enter the U disk directory, plug in the U disk, and enter the U disk
directory (not stop). The system lists the imported files on the U disk.
What files can be identified? Condition 1: Notepad can be open on the computer; condition 2: a
suffix named.nc or.txt. Some software generated code suffix names are not supported, you can
change the suffix name directly to make the system recognition by the following method. The suffix
name on the computer is basically hidden, and you can open the suffix name through the following
steps.

36
Open my computer → Tools → folder options.

Remove the option √ in the box and point again.

This can see the file real suffix name, with the mouse up to ". NC "..

1.3.11 Parameter interface

37
When the working mode is set, have [Edit] status and determine the parameter switch in the
system information. Press the press Key
modification.

[External Control Ban]: refers to the port external function that is prohibited by [edit]
[MDI][back to zero] [Single step] [Manual].
It is mainly used when set to a non- [Edit] port, and the port has no connected keys. At this
time, the feature cannot switch to Edit] and then none
Law modify the port function and use [External Control Ban] to switch to [Edit]. After the port is
set, press [External Control Ban] to cancel again.

1.3.12 Alarm and boot screen settings

When the alarm, you can switch to the information to view


the specific alarm information. Press [reset] to clear the
alarm.[Breakpoint Information]: The last interrupted row
or hole number.
Set the boot screen, put the start.bmp in the root directory of U disk, and the system
information is set to [the manufacturer B],] to import the new boot screen.
Making of start.bmp: open the computer with its own drawing
software, create or open existing pictures. If it is a new

Click Properties in the figure.


38
Press the above figure setting: unit
pixels, width 800, height 480. If you
open the existing graph:

Determine by
pressing the
figure above.
After doing the
picture well

The name must be start.bmp, put into the U disk and can be imported.
The system can also support the E100~E121, custom alarms. Example can be
called from ERR[100] to ERR[121] in the program. Customize the alarm
content

39
Alarm content can be imported with the CSV file, and you can only update the custom content in
the CSV file. E. g
E100. Custom alarm 1

40
E120. Custom alarm 2
Note: Custom alarms do not change with Chinese and English.

1.3.13 System information

Press the parameter switch and the program switch switch switch status. Set the
permission corresponding permission, F does not need password, level C and B default
password is 888888.
Permissions requires password from low to high, but not from high. If the C password forgets,
you can go to B permission before dropping to C and then modify the C password.
Permissions are F, C and B from low to high

1.3.14 Trial settings

[vendor B] permission is required in the trial setting, and the trial time is calculated by
the power time. Trial cancellation with [vendor B] level password required.B password modification
please keep in mind, forget the manufacturer can not decrypt. If it is a user, please contact the
equipment manufacturer, do not contact the system manufacturer, this function has no back door,
the manufacturer can not decrypt.

1.3.15 Diagnosis

Diagnostics can view and test each port status and change the port functions with the edit
status and parameter switch on.

41
1.3.16 The Port is universally named
This system supports port naming, noting that naming is only displayed on the port.

42
You can import the required port through the CSV file. Can
not lead out, modify and then import. Example format The
first column input port: PIN Output port: POUT.
Second column port number.
Name of the third column. Up to four Chinese characters or 8 letters.
PIN. 1 Inport 1
PIN. 2 Inport 2
POUT. 10 Output port 10

Press [Named Import], the input and output are imported together, with just one file.
Note: Custom name does not change with the Chinese and English switch, to return to the factory
value, press [Name Default].

1.3.17 Communication diagnosis

The expansion board enables and forbids operation in the comprehensive parameters.

43
Chapter II: Basic Operation
2.1 Back to zero
Zero return operation refers to the mechanical return zero operation. Press [back to zero] to
switch to zero mode, press the axis direction to start returning to zero.
Before each axis display, example Z axis, if there is ● tag at zero, if zero has ○ tag,
neither indicates no zero, and if the drive alarm appears, the zero tag will be cancelled.
2.2 To the knife
2.2.1 Coordinate system to knife
Before the controller processing, the knife must match the position of the machine tool and
the workpiece. The coordinates in the program shall be the absolute coordinates. Machine tool
coordinates are only used to do limits, knife change points and other special uses.
Coordinate system pair knife is the offset of the G54~G59,6
coordinate systems in the machine tool coordinate system.
Method, switch to the main interface and press [coordinate
to knife].

Press [Set 0], select the axis, see whether [Absolute Coordinate] changes 0, change zero
shows that in the selected coordinate system, the current position is 0, the knife is completed.
Controls the G54,G55~G59 command for which the coordinate system switches.
If two axes or above, [in the line segment].

Take two points on the X axis XP1,XP2, system automatically set the middle point absolute
coordinate 0, noting that is not the current point coordinate, the tool will not automatically
move to the end point to prevent the collision knife.
If it is a three-axis or above system, [in the line segment] and set [center coordinates].

44
Take three points on the circle on the XY plane: P1,P2,P3. The three points should not be
collinear, preferably to be substantially uniform on the circle (about 120 degrees apart).

45
After taking up the three points, the system automatically sets the center X0,Y0. Note that not
the current point coordinates, the tool will not automatically move to the end to prevent the
knife.

2.2.2 The knife complements the knife

The system has 0~99 knife marks per shaft, of which 0 cannot be set.
[Benchmark to knife] application: first use the benchmark knife to a fixed point,
[benchmark read], and then replace the knife to the same point, [benchmark point to knife], so
the difference between the knife and the benchmark knife is automatically calculated.
Modimodification will not take effect immediately, must be run with H instructions to take
effect.

2.3 To knife to knife


2.3.1 Set the knife
First connect the pair knife signal to the input port X 1~X8, and set to [pair knife]. And
set the pair knife parameters in the [Tool] →. The front HZ must not be zero, because the
length of the knife will be written to the Z axis knife according to the Z axis knife
supplement.

The thickness of the knife block: it is the distance between the knife
instrument surface and the workpiece surface, which can be set quickly and
will be said later.Automatic knife speed: The Z axis is close to the knife
speed.
Automatic knife low speed: the tool contacts the tool after the opening speed, the opening point is
the reading point of the coordinates of the knife, the speed is below 60 to ensure the accuracy.
Alarm deviation: the manual mode is invalid, the setting of 0 is invalid, the current knife repair
number is not used to correct the tool, also invalid. Use G37 to pair the knife in the program. If
the difference between the knife length and the last knife length is greater than the alarm
deviation, the system alarm. Note: This is based on the knife complement. That is, if the knife
HZ2,, the system compares the location of the last HZ2. So each knife is marked with its own Z
knife.
The Z axis of the knife point: fixed, is the Z axis

46
machine set before the knife, bed, sitting.
mark. position. Currently, the Z axis
approaches the knife from the current
position.
The same is XY, fixing points first to the Z axis and then to the XY axis.
This fixing point must be directly above the knife.The Z-axis approach to the knife instrument is
only accessible in a negative direction.
When the opposite knife is complete, the Z axis goes back to the start point of the opposite
knife. And write the knife length to the HZ specified knife repair number, and update the knife
repair, (note that if the knife repair length is changed otherwise, the knife repair command such
as HZ1 can take effect).

2.3.2 Hand opposite the knife to the knife


If the [To Knife] input port is set, in the [Manual] mode, the Position Main Interface notices
the Z axis zero return identification and makes sure that the Z axis has performed the zero return.
Note that HZ cannot be 0 (execute a HZ1 with 0 in MDI), press [Auto to the knife] to start to the
knife.
After the knife, [automatic to the knife] will appear [the thickness of the knife].

47
Set pair blade thickness: do not switch mode (can switch to hand wheel or single step) and
interface. Move the tool to the Z-axis reference point, press [pair knife thickness], and the
system automatically set [thickness of knife block]. artifact reference point Z axis absolute
coordinate is set to 0
Use G37 automatic pair knife in the program without [pair knife thickness].

48
Chapter III: Automatic operation
3.1 M DI multi-segment run
In MDI mode, multiline programs can be prepared and executed through the MDI panel, called a
MDI multiple segment run or a MDI run.MDI runs the program format and the usual program ー sample.
MDI runs for simple testing operations, please do not use for artifact machining.
Operation steps
1. Press [MDI]] to enter the program screen, as shown in the figure below.

2. Press the cursor key [↑] or [Reset] to move the cursor to the beginning of the program.
3. rMtskSPun.DIheaoy
Relevant explanation
M99 in the ▲ MDI Temp program
If M99, is specified in the MDI temporary program, then after M99 performs, it jumps to the
beginning of the program and repeats the main program.
The ▲ will restart
The editing operation is possible after the MDI operation stops. When the cursor is anywhere
in the program, you can start MDI again, and the system will reexecute the program from the
beginning of the program section where the current cursor is located.

3.2 Automatic drilling


The upper left corner of the screen shows [drill hole], the [automatic] button light flashes,
press the [Start] button, and the program starts [drill hole function].

3.3 , Handwheel trial processing


In Brief Display and Program Edit, open the handwheel for trial processing. Shake the hand wheel,
and the program runs. Hand wheel stop, procedure temporarily
Stop it.
3.4 Single, skip, stop
Single segment: execute a row pause.
Skip: Open the jump, ignoring the line that starts with '/', which is executed if the jump is
closed. Note that if the beginning is '/ /', it is equivalent to comments, and the closing is
ignored. ';' is the note, "()" is the note.
Check Stop: When the program performs [M01], if [Check Stop] opens, the program stops, Stop
closes and the program continues. A program is constantly executed, but it hopes to stop manually
when you finish a complete cycle. Add M01, before program loop instructions so it needs to stop
[Select and Stop].

3.5 The Subroutine calls the M98


Subroutine call format M98 P1234 L1.L times, not written.1234, the subroutine name. Many people
think it is a N1234, written in the main program or to write children under O1234 behind the main
program. No.1234 must be a separate program in a local directory with the name O1234.NC. Must be a
O + 4 digit, M98P1, then subbroutine name is O0001.NC. Note that the first word is because the O,
build method of OPQ ", create a new file in the local directory, name enter the O + 4 digit.
Eediting the file ends with M99 and then the master program.

49
Routine: Call the
subroutine for a delay by 1
second. Master program
O1111.NC
M98 P9123
M30.

Subroutine
O9123.NC G04X1.0
M99.

50
3.6 Program cycle execution
The macro program, if the program cycle, M99. at the end of the program If you want to limit
the number of cycles, the M99L10, cycles are 10 times.
Subroutines are in the main program. Sometimes for convenience the subroutine can be placed
behind the main program and called with M98 Qxxxx.
O1111.NC
M98 Q1234
M30.

The N1234 // subroutine starts to give the subroutine name with N.


G4 X1
M99.

51
The fourth programming description
Chapter I: An
Introduction to
Programming
There are two ways to move the instruction axis: absolute value instruction and incremental
value instruction.

1.1 Absolute value instruction


The absolute value instruction is programmed using the end position coordinate value of the axis
movement. That is, the coordinate position where the tool moves to the end point.Figure 2-1

Figure 2-1 Absolute value


instruction and incremental value instruction schematic diagram
The tool quickly moves from start to end point is programmed
with the absolute value instruction: G90 X50.0 Y80.0.

1.2 Incremental value instruction


The incremental value instruction is programmed directly using the axis movement amount. The coordinate value
of the tool motion position is relative to the previous position, not relative to the fixed processing coordinate
frame origin, the distance that the tool actually moves. As shown in Figure 2-1: Tool tool movement from start to
end is programmed with incremental value instruction: G 91 X-50.0 Y 50.0;
Note:
In the same processing program, the user can switch instructions using G90 or
G91 as needed.G90/G91 is the same set of modal G code that after one of the

1.3 Control shaft


1.3.1 Control the number of axles
Control the number 1~6
of axles
Control axis name X, Y, Z, A, B, C.

1.3.2 Unit No
The units involved in the system include the minimum input unit, the minimum output unit, and
the minimum mobile unit.
▲ minimum unit of input
Also the minimum setting unit or minimum progra mm ing unit, the minimum unit of movement
during programming, or the minimum unit of absolute coordinates. In mm or deg (degrees).
▲ minimum unit of output
Also known as the minimum machine tool unit, refers to the smallest unit of the machine tool
coordinates. In mm or deg (degree).
▲ Minimum mobile unit
The minimum unit of the instruction sent to the drive (representing the length or angle of 1
pulse when the system electronic gear ratio is 1: 1). In mm or deg (degrees).
The Quick Guide:
Minimum unit of the ▲ straight line axis
The minimum input unit of the linear axis is a metric input.
Minimum unit of the ▲ rotation axis
The rotation axis is expressed in deg.
52
The ▲ pauses the minimum unit
The pause minimum unit is 0.001 seconds, regardless of
the minimum unit of line or rotation. Refer to the
instructions of machine tool manufacturer for detailed
units.

1.4 Decactional point programming


Values can be taken with a decimal point of input. A decimal point can be used for instruction
values indicating distance, time, and speed units, with the following address values
See this example.
X,Y,Z,U,V,W,A,B,C,I,J,K,Q,R,F,E,H.
Either the position of the decimal point can be the position of millimeter, degree or second
depending on addresses or instructions.
Note that X1 X1.0 all consider 1.000, different from other controllers.

53
Chapter II: The Composition of the Procedure
2.1 Procedure
The program consists of multiple segments consisting of words separated by the segment end code.

2.1.1 Program number


The system's memory can store N programs distinguished by program numbers of address O and
subsequent four digits (the U disk imported in Chinese). The program starts with the program
number and ends with a M30 or M02.
Format
OXXXX.
O. : Program number address character.
XXXX: Program Number (1~9999, leading zero can be omitted)

2.1.2 Program number and program segment


A program consists of multiple program segments. Program
segments are separated by program segment end characters (;).At
the beginning of the program segment, the sequence number can be
composed with the address N and the subsequent five digits, and
the leading zero can be omitted. Format
NXXXXX.
N. : Program number address character.
XXXXX: sequence number (leading zero can be omitted)
Interpretation
The order of the order number may be arbitrary, with unequal intervals. You can insert a
sequence number in all program segments, or only in important program segments. It is
convenient to bring the sequence number in important parts of the program. For example, when
changing the knife, or when the workbench scale is moved to a new processing surface.

2.1.3 Skip the optional program segment


During automatic operation, the program segment beginning with a slash (/) is skipped by the
system when the jump switch is on. If the skip switch is off, the segment is not skipped.
Example
N100 X100.0;.
/ N101 Z100.0;
N102 X200;.
In the above program, if the skip switch is skipped, the N101 segment is ski.

2.1.4 Word and address


Words are the elements that constitute the program field,
consisting of the address and the subsequent values, which can
be negative.Format
X1000.
X:
Address
Interpretation
The address is a letter in the English letter (A 〜Z), which specifies the meaning of the
subsequent values. Sometimes the same address also has different meanings, according to the
different preparation functions. Its meaning, the address that can be used in this system, are
shown in the following table.

Function Address Meaning


Program number O. Program number
Sequence number N. Sequence number
Preparation G. Specify the action status (straight lines, arcs,
function etc.)

54
X Y Z A B C U V W. Axis movement instruction
H.
Size word
R. Arc radius
I J K. Arc center coordinates, G12 arc center point.
Feed-in speed F. Feed speed is specified
Spindle function S,SS. spindle speed specified, S spindle 1, SS spindle 2
Tool function T. Specify the tool number
Auxiliary function M. Machine tool auxiliary function is specified
Offset number H,HX,. Speciblade offset designation, H and HZ.

55
HY,HZ,HA,HB,HC.
Pause it P/X. Specify of the pause time
The Subroutine P. Specify the subroutine number
number is
specified
Repeat icates L. Number of subroutine
Parameters P/Q/R. Fixed the cycle parameters

2.1.5 Basic address and instruction value range


Basic address and instruction values range are shown in the following table
Function Address MM input
Program number O. 1〜9999
Sequence number N. No restrictions
Preparation G. 0〜99
function
Size word X Y Z A B C U V W I J K Q R. ±999999.999
Each score goes in F. 0.001〜15000.0
Spindle function S. 0〜9999
Auxiliary function M. 0〜99
Pause it X P. 0〜999999.999S.
The Subroutine
P. 1〜9999
number is
specified,
Repeat icates
Repeat icates L. 1〜99999
Offset number H,D. 0〜99
These numbers are the instruction range of the CNC system and are independent of the actual
working scope of the machine tool. For example, the system may specify an axis movement of to about
100m, while the actual machine X axis stroke may be only 2m. According to this manual and machine
tool manual when preparing procedures.

2.2 The Program has ended


The program ends with either a M30 or a M99.
Format
M30; program
end The M99;
subroutine ends
Interpretation
In the execution program, if the above program code is encountered, the system ends the program
execution and enters the reset state.
At the end of the M30, whether the program cursor returns to the beginning of the program is
controlled by the bit number M30. At the end of the subroutine, the system returns to the thread
calling the subroutine
Continue with the execution in the sequence.

56
Chapter III Preparation Function (G Code)
The preparation feature is represented by the G code, including the G address and its later values.
The G code includes both modes and non-modes.
Type
Type 1: Unmodal G code
Effective type 2 only
in the instructed
segment: modal G code

Example
G00 and G01 are the same group of modular G
code. Processing procedure are as follows:
G00X ; (The G00 is Valid)
Y. ; (G00 is
valid) G01Z ;

3.1 G code list


G code Level Func
tion
G00 *. Quick positioning, the speed is running at the speed parameter G0 speed
G01. Line line line and run by the given F
G02. 1 Clockwise arc insertion, speed according to the given F, If there is a
non-plane axis, press the screw insertion
G03. Counterclockwise circular arc insert, other ditto
G12. Arc insertion over the middle point
G04. 0 Delay wait, parameter X second, parameter P milliseconds, resolution 5
milliseconds
G17 *. Round interpolation plane selects XY
G18. 2 Round interpolation plane selects ZX
G19. Round interpolation plane selects YZ
G28. Return parameter point (zero back to machinery), involving parameter
speed, zero direction and mode
0
G30. Return to the second and third reference point over the middle point
G31. Jump mechanism, if the G31 input port effectively stops the current
0 motion to the next command
G50. Side motion, the input is not stopped, similar to G31, but can be
specified
G51. Side movement, input stops, similar to G31, but can be specified
G37. The Z-axis automatically pairs the knife
G22. Cycle instruction
0
G23. Cycle instruction
G52. 0 Local coordinate function
G53. Machine tool coordinate positioning
G40*. The knife tip radius compensation is cancelled
G41. 3 Left-hand knife tip radius compensation
G42. Right knife tip radius compensation
G43. Positive direction tool length offset
G44. 4 Negative direction tool length offset
G49*. Tool length offset cancelled
G54 *. Work piece coordinate system 1
G55. Workpiece coordinate system 2
G56. Work piece coordinate system 3
G57. 5 Work piece coordinate system 4
G58. Work piece coordinate system 5

57
G59. Work piece coordinate system 6
G73. High-speed deep-hole machining cycle
G74. Press the encoder.
G80 *. Fixed cycle cancelled
6
G81. Bhole cycle (point drill cycle)
G82. Borecycle (boring ladder empty cycle)

58
G83. Deep-hole drill cycle
G84. Break loop, press the encoder
G85. Boring cycle
G86. Bhole circulation
G88. Custom drilling instructions, specific actions in G88 edit in the
drilling function.
G89. Boring cycle
G70. Round drilling cycle (for flange drilling)
G71. 0 Wheel-arc drilling cycle (for flange drilling)
G72. Drholes at an angle
G90 *. Absolute-value programming
7
G91. Incremental value programming
G92. Set the artifact coordinates to offset all artifact coordinates without
0 mechanical zero to zero
G93. Set the machine tool coordinates, please use them with caution if there
are soft limits.
G98 *. The fixed loop returns to the initial plane
8
G99. The fixed loop returns the R point

Note:
1 The G code with * is the system default G code, and the mode G code is in default when
power is on.
2 The G code for the 00 group is non-modal G code and is only valid in the current program
segment.
3 An alarm occurs if G code that is not listed or not enabled in the G code list.

3.2 G00-Quick positioning


The G00 is a quick positioning instruction. It starts at the current point and moves to the
specified location at the speed parameter G0 speed.
Command format
G00 IP. ;
IP:X, Y, Z, A, B, C, U, V, W, et al., representing a combination of an arbitrary axis.
The absolute value instruction is the end coordinate value of the tool movement, and the
amount of tool movement for the incremental value instruction.
Instructions instructions
▲ linear interpolation positioning
When G00 execution, the tool track is the same as G01 and the tool is positioned at the shortest
time at a speed no greater than rapid movement per axis.
Note
1. The speed of G00 axis is set by number and the feed speed specified by F is invalid.G00
fast movement speed can be divided into 100%,
50%, 25%, F0 four gear.
2. G00 is a modal instruction, the next instruction is also a G00, can be omitted not

3.3 The G01-straight-line interpolation


The G01 is a straight-line interpolation instruction. It starts at the current point, specifies
the end point with IP, and the speed with F.
Command format
G01 IP F;.
The IP: is the end coordinate value of the tool movement for the
absolute instruction and the amount of tool movement for the
Instructions instructions
The feed speed specified by F is always valid until a new value is
specified, so there is no need to specify each segment.The speed
specified by the F is the synthetic speed at which the tool moves
along a straight line.
59
For example

60
G91 G01 X200.0 Y100.0 F200.0.
The tool moves from the starting point (0,0) at 200mm/min to the end point (200.0,100.0).

3.4 G02/G03-circular arc interpolation


The G02/G03 is an arc interpolation instruction. They are on the specified plane and control the
tool cutting movement along the arc.
Command format

The Specify the Command Description


Projec content
t
G17. The XY plane arc is specified
1 The Plane is G18. The ZX plane arc is specified
specified G19. The YZ plane arc is specified
G02. Clockwise circular arc insertion (CW)
2 Insertion
G03. Clockwise circular arc insertion (CW)
direction
Two axes in the X Y The end point position in the absolute
3 End point Z coordinate system
position or U V W or
The distance from the starting point
distance Two axes in the XYZ
under the G91 coordinate to the end point coordinate
The distance from the starting point
Two axes in the I J
4 Center position coordinate to the center coordinate (I J K in
K
or radius the absolute square
Equis also increincrement)
R. Arc radius
5 Feed speed F. tangent speed of arc feed
Instructions instructions
Direction of the ▲ round-arc interpolation
G02) and counterclockwise (G03) means that in the right-hand right coordinate system, for the
X_Y_ plane (Z_X_ plane, Y_Z_ plane) from the positive square yearning negative direction of the
Z_ axis (Y_ axis, X_ axis), as shown in the following figure:

61
Movement on the ▲ arc
Specify the end of the arc with the address X_, Y_ or Z_, the absolute value under the G90
instruction, and the incremental value under the G91 instruction. The incremental value is the
distance from the arc beginning point to the end point.
▲ arc center

62
The arc center is specified by the address I, J, K, which correspond to the X_, Y_, Z_,.,
respectively The value behind the I, J, K is the vector component from the starting point of the
arc to the center, with symbolic incremental values. The figure is shown as follows:

▲ arc radius

G code G91 G02 X60 Y50 R50 F300; when ① arc less than 180 º
G code G91 G02 X60 Y50 R-50 F300; when the ② is greater than 180 º
▲ feed speed
The feed speed of arc insertion is specified by F for the speed of the tool along the arc tangent
direction.
Note
1 Can be omitted when the I, J, K is 0.
2 When the movement amount (X, Y, Z) on all arcs is ignored, the end point is the same as
the starting point. If the center is specified with I, J, K, the whole circle is
specified.
3 Using R, at the end point to the starting point generates a 0 degree arc, which does not
move.
4 The error of the actual tool movement speed is within ± 2% relative to the specified
For example

The trajectory on the graph are programmed in absolute and incremental value, respectively.
Absolute way
G92 X200.0 Y40.0 Z0;.
G90 G03 X140.0 Y100.0 I-60.0 F300.0;
G02 X120.0 Y60.0 I-50.0;.
Or, the following is
G92 X200.0 Y40.0 Z0;.
G90 G03 X140.0 Y100.0 R60.0 F300.0;
G02 X120.0 Y60.0 R50.0;.
Increments in the mode
G91 G03 X-60.0 Y60.0 I-60.0 F300.0;
G02 X-20.0 Y-40.0 I-50.0;.
Or, the following is
G91 G03 X-60.0 Y60.0 R60.0 F300.0;
G02 X-20.0 Y-40.0 R50.0;.

Spirical insertion
63
If the arc insertion is specified and the specified off-plane axis is directed, the tool spiral
moves.

64
Command format

Interpretation
The F instruction specifies the feed velocity of the circumference along the arc as shown in the
figure below. The rate of Z feed speed is:
Length of the
F .
straight axis
round arc
projected arc
length

Note
When assigning the feed speed F, the speed of the line axis should not exceed any limit
value.

3.5 The G12-3-point circular arc interpolation


G12 over the middle point of the circular arc insertion instruction. They
are on the specified plane and control the tool cutting movement along the arc.
The byprogram cannot run this instruction.
Command format
Arc G12 I J
XY of the XY
plane
Arc G12 I K
X Z of the
ZX plane
I,J,K is the middle point of the arc, absolute under G90 and under G91 relative.
X,Y,Z is the arc ending, absolute under G90
and relative under G91. This instruction is
mainly used for instruction programming.
The middle point is best to take the middle point of the arc to reduce the calculation error,
note, the starting point, the middle point, the end point can not be collinear.

3.6 G04-Delay Wait


Wait the delay instruction to delay the execution of the next program segment with the delay of
the instruction.
65
Command format
G04 X. ;
Or, the following is
G04 P. ;
X: Delay Wait Time setting (decimal
number available). P: Delay Wait
Instructions instructions

66
Late the execution of the next segment for a specified period of time.
Command word Command range Command unit
X. 0.001〜99999.999 In the Second of Seconds
P. 1〜99999999 0.001 seconds

Note
The 1 X/P instruction unit is independent of
the minimum unit of the straight axis or
rotation axis.2 If the P, X instruction is

3.7 Reference point function


The reference point is a specific location on the machinery. With the mechanical zero point,
the mechanical zero point is the reference point of the machine tool; without the mechanical zero
point, the set floating zero point can also be regarded as the reference point of the machine tool.
You can return to the reference point in manual mechanical zero mode, or bring the tool back
automatically using the G28 instruction to the reference point.

3.7.1 The G 28-automatically returns to the reference point


The Auto Return Reference Point function (G28) enables the specified axis to automatically return
to the reference point via the middle point. Return to the reference point is completed, the
return zero light is on. Return function from the reference point (G29) enables the specified axis
to move through the middle point to the specified location. As shown in the figure below.

Command format
G28 IP. ;
The G28: automatically returns the reference point instruction.
IP. : Automatically returns the intermediate point coordinates of the reference point,
Instructions instructions
1 szrptailGDed.oungmhfc28,

2 otnwlrzapmfbcGsI.uighed,28k

3 aicbslrtpkugGdvne.ho,fmy28

4 There are multiple axes in order Z-> XYABC


Example
N1 G28 X40.0; intermediate point (40.0)
N2 G28 Y60.0; intermediate point (40.0,60.0)

Note
1 After power on, if no manual return reference point is performed once, when the
instruction G28, the motion from the middle to the reference point and the manual
reference point are identical.

3.7.2 fiprtasG3Tomnucehd0-

G30 IP. P_;.


The G30: automatically returns the reference point instruction.
IP. : Automatically returns the intermediate point
coordinates of the reference point, absolute or

Routine: The X axis returns the second reference point: G91G30X0.


The X axis returns the third
reference point: The G91G30X0P3 reference point position is in the

67
axis parameter.

3.8 Coordinate system function

68
When the machine tool works, the tool moves to the specified position according to the
coordinates specified in the processing program. The coordinate values are specified by the axis
components of the coordinate axis. The following figure is the tool location specified with the
X40.0 Y50.0 Z30.0.

The system uses the machine tool coordinate system, the workpiece coordinate system, the local
coordinate system to specify the coordinate position.
The machine tool zero point is the fixed reference point set by the machine tool manufacturer
for the machine tool. The coordinate system with the machine tool zero point as the coordinate
origin is called the machine tool coordinate system.

1 rueaistOcobmpfT.nlvdyh,kx

2 The workpiece coordinate system is based on the subcoordinate system in the machine tool
coordinate system, which can set and change its position in the machine tool coordinate system.
3 The local coordinate system is based on the subcoordinate system in the
artifact coordinate system, in which you can set and change its position within
the artifact coordinate system. The relationships between each coordinate system
are shown as follows:

Usually, after the system is turned on, the user should reset the coordinate system of the machine
tool.
After manually returning the zero to each coordinate axis, or making the return reference point
movement by the G28 instruction, the system can establish the machine tool coordinate system
according to the machine tool zero point. This coordinate system is saved in the system until the
user is reset.

3.8.1 G 53-machine tool coordinate system positioning


Move the tool quickly to the target position, according to the specified machine tool coordinates.
Command format
G53 IP. ;
IP. : Absolute coordinate of the target point under the machine tool coordinate system

Instructions instructions
1 Since the general positioning instruction (G00) can only specify the target point under the
artifact coordinate system, it is easier to use the G53 instruction if the user is to move the
tool to a special position (such as the tool change position).
2 spctivaGnegm.rouhld-53

3 giaIdbmGTenrt.sluco,fv53h

Note
1 When the G53 instruction is specified, the tool radius and length are automatically
cleared.

3.8.2 The G 92,G54〜G59-artifact coordinate system setting


69
The coordinate system used for the processing part is called the workpiece coordinate system. The
workpiece coordinate system needs to be set in advance before processing, or the set workpiece
coordinate system can also be changed by moving the origin.
There are three setting methods for the artifact coordinate system:
1 G92 Set artifact
coordinate system; 2
Automatic set artifact
coordinate system;
3 Select the G54〜G59 artifact coordinate system.

3.8.2.1 The G 92-sets the artifact coordinate system


Command format

70
G92 IP;.
IP. : Specifies the coordinates where the current point is in the set artifact coordinate
system.
The artifact coordinate system is established by making the specified coordinate value (IP )
becomes the absolute coordinate of the point on the current tool (such as the tip) in the artifact
coordinate system
The Value.
1 ctbpi(vsGwlUomena.hfrIP)ud92,yg

2 uiGtwdcrFse.no92hapmly,

3 Typically, set the artifact coordinate system before assigning the tool compensation.
For example

After the coordinate system is established, when the instruction reference point moves to the
specified position, the tool length must be compensated, and the compensation value is the
difference from the reference point to the knife tip.

3.8.2.2 Automatically sets the artifact coordinate system


If the coordinate system automatic setting function is selected, the artifact coordinate system is
automatically set after manually or automatically returning to the reference point. If α, β, γ
is the value of the set parameter, the absolute reference point of the reference point is X= α,Y=
β,Z= γ. This sets the workframe coordinate system. This method is equivalent to performing the
following instruction setting at the reference point.

G92 X α Y β Z γ;.

3.8.2.3 Select an artifact coordinate system (G54-G59)


The system provides G54-G59 six artifact coordinate systems, and the user can set the artifact
zero point offset data of each coordinate system through the system MDI panel, and then select any
artifact coordinate system. When the boot is performed and the reference point is returned, the
G54 coordinate system is selected by default.
G54 1scpWytemordinak

. 6scpWytemordinak

G55
G56
G57
G58
Instructions instructions
1 The six workpiece coordinate systems are set according to the distance from the machine tool zero
to the respective coordinate system zero point (the workpiece zero point offset), as shown in the
figure below.

71
2 After returning to the reference point, the absolute position is the negative value of the
artifact zero point offset, as shown in the figure below.

72
3 If the work coordinate system is selected, generally set to zero in the parameter, if the
setting value is not zero, return the parameter setpoint, all the artifact coordinate system is
offset after the parameter reference point.
Note
1 When selecting the artifact coordinate system, in general, G92 does not need to set the
coordinate system. Move the artifact coordinate system 16, so do not mix the G92 with the
G54〜G59, unless you want to move the artifact coordinate system 16.

For example

Processing procedures
N10 G55 G00 X100.0 Z20.0;
N20 G56 X80.5 Z25.5;.

3.8.3 Move the artifact coordinate system with the G92


Command format
G92 IP_;.
IP. : Specifies the coordinates of the current point in the set artifact coordinate system.

Instructions interpretation
Perform the G92 instruction in the selected artifact coordinate system (G54-G59) to synchronize
all the original artifact coordinate systems to produce a new coordinate system, all of the same.

3.8.4 Set the machine tool coordinates (G93)


Set the current machine tool coordinates, and use them with
caution with soft limits. The artifact coordinate system is
offset entirely.G93 IP_.
Example: G93Z0; Set Z axis The current machine tool coordinate is zero.

3.8.5 The G 52-local coordinate system


When writing the processing program in the artifact coordinate system, you can set another sub-
coordinate system in the artifact coordinate system for convenience. This subcoordinate system is
called a local coordinate system.
Command format
The G52 IP_; sets the local coordinate system
……
The G52 IP0; cancels the local coordinate system
IP. : Specifies the absolute coordinate of the local coordinate system origin in the
Interpretation
When the local coordinate system is set, the specified IP s Both absolute and relative, their

73
values represent the absolute coordinates of the local coordinate system origin in the artifact
coordinate system. Meanwhile, the absolute coordinates displayed by the system interface are also
the coordinates in the local coordinate system. Specifying the new zero point of the local
coordinate system in the artifact coordinate system with G52, you can change the local coordinate
system.

74
Once a local coordinate system is specified with G52, this local coordinate system works in its
corresponding artifact coordinate system until the instruction "G52 IP" is used to align the local
coordinate system zero with the artifact coordinate system zero.
Unlike the G92 instruction, G52 is only work in its corresponding artifact coordinate system as
shown in the figure below.

Note
1 When an axis automatically or manually returns the reference point, the local coordinate
system zero point of the axis coincides with the workpiece coordinate system zero point,
and the local coordinate system is cancelled. This has the same effect as the instruction
G52 α; (α: returns the axis of the reference point).
2 Local coordinate system setting does not change the artifact coordinate system and the
machine tool coordinate system.
3 Whether the local coordinate system is cleared when reset depends on the setting of the
parameters.

3.8.6 G17/G18/G19-plane selection


Use the G code to select the arc interpolation and tool radius planes.
Command5 format
The G52 temporarily cancels the tool radius compensation.
G17……. XY
plane G18……
ZX plane
G17,G18,G19 does not change the planes in program segments without instructions.
Example
G18 X_ Z_;. The ZX plane
X_ Y_. ; Flat ane unchanged (ZX plane)

Also, the move instruction is independent of the plane selection. For example, in the following
instruction case, the Z axis is not on the XY plane, so the Z axis moves with the XY plane
No matter.
G17 Z_. ;

3.9 Simplify the programming functions


3.9.1 An Overview
In drilling, multiple program segments are usually used to specify several processing
operations with higher frequency. The fixed cycle described in this chapter simplifies programming
by using a single program section containing a G code.
List of drilling and processing preparation functions
G code Open opening Botbottom action Return the Use
knife action
G73. Intermitinter -- Fast feed High-speed deep-hole machining
mittently cycle
G74. Cutting into The main shaft is Cutting into Countercounterattack wire cycle
the feeding turning in a the feeding
positive direction
G80. -- -- -- Cancel the fixed loop
G81. Cutting into -- Fast feed Drilling, point the drill
the feeding
G82. Cutting into -- Fast feed Drill, boring the steps

75
the feeding
G83. Intermitinter -- Fast-forward Deep-hole processing cycle
mittently feed
G84. Cutting into Spindle shaft to Cutting into Attack wire cycle
the feeding reverse the feeding
G85. Cutting into -- Cutting into Boring
the feeding the feeding
G86. Cutting into Main shaft stops Main shaft Boring
the feeding stops
G88. Custom drill -- Customize it Drill into it
holes
G89. Cutting into -- Cutting into Boring
the feeding the feeding
Command format

76
G IP R Q P F. J. L. ;
Address description
Specify the Address Description
content
hole G. Select the fixed loop G73, G74, G80~G89.
processing
method pGastcviowhlSng.0meru,bfy

IP non-hole Example X100Y100


Port location machining
data direction
axis address 5aimphtfw3FbsTvocRdAnergl,yu.

Or the speed instructed with the F code. Such as


Medium the Z-20
machining
direction
address of IP 2aiseFvtwRpocfdAnglu.bhr,my

And Action 6 are all fast feeds.


R.

Holprocessing
Specify each cut in G73, G83 or translation in
data Q.
G76, G87 (increase
Quantity Value).
Same is set.
P.
F. Specifies the cutting-in-feed speed. The G74,G84
pitch is specified.
Processing shaft specified,
J.
J0:X,J1:Y,J2:Z,J3:A,J4:B,
J5:C, other values or do not specify the default Z
axis
L0: is not processed this time, the position to go
L.
to, G70.G71 to be used, in the bypass
Certain points are used to. Cyof cycles in G91
mode: G91X10L10.

Instructions interpretation
▲ absolute programming with relative programming
Specify absolute and relative programming with G90 and G91.
G90(absolute value instruction) G91(Incremental value instruction)

The ▲ returns to the point plane


The ① instruction G98, indicates the return of the initial point plane.
The ② instruction G99, indicates the return of the R point plane.
Typically, G98. for G99, The initial point plane is not changed when processing the G99 state
G98(returns to the initial point plane) G99 (R eturn to the R point plane)

77
▲ -hole processing mode
Optable machining fixed cycle instructions include G73, G74, G76, G80~G89, are modal G codes.

78
The fixed cycle instruction specifies all the data of the fixed cycle, including hole processing
mode, hole processing direction, hole position data, hole processing data, etc., to form a
program segment.
Once the hole processing methods and data are instructed, they remain valid until the G code is
specified (G80 and 01 set G codes), so each segment is not required to specify the hole processing
for the same hole processing data. At the beginning of the fixed cycle, all the necessary hole
processing data is specified, and only the changed data is specified in the subsequent fixed cycle.

Note
The cutting speed of the instruction in the fixed cycle (F instruction) remains after the
fixed cycle is cancelled.
Cancellation of the ▲ fixed loop
Either 01 or G80 code in the same group as the fixed loop. The 01 group of G code includes: G00, G01,
G02, G03.

3.9.2 G 73-high-speed deep hole machining cycle


The G73 cycle is a high speed deep hole drill cycle, performing intermittent feeding to the bottom.
Command format
G73 IP_ R_ Q_ F_ J_;.
IP_ (non-hole machining shaft): hole position data
IP_ (hole machining axis): distance from R to hole bottom
(incremental) or coordinate (absolute) of hole bottom R_: from
initial point plane to point R (incremental), or R point
coordinates (absolute)
Q_: feed F_: cut feed
Example G73 X10Y10Z-20R2Q5F100J2 drill a hole of depth-20 at position X10 Y10. R2: starts with the
knife from Z2 and Q5: enters each time
Knife 5.J2: machining shaft Z shaft, the knife is mounted on the Z shaft.
Instructions interpretation
The high-speed deep hole drilling cycle feeds intermittently along the drilling shaft and returns
quickly to the bottom of the hole. This cycle is beneficial to debris removal, and improves the
drilling speed and accuracy.
Note
1 Cutting amount d available parameters set, drilling shaft direction intermittent
feeding, to make the deep hole processing easy to discharge debris. The amount can be set
to small amount, which can improve work efficiency. Backknife movement with quick
movement.
2 Start the spindle rotation before specifying the G73.
3 When fixing the cycle state, the system is holes if you instruct one or more of the X,
Y, Z, R data. However, when the X and the G04 are specified simultaneously, pore
machining is not performed.
4 The hole processing data Q, P. may be instructed in the program segment in which the
machining action can be performed Command hole processing data Q, P can not be stored in

3.9.3 G 74-counterattack silk cycle


The G74 cycle is a left-handed tapping loop for processing counterthreads.
Command format
G74 IP_ R_ Q_ F_ J_;.
IP_ (non-hole machining shaft) hole position data
IP_ (hole machining axis) The distance from R to hole bottom
(incremental value) or coordinate (absolute) R_: of hole bottom
from the initial point plane to R point (incremental point), or
the coordinate (absolute) of R point Q_: peck attack every
attack (spindle in (M29) position mode), reuse G73D
Example G74 Z-20R2F1.0 ; Z-20: hole bottom coordinates-20 R2: starts from
coordinate 2, leaving 2mm distance. The F1.0: pitch is 1.0mm
Plug in the tapping wire M29S1000 // always needs to set the
spindle speed, and the insertion speed determines 5 mm
79
per G74 Z-20R2Q5F1.0; according to the spindle speed
Instructions interpretation
This cycle performs the left spin tapping, and the spindle state reverses the attack. After reaching
the bottom of the hole, the spindle pause time P, The main axis is turning and exit, and the left
spinning tapping action is completed.
Note
1 In the G74 counterattack wire cycle, the feed speed doubling rate and feed rate remain
invalid. Do not stop until the return action ends, even if the Feed Hold button is
pressed.

80
And wait until the M code execution ends before doing the next loop action.
3 Fixed the cyclic state, the system performs pore machining if any one or more of the X,
Y, Z, R data is instructed. However, when the X and G04 are specified simultaneously, pore
machining is not performed.
4 The hole processing data Q, P. may be instructed in the program segment in which the
machining action can be performed Command hole processing data Q, P can not be stored in
inaccessible segments as modal data.
5 In a fixed cycle mode, if the tool length bias has been instructed, offset at the initial

3.9.4 fCicmdgtGp8oransu.yleh1,-

G81 IP_ R_ F_ J_;.


IP_ (non-hole machining shaft) hole position data
IP_ (hole machining axis): distance from R to hole bottom
(incremental) or coordinate (absolute) of hole bottom R_: from
initial point plane to point R (incremental), or R point
coordinates (absolute)
Example G81 X10Y10Z-20R2F100J2 drill a hole of depth-20 at position X10 Y10. The R2: enters the
knife from the Z2, the J2: machining shaft
Z-axis, the knife mounted on the Z-axis.
Instructions interpretation
Once the tool is positioned, move quickly to point R, drill along the hole axis to the bottom, and
the tool returns quickly.
Note
1 Start the spindle rotation before specifying the G81. If the G81 and M code are specified
in the same segment, the M code is sent at the initial location and waits until the M code
execution ends before the next loop action.
2 When fixing the cycle state, the system is holes if you instruct one or more of the X,
Y, Z, R data. However, when the X and the G04 are specified simultaneously, pore
machining is not performed.
3 In a fixed cycle mode, if the tool length bias has been instructed, offset at the initial

Example
M04 S800. ; Spindle rotation Rtr2hdp1Poeunlis,

G90 G99 G81 X100. Y100. Z-20. R50. F100.;


Position, drill 3 holes and
X150.;. return to the initial plane
G98 Y150.;. to cancel the fixed cycle,
G80 G00 X0. Y0. Z0.;.and return to the processing
M05;. starting point
Spinspindle stops
3.9.5 G 82-drilling hole circulation, boring ladder hole cycle
G82 is a general drilling cycle instruction and the tool returns at the bottom. Because of the hole
bottom suspension, in the processing of the blind hole, it can improve the accuracy of the hole
depth.
Command format
G82 IP_ R_ P_ F_ J_;.
IP_ (non-hole machining shaft) hole position data
IP_ (hole machining axis) distance from R to hole bottom
(incremental) or hole bottom coordinate (absolute) R_: from
initial point plane to point R (incremental), or R point
coordinate (absolute) P_: hole bottom pause time (in 0.001
seconds)
Example G82 X10Y10Z-20R2F100J2 drill a hole of depth-20 at position X10 Y10. The R2: enters the
knife from the Z2, the J2: machining shaft
Z-axis, the knife mounted on the Z-axis.
Instructions interpretation
After the tool is positioned, move quickly to the R point, drill along the hole bottom, pause time P,
and then the tool returns quickly.

81
Note
1 Start the spindle rotation before specifying the G82. If the G82 and M code are
specified in the same segment, the M code is sent at the initial location and waits until
the M code execution ends before the next loop action.

82
G04 does not porous when specified.
3 The hole processing data Q, P. may be instructed in the program segment in which the
machining action can be performed Command hole processing data Q, P can not be stored in
inaccessible segments as modal data.
4 In a fixed cycle mode, if the tool length bias has been instructed, offset at the initial
point plane positioning.

3.9.6 G 83-deep hole machining cycle


G83 is a deep hole machining cycle instruction that performs intermittent hole to hole bottom and
then quickly exits.
Command format
G83 IP_ R_ Q_ F_ J_;.
IP_ (non-hole machining shaft) hole position data
IP_ (hole machining axis) The distance from R to the hole bottom
(incremental value) or the coordinate (absolute) R_: from the
initial point plane to the point R (incremental value), or the
coordinate (absolute) of the R point Q_:
F_: cutting
Example G83 X10Y10Z-20R2F100J2 drill a hole of depth-20 at position X10 Y10. The R2: enters the
knife from the Z2, the J2: machining shaft
Z-axis, the knife mounted on the Z-axis.
G83 (G98) G83 (G99)

Instructions interpretation
According to the above format instruction, Q is the cut of each cut, with incremental value
instruction. When the secon d cut in, quickly feed to d mm from the newly finished position, and
then become cutting feed. The Q value must be positive, and the symbol is invalid even if a
negative value is directed.The d is set with the parameters.
Note
1 Start the spindle rotation before specifying the G83. If the G83 and M code are specified
in the same segment, the M code is sent at the initial location and waits until the M code
execution ends before the next loop action.
2 Fixed the cyclic state, the system performs pore machining if any one or more of the X,
Y, Z, R data is instructed. However, when the X and G04 are specified simultaneously, pore
machining is not performed.
3 The hole processing data Q, P. may be instructed in the program segment in which the
machining action can be performed Command hole processing data Q, P can not be stored in
inaccessible segments as modal data.

3.9.7 The G 84-tapping cycle


The G84 cycle is a power wire loop used for processing positive screw threads.
Command format

83
G84 IP_ R_ Q_ F_ J_;.
IP_ (non-hole machining shaft) hole position data
IP_ (hole machining axis) The distance from R to hole bottom
(incremental value) or coordinate (absolute) R_: of hole bottom
from the initial point plane to R point (incremental point), or
the coordinate (absolute) of R point Q_: peck attack every
attack (spindle in (M29) position mode), reuse G73D
Example G84 Z-20R2F1.0 Z-20: hole bottom coordinates-20 R2: starts from
coordinate 2, leaving 2mm distance. The F1.0: pitch is 1.0m
Plug in the tapping wire The M29S1000 // always needs to set the spindle speed, and the insertion
speed is determined according to the spindle speed

84
G84 Z-20 R2 Q5 F1.0; attack 5mm, each time this mode does not reference the encoder, so can not
connect the encoder

G84 (G98) G84 (G99)

Instructions interpretation
This cycle performs the tapping cycle, and the spindle is attacked in the positive rotation state.
After reaching the bottom of the hole, the spindle pause time P, spindle reverses out and completes
the tapping action.
Note
1 The feed speed doubling rate and feed rate remain invalid in the G84 tapping cycle. Do
not stop until the return action is completed.
2 Start the spindle rotation before specifying the G84. If the G84 and M code are
specified in the same segment, the M code is sent at the initial location and waits until
the M code execution ends before the next loop action.
3 When fixing the cycle state, the system is holes if you instruct one or more of the X,
Y, Z, R data. However, when the X and the G04 are specified simultaneously, pore
machining is not performed.
4 The hole processing data Q, P. may be instructed in the program segment in which the
machining action can be performed Command hole processing data Q, P can not be stored in
inaccessible segments as modal data.

3.9.8 G 85-boring cycle


G85 is used for boring and can be refined with G76 after processing. The cycle process and G84,
are only in the hole bottom spindle does not reverse, and there is no pause time.
Command format
G85 IP_ R_ F_ J_;.
IP_ (non-hole machining shaft) hole position data
IP_ (hole machining axis) The distance from R (incremental) or
the coordinate (absolute) R_: from the initial point plane to
the point R (incremental), or the coordinate (absolute) F_:
cutting feed speed
Instructions interpretation
After the tool is positioned, it quickly moves to the point R, cuts along the Z to the hole bottom,
then exits at the cutting speed, and then the tool returns to the point R point or the initial plane.
Note
1 Start the spindle rotation before specifying the G85. If the G85 and M code are
specified in the same segment, the M code is sent at the initial location and waits for
the M code execution to complete before the next loop action.
2 When fixing the cycle state, the system is holes if you instruct one or more of the X,
Y, Z, R data. However, when the X and the G04 are specified simultaneously, pore
machining is not performed.
3 In a fixed cycle mode, if the tool length bias has been instructed, offset at the initial

3.9.9 G 86-boring cycle


G86 is used for boring and can be refined with G76 after processing. The circulation process with
the G81, only stops at the bottom of the hole spindle.

85
Command format
G86 IP_ R_ F_ J_;.
IP_ (non-hole machining shaft) hole position data
IP_ (hole machining axis) distance from R to hole bottom
(incremental) or coordinates (absolute) of hole bottom R_: from

86
F_: cutting
feed speed J_:
Instructions interpretation
After the tool is positioned, it quickly moves to point R, cuts along the Z to the bottom of the
hole, the spindle stops, then the tool quickly returns to point R or the initial plane, the
spindle is starting.
Note
1 Start the spindle rotation before specifying the G86. If the G86 and M code are
specified in the same segment, the M code is sent at the initial location and waits until
the M code execution ends before the next loop action.
2 When fixing the cycle state, the system is holes if you instruct one or more of the X,
Y, Z, R data. However, when the X and the G04 are specified simultaneously, pore
machining is not performed.
3 In a fixed cycle mode, if the tool length bias has been instructed, offset at the initial

3.9.10 G 88-Custom Drilling


G88 is used for custom drilling,
enabling efficient drilling.Specific
implementation of G88 edit custom in
the drilling function. fCormatnd

G88 IP_ R_ P_ F_ J_;.


IP_ (non-hole machining shaft) hole position data
IP_ (hole machining axis) distance from R to hole bottom
(incremental) or coordinate (absolute) R_: from initial point
plane to R point R _: (incremental) or coordinate (absolute)
P_: at the bottom of hole (0.001 seconds)
F_: cutting

3.9.11 G 89-boring cycle


The G89 is used for boring processing. After G89 is completed, the G85, only has pause time at the
bottom of the hole.
Command format
G89 IP_ R_ P_ F_ J_;.
IP_ (non-hole machining shaft) hole position data
IP_ (hole machining axis) distance from R to hole bottom
(incremental) or coordinate (absolute) R_: from initial point
plane to R point R _: (incremental) or coordinate (absolute)
P_: at the bottom of hole (0.001 seconds)
F_: cutting
Instructions interpretation
G89 cycle and G85— samples, only increase the pause time at the bottom of the hole, can improve the
processing accuracy of the blind hole.
Note
1 Start the spindle rotation before specifying the G89. If the G89 and M code are
specified in the same segment, the M code is sent at the initial location and waits until
the M code execution ends before the next loop action.
2 When fixing the cycle state, the system is holes if you instruct one or more of the X,
Y, Z, R data. However, when the X and the G04 are specified simultaneously, pore
machining is not performed.
3 In a fixed cycle mode, if the tool length bias has been instructed, offset at the initial

3.9.12 The G 80-fixed


loop cancel G80 is used
to cancel the fixed loop
status.Command format
G80;.
Instructions interpretation
87
Use to cancel all processing data for G73, G74, G81~G89 and later as usual.

88
3.9.13 G 70 round round hole
(group 00) format G70 I_ J_ L_
I Radius (+ counterclockwise / -clockwise)
J Start angle (counterclockwise from 0 to 360.0 degrees from the horizontal position; 0 at the 3 o '
clock position)
Number of holes with L evenly over the circumference
This non-modal G code must be associated with one of the loop G73, G74, or G81-G89
Use together. A cycle must be activated so that drilling or tapping
functions can be performed at each position.Note: The circle is the
current XY and back to the center after processing. The machining
must be a Z-axis.

Example G0 Z50.
G0 X0 Y0. ; Locate to the center.
G83 Z-20R2Q5F100L0; activates G83, enabling L0, to set drilling parameters
but does not drill (at the center of the circle) G70 I20 J0 L6 ; Radius
of 20, drill 6 holes evenly.
G80. ; Cancel the drilling holes. The above program plus spindle cooling, which
can easily process the flange plate.

3.9.14 G 71 wheel arc


drilling (group 00) format G70
I_ J_ K_L_
I Radi (+ counterclockwise / -clockwise)
J start angle (counterclockwise angle from the horizontal position)
Angle spacing of the K hole (ten or one angle)
Number of L boreholes
This non-modal G code is similar to G70, but it is not limited to a
whole circle.The G71 belongs to group 00 and is non-modal. A cycle
must be activated so that the drilling or tapping function can be
performed at each position.
Note: The circle is the current XY and goes back to the center after processing. The machining must
be a Z-axis.

Refer to the G70

3.9.15 G 72 Drilling (group 00)


format G72 I_ J_ L_ at an angle
Distance between I holes (+ counterclockwise / -clockwise)
Angle of the J line (counterclockwise angle from the horizontal position)
Number of L boreholes
This non-modal G code drilled "L" holes in a line at the specified angle. It operates similar to G70.
For the G72 to work properly, a cycle must be activated so that the

89
drilling or tapping function can be performed at each position Note that
the starting point is back to the starting point after the current XY,
processing. The machining must be a Z-axis.

90
3.10 The L in the fixed loop
If it is in a fixed cycle, L0, means that this time only the location setting
parameters are not really drilled and can be used to bypass the workpiece. See
G70. for the routines
Circular cases can be
implemented with L in relative
programming mode:
G81 G99 Z-0.5 R0.1 F6.5 (to drill a hole in the current position)
G91 X-0.562 L9 (drill 9 holes each 0.562 apart in X negative direction)

3.11 G 22-G23 loop execution


This instruction pair can
implement a program loop.
G22L3.
..
Circular content
..
G23.
Interintermediate loop ops 3 times
Can also be nested but not over 4
layers.G22L3.
G22L5.
..
Circular content
..
G23.
G23.

3.12 G31-jump function


Line inserts like the G01 can be done behind the G31 by the movement of the instruction axis. In
this instruction execution, if the jump signal is entered, the program segment stops the remaining
portion and begins executing the next program segment. The machine can be used primarily to
control the termination of processing by external signals or to measure the size of the workpiece.
Command format
G31 IP F;.
G31: jump instruction, non-modal, valid in
this program segment.IP_: specifies the
move end coordinates.
For example
The ▲ G31 post-program segment is an incremental instruction
Move with incremental values from where the jump signal is interrupted. Also save the jump point X-
axis absolute coordinates to the macro variable # 1.

……
G91 G31 X100.0 F100.0;
G04;.
# 1 = # 5041;
Y50.0;.
……

91
3.13 G50-G51 bit measurement motion
Bitmotion is complementary to G31 and can support more inputs. The axes move in the same manner with
the G1.
Command format
G50/G51 IP_ P_;.
The IP: moves the shaft.

92
The P: input port.
Example:
If the input port 2 is invalid during G50 X10 Z100 P2; motion, the
motion will be interrupted. If the next input port 2 0 of the G51 Y10
Z50 P20; line becomes valid, interrupt the motion and execute the next
line

3.14 G37 Auto pairs the knife


The G37 instruction can use the pair knife automatic pair knife, note: HZ cannot
be 0. because the knife bias should be saved in the corresponding knife complement.
Command format
G37 IP_.
The IP: moves the shaft.
The controller quickly positions the specified axis and then moves through the automatic knife
process, still moving to the fixed point.
After the knife is complete, control
automatically updates and use the new
knife bias.Example:
HZ1.
G37 Z100.

3.15 The G10 modifies the coordinate systems and the knife trim
Command format
The G10 L2 modifies the coordinate system
G10 L2 Pn.
L2 specifies modifying the coordinate system
P1~6, the corresponding coordinate system G54,G55,G56,G57,G58,G59

Example G90 G10 L2 P1 X2; sets the G54 X-axis offset to 2


G91 G10 L2 P1 X2; sets the G54 X axis offset increase 2

Grinder application:
N100 G1 Z0 F100. / / Down to
the workpiece surface, G1 X-50
/ / Processing
G10 L2 P1 W-0.1 // to modify the Z axis coordinate system, the next time
to Z0 will be 0.1 more time than this time, the power loss is also
effective. G0 Z10. / / Lift the knife
G0 X0. / / Back to the X-axis

G10 L10 modified knife long knife fill


G10 L10 Pn R_.
L10 specifies the
modification knife
long replacement
P1~99 for
Example the P1HR2; set H1 fix is 2.000, noting that modification does not take effect immediately
G10 L10
H1. ; Call the No. 1 knife repair

to make the new knife repair

G10 L11 Pn R_.


effective.G10 L11 Modithe wear value
L11 modified the knife
long knife repair wear 93
value P1~99,
corresponding to the
Example G10 L11 P1 R2; sets H1 knife repair wear 2.000, noting that
H1 will not take effect immediately after modification ; Call the
No. 1 knife repair to make the new knife repair effective.

94
G10 L12 Modifies the radius knife fill
G10 L12 Pn R_.
L12 specifies the
modified radius
complement P1~99
for
Example the L12 P1DR2; set that the D1 radius blade complement is 2.000, noting that the modification
G10
will not take effect immediately
D1. ; Call the No. 1 knife repair to make the new knife repair effective.

G10 L13 Modify the radius knife repair wear value


G10 L13 Pn R_.
L13 specifies the modified
radius knife repair wear
value P1~99 for the knife
repair number
Example G10 L13 P1 R2; sets the D1 radius knife repair wear 2.000, noting that the modification will not
R_ Modify
take effect the value
immediately
D1. ; Call the No. 1 knife repair to make the new knife repair effective.

95
Chapter IV: Auxiliary Function (M Code)
If a 2-digit value is instructed behind the address M, then the corresponding signal is given
to the machine tool to control the switch of the machine auxiliary function.The M code allows only
one valid one in one program segment. When the location move and M instructions are in the same
program segment, both begin simultaneously.
4.1 An Overview
Below is a list of M codes used by this system.
Name Function
M00. Program pause and press the Cycle Start program to
continue
M01. Stop, if the stop light highlight program stops
M02. The Program is stopped
M03. Main shaft 1 has a positive rotation
M04. Spindle 1 to reverse
M05. Main shaft 1 stops
M06. Start the M06 code and wait for completion
M07. Start the knife library back to the zero code
M08. Coolant is open
M09. Coolant-off
M10. The tray is tight
M11. Release card release
M13. Main shaft 2 is positive
M14. Spindle 2 backverse
M15. Main shaft 2 stops
M19. Spindle positioning
M20. Pull on the knife
M21. Pine ffknife
M30. The program ends, and the program returns to the
start
M29. Spindle P/S position mode
Start the spindle speed monitoring (encoder
M62. required). Example: M62 S1000, If the spindle is
on below 1000 rpm, the program stops and the
encoder is required
S upported, S is not used to set speed
M63. Cancel the speed monitoring
M64. Count plus one
M65. Count is zero
Invalid waiting for input port, output port or
M70.
auxiliary relay: M70 X12 transmission
Entrance; M70 Y1 output outlet; M70 Z1 auxiliary
relay;
Waiting for input, output or auxiliary relay: M71
M71.
X12 transmission
Entrance; M71 Y1 output outlet; M71 Z1 auxiliary
relay;
M72. Input port, output port, or auxiliary relay jumps
are invalid
M73. Input, output or auxiliary relay jumps jump
M74. Wait for the input, output or auxiliary relay
M75. Wait for the input, output or auxiliary relay
M80. Output port or auxiliary relay is turned off
Example: M80 Y12
M81. Output port or auxiliary relay is turned on
Example: M81 Y12
Output port or auxiliary relay output is closed for
M82.
a period of time, for example: M82 Y12
96
P1000(ms)

The output or auxiliary relay output closes until


M83.
an input is valid
Example: M83 Y12 X13
The output or auxiliary relay output closes after
M84.
an input is invalid
Example: M84 Y12 X13
The output port or the auxiliary relay output waits
M85.
for an input port to be valid and is not closed
Example: M85 Y12 X13
The output port or auxiliary relay output waits for
M86.
one input port is invalid and does not close
Example: M86 Y12 X13
M98. Call the subroutine. Note that the subroutine name
format is that Oxxxx.nc,x is the number
Subroutine or macro program is returned. If used in
M99.
the main program, the program starts from scratch
Cycle

97
4.2 M code description
4.2.1 The M OO-program is paused
Command format
M00 (or M0);
Command function
After the M00 command, the program is stopped, "Pause" and the cycle start key.

4.2.2 The M 01-program is stopped


Command format
M01 (or M1);
Command function
The M01 command is valid when Select Stop is on. When M01 is encountered during program execution,
the system stops running after the current program segment and continues when the cycle starts
again.

4.2.3 The M 02-program has ended


Command format
M02 (or M2);
Command function
In the automatic way, the M02 instruction is executed. After the other instructions of the current
program section are completed, the automatic operation ends, and the cursor stays in the program
section where the M02 instruction is located and does not return the beginning of the program. To
perform the program again, you must have the cursor go back to the beginning of the program.
Count mode is P0003=0, counter plus one.

4.2.4 The M 03-main shaft 1 has a positive rotation


Command format
M03 (or M3);
Command function
When the program performs the M03 instruction, the main shaft 1 positive rotation relay is first
engaged, and then controls the spindle rotation clockwise at the speed specified by the S code.

4.2.5 M 04-spindle 1 in reverse


Command format
M04 (or M4);
Command function
Control the spindle 1 to reverse.

4.2.6 The M 05-main shaft 1 stops


Command format
M05 (or M5);
Command function
Turn off the output of the M03 or M04 for the spindle 1 to stop the rotation.

4.2.7 M 08/M09-coolant on / off


Command format
M08 (or M8);
M09 (or M9);
Command function
The M08 command turns
the coolant on. The
M09 command turns the
coolant off.

4.2.8 M10/M11-card tight / release


98
Command
format
is M10;
M11;
Command function
The M10
instruction is
tight. The M11
instruction is
released.

99
4.2.9 The M 13-main shaft 2 has a positive rotation
Command format
M13.
Command function
When the program performs the M13 instruction, the spindle 2 positive rotation relay is first
engaged, and then controls the spindle rotation clockwise at the speed specified by the SS code.

4.2.10 The M 14-spindle 2 is reversed


Command format
M14.
Command function
Control the spindle 2 to reverse.

4.2.11 The M 15-main shaft 2 stops


Command format
M15.
Command function
Turn off the output of the M13 or M14 to make the spindle 2 stop its rotation.

4.2.12 M 19-main axis orientation


Command format
M19.
Command function
Cancel the M19. with the M05

4.2.13 M 20/M21-pull knife, pine knife


Command format
M20
M21.
Command function
cannot be used in general program, only in T code and M06 code.

4.2.14 The M 30-program is stopped


Command format
M30.
Command function
In the automatic way, the M30 instruction is executed, and after the current program section is
completed, the automatic operation is completed, and the cursor is returned to the beginning of
the program. To execute the program again.
Count mode is P0003=0, counter plus one.

4.2.15 M 29-spindle P/S switch


M29 digital spindle position control. Cancel the position control with the M05

4.2.16 M 62-speed monitoring


Command format
M62 S_.
Command function
Monitor the encoder speed in real time. If below the monitoring value, the system alarm
and the program stops. This feature requires an encoder support.The program closes by
default at program startup.

4.2.17 The M 63-cancels the speed monitoring


Command format
M63.
100
Command function
Cancel the speed monitoring

4.2.18 The M 64-counter is used to add one

101
Command format
M64.
Command function
Add one to the workpiece count value.

4.2.19 M 65-counter zero


Command format
M65.
Command function
Workpiece meter value zero zero.

4.2.20 M 70-waits for input, output, auxiliary relay


Command format
M70 Xxx Pxx Exx; input port
M70 Yxx Pxx Exx; output port
M70 Zxx Pxx Exx; auxiliary
relay command function
XYZxx: number 01~96.
The program waits when the specified port is valid.
When the specified port is invalid, the program performs down.
Pxx. Limit the time, in milliseconds. There is no time limit without editing.
EXX. If the timeout, issue the xx alarm. If the timeout and
did not make E, directly the next. Only one port can be
specified at a time.
Example M70 X12 P1000 E100; waiting for input 12 is invalid, if timeout 1 second, alarm 100.

4.2.21 M 71-waits for input, output, auxiliary relay valid


Command format
M71 Xxx Pxx Exx; input port
M71 Yxx Pxx Exx; output port
M71 Zxx Pxx Exx; auxiliary
relay command function
XYZxx: number 01~96.
The program waits when the specified port is invalid.
When the specified port is valid, the program executes down.
Pxx. Limit the time, in milliseconds. There is no time limit without editing.
EXX. If the timeout, issue the xx alarm. If the timeout and
did not make E, directly the next. Only one port can be
specified at a time.
Example M71 X12 P1000 E100; waits for input 12 to work, alarm 1 00 if timeout 1 second.

4.2.22 M 72-input, output, auxiliary relay invalid jump


Command format
M72 Xxx Pn; input
port M72 Yxx Pn;
output port M72 Zxx
Pn; auxiliary relay
command function
xx: number 01~96.
When the specified port is invalid, the program jumps to
the N number specified by the P. Valid down execution.
Only one port can be specified at a time.

4.2.23 M 73-input port, output port, auxiliary relay effective jump


Command format
M73 Xxx Pn; input

102
port M73 Yxx Pn;
output port M73 Zxx
Pn; auxiliary relay
command function
xx: number 01~96.
When the specified port is valid, the program jumps to the N number specified by the P. Invalid
down execution.

103
Only one port can be specified at a time.

4.2.24 M 74-waits for the input, output, auxiliary relay descent down
Command format
M70 Xxx Lxx Pxx. The Exx; input
port is M70 Yxx Lxx Pxx Exx;
output port M70 Zxx Lxx Pxx
Exx; auxiliary
relay instruction function
XYZxx: number 01~96.
The specified port waits for a valid signal
before waiting an invalid signal. Lxx. Specify the
number of times, not 1 time specified
Pxx. Limit the time, in milliseconds. There is no time limit without editing.
EXX. If the timeout, issue the xx alarm. If the timeout and
did not make E, directly the next. Only one port can be
specified at a time.
Example The M74 X12 L3; waits for the third descending edge of the input port.

4.2.25 M 75-waits for the input, output, auxiliary relay rise


Command format
M71 Xxx Lxx Pxx. The Exx; input
port is M71 Yxx Lxx Pxx Exx;
output port M71 Zxx Lxx Pxx
Exx; auxiliary
relay instruction function
XYZxx: number 01~96.
The specified port waits for an invalid signal,
and then for a valid signal. Lxx. Specify the number
of times, not 1 time specified
Pxx. Limit the time, in milliseconds. There is no time limit without editing.
Exx. If the timeout, issue the xx alarm. If the timeout and
did not make E, directly the next. Only one port can be
specified at a time.
Example The M75 X12 L3 L3000 E100; waits for the third up edge of the input port. No 100 was
detected for 3 seconds.

4.2.26 M 80-output port, auxiliary relay turn off


Command format
M80 Yxx; output
port M80 Zxx;
auxiliary relay
command function
xx: number 01~96.
Close an output port or an
auxiliary relay. Only one port
can be specified at a time.

4.2.27 M 81-output port, the auxiliary relay is on


Command format
M81 Yxx; output
port M81 Zxx;
auxiliary relay
command function
xx: number 01~96.
Open an output port or an
auxiliary relay. Only one port
104
can be specified at a time.

4.2.28 M 82-output port, the auxiliary relay output is closed for a period of time
Command format
M82 Yxx Paaaa; output
port M82 Zxx Paaaa;
auxiliary relay command
function
xx: number 01~96.
Paaaa: time delay time, in
milliseconds. Only one port
can be specified at a time.

105
4.2.29 M 83-output, auxiliary relay output waits for one input to be closed
Command format
M83 Yxx Xxx Pxx. Exx; output
port M83 Zxx Xxx Pxx Exx;
auxiliary relay instruction
function
XYZxx: number 01~96.
Pxx. Limit the time, in milliseconds. There is no time limit without editing.
Exx. If the timeout, issue the xx alarm. If the timeout and did not make E, directly the next.
Example: M83 Y12 X13; explanation: Open output 12, and then judge whether input 13 is valid,
and turn off output 12 if valid. Only one port can be specified at a time.

4.2.30 M 84-output, auxiliary relay output closes after an input is invalid


Command format
M84 Yxx Xxx Pxx. Exx; output
port M84 Zxx Xxx Pxx Exx;
auxiliary relay instruction
function
XYZxx: number 01~96.
Pxx. Limit the time, in milliseconds. There is no time limit without editing.
Exx. If the timeout, issue the xx alarm. If the timeout and did not make E, directly the next.
Example: M84 Y12 X13; explanation: Open output 12, and then determine whether input 13 is
invalid, and close output 12. Only one port can be specified at a time.

4.2.31 M 85-output port, auxiliary relay output waiting for one input port is valid, do not close,
perform the next section
Command format
M83 Yxx Xxx Pxx. Exx; output
port M83 Zxx Xxx Pxx Exx;
auxiliary relay instruction
function
XYZxx: number 01~96.
Pxx. Limit the time, in milliseconds. There is no time limit without editing.
Exx. If the timeout, issue the xx alarm. If the timeout and did
not make E, directly the next. Example: M83 Y12 X13; Explanation:
Open output 12 and specify only one port for the next period.

4.2.32 M 86-output port, auxiliary relay output waiting for one input port is invalid, do not close,
perform the next section
Command format
M84 Yxx Xxx Pxx. Exx; output
port M84 Zxx Xxx Pxx Exx;
auxiliary relay instruction
function
XYZxx: number 01~96.
Pxx. Limit the time, in milliseconds. There is no time limit without editing.
Exx. If the timeout, issue the xx alarm. If the timeout and did
not make E, directly the next. Example: M84 Y12 X13; explanation:
Open output 12 and specify only one port for the next period.

4.2.33 M 87-output port, auxiliary relay output waiting for one input port L rise edge, closed
output, mainly used for knife selection
Command format
M87 Yxx Xxx Lxx Pxx Exx; output
port M87 Zxx Xxx Lxx Pxx Exx;
auxiliary relay command function
YZxx: number 01~96.
106
The Xxx: input
port
Lxx. Specify the number of times, not 1 time specified
Pxx. Limit the time, in milliseconds. There is no time limit
without editing. Over the limit time also closes the output. Exx.
If the timeout, issue the xx alarm. If the timeout and did not
make E, directly the next.
Example: M87 Y12 X13 L5 P5000 E100; explanation: open the 12 output, wait for the 5th rising
edge of X13 (number of 5 knives) of X13 to close the output, complete in 5 seconds, otherwise
the 100 alarm will be issued.
Only one port can be specified at a time.

107
4.2.34 M 98/M99-subroutine calls and subroutine to return
Command
format is
M98 P####Ln;
M98 Q####Ln
M99;
Command function
1. The P: subroutine calls a feature character, and it cannot
be omitted. N####., a subroutine of the Q: in the main program
2. # # # #: Subroutine name, which must be four digits.
Call number of 3.Ln: subroutine, once when omitted, up to 99999.
When a duplicate is a fixed program in the program, it can be used as a subroutine, so that the
fixed program is called without having to write repeatedly.
The last paragraph of the subroutine must be the subroutine return instruction called M99.
Implement the M99 instruction and the program returns to the next program calling the main
program.
For example
Master program O001
N0010 M03 S1000;.
……
N0080 G0 X10;
N0090 M98 P0005;
N0100 G0X30;.
……
N0150 M30;.

Subroutine O0005
N0010 G01 X10 F100;.
……
N0060 G0 Z30;.
N0070 M99;. The Subroutine returns

108
Chapter V. Cutting Tool Compensation Function
5.1 Tool compensation
Set the difference between the programmed assumed tool length value and the actual tool length
value used to the offset memory. When processing the workpiece, you do not need to modify the
program, so you can process the same workpiece with a different length tool, but you only need to
specify the corresponding length compensation value. This is the tool length compensation function.
The Z-axis length offset and the XY-plane radius can be repaired
To get the correct compensation, pay attention to the compensation direction of the knife injury
time, such as the tip of the Z axis reaxis, requiring the whole direction compensation.

5.2 Tool Length Compensation (G43, G44, G49)


Set the difference between the programmed assumed tool length value and the actual tool length
value used to the offset memory. When processing the workpiece, without the need to modify the
program, you can process the same workpiece with a different length tool, but only need to
specify the corresponding length compensation value. This is the tool length compensation
function.
Command format
G43 Z_ H_;
G44 Z_ H_;.
G43: Forward
bias G44:
Negative
Instructions instructions
▲ offset direction
On the absolute value instruction or the incremental value instruction, when the G43 is
specified, the end coordinate value specified by the Z axis movement instruction in the
program plus the length compensation value specified by the H code (in the offset memory)
takes the calculation result as the end coordinate value; when the G44 is specified, the end
coordinate value specified by the Z axis movement instruction minus the length compensation
value specified by the H code, and takes the calculation result as the end coordinate value.
When the Z axis moves omitted, only move the value of the tool length offset.
When the offset is negative, the opposite direction. G43, G44 is a modal G
code and works until encountering other G code in the same group.
The ▲ offset number
The offset number can specify the H00-H99. In the LCD/MDI panel, the offset corresponding to
offset H01-H99 may be set in bias memory.The tool length compensation value corresponding to
the offset number H00 is always 0 and cannot be set.
The tool length compensation value allows for the input range of [-9999.999,9999.999].

5.3 Tool radius compensation (knife C function)

109
The tool radius compensation function is a function that moves the tool on a trajectory
offset a tool radius value relative to the programming path. Using this function, the user only
needs to write the NC program according to the part shape, without considering the tool radius,

and the system automatically calculates the compensation vector and the tool center track
according to the specified compensation number to complete the processing process.

110
Command format
▲ starter (tool radius compensation starts)
G00/G01 G41/G42 IP_ D_;.
G41: tool radius
compensation left
G42: tool radius
compensation for
The ▲ tool radius compensation is cancelled
G40 IP_;.
Or
the
D00;
The G40: tool radius
compensation cancels
Instructions interpretation
▲ G40,G41 and G42
Cancel and compensate the tool radius with G40,G41,G42 instruction
G code Group Function
G40. 03 Cancel the tool
radius
compensation
G41. 03 Tool radius
compensation
(left)
G42. 03 Tool radius
compensation
(right)
G40,G41 and G42 are G codes of group 07, combined with G 00,G01,G02,G03 instructions to
define tool movement mode, radius compensation type, and compensation direction.
▲ Compensation Amount (D code)
Specify the offset number corresponding to the offset amount with the D code. The D code is modal.
The amount of compensation can be set up to 99. Number range D01~D99.
(D00 cancels the tool radius compensation) The compensation amount is
set in advance, which corresponds to the 3-digit value behind the D
code specified on the program.
▲ compensation cancellation status
When the system is initially powered, reset or executed the M02, M30
command, the system control is in the tool compensation cancellation state.
In the compensation cancellation state, the compensation vector is always
0 and the tool center path is consistent with the programming path.
The end of the program must end with the compensation cancellation status.
The ▲ compensation begins
In the compensation cancellation state, when the following conditions begin execution, the system
enters the compensation mode.
○ mGotaciCde.42r1snlu,
○ 0niocT.tsumberfpal
○ The movement of any axis on the instruction compensation plane, except I, J K, cannot be zero.
○ In the compensation process, there cannot be waiting input, instructions such as reading and

111
writing system variables, and the compensation axis (XY) shall not move more than 5
consecutive instructions. Otherwise, there is a radius compensation error warning.
In the compensation start section, the arc commands G02 and G03, to generate an alarm. The
compensation start section, the system reads two consecutive segments, the first segment reads
and performs, and the second segment goes into the tool compensation buffer.
In a single segment mode, read in two segments, execute the first segment, and then stop.
During continuous execution, two segments are usually read in advance, so there are three
segments within the CNC, one for the executing segment, and the following two segments enter
the buffer.

5.3.1 Tool radius compensation offset track


5.3.1.1 Inside and outside

112
During the tip radius compensation, the corner of the two programming tracks is different,
and the tip compensation track is different. Therefore, it is specified that the
intersection of the two mobile program segments is called "inside" when the clip angle of
the workpiece side is greater than or equal to 180 °, and "outside" when between 0~180 °.
The figure below shows it.
Inboard:

Outside:

5.3.1.2 knife repair


(a) Moving along the inside of the corner (a ≥ 180 °)
① Line — straight Line ② straight lines — Arcs

(b) Outside movement along the obtuse corner (180 °> a ≥ 90 °)


① Line — straight Line ② straight lines — Arcs

(c) Outside movement along the corner (a <90 °)


① Line — straight Line ② straight lines — Arcs

113
(d) Moving along the outside of a sharp angle of less than 1 degree, straight-straight line.
(a <1 °)

5.3.1.3 Conduct the knife repair


The offset track before the cancellation of the knife repair is called the knife repair. The
specific knife repair procedure is shown in the following figure:
(a) Moving along the inside of the corner (a ≥ 180 °)
① Line — straight Line ② straight lines — Arcs

③ arc — straight lines ④ Arc- -Arc

Internal processing and compensation vector amplification of less than 1 degree

Consider the following situations in the same way:


① arc — straight lines
② straight lines — Arcs
③ Arc- -Arc

(b) Outside movement along the obtuse corner (180 °> a ≥ 90 °)

114
① Line — straight Line ② straight lines — Arcs

115
③ arc — straight lines ④ Arc- -Arc

(c) Outside movement along the corner (a <90 °)


① Line — straight Line ② straight lines — Arcs

③ arc — straight lines ④ Arc- -Arc

5.3.1.4 Cancel knife cancellation


Normally, the instruction G40 is required to cancel the C knife fix.
The move instruction must not be an arc instruction (G02/G03). If the arc system will
generate an alarm and stop motion.The following figure shows the specific cancellation
situation of the knife repair:
(a) Moving along the inside of the corner (a ≥ 180 °)
① Line — straight Line ② arc — straight lines

116
(b) Outside movement along the obtuse corner (180 °> a ≥ 90 °)
① Line — straight Line ② arc — straight lines

(c) Outside movement along the corner (a <90 °)


① Line — straight Line ② arc — straight lines

(d) Moving along the outside of a sharp angle of less than 1 degree, straight-straight line.
(a <1 °)

5.3.1.5 Change the compensation direction in the knife repair


Tool diameter compensation G code (G41 and G42) determines the compensation direction, and the
compensation amount symbol is as follows:
Compensati
G code on
quantity
symbol
+ -
G41. Left- Right-hand side of
side compensation
compensa
tion
G42. Right- Left-side
hand compensation
side of
compensa
tion
In special occasions, the compensation direction can be changed in the compensation mode.
However, it must not start started. During the change of compensation direction, there is no
inside and outer concept for all conditions. The following compensation amount is assumed to
be positive.
① Line — straight Line ② arc — straight lines

117
③ arc — straight lines ④ Arc- -Arc

118
If the compensation is performed normally, but there is no intersection
When changing the offset direction of the segment A to segment B with G41 and G42, if the
intersection of the bias path is not required, make the vector vertical to the segment B at
the starting point of the segment B.
① Line — straight Line

② arc — straight lines

5.3.1.6 The niis temporarily cancelled


In compensation mode, if the G92, G28 code is specified, the compensation vector is
temporarily cancelled and automatically recovered after the code is executed. The
compensation temporarily cancellation is different from the compensation cancellation mode,
the tool moves directly from the intersection point to the command point of compensation
vector cancellation, when the compensation mode recovery, the tool is directly moved to the
intersection point.
The ▲ coordinate system sets the G92 code

119
Note: SS represents the point where the tool is stopped twice in a single-segment mode.
The ▲ G28 automatically returns to the reference point
In the compensation mode, if the instruction G28, is cancelled at the middle point, the
compensation mode recovers automatically after the reference point.

120
5.3.1.7 Special circumstances
▲ When the inner angle machining is less than the tip radius
At this point, the inner bias of the tool causes excessive cutting. After the start or corner
movement of the previous program section, the tool movement stops and the report is displayed
Police officer.
▲ when processing a step less than the radius of the tip
When the program contains a step smaller than the radius of the tip and the step is an arc,
the tool center path may form an opposite direction of motion to the program path. At this
point, the first vector is automatically ignored and moved straight to the end of the
second vector. When a single program segment, the program stops at this point, and if not
in a single segment mode, the loop continues. If the steps are straight line, the
compensation is performed correctly without producing an alarm. But the uncut part remains.
When ▲ G code
The system must be in the compensation cancellation mode before calling the subroutine.
The C knife fix can be rebuilt after entering the subroutine, but you must cancel the
compensation mode before returning to the main program. Otherwise, an alarm will occur.
When the ▲ changes the compensation amount
The ① usually changes the value of the compensation amount when the mode knife switch is
cancelled. If the compensation amount is changed in the compensation mode, the new
compensation amount is only valid after changing the knife.
Positive and negative and knife tip center path of the compensation amount of ②
If the compensation is negative (-), the G41 and G42 exchange each other on the program.
If the tool center moves along the outside of the workpiece, it moves along the inside
and vice versa.
The following examples are shown. General production procedure when the compensation amount
is (+). If the tool path is shown in the a program, if the compensation is negative (-
), Tool center moves such as b and vice versa.
Also note that the tip bias direction changes when the bias symbol changes, but the
assumed tip direction is unchanged. So don't change the symbol of the bias at will.
The end of the ▲ programming arc is not on the arc
The alarm message that the tool movement stops and displays when the arc end point in the
program is not on the arc.

5.3.2 Application example

121
Procedure: (Preset the compensation number for the compensation amount)
N0 G92 X0 Y0 Z0;. Specifies the absolute coordinate value tool positioning in the
start position X0 Y0 Z0

122
N1 G90 G17 G00 G41 D07 X250.0 Y550.0;. Start the knife, and the tool is offset to
the tool track N2 G01 Y900.0 F150; with the distance specified by the D07
Processing from P1 to P2
N3 X450.0;. Processing from P2 to P3
N4 G03 X500.0 Y1150.0 R650.0;. Process the N5
G02 X900.0 R-250.0; from P3 to P4 Processing
from P4 to P5
N6 G03 X950.0 Y900.0 R650.0;. Process the N7
G01 X1150.0; from P5 to P6 Processing from P6 to P7
N8 Y550.0;. Processing from P7 to P8
N9 X700.0 Y650.0;. Process the
N10 X250.0 Y550.0; from P8 to P9 Processing
from P9 to P1
N11 G00 G40 X0 Y0;. Unoffset mode The tool returns to the start position X0,Y0

123
Chapter VI: The User Macro Program
6.1 Definition
User macro programs allow users to use basic program language features such as variables,
arithmetic operations, logical operations, bit operation, etc., condition transfer, loop control,
and program calls, making programming more convenient, flexible, easy and fast. You can greatly
Master
improve the versatility User
of the program by calling themacro
same subroutine to process the same type of
progra the different main program
parts only by just assigning program.
m ontology

Program Section 1;
Program Section 2;
……
…… Complete a
function
Macro-program A set of
instruction; instructions
out of the
……
……

6.2 Vari
able
instruct
ion
format #
i;
Example: # 1, # [# 1 + # 2-12].
Instructions instructions
Type of Variable: A variable can be divided into four types depending on the variable number.
Variable Variable type Function
number
#0 Empty variable The variable is always empty, and no value
can be assigned to it.
olTcspteavBdAmhLnyrib.gu,w

Clear the the up.

#1~#99 Local variable

Common variables have the same meaning in


#100~#199
Common variable different macroprograms. When power is
#500~#599
powered off, variable # 100~ # 199 is
initialized to empty, variable # 500~
The # 599 value is saved and not lost even
with power off.
#1000~ System variable Various data used to read and write the CNC
runtime.
A reference to a variable, to use the variable value in a program, specify the address of the
following variable number, and place the expression in brackets. Like: G01 X[#l + # 2] F#3; G00 X-
#l.
Note 1: Address O, G and N cannot refer to the variable. If the O#100,N#120 is an illegal reference;
2: The maximum code value above the address specification cannot be used; Example: # 130 = 120, the
M#230 exceeds the maximum code value.
Empty variable, when the variable value is not defined, the variable is empty, variable # 0 is
always empty, it cannot be written, read only.
▲ When referring to an undefined variable (empty variable), the address itself is ignored.
When the # 1= <is an empty> When the # 1=0

124
G00 X100 Z#1. G00 X100 Z#1.
↓ ↓
G00 X100. G00 X100 Z0.
The ▲ operation. The <null variable> is the same as "0" except when assigned with the <null
variable>
When the # 1= <is an empty> When the # 1=0
#2=#1 #2=#1
↓ ↓
# 2= <empty> #2=0
#2=#1 * 5 #2=#1 * 5
↓ ↓
#2=0 #2=0
#2=#1+#1 #2=#1+#1
↓ ↓
#2=0 #2=0
▲ conditional expression, the <null> in EQ and NE is different from '0'
When the # 1= <is an empty> When the # 1=0

125
# 1 EQ #0. # 1 EQ #0.
wTstablihd
e↓

Not even true
# 1 NE #0. # 1 NE #0.
↓ ↓
Not even true Not even true
# 1 GE #0. # 1 GE #0.
wTstablihd
e↓

Not even true
# 1 GT #0. # 1 GT #0.
↓ ↓
Not even true Not even true
Display of the variable value; the variable is empty when the variable appears blank; when the
variable is displayed '* * * * *', it indicates the variable value overflow.
6.3 System variable
System variables are used to read and write the internal CNC data, such as inputs, outputs, tool
offset values, current coordinates, etc., but some system variables can only be read only.
Description:
6.3.1 Interface signal system macro variable
CNC defines 96 input signal system macro variables and 96 output signal system macrovariables.
The # 1001~ # 1096 macro input port and the # 1101~ # 1196 macro output port, respectively.
Assign the output macro variable # 1101~ # 1196, and can change the Y01~Y96 output signal
status; close the output signal; close the output signal when the assignment is "0". But not
valid if the output port is not generic.
Detects the value of the input macro variable # 1001~ # 1096 to view
the input status of the input interface X01~X96. Corresponding table
of the macro variable of the input signal system:
Macro variable Macro-variable function Read and Write function
number
#1001~#1096 Input port Read-only
#1101~#1196 Output port Read and Write
#1201~#1296 Auxiliary relay Read and Write
#1301~#1312 Input port 8bit read, # 1= # 1301 read Read-only
in once
X01~X08,#1= # 1302 reads into the
X09~X016… at once
#1401~#1412 Output port 8bit read and write, # Read and Write
1401=0, disposable
Y01~Y08 Zero Zero Zero,
#1501~#1512 Auxiliary relay 8bit read and write, # Read and Write
1501=0, disposable
Z01~Z08 Zero Zero Zero,

6.3.2 Return to the zero identification


Macro variable Macro-variable function Read and Write function
number
#1601~#1606 Read current axis zero: 0 not back 1 back Read-only
2 at zero

6.3.3 Tool compensation system macro variable


Macro variable number Macro-variable function Read and Write function
#2001~#2006 Read the current XYZABC knife Read-only
complement number
#5081~#5086 Read and write the value of the Read and Write (No. 0 knife read
current XYZABC knife complement only)

126
6.3.4 Other system variables
Macro variable number Macro-variable function Read and Write function
#2007 Tool number on the main shaft Read-only
#2008 Current knife kit number Read-only
#3091 Workpiece counter Read and Write
#5041~#5044 Absolute coordinates of each axis Read-only
#5061~#5064 Coordinates of the machine tool of Read-only
each axis
#5060 Current coordinate system 54~59 Read-only

6.4 Arithmetic and logical operations


The operations listed in the following table can be performed in the variables. The expression to
the right of the operator can contain constants or variables consisting of a function or operator.
Variable variables # j and # k in the expression can be assigned with constants. The variable on
the left also uses an expression assignment.

127
Function Format Note
Assignment of # i= # j;. Assignment operation.
the value
Addition # i= # j + # k;. Arithmetic operations.
Subtraction # i= # j- #k;. If j==i, can use simplified symbols (+ =,
- =, * =,
Multiplication # i= # j * #k;. /=).. Like # i = # i + # k i s reduced to
# i + = # k.
Disdivision # i= # j / #k;.
<#O=o|X^A&k;ijRrND
lodwrMeftinhgv
# i= # j>> # k;. Bitoperation. This action forces
floating points to integers. Bitbit
operations operate in the binary form of
integer numbers.
If j==i, then uses the simplified symbol
(&=, ^=,
|=, 《=, 》=).. Like # i = # i & #k can
be reduced to # i & = # k.
Equal to # i= # j == # k; or # i= # j EQ
#k;
Not equal to # i= # j!. = # k; or # i= # j Relational operations.
that NE #k;
Greater than # i= # j> # k; or # i= # j GT The result is a 32-bit unsigned integer 0
the #k; (FALSE) or 1
Greater than or # i= # j> = # k; or # i= # j GE (TRUE).
equal to #k;
Less than than # i= # j <# k; or # i = # j LT
#k;
Less than or # i= # j <= # k; or # i= # j LE
equal to #k;
Square root # i=SQRT[#j];.
Absolute value # i=ABS[#j];.
# i=FABS[#j];.
Round rounding # i=ROUND[#j];.
Take the whole # i=FUP[#j]; or # i
Take the whole =CEIL[#j];.
thing down
Natural log # i=FIX[#j]; or # i
numbers ==FLOOR[#j];
exponential # i=LN[#j]; or # i =LOG[#j];
function
# i=EXP[#j];.
Sine string # i=SIN[#j];. The triangle function. When specified in
an angle, such as the 90 ° 30 ' table
Strstring # i=ASIN[#j];. Shas 90.5 degrees.
anyway
cosine # i=COS [# j]; Constant or expression can replace # j.
Inverse cosine # i=ACOS [# j];
Positive ent # i=TAN[#j];.
Cut it off, # i=ATAN[#j].
anyway
Description:
Angle units: The functions SIN, COS, ASIN, ACOS, TAN, and ATAN are angular in degrees (°). If 90 °
30 ', it shall be represented as 90.5 °.
⑵ ARCSIN # i=ASIN[#j].
▲ sends an alarm when # j exceeds the range of-1 to 1.
The ▲ constant replaces the variable # j.
⑶ ARCCOS # i =ACOS [# j]
▲ results output range from 180 ° ~0 ° 。
▲ sends an alarm when the range exceeds-1 to 1.
The ▲ constant can replace the variable # j.
128
Natural log number # i=LN[#j]
▲ alarms when the opposition number (# j) is 0 or less than 0.
The ▲ constant can replace the variable # j.
The exponential function # i=EXP[#j]; constant can replace the variable # j.
The ROUND rounding function
▲ When an arithmetic function is included in the logical operation code IF or WHILE, the ROUND
function is rounded around in the first decimal position. Example: When executing # 1=ROUND[#2],
here # 2=1.2345, the value of variable 1 is 1.0.
Upper and lower whole: When CNC processes the numerical operation, if the absolute value of the
integer is greater than the original number; if it is less than the absolute value of the
original number, the lower whole. Care should be taken for handling the negative numbers.
Division: The system alarms when a division of 0 is specified in the division or TAN[90].

6.5 Transfer and circulation


In a program, using GOTO and IF statements can change the flow of control. There are three transfer
and cycle operations available.
▲ GOTO statement (unconditional transfer).

129
▲ IF statement (conditional transfer: IF…THEN…).
▲ WHILE statement, cyclic when....

6.5.1 Unconditional transfer (GOTO statement)


Tra n sfer to a program segment marked with the sequence number of n. Alarm when you specify a
sequence number other than 1 to 99999, with an available expression.
Command format
GOTOn;.
n: sequence number (1~99999)
For example

GOTO1;
GOTO#
10;.
6.5.2 Conditional Control (IF statement)
▲ instruction format 1
IF[<conditional expression>] GOTOn;
If the specified co n ditional expression is established, move to the program segment with the
specified sequence number of n; if the specified conditional expression is not valid, execute the
next program segment.
For example
If the value of variable # 1 is greater than 10, transfer to the program segment of the
sequence number N2.

▲ instruction format 2
IF[Conditional Expression] THEN <macroprogram statement>;
If the conditional expression is satisfied, only one macro program statement.
For example
IF[#1 EQ #2] THEN #3=0;
If the value of # 1 is equal to the value of # 2, give 0 to variable # 3; if not equal, then
order down without executing the assignment statement after THEN.
Instructions instructions
A Conditional expression must include a conditional operator with variables, constants, or
expressions, and it is enclosed in parentheses.Conditional operator, in the following table.
Operator Meaning
EQ. Equequal to (=)
NE. Not equal to the (=)
GT. Greater than (>)
GE. Greater than or equal to the (≥)
LT. Less than (<)
LE. Less than or equal to the (≤)
The following program calculates
the sum of integer 1~10.O9600.
#1=0; Initial values of the stored and number variables
#2=1; The initial value of the added variable
N1 IF[#2 GT 10]G0T02;. Transfer to 1 + # 2 when
N2 #1 = is greater than 10; Calculation and number
#2= #2+1 ; The next one is added
G0T01;. Go to the N1
N2 M30;. The Program has ended
130
6.5.3 Looop (WHILE statement)

131
Specify a conditional expression after WHILE to execute the program section between DO and END
when the specified condition is established; otherwise, jump to the program section after END.

▲ instruction format 1
WHILE[conditional expression] DO m;
……
END m;.
m: specifies the label for the cycle execution range (1~1023).
Instructions instructions
If the expression result is not 0, the result is considered true and the loop performs
statements between WHILE and END until the expression result is false. When the expression result
is zero, jump to the next segment of the END statement. If the expression result is a non-integer,
it should be forced to an integer, otherwise the alarm. The m is a positive integer, just to match
the DO and END statements.
For example
……
N1 #1 = 1;
N2 #2 = 0;
N3 WHILE[#1 <= 100] DO 5;
N4 #2 + = # 1; (Calculate 1 + 2 + 3
N5 #1 + = 1; +…… +100).
N6 END 5;.
……
When the program is executed, # 1 adds from 1 to 100, and # 2
gets 1 + 2 + 3 +…… + 100's of and.
▲ instruction format 2
DO m;.
……
END m;.
m: specifies the label for the cycle execution range (1~1023).
Instructions instructions
An infinite loop occurs when no WHILE judgment condition statement is specified in the DO
statement.
For the example in format 1, if the WHILE judgment condition is not specified, the values of # 1 and
# 2 add indefinitely until the data overflow alarm.
For example
……
N1 #1 = 1;
N2 #2 = 0;
N3 DO 5;.
N4 #2 + = # (Calculate 1 + 2 + 3
1; +…… +100).
N5 #1 + = 1;
N6 END 5;.
……
▲ scale m with loop nested
The m is reusable and cycles can be nested (up to 8 layers), with the following restrictions
① DO m and ENDm m ust be used in pairs (the same m value) and DO must appear before END.
The ② two loops cannot cross.
③ If the loop is nested, then the child loop label cannot be the same as the parent loop.
132
The ④ GOTO statement can be transferred from the loop to the loop, but not from the loop,
otherwise execution to the END statement will alarm.

133
Chapter VII.
Comprehensive
routines
7.1 Mill machine
routine
This example enables the grinding wheel compensation for a specific distance every N processing

Define the panel parameters first


501 Compensation for processing times
50 2 Compens ation len gth
Record the

machining times

procedure O0001.NC

with the # 500

M03S1000. ; Open the spindle 1


IF[#500 <# 501] GOTO 10. ; If the machining times decimal
number is set, ignore the prop compensation # 500=0; Clear out
the processing technology
G91G10L2P1Z-#502 G90. ; Z axis blade
coordinate system minus compensation N10 Z0 ;
The Z-axis goes to the machining position
G1X100F100. ; The X axis
starts processing the X10
G0Z10. ; Z-axis lift
#500+=1 ; Processing count plus one
M05. ; Stop the spindle
M30.

7.2 No cumulative error segmentation is achieved by macro operation

Define the panel parameters first

501 Number of gears

Divtooth shaft X axis,

machining shaft Z axis

G90G54
M03S100. ; Open the spindle
G93X0. ; X mechanical
coordinates set 0 # 1=0
; Zero tooth
tooth zero zero N10 G0Z0
G1Z-10F200
Z0.
G0 Z10. ; Above the Z-axis
machining of one tooth # 1 + =1
; Counter plus one #
2=#1*360.0/#501 ; Calculate the
134
current tooth position
G0X#2. ; X Go to the current tooth position
IF[#1> # 501] GOTO 10. ; If the number does not reach the
last tooth, return N10 to continue M05 ; Close the main shaft
M30. ; End of the program

7.3 Three-axis
circle equal
punched main
procedure
O0001.NC G
90G54G98HZ1 M
03S1000
G0 X0Y0. / / To the circle
G73Z-20R2Q5J2F500L0; deep hole machining
instruction G73,L0: center not hit G 70I50J0L3 ;
Radius 50 3rd class punched
G80.

135
M05
M
30.

7.4 Triaxial rectangular array punched


Define the panel parameters first
501 XhoNlesfumbr

502 YhoNlesfumbr

503 Xspacing

504 Yspacing

505 Holdepth

In punch sequence,

O0001.NC by line Z

shape main program


G90G54G98HZ1
M 03S1000 G
0Z10.
#2=#501-1 ; Number of cycles, no first hole
#3=#502-1 ; Number of column cycles, and the first column is not required
#4=#505 ; X-axis spacing
G0X0Y0. ; To the first
point of G 73Z[#505]R0Q5J2F500
; Fixed drilling
instructions
G91. ; Press the increments below
G22L#3. ; Column cycle
G22L#2. ; Line loop
X[#4]. ; X into a spacing
G23. ; End of the line loop
#4*=-1 ; The X spacing is reverse, and the next line enters in the reverse
direction
Y[#504]. ; Y into a spacing
G23. ; End of the column loop
M05. ; Close the main shaft
M30.

136
Article 5. Commissioning and use of the
knife library
This system knife library is implemented using a special program. The relevant interfaces are
in the [knife set table] and [knife library code]. From [Tool] → [More] [go into] → [More].

Kset table
Note that the bottom keys are only displayed and valid in the corresponding mode. Display in the "
Manual mode.
[Number of knives] is the maximum number of knives installed on the knife library.
[Spindle Tool] Current tool on the spindle.
Some knife] some needed. Such as bamboo hat style, some do not need, such as straight line knife
library.
[Tool] The tool in the sleeve, the ATC is randomly changed, and the others are basically
fixed.
[TPMCS]. Position the knife sleeve on the motor.
[TZMCS][TXMCS][TYMCS] Some knife libraries such as straight-line knife libraries want to take the
knife in the corresponding knife sleeve position. Setting these parameters for easy programming.

[knife change] Manual effective, control will issue T[spindle tool + 1], if greater than [number
of knives] take 1. Issue the M06. until the T code is executed
[knife library back to zero] Manual valid, control execution [back to zero code]

Tool library code


M 7: used for special operations such as knife library return to zero.
T code: Set the current knife number to change. For ATC library rotation, other libraries
137
basically set the knife number.T he T code cannot be greater than the T99. Otherwise, call the
alarm.
M06 code (M 6): used for writing tool exchange programs.
The knife library code to edit, requires C privileges in addition to Program Switch on. The
power-on permission should best be set to 0 after debugging. Prevent the workers from correcting
them indiscriminately. There are also knife library code pauses best to cancel too.

138
These three codes do not belong to a subroutine. They are tied to the main and deputy
program, and can only be started by the primary and secondary program. They cannot start with
each other. It is these three programs that cannot contain M7,T,M6 code.
Back to zero code T code the absolute coordinate in M6 code is machine. bed. sit. scale..
regardless of all bias.
Code group, since you cannot see the G code group for T code, start the program with G 90 to
ensure that it is absolute programming every time. This G group does not affect the primary and
secondary program. Absolitely not write knife programs in these three codes.
G code support: G0 G1 G53 G28 G30 G93, other do not be
used in the knife library code. Some macro functions are
to be used in the knife library code
TNMAX[]. Format TNMAX[0], gets the number of knives. 0
Meanmeaningless, just meets the resolution format
rftmjMnksTcgFequioalh,b.0dOL[]
requirements
TOOL[].

POT[]. Format POT[0], gets the current knife sleeve. 0


Meanmeaningless, just meets the resolution format
requirements
The format POT[0] ~ POT[99], gets the tool number in the
POTT[].
specified sleeve. The knife
number on the POT[0], spindle
TPOT[0] ~ POT[99], get the knife number which sleeve on, if
TPOT[].
repeated, return first. No report detected
[program error]
The TPMCS[1] ~ TPMCS[99], returns to the server library sleeve
TPMCS[].
location. Example server library
axis is A,A TPMCS[1]
TXMCS[]. The TXMCS[1] ~ TXMCS[99], returns to the knife sleeve in
the X-axis position
TYMCS[]. The TYMCS[1] ~ TYMCS[99], returns to the knife sleeve in
the Y-axis position
TZMCS[]. The TZMCS[1] ~ TZMCS[99], returns to the knife sleeve in
the Z-axis position
Note: TPMCS,TXMCS,TYMCS,TZMCS, is all need to be set before, in the knife library code should
be set to machine. bed. sit. standard.. also must use, if used to do a read-only parameter in the
main program.
Use the M code to update the knife library code
M26 Pn Lm. Set the sleeve n[0~99]. The P0 is the tool number on the main
shaft.
M27 Pn. Set the curre nt knife sleeve number to n[1~99]
There is no special knife library input and output function, only one [bayonet output]. You
can refer to the input and output name in [Diagnostics], and import the common function names
used in the knife library for convenient memory. Programs with the M instructions.

Take the server library as an example of how the three codes are compiled.
Set the A axis to Library mode. This mode can only be moved in these three codes. Setting the
TPMS requires manual or hand wheel rotation, which can be temporarily set to the rotation shaft.
139
TPMS is set first and TZMCS[1], is the knife changing point of the Z
axis.TZMCS[2] change point input 1: Forward in place
Input 2: Check Back in place
Output 1: The knife library moves forward and breaks it back

Zero return code:


G91G28A0; motor
back to zero
G90G0A10; No, if the zero point is not in the desired position.
G93 A0; set 0, the purpose is equal to, the motor return zero is not in the
ideal position, go to the ideal position, set to the machine tool coordinate 0.
# 90=1; Set zero identification in T code.
M30.

140
T code
IF[#90==1] GOTO10; return zero
identification is 1, return to zero
G91G28A0; until this the motor did not
return to zero, start back to zero
G90G0A10; No, if the zero point is not in the desired position.
G93 A0; set 0, the purpose is equal to, the motor return zero is not in the
ideal position, go to the ideal position, set to the machine tool coordinate 0.
# 90=1; Set back to zero ID
N10 M30; does nothing action to zero. The target knife number is also passed on

M06 code
G90
The IF[TOOL[0] == POTT[0]] GOTO 100; sets the tool and spindle tool
directly to the end M05 ; Prevent the spindle from moving
M19. ; Main shaft positioning
G0 Z [TZMCS[1]]. ; Z knife change point
IF[POTT[0] ==0] GOTO10. ; If there is no knife on the T0, take the knife directly
without returning it
G0 A [TPMCS[TPOT[POTT[0]]]]. ; A to the position of spindle blade No.
M85 Y1 X1 P3000 E100. ; Move forward and get in place. For 3
seconds, not in place, issue alarm G4 X0.5 # 100
N10 M21. ; Pine knife
G4 X0.5.
IF[TOOL[0] ==0] GOTO 20. ; No knife
G1 Z [TZMCS[2]] for the spindle F100.
; Z-axis lift
G0. A [TPMCS[TPOT[TOOL[0]]]]. ; The A to T code specifies the location of
the knife sleeve.M27 P [TPOT[TOOL[0]]];. ; Update the current knife sleeve
G1 Z [TZMCS[1]]. F100. ; The Z-
axis drops by G4 X0.5
N20 M20. ; Tthe knife
G4 X0.5
M80 Y1.
M71 X2 P3000 E100. ; Wait for the library to return in place, 3
seconds, No. 100 alarm M05 ; Cancel the spindle positioning
M26 P0 L[TOOL[0]]. ; Set the spindle knife number. No other
knife sleeve tables need to be updated in this example. N100 M30.

Because M06 requires to specify the tool with the T code.


In the main program, the format is before M06 with T01M06,T code.
Neither T code nor M instructions are followed with move-related instructions.
Such as the T01M06 X02. The intention is to change the X move, however, the system will ignore
141
the following move instruction unless the clear move instruction such as T01M06 G1X02

In this case, due to the servo knife library, the motor is automatically planned
nearby. If it is an ordinary motor, how to plan it nearby? The planning program is
as follows, # 1= POT[0] ; Get the current knife sleeve
# 2= TPOT [TOOL[0]]. ; Get the target knife kit

142
# 3= TNMAX [0]. ; Get the number of knives
#4=1 ; # 4 1 Forward-1 reverse
#5=0 ; # 5 Turn quantity
IF[#2 <# 1] GOTO 10. ; Target is less than the current, jump away
#5= #2-#1 ; Here the target is greater than the
current, positive rotation, and calculate the number of positive
rotation.IF[#5*2 <= # 3] GOTO 100. ; The quantity shall not
exceed half a circle, and the planning is completed
#5= #3-#5 ; The quantity exceeds half a circle, the reverse, with a circle to
reduce the original number is the reverse number
#4=-1 ; reverse direction
GOTO 100. ; Planning is completed
N10. #4=-1 ; The target is less than the current one, and the direction is reversed
#5=#1-#2 ; The target here is
greater than the current current.IF[#5*2 <= # 3]
GOTO 100. ; The quantity shall not
exceed half a circle, and the planning is completed
#5= #3-#5 ; The quantity exceeds half a circle, positive rotation, with a circle to
reduce the original number is the number of positive rotation
#4=1 ; Correct the direction
N100. ; Below is controlling the actuator according to the direction and
quantity.

143

You might also like