Professional Documents
Culture Documents
XC709D XC809D-English
XC709D XC809D-English
XC709D XC809D-English
★★ 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;
-7-
1
● Other matters:
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.
-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.
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.
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
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.
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).
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].
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.
CNC. 14
+
Power supply 24V.
-24V.
13
14
Y1
.
Output
Y2
The system supports two analog main axes, 1 and 2, signal 1 and 2.
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
and others
+24 C OM +.
Power supply V.
-2 4 V. Enable
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.
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).
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.
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.
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].
22
The third operation description
Chapter I: Interface
Display and Setting
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
25
● Parameter switches and
program switches
Diagnos ● idCnformatgscN-el ● Find it by serial number
is
27
[K1]: has no key defined.
[X1 X10 X100]: Adjust the single step or hand wheel doubling rate.
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
Each Explanation:
bhtocaiIDZsmTdfrS.lenup:-xygq
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
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.
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.
33
The files in the directory, put this in the U disk and directory, you can see in the import and
import the system.
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
In automatic mode, press [handwheel trial processing] to use the handwheel commissioning
procedure.
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.
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.
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.
This can see the file real suffix name, with the mouse up to ". NC "..
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.
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.
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
[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].
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.
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.
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).
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.
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.
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.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.
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.
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
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 ;
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.
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).
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.
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
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
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-
67
axis parameter.
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.
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.
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.
G92 X α Y β Z γ;.
. 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;.
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.
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.
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_. ;
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
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)
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.
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,-
Example
M04 S800. ; Spindle rotation Rtr2hdp1Poeunlis,
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.
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.
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
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.
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
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.
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)
……
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.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
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
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.
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)
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.
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.
101
Command format
M64.
Command function
Add one to the workpiece count value.
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.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.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.
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.
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:
113
(d) Moving along the outside of a sharp angle of less than 1 degree, straight-straight line.
(a <1 °)
114
① Line — straight Line ② straight lines — Arcs
115
③ arc — straight lines ④ Arc- -Arc
116
(b) Outside movement along the obtuse corner (180 °> 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 °)
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
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.
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
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,
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
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].
129
▲ IF statement (conditional transfer: IF…THEN…).
▲ WHILE statement, cyclic when....
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
machining times
procedure O0001.NC
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.
502 YhoNlesfumbr
503 Xspacing
504 Yspacing
505 Holdepth
In punch sequence,
O0001.NC by line Z
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]
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[].
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
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.
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