Newker 16iM-English Manual V10.15
Newker 16iM-English Manual V10.15
Newker 16iM-English Manual V10.15
CONTENTS
Chapter 1 Preface............................................................................................................. 1
Chapter 3 Operation..................................................................................................... 22
3.1 Summary............................................................................................................................. 22
3.2 Operation panel................................................................................................................... 22
3.3 Keyboard description.......................................................................................................... 22
3.3.1 Rate increase or decrease......................................................................................... 22
3.3.2 Usage for intervention switch.................................................................................. 22
3.3.3 Others keys...............................................................................................................22
3.4 Manual operation................................................................................................................ 24
-NEWKER-CNC - NEW16iM operation manual
Chapter 4 Programming............................................................................................ 79
4.1 Basic concepts..................................................................................................................... 79
4.2 General description of program.......................................................................................... 80
4.3 Program instruction.............................................................................................................80
4.3.1 Functional meaning of address symbol,data list......................................................80
4.3.2 Program instruction..................................................................................................81
4.4 Programme instruction and usage.......................................................................................90
4.4.1 Programme convention............................................................................................ 90
4.4.2 Instruction of G function..........................................................................................90
(1) Choose instruction of coordinate system.(G53/G54/G55/G56/G57/G58/G59)......... 90
(3) Coordinate system instruction.....................................................................................91
(3) Program method(G90/G91).........................................................................................91
(4) Select Plane(G17/G18/G19)........................................................................................92
(5) Rapid motion(G00)......................................................................................................92
(6) Line interpolation(G01)...............................................................................................92
(7) Arc interpolation(G02/G03)........................................................................................ 92
(8) Spiral interpolation (G02/G03)................................................................................... 94
(9) Three dimension space arc instruction(G06).............................................................. 95
(10) Delay instruction(G04)..............................................................................................96
(11) Mirror instruction(G11/G12).....................................................................................96
(12) Proportions scale instruction(G36/G37)................................................................... 97
(13) Coordinate rotate(G68/G69)..................................................................................... 98
(14) Return reference point(Zero point) (G28/G281/G282/G283/G284/G301/G302/
G303/G304).....................................................................................................................100
(15) Tool length compensation instruction(G43/G44/G49)........................................... 100
(16) Offset of tool radius instruction(G45/G46/G47/G48).............................................101
(17) Tool radius compensate instruction(G40/G41/G42)............................................... 102
(18) Program circulation instruction (G22--G800).........................................................104
(19) Accurate localization/Continual way processing (G60/G64)................................. 105
(20) Circle instruction(G73、G74、G80~G89)..................................................... 105
(21) High speed drill deep hole(G73)............................................................................. 107
(22) Drilling cycle, point drilling cycle(G81).................................................................108
(23) Drilling cycle,Reaming cycle(G82)........................................................................ 109
(24) Intermission drill cycle (G83)................................................................................. 110
(25) Boring cycle(G85)................................................................................................... 111
(26) Boring cycle(G86)................................................................................................... 112
(27) Boring cycle, Back boring cycle(G87)....................................................................113
(28) Boring cycle(G89)................................................................................................... 114
(29) Finishing boring cycle(G76)................................................................................... 115
(30) Left tap cycle(G74)..................................................................................................116
(31) Right tap cycle(G84)............................................................................................... 117
(32) Cancel cycle instruction (G80)................................................................................118
-NEWKER-CNC - NEW16iM operation manual
Chapter 1 Preface
This system is a universal milling machine, drilling machine, boring machine CNC
system which is developed by our company. The control circuit is using the latest
industrial high-speed ARM processor, large-scale field and programmable FPGA
technology, multi-layer PCB, the machine adopts the high integrated chip and surface
mount components, the structure is more compact and reasonable so that make sure
the reliability and stability of the system.
Real-time control of high speed (the highest speed shift speeds of up to 30 m / min,
the highest feed interpolation speed can reach to 15 m / min), high precision; the use
of 800x600 dot matrix TFT LCD adaptive brightness LCD display, LED backlight
brightness uniformity and long service life, and overcomes the display brightness by
environmental temperature changes the shortcoming. Full screen English menu
display, operation is simple and convenient.
This system is based on the milling machine as the representative of the two or
three, four axis linkage, This system is based on the lathe as the representative of the
two or three, four axis linkage, closed-loop control universal fully digital control
system, powerful function and many instructions, programming code accords with
ISO international code standard. Direct control of AC servo, choosing the dual
channel AC servo driver which is high price ratio.
This manual details the programming and using method of lathe system.
Important Notice:
1. All the functions of A axis are effective when configure fourth axis
system.
2. When use this system for the first time, please read carefully all
system prohibits using the button for many times, otherwise the
1
-NEWKER-CNC - NEW16iM operation manual
2
-NEWKER-CNC - NEW16iM operation manual
around to ensure the ventilation of air. Panel should be put in a place where it is not
only convenient to operate and but also able to avoid hurt of heating by scrap iron.
Intense current, week current must be put separately; CNC system and driver
should be possibly away from the machine intense current. In order to reduce
interference, all signal cables should be kept away from AC contactor. Photoelectric
encoder, limit, basic point signal are advisably not to be connected directly to CNC
system through intense current box. All power cords must be grounding.
Fix all plugs with screw. Forbid to insert and extract all cables when power is on.
In installation of CNC system, panel should avoid hurting by hard and sharp
materials. If the painting of other part of machine is needed, please take off CNC
system to keep it clean.
To ensure there is no strong magnet and current interference, keep away from
inflammable, explosive and other danger materials.
Pay attention:
1. Must install in an electricity cabinet which is good for protect from
lightning.
2. Must install firmly to in case of vibrating and loosing.
3. Don’t install on the inflammable things or nearby to keep away from
fire.
3
-NEWKER-CNC - NEW16iM operation manual
4
-NEWKER-CNC - NEW16iM operation manual
5
-NEWKER-CNC - NEW16iM operation manual
Pay attention:
1. The output signal of handwheel adopts line output, the power supply is +5V.
2. Just connect PA+ PB+ if adopt voltage output.
3. Manual pulse generator needn’t “Enter” button, if there is a “Enter” button,
use the line to short the ends of switch.
4.The inner power supply are all +5V of all signal, do not access voltage higher
than 5V.
The input signal of handwheel:
6
-NEWKER-CNC - NEW16iM operation manual
STOP signal is the input signal of external emergency button, Other parameter
P27 controls the emergency button is normal open or normal close.
2.7.3 Spindle encoder CN9 male socket(DB9)
7
-NEWKER-CNC - NEW16iM operation manual
8
-NEWKER-CNC - NEW16iM operation manual
9
-NEWKER-CNC - NEW16iM operation manual
Axis parameter:
No.27 parameter is for setting the type of hard limit switch for +L positive, 0 means
always open, 1 means always close.
No.28 parameter is for setting the type of hard limit switch for -L negative, 0 means
always open, 1 means always close.
Pay attention:
1. X Y Z A axis limit shares a signal (NC or NO) together, positive limited and
negative limited corresponding stand for +L and –L signal.
2. Could select our electrical appliance plate of lathe.
3. The system could define X0 Y0 Z0 A0 to be limited input signal of X Y Z A
axis. X0 signal as the limited signal and home point of X axis, the same switch to
control.Y0 signal as the limited signal and home point of Y axis, the same switch
to control. Z0 signal as the limited signal and home point of Z axis, the same
switch to control. A0 signal as the limited signal and home point of A axis, the
10
-NEWKER-CNC - NEW16iM operation manual
11
-NEWKER-CNC - NEW16iM operation manual
automatically, the system will import “Feeding axis doesn’t back to the home point”
and not to process program.
Super forcing mode when it is 9: moving the feeding axis when turn on system
every time, the system will popup a dialog box to process operation of backing to the
home point, it will prompt “Feeding axis doesn’t back to the home point” and not to
process action if not to process operation of backing to the home point.
No.39 parameter in axis parameter set the checking signal mode of backing to
the home point:
When it is 0: After hitting the home point switch when backing to the home point,
run reverse to check the switch off and check 0 pulse signal of motor encoder.
When it is 1: After hitting the home point switch when backing to the home point,
run reverse to check the switch off.
When it is 2: After hitting the home point switch when backing to the home point,
continue running to check the switch off and check 0 pulse signal of motor encoder.
When it is residual value: After hitting the home point switch when backing to the
home point, continue running to check the switch off.
The mode of backing the home point should according to the circuit situation of
equipment, at common conditions, it suggests to set to be 0 or 2, because if not to
check 0 pulse signal of motor encoder, the accuracy can’t be promise.
No.40 parameter in axis parameter set the direction and sequence of backing to
the home point:
Every axis is to set separately. The parameter is positional parameter,D2 controls
the processing direction of X axis, D3 controls the direction of backing to zero point
in Y axis,D4 is for direction of Z axis, 1 means negative, 0 means positive;
No.41 parameter in axis parameter set the type of home point switch:
Every axis is to set separately. The parameter is positional parameter, D0 position
controls X axis,D1 position controls Y axis,D2 position controls Z axis, 1 means
always close, 0 means always open.
No.42~No.45 parameter in axis parameter is set to check the processing length
of motor Z pulse when backing to the home point:
To set the scope of checking the motor encoder zero pulse signal after switch off
when X(No.42) Y(No.43) Z(No.44) A(No.45) axis backing to the home point. Unit:
0.1mm.
Pay attention: The parameter value must less than the distance of motor turns
a round, otherwise could cause the wrong home point situation.
No.34 No.36 No.38 No.40 parameter in speed parameter set the speed of
reaching to zero point switch when backing to home point (zero point):
The processing speed of reaching to home point switch when X(No.34) Y(No.36)
Z(No.38) A(No.40) axis backing to positive home point. Unit: mm/min. Numerical
range: Less than the G00 speed of X axis.
No.35 No.37 No.39 No.41 parameter in speed parameter is set to check the
processing speed of motor Z pulse when backing to the home point:
When the X (P35) Y (P37) Z (P39) A (P41) axis backing to the home point, the
speed of checking the motor Z pulse signal after disengaging the switch for home
12
-NEWKER-CNC - NEW16iM operation manual
2.8.3 Switch signal control: M03 as example (the same as M04 M05 M08 M10
M32 M79 M75 M59 M61 M63 M65 M67 M69 M71 M73 S01—S04)
M03 signal control:
As the picture say, it will form a return circuit with 24V when system outputting
M03, The intermediate relay is working and a group of normally open contact form a
circuit with spindle rotation AC contactor.
All the low level 0V of output signal is effective.
Pay attention:
1.When the relays and others load, must connected with the diode to absorb
the reverse current so as not to damage the system, if use the electromagnetic
contactor, then plus resistive and capacitive spark circuit.
2. Chip ULN2803A corresponds output ports:
1). U28 corresponds to M59 M61 M63 M65 M67 M69 M71 M73
13
-NEWKER-CNC - NEW16iM operation manual
2). U29 corresponds to M03 M04 M05 M08 M10 M79 M32 M75
3). U30 corresponds to +T –T S01 S02 S03 S04 LRUN INTH
3.When user-defined signal M71/M70 is used for input signal of spindle chuck
and thumbstall, it can’t be the other user-defined. No.20 No.21 parameter in
other parameter to set.
4. When user-defined signal M65 M67 M69 is used for input signal of
“Emergency”, it can’t be the other user-defined. M65 the program stops to
output,M69 the program runs output,M67 the alarm output. No.28 No.29
parameter in other parameter to set.
14
-NEWKER-CNC - NEW16iM operation manual
2.8.4 System alarm signal: ALM, ALM1, ALM2, Door alarm M12 and
Emergency
No.7 parameter: To set the system whether to check the switching signal of
protective door, no door switch when set to 0, there is a switch to control protective
door when set to 1; Suggest to set 1 for safe.
No.8 parameter: To set the type of door switch, 0 means always open, 1means
always close.
No.17 parameter: To set the type of system checking the servo alarm signal (twelfth
pin of CN5 ALM), 0 means always open, 1 means always close.
No.18 parameter: To set the type of system checking the spindle alarm signal of
lathe (fifth pin of CN3 ALM1), 0 means always open, 1 means always close.
No.19 parameter: To set the type of system checking the alarm signal of lathe
(second pin of CN19 ALM2), 0 means always open, 1 means always close.
No.27 parameter: To set the Emergency always open or close of system CN11,
suggest setting always close for safe.
Emergency STOP: Press “Emergency” when appearing emergent accident, the
lathe will stop all actions and the screen of system shows “Emergency”. Wait for
pressing up the button. Output M67 signal is effective (output alarm) when
15
-NEWKER-CNC - NEW16iM operation manual
No.29 parameter in other parameter is effective. This output signal can be used
to protect the lathe (Cut off power supply).
No.29 parameter in other parameter is effective when appearing alarm, the
output signal M67 is effective.
4.8.5 User-defined output signal M12 (M14 M16 M18 M28 M22 M24,M24,
external “Run”, external suspend “HALT”, external “STOP” as the same)
M12 switch use overtravel-limit switch connection as following:
16
-NEWKER-CNC - NEW16iM operation manual
17
-NEWKER-CNC - NEW16iM operation manual
18
-NEWKER-CNC - NEW16iM operation manual
XYZABC/XS/YS pulse driver DB15 pin(7 pairs) 301H driver 302H driver
DB25 DB25
Signal Pin I/O Function
Pinhead Pinhead
CP+/CP- 1/9(1st pair) OUT Pulse signal 6/18 6/18
DIR+/DIR- 2/10(2nd pair) OUT Direction signal 7/19 7/19
Enable driver/ 302G:23/10
EN/INTH 3/4(3rd pair) OUT 23/10
Clear alarm 302H:14/=
24V Power/0V 302G:11/21
+24V/0V 11/13(4th pair) OUT 11/21
302H:2/25
Encoder feedback 302G:off
BP+/BP- 15/8(5th pair) IN 4/16
B signal 302H:8/1
Encoder feedback 302G:off
AP+/AP- 14/7(6th pair) IN 3/15
A signal 302H:21/20
Driver alarm
ALMB-/ALMB+ 6/5(7th pair) IN 13/12 13/12
normal close
Driver alarm
ALMK+/ALMK- 12/13(7th pair) IN
normal open
RS485+/RS485- CN2-5/6 5/17
BK+/BK- 22/24 22/24
2.10.3 Connection of RS485
Signal Pin I/O Function
485+/485- 4/5 485 signal
0V 1 Ground
Attention: Signal cable must be shielded twisted pair.
19
-NEWKER-CNC - NEW16iM operation manual
20
-NEWKER-CNC - NEW16iM operation manual
21
-NEWKER-CNC - NEW16iM operation manual
Chapter 3 Operation
3.1 Summary
When using this CNC system, as long as the master of the system parameters, the
program edit, manual operation, automatically running, it can be very convenient to
operate.
22
-NEWKER-CNC - NEW16iM operation manual
23
-NEWKER-CNC - NEW16iM operation manual
“ ” coolant on/off
“ ”for the shift between electric tool carrier and gang tool
carrier
24
-NEWKER-CNC - NEW16iM operation manual
(5)“ ”:Press once to increase or decrease 10% feed speed when the No.1
axis parameter is 0, the range is from 0% to 150%,16 gears totally.
(7)“ ”: Press once to increase or decrease the spindle override 10% when
the No.2 parameter in axis parameter is 0. The range is form 5% to 150%,16 gears
totally.
25
-NEWKER-CNC - NEW16iM operation manual
(19) “Back to home point”: Press and X or Z, the X or Z axis goes back to
the home point automatically; Press “0”X axis firstly and then Z axis; Press “Esc” to
cancel the construction. The speed controlled by No.31 No.33 parameter in speed
parameter, the direction is determined by No.28 parameter in axis parameter.
(22) “Switch speed”: Press to switch the speed to system speed which is
changed by No.1 No.2 parameter in speed parameter when it is in coordinate feed,
loosen it that will be the previous speed. If set the speed higher than the speed in
parameter, it will be the set speed to feed.
(23) “Switch coordinates’ display”: Press “PgUp” or “PgDn” to switch the display
which correspond to “relative” “absolute” “machine”.
(24) “Workpiece number clear”: Press Del and Enter.
(25) “Back to G53 coordinate home point”: Press “Q” and Enter.
(26) “Incremental coordinate”: Press “Setup” to fix or set 0 after select “relative”
coordinate.
PS: Lathe coordinate clear: Press “E” in parameter and then press “Enter”.
3.4.2 Manual continuous
26
-NEWKER-CNC - NEW16iM operation manual
Continuous operation is to press the time as the basis, Press to feed, up to stop
feeding. Making sure the axis and using “+X、-X、+Y、-Y、+Z、-Z、+A、-A” to feed,
the speed of feed is determined by display on the interface(F) times the rate.
When continuous starting, press “ ” to switch the speed to No.1 No.2 No.3
parameter value in speed parameter. If set the speed higher than the speed in
parameter, the feed speed will be No.1 No.2 No.3 parameter in speed parameter times
rapid override.
In order to facilitate the user single axis cutting in the manual function, setting the
manual speed in manual status. Press “F” and input the speed.
When the hard limit point beyond positive and negative feed running axis two
direction at, stop the feed and prompt to feed reverse direction.(the same as
hereinafter)
The manual maximum speed is limited by No.4 parameter in speed parameter,
when setting the speed is higher than the value of parameter, then will be the No.4
parameter.
press “handwheel” and “ ”to switch the value into 0.001mm 0.01mm
0.1mm.
The speed is the speed on display(F) times the rate.
3.4.4 Back to machine home point (reference point)
There are two ways to back to home point in this system, not only the switch for
home point, but also can set floating point, the methods as follows:
Switch for home point:
Back to home point operation is to feed every axis to lathe’s home point position in
turn. When the parameter of feeding axis which back to home point is 0, the axis of
coordinate detects the home point and return to the pulsing signal of “Zero”, the data
of lathe’s coordinate will be 0 automatically.
Switch on the power supply of the system, release alarm and the button of
emergency after the CNC is power off, the need to back to home point to set lathe’s
coordinate correctly.
Instruction:
1. The system requires for backing to the home point every time when it is power on,
the requirement can be set by No.38 parameter in axis parameter, it can be prompt or
force;
27
-NEWKER-CNC - NEW16iM operation manual
2. The way and type of detecting signal can be set by No.39 parameter in axis
parameter, so detect the switch of home point is effective, also detect the Z pulsing
signal of electrical motor after detecting the switch of home point (precision higher),
detect forward or reverse for Z pulsing signal of electrical motor.
3. The direction for backing to home point can be set by No.40 parameter in axis
parameter, D2 D3 D4 correspond to X Y Z axis, 0 is forward, 1 is reverse.
4. The type of the switch for home point can be set by No.41 parameter in axis
parameter, D0 D1 D2 correspond to X Y Z axis,0 is always on, 1 is always off.
5. The maximum length of detecting Z pulse of electrical motor can be set by No.37
No.38 No.39 parameter in axis parameter, the value must less than the pulse of
electrical motor run a cycle.
6. The shifting distance after backing to home point can be set by No.46 No.47 No.48
parameter in axis parameter, rapid move coordinate to the value of parameter after
backing to home point.
No switch for home point:
To set floating point to make sure, turn on corresponding function of floating point
by No.33 parameter in axis parameter, setting No.34 No.35 No.36 parameter to make
sure the floating point of X Y Z axis, the home point of lathe.
The steps to set floating point as follows:
1. Setting the No.33 parameter in axis parameter to enable corresponding floating
point. For example: Turn X axis on is “00001000”. (turn all of them on is 00111000.)
2. Moving X axis to designate position so that set floating point.
3. Press “Parameter”, “Axis parameter” and select No.34 parameter, “Enter”, popup a
dialog box of X axis’ floating point coordinate. Import the value of setting lathe
coordinate.
If it is 0, the lathe coordinate of X axis now is the home point of X axis. The lathe
backs to this position every time when backing to the home point.
If it is 15, the current lathe coordinate of X axis is 15.000, the distance to lathe’s
home point is 15mm.
The method to set floating point of Y Z axis is the same as the above to set X axis.
Operation for backing to the home point:
28
-NEWKER-CNC - NEW16iM operation manual
Press “handwheel” and “X” “Y” “Z” “A”to select an axis, “ ” to adjust
the gear.
2.Hand held:
Press “handwheel” and operate the switch of axis selection to select an axis, operate
the axis and switch of handwheel override to adjust the gear.
Instruction
The handwheel is mainly used for “Tool”, the speed and the handwheel feed of one
measure is related to rotate the handwheel fast or low. The speed is not too fast best
when the system cooperate with stepping motor.
Handwheel’s pulse generator speed to be lower than 200r/min(The handwheel to
100 pulse a cycle), the handwheel’s acceleration is controlled by No.24 parameter in
speed parameter(the bigger the faster). The maximum speed is controlled by No.26(X
axis) No.27(Y axis) No.28(Z axis) in speed parameter.
Handwheel is invalid in auto-coordinates diagram machining, it only works in
working coordinates.
3.4.6 Workpiece coordinate system
1. Press "MDI" button to select the corresponding workpiece coordinate system
(G54-G59);
2. Moving the axis which is going to set tool to the specified location;
3. Press "Setup" to import the corresponding coordinate of workpiece coordinate
system..
29
-NEWKER-CNC - NEW16iM operation manual
(1)“ ”:Press once to increase or decrease 10% feed speed when the No.1
axis parameter is 0, the range is from 0% to 150%,16 gears totally; When the No.1
axis parameter is 1, external band switch takes in control, Adjust the speed of process
arbitrarily in the process according to the different situation.
(3) “ ”: Press once to increase or decrease the spindle override 10% when
the No.2 parameter in axis parameter is 0. The range is form 5% to 150%,16 gears
totally. When the No.2 axis parameter is 1, external band switch takes in control,
Adjust the speed of spindle arbitrarily in the process according to the different
situation.
(4) Stop in the process: At the continuous mode in process condition, press
“ ” to stop running after executing a current program line, wait for operating.
(5) Suspend in the process: Turn the intervention switch right or middle and switch
on external stop signal of Halt, the processing program will stop; Press “Reset” to exit
automatical process mode and the program line is going to back to the first of the
processing program.
(6) Keep feeding: When the process is suspending, press “Manual” to keep feeding
automatically, also can adjust the coordinate, press “Auto” and “Run” to run to the
point of suspend automatically to end.
(7) Exit process: Press “Reset” when processing, suspending or keep feeding.
(8) Enable macro program by input point during processing. For example: if X7 is
valid, then run PrgramUser9, and add following PLC:
X07 M122
-----| |-------| |----------------(S)M300 ;if X7 is valid, run M300;
X07 M300 M122
----| |-------| |-------| |-----------(S)M1014 ;if X7 is valid, reset current program
M300 M122 X07
----| |-------|/|-------|/|---------(S)M1069 ;Enter in manual mode;
M300 M122 M01 X07
--| |---------|/|--------| |------|/|-----(S)M1079 ;Execute ProgramUser9;
|--(R)M300 ;reset M300
M300: intermediate register, the same M300 is prohibit in PLC;
M1014: reset current program;
M1069: manual mode
M1070-M1079: corresponds to ProgramUser0-9.
3.5.6 Operation of MDI
31
-NEWKER-CNC - NEW16iM operation manual
At the manual or automatical coordinate conditions, press “M” to get into the
processing mode of MDI. Processing a program line that you import in “MDI”, press
“Esc” to give up and exit when importing, press “Run” to carry out the program line
that you import.
3.5.7 Operation of Handwheel
Press “Handwheel” at automatical mode, the program of turn handwheel is
processing automatically, the speed is related to the speed of “F”, feed override and
turn handwheel fast or slow. This mode is for trying to process in running program
usually.
Pay attention: The acceleration, deceleration and maximum speed of running
handwheel are controlled by No.23-No.29 parameter, use the acquiescent
acceleration, deceleration and the speed of G00 when the parameter is set to be
invalid.
3.5.8 Function of DNC
The storage space of user is 32Mbit in this system, use DNC to process when the
processing program is greater than 32M or the remainder storage space. Switch on
RS232 or USB to realize the function of DNC in this system.
A. Instruction for RS232-DNC
1. Use the dedicated communication wire to connect the computer and the system
to set the corresponding communication interface and speed by the system.
2. Use the dedicated communication software of this system by computer to set
the corresponding communication interface and speed. Press “Send CNC
program file”, select the program file to process linked, enter the status of
sending program file.
3. To enter the interface of program file in NC system, press "L" to enter the status
of linked process, now the upper right corner of the display interface is
"RS232--DNC", press “Run” to running carry out linked process in the
automatic status.
4. Turn “Intervention switch” to middle or right to stop the running system in the
process of linked process, press “Stop” or “Reset” to exit the status of linked
process.
Pay attention: 1. The baud rate is related to operational environment when
using serial port to send files.
2. The communication cable can’t more than 10 meters length.
3. Only the dedicated communication software of this system can send
program in user’s computer. To set the sending speed of PC as the NC,
defeat otherwise.
B. Instruction of USB-DNC
USB-DNC is realized by U-disk, switch on U-disk and system, select program
to execute in U-disk.
Press “B” to open U-disk in program interface, select corresponding program to
press “C” to execute program, press “Auto” to get into automatical mode and press
“Run” to process the program.
32
-NEWKER-CNC - NEW16iM operation manual
33
-NEWKER-CNC - NEW16iM operation manual
34
-NEWKER-CNC - NEW16iM operation manual
35
-NEWKER-CNC - NEW16iM operation manual
36
-NEWKER-CNC - NEW16iM operation manual
37
-NEWKER-CNC - NEW16iM operation manual
The acceleration speed when use handwheel, range is 500-32000, bigger value
means faster acceleration.
24, Test-run Handwheel acceleration/deceleration constant[>500]
25, Test-run Handwheel G00 speed(mm/min)[>10]
The idle running speed when use handwheel in auto mode. Ineffective when
lower than 10.
25-1,Auto-run Handwheel G00 start speed(mm/min)[>5]
26, Handwheel X limit speed(mm/min)
27, Handwheel Y limit speed(mm/min)
28. Handwheel Z limit speed(mm/min)
29. Handwheel A limit speed(mm/min)
Used to set max axis speed when use handwheel, range: 100-max manual speed.
The value of P26-P29 depends on machine configuration. It should not be over 4000
in order to run safely. Works only when P26-P29 is bigger than 100.
30, Acceleration/deceleration type[0 mean line,8 mean curve]
Used to set acceleration type of axis, 8 means acceleration is curve type(S shape),
0 means linear type.
Depending on driver types, usually stepper moor is curve type, servo motor is
linear type.
31, Curve initial acceleration/deceleration constant[>=10]
Initial acceleration constant in curve acceleration type, bigger vale means faster
acceleration
32, curve acceleration/deceleration second constant[>=10]
The second acceleration constant in curve acceleration type, bigger vale means
faster acceleration.
33, Curve max acceleration/deceleration constant[>=500]
max acceleration constant in curve acceleration type, bigger vale means faster
acceleration.
34, X go home positive speed(mm/min)
The speed of X axis going home sensor in forward direction, range: smaller than
X G00 speed.
35, X go home negative speed(mm/min)
The speed of X axis going home sensor in backward direction, range: smaller
than X G00 speed.
36, Y go home positive speed(mm/min)
The speed of Y axis going home sensor in forward direction, range: smaller than
Y G00 speed.
37, Y go home negative speed(mm/min)
The speed of Y axis going home sensor in backward direction, range: smaller
than Y G00 speed.
39
-NEWKER-CNC - NEW16iM operation manual
40
-NEWKER-CNC - NEW16iM operation manual
41
-NEWKER-CNC - NEW16iM operation manual
42
-NEWKER-CNC - NEW16iM operation manual
When set P233=16 or 23, firstly, spindle will stop, then controller send M75 to
detect signal M22 from spindle driver(if P233=32, do not detect M22 ), then
controller will calculate spindle current position, then position the degree P235 by the
speed of P234. if offset is big, then set Axis parameter P56=16 to reverse feedback
direction.
234,SP oriented stop angle(0.1degree)
235,SP home speed(0.1 rpm)
43
-NEWKER-CNC - NEW16iM operation manual
Set each axis in each bit. 1 means invalid soft limit in corresponding bit, 0 means
valid.
Format: D15D14……D1D0.
Example: If set soft limit of X axis, then set as:00000100
14,X-axis`s reverse backlash compensation(um)
15,Y-axis`s reverse backlash compensation(um)
16,Z-axis`s reverse backlash compensation(um)
17,A-axis`s reverse backlash compensation(um)
If there is backlash in transmission structure when the axis move backward, it is
necessary to set backlash compensation. P16-P20c backlash compensation of XYZA.
Unit:um.
18,X-axis's direction signal[1 mean normal,0 mean reverse]
19,Y-axis's direction signal[1 mean normal,0 mean reverse]
20,Z-axis's direction signal[1 mean normal,0 mean reverse]
21,A-axis's direction signal[1 mean normal,0 mean reverse]
P18-P21 are used to set moving direction of axis, 0 means moving direction
reverse from command movement, 1 means axis moving direction is the same as
command.
22,Close feed electronic gear[1 mean Yes,0 mean No]
Used to disable electronic gear ratio, if P26=1, it means close electronic gear,
then P23-P30 will not work.
23,X-axis's electronic gear numerator(1-999999)
24,X-axis's electronic gear denominator(1-999999)
25,Y-axis's electronic gear numerator(1-999999)
26,Y-axis's electronic gear denominator(1-999999)
27,Z-axis's electronic gear numerator(1-999999)
28,Z-axis's electronic gear denominator(1-999999)
29,A-axis's electronic gear numerator(1-999999)
30,A-axis's electronic gear denominator(1-999999)
Used to set XYZABCXsYs axis electronic gear ratio.
The numerator=10*reduction ratio;
The denominator = ball screw pitch;
If above parameter setting incorrect, axis will move incorrect, the command
distance may not match with real movement.
31,XYZA positive limit[0 open,1 close]
32,XYZA negative limit[0 open,1 close]
44
-NEWKER-CNC - NEW16iM operation manual
Used to set XYZA axis limit type, 0 means Normal open, 1 means Normal close.
33,float zero bit parameter[D3X;D4Y;D5Z;D6A;0 machine Zero;1 float Zero]
Used to set the type of each axis home type, and it is a bit parameter.
D10|D9|D8|D7|D6|D5|D4|D3|D2|D1|D0
D3-D10 corresponds to XYZA home type, 1 mean float zero point, 0 means
mechanical home switch;
D1|D0 set if Y axis coordinate reduction;
For example, if just set X axis as float home type, then P33=00000001000.
33-1,X of Reference point 1(mm)
33-2,Y of Reference point 1(mm)
33-3,Z of Reference point 1(mm)
33-4,A of Reference point 1(mm)
34,X coordinate of floating zero point setting
35,Y coordinate of floating zero point setting
36,Z coordinate of floating zero point setting
37,A coordinate of floating zero point setting
P34-P37 will set the current coordinate of XYZA axis as home position, each axis
goes home means back here.
If without mechanical zero point, set it as floating zero point. System will locate
the zero point rapidly in operation of back to zero point.
38,Feed axis home[1 mean No use, 0 mean clew, 8 compulsion , 9 must
compulsion]
Set as 0 means no need, system will not prompt and limit when power on.
Set as 1 means prompt, system will prompt but no limit when power on.
Set as 8 means force, system will prompt when power on, and if no operation of
back reference point, it will refuse to execute program.
Set as 9 means super force, motion system of feeding axis will prompt when
power on, and if no operation of back reference point, it will refuse to execute motion.
39,Feed axis home mode[0 reverse check,1 reverse No check ,2 No reverse check,3
No reverse No check]
Few methods for setting detection switch and zero pulse signal of motor encoder
when each axis is backing to zero point:
Set as 0: When backing to zero point, crush to the reference switch, running
reversal after the switch is off, then detect the zero pulse signal of motor encoder.
Set as 1: When backing to zero point, crush to the reference switch, running
reversal after the switch is off.
Set as 2: When backing to zero point, crush to the reference switch, continue to
45
-NEWKER-CNC - NEW16iM operation manual
run after the switch is off, then detect the zero pulse signal of motor encoder.
Set as others:When backing to zero point, crush to the reference switch, continue
to run after the switch is off.
According to the circuit to set, normally suggest to set as 0 or 2, if not to detect
the zero pulse signal of motor encoder, the accuracy will be worse, it only base on
switch of reference point.
40,Home reverse direction parameter[D2X;D3Y;D4Z;D5A; 0 Positive;1 Negative]
Exclusive setting of direction and sequence for every axis.
D10|D9|D8|D7|D6|D5|D4|D3|D2|D1|D0
D2 control X home direction; D3 control Y home direction; D4 control Z home
direction; D5 control A home direction; D6 control B home direction, 1 means
negative, 0 means negative.
For example, if set X axis home direction is negative, then P40=000000100.
D1 is a status control bit of chuck, 1 means detecting, 0 means without detecting.
If D1=1, after chuck clamping ready M10, system will detect M12, only if M12 is
valid, will system execute next step. After chuck unclamping ready M11, system will
detect M14, only if M14 is valid, will system execute next step.
41,Home switch normally closed bit parameter
[D0X;D1Y;D2Z;D3A;1Close;0Open; D6=1 handwheel/auto; D7=1 manual/auto]
Used to set home switch type[NC/NO].
D15|D14|D13|D12|D11|D10|D9|D8|D7|D6|D5|D4|D3|D2|D1|D0
1 means normal close, 0 means normal open. D0 control X home direction; D1
control Y home direction; D2 control Z home direction; D3 control A home direction;
D4 control B home switch type; D5 control C home switch type; D14 control Xs
home switch type; D15 control Ys home switch type.
For example, if XYZ home switch is NC, then P41=000000000000111.
If D6=1, controller will switch between handwheel and auto mode automatically.
If D7=1, controller switch between manual mode and auto mode automatically,
controller will switch into manual mode after program finish, pressing Start button in
manual mode will switch into auto mode automatically.
42,X check zero max length(100um)
43,Y check zero max length(100um)
44,Z check zero max length(100um)
45,A check zero max length(100um)
When P39=0 or 2, after release from home switch, each axis need to detect motor
encoder zero pulse signal, P42-P45 are the detecting range.
Note: the range must be less than distance by one type of motor, otherswise,
46
-NEWKER-CNC - NEW16iM operation manual
47
-NEWKER-CNC - NEW16iM operation manual
49
-NEWKER-CNC - NEW16iM operation manual
50
-NEWKER-CNC - NEW16iM operation manual
programming.
D11 bit:Set as 1, the output analog of the first spindle is the same time from the
first, second spindle channel, the function of the second spindle is valid.
D12 bit :Set as 1, shield the skip function, “/” in front of the segment means
invalid.
D13 bit:Default as 0, can’t change.
D14 bit:Default as 0, can’t change.
D15 bit :Set as 1, the tool set show the relative value, otherwise it shows the
absolute value.
Pay attention: This parameter includes the bit which can’t be changed. If change
this bit, it will cause some problems with controller.
★10,Auto count part[1 mean Yes,0 mean No]
Used to count processed work piece quantity.
★11,Program edit number increase
if user want to count program lines automatically, just need to set P11=1.
★13,Interlock between Spindle & chuck(0 mean no)
Used to set if interlock between spindle and chuck.
0 means no relationship between spindle and chuck status;
1 means only if spindle is in M05 status, can chuck clamp or unclamp;
8 means only if spindle is in M05 status and spindle encoder keep still, can
chuck clamp or unclamp;
16 means detect speed and interlock;
32 means when program running in auto mode and status is not pause, button of
clamp can not work;
56 means super interlock. when program running in auto mode and status is not
pause, button of clamp can not work;
The parameter setting depends on machine configuration and user preference, it is
suggested to set as interlock in safety sake.
★14,Is available keys of lub&cool as running[1:Yes,0:No]
Used to set if coolant button works in auto mode. The parameter setting depends
on user preference, when set it as 1, operator can control coolant system at any time,
to meet processing needs.
★17,Servo alarm ALM/X20(0:open,1:close)
Used to set type of XYZA alarm, 0 means normally open, 1 means normal close.
★17-1,Servo ALM/X22(0:open,1:close)
★18,Alarm ALM1/X23(0:open,1:close)
Used to set type of alarm ALM2, 0 means normally open, 1 means normal close.
★19,Alarm ALM2/X24 (0 open,1 close)
Used to set type of ALM3 alarm, 0 means normally open, 1 means normal close.
★20,Chuck control signal(0 single,1 doubleM10/M71)
Used to set chuck control signal quantity, if one-way valve, it needs 1 siganl, if
with two-way valve, it needs 2 signal.
0: means only one output signal M10 controls chuck clamp or unclamp, when
M10 is effective, system executes clamping, when M10 is ineffective, system
51
-NEWKER-CNC - NEW16iM operation manual
executes unclamping;
1: means M71 and M10 signal control chuck unclaping and clamping separately.
When M10 is effective and 71 is ineffective, chuck clamps; when M10 is ineffective,
and M71 is effective, chuck unclamps. Namely M10 output M10, M11 output M71.
Axis parameter P40-D1 bit is used to set if check clamp/unclamp ready, 0 means
without detection; 1 means detection, then system will detect if M14 is effective
after outputting M10, detect if M12 is effective after outputting M11, only if
M14/M12 is effective, will system continue next step.
★22,Outside chuck control(0 no,1 yesM16)
Used to set if there is an external switch controlling chuck clamping or
unclamping, it is a loop signal, namely chuck status changes everytime when Signal
becomes effective once(effective once, then unclamp; effective another 1 time, then
clamp). when set as 0, means without external chuck control switch; set as 1, means
with external chuck control, the signal is M16.
★24,M10M11 short signal time(s)
Used to set the hold time of M10,M71 when they are the short signal. If the
value is 0, it means M10 and M71 is long signal. Unit:S(second)
★25,Whether to configure an integrated drive[1:Yes,0:No]
Used to set if connect with NEWKer integrated type driver. If yes, then when
driver works normal, controller will output Y05 to control motor brake.
★26,Emerge Stop(0 open,1 close)
Used to set type of emergency stop button, 0 means normally open, 1 means
normally closed. The default setting is normally closed.
★27,Emerge Stop2(0 open,1 close)
Used to set the type of external emergency stop signal. 0 means normally open,
1 means normally closed.
★28,Run status output(0 invalid,1 valid Y04 run,Y02 stop )
Used to set if controller output signal for status displaying. 0 means do not
output, 1 means output, namely when machine works, if program running, then
output Y04, if program stopped, then output Y02.
★29,Alarm status output(0 invalid,1 valid Y03)
Used to set if output alarm signal, namely when machine is in alarm status, if
P29=0, controller will not output alssrm signal, if P29=1, controller will output
alarm signal Y03.
★30,Set language(1 表中文, 0 mean English)
★31,Is enable PLC program
★32,Is enable High PLC program
Used to set system inner PMC operating. During running machine, it must be
enabled.
★35,soft-limit without home as manual[1 Yes,0 No]
Used to set if soft limit works before the axis go home.
★36,Set system time[year-month-day-hour-minute]
Used to set system time, format: year-month-day-hour-minute.
★37,Velocity of RS232 [0=7200;1=9600;2=14400;3=19200;4=38400;5=57600;
52
-NEWKER-CNC - NEW16iM operation manual
6=115200]
Used to set baud rate in RS232 communication.
★37-1,Serial port ModBus station number of OPC function [odd check 10000+,even
check 20000+,no check 30000+]
The station number set in RS232, if controller station number is 2, and check
mode is odd check, then set as 10002.
★38,Lock Manual rampit func key[8 Yes]
★39,Special parameter
★40,Special parameter
★41,Bake current parameter
Backup current parameter setting as default parameter. After setting machine
ready, press P41 twice then set current parameter as default setting for future
maintenance.
★42,Resume original parameter
Restore the default parameter setting which is defined by pressing P41 last time.
★50,Run from middle Program ask going last line point[8:Yes,0:No]
Used to choose if position at end of last section before running program in middle line
120,Manual axis moving keying reverse(4:is X;8:is Y;16:is Z;32:is A)
200.X axis alarm error between feedback and running. (pulse)[>1]
201.Y axis alarm error between feedback and running. (pulse)[>1]
202.Z axis alarm error between feedback and running. (pulse)[>1]
203.Fourth axis alarm error between feedback and running.(pulse)[>1]
When controller activated position feedback function, if tacking error during
axis running is bigger than P200-P204a, system will alarm.
Bigger than 1 is valid. Press “G” to clear the feedback position ,clear position and
the alarm.
205.X axis alarm error between feedback and stop. (pulse)[>1]
206.Y axis alarm error between feedback and stop. (pulse)[>1]
207.Z axis alarm error between feedback and stop. (pulse)[>1]
208.Fourth axis alarm error between feedback and stop. (pulse)[>1]
When controller activated position feedback function, if tacking error after axis
stopping is bigger than P200-P204a, system will alarm.
Bigger than 1 is valid. Press “G” to clear the feedback position ,clear position, and
the alarm.
210.X axis feed back electronic gear numerator.
[Automatical count: crew pitch (um) and the number of encoder.]
211.Y axis feed back electronic gear numerator.
[Automatical count: crew pitch (um) and the number of encoder.]
212.Z axis feed back electronic gear numerator.
[Automatical count: crew pitch (um) and the number of encoder.]
53
-NEWKER-CNC - NEW16iM operation manual
54
-NEWKER-CNC - NEW16iM operation manual
55
-NEWKER-CNC - NEW16iM operation manual
56
-NEWKER-CNC - NEW16iM operation manual
57
-NEWKER-CNC - NEW16iM operation manual
58
-NEWKER-CNC - NEW16iM operation manual
59
-NEWKER-CNC - NEW16iM operation manual
P3-05: set as 1;
P3-07: set as 0;
P3-69: set as 1;
P3-70: set as 2;
Parameter setting when NEWKer controller matches Maxine absolute driver.
1. Parameter of controller:
(1) P304/P305/P306/P307/P308:XYZABC axis absolute encoder one-revolution
pulse, set as 65536.
(2) if ball screw pitch is not 10mm, electronic gear ratio can be set in driver,
they are P029,P030,P031,P032. then one-revolution coordinate of absolute
encoder can be set as the real pitch of ball screw, numerator and denominator
of feedback will also be real length of ball screw.
2. Parameter of Maxine driver:
(1) parameter relative to bus communication:
P300: station number;
P304: 0 means normal mode; 1 means bus mode, set as 1;
P306: set as 2;
P307: 0 means incremental position, 1 mean absolute position, set as 1;
P027,P028 are gear ratio, if multiple of both them is resolution ratio of
encoder, controlling accuracy will be better. For 17 bits encoder, P027=8192,
P028=16;
After change above parameters, please use E-SET to save data, then restart driver.
(2) if there is multi-revolution encoder battery, change the 90th parameter as 1,
and use Fn36 to initialize the driver.
(3) screw thread processing: default gain parameter is only compatible in thread
cutting under spindle speed under 1000r/min. If thread cutting under 2000r/min is
required, it is necessary to increase the gain parameter,
P005(the first speed loop gain ) ; P009(the first position loop gain);
X axis changes from 40 to 80(Hz); X axis changes from 40 to 80(1/s);
Z axis changes from 40 to 100(Hz); Z axis changes from 40 to 100(1/s)
60
-NEWKER-CNC - NEW16iM operation manual
61
-NEWKER-CNC - NEW16iM operation manual
62
-NEWKER-CNC - NEW16iM operation manual
63
-NEWKER-CNC - NEW16iM operation manual
64
-NEWKER-CNC - NEW16iM operation manual
65
-NEWKER-CNC - NEW16iM operation manual
cursor to realize.
Basic parameter:
Press “↑ ↓” to select current basic parameter to set in basic parameter, press “Enter”
to popup a dialog box to import the error compensation of every axis and import the
basic information of screw compensation.
Set compensation value:
In the area of setting compensation, it will shows the value of compensation and
every axis’ error compensation point of screw pitch. Press “↑ ↓ PgDn PgUp” to select
current compensation point and press “Enter” to popup a dialog box to import the
value of compensation, import the value of current compensation point.
66
-NEWKER-CNC - NEW16iM operation manual
67
-NEWKER-CNC - NEW16iM operation manual
The system calculates every axis’ error compensation points’ positions of screw
pitch according to basic parameter automatically, every axis’s error compensation
points’ spacing is uniform, user can import compensation value of each point (This
system requires importing absolute value, relating the of home point).
The compensation points are uniform, set the spacing into each axis.
For example:
Example 1:Linear axis: when length of travel is -400mm~+800mm, spacing of
points is 50mm,reference point compensation isNo.40, it can figure out that
Compensation point of farthest end in negative direction is:
Machine negative travel/point interval +1=40-400/50+1=33.
Compensation point of farthest end in positive direction is:
Machine positive travel/point interval +1=40+800/50=56.
The corresponding relationship between machine coordinate and compensation point
is:
No. 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 56
Value +2 +1 +1 -2 0 -1 0 -1 +2 +1 0 -1 -1 -2 0 +1 +2 +1
The contrasted chart of compensation points and value as follows:
Example 2:rotor axis: when movement per revolution is 360°, interval of points
68
-NEWKER-CNC - NEW16iM operation manual
45°,reference point compensation NO. 60, Compensation point NO. of farthest end
in negative direction is usually same as reference point compensation point NO.
Compensation point NO. of farthest end in positive direction is:
Reference compensation point NO.+ movement per revolution/compensation
point interval=60+360/45=68.
Machine coordinate and compensation point NO. correspondence is:
Note: input value in small circle. If the total amount from 61 to 68 doesn’t equal
0, accumulated pitch error per revolution will deviate, so same value shall be put in
60 and 68.
Output compensation value at corresponding point:
NO. 60 61 62 63 64 65 66 67 68
VALUE +1 -2 +1 +3 -1 -1 -3 +2 +1
3.10 Diagnosis
Press “Diagnosis” to enter the diagnosis interface in parameter interface.
System diagnosis interface(Input signal)
Press “T” and “Pgup Pgdn” to check the status of input and output, press “Q” to
69
-NEWKER-CNC - NEW16iM operation manual
70
-NEWKER-CNC - NEW16iM operation manual
71
-NEWKER-CNC - NEW16iM operation manual
72
-NEWKER-CNC - NEW16iM operation manual
73
-NEWKER-CNC - NEW16iM operation manual
The screen prompt the editing program name at the top left corner in the editing status;
The left is the content, the right is the information for lathe status, the operation in the
editing status as follows:
(1) The current cursor locate:
Press “↑↓←→” to move the cursor to any position of program content
Press "Pgup" to the last page.
Press "Pgdn" to the next page.
(2) Character modification: Delete the character at the position of the cursor, then
enter the new character.
(3) The character insertion: Enter a new direct character at the cursor position.
When the input is the letter,the letter in front of automatically generating space. If you
want to enter a space, first enter a letter, and then delete this letter.
(4) The character deletion: Press "Del" directly at the cursor position
(5) Inset the line: Press "Enter" directly, inset a line in front of the current line if the
cursor is at the first line, otherwise insert a line after the current line.
(6) "Fast" superposition key operation:
The first function:
C, “ ”+"V": teaching function, enter the handwheel status;Press "Q" to read the
tool coordinate in the current workpiece coordinate system according to the
corresponding axis X/Y/Z/A (all the axis).
74
-NEWKER-CNC - NEW16iM operation manual
E, “ ”+"A": no operation.
75
-NEWKER-CNC - NEW16iM operation manual
76
-NEWKER-CNC - NEW16iM operation manual
77
-NEWKER-CNC - NEW16iM operation manual
interface, press “B” to show the files in U-disk. Press “↑ ↓” to move the cursor to
select a folder which is going to be copied into system and press “ Enter” to open it,
press “T” to import code when appearing the files and press “Enter” to confirm, wait
for seconds to copied the parameter successfully. Press “B” to exit U-disk after
copying successfully, restart the system, the system will reloads the new files to
upgrade the parameter.
Pay attention: The parameter is better to be derived into a separate folder in
U-disk to defend from the error operation to destroy the system files.
To derive or back-up parameter files by U-disk
First U-disk inserts the USB port and press “Program” to enter program main
interface, press “B” to show the files in U-disk. Press “N” to import the code and
press “Enter” to confirm, waif for seconds to derive successfully. The parameter in
system is already derived into U-disk. Press “B” to exit U-disk.
Pay attention: The U-disk is empty better to arrange the files (Parameter files
is lots of about several dozens) so that derive parameter or create a folder on
your computer first, open the folder before deriving to derive the parameters
into the folder.
3.11.11 Convert DXF files into G code.
In program directory, choose the DXF file then press”-”, it will be converted into G
code file, whose name extension is .CNC. The format of the DXF file input into
controller should be .DXF or .dxf. Parameter refers to process parameter No.400-402.
During generation of G code files, system will generate corresponding head and
end code according to if there are HEADDXF.TXT and ENDDXF.TXT (or
headdxf.txt and enddxf.txt) under current file directory.
Attention: head code file and end code file must be under current file directory.
78
-NEWKER-CNC - NEW16iM operation manual
Chapter 4 Programming
+X +X
79
-NEWKER-CNC - NEW16iM operation manual
1.Use G54 ~ G59: Use operating parameter set coordinate system may set 6 work
piece coordinate system.
2.G52 instruction: Set a value in front of G52 instruction to set the workpiece
coordinate system in program.
With absolute value instruction ,it must use the above method to establish the work
piece coordinate system
Absolute Programming : It is confirmed coordinates data programming mode
based on established absolute coordinate system.。It is settlements by “G90”。
Relative Programming(increment programming) : It is distance and direction of
operation end point ,compared with starting point。It is settlements by “G90”。
Mode Instruction:The instruction which can remain the function in the program.It
works both in this program and program in the future.
In the same operation, there may be several mode instruction, such as M03(spindle
clockwise),M04(spindle counter clockwise),M05(spindle stop).They are all mode
used to control spindle.The mode of same kind are categorized into one mode
group.At any time it must be one of them,and there is only one of them.The original
chosen mode is called mode origin.In the above mode group,M05 is such a mode
origin 。
Suspending Mode ( destroying mode) : It is instruction which can turn mode
instruction into mode origin or destroy the mode.Such as M20(program ending
instruction),meaning the end of operation and returning to original status.
None Mode instruction : It is the instruction which has no function to store,and
only works in the segment of program.
G02,T02,H02,D02,M02,S04,F04,X-043,Y-043,Z-043,A-043,I-043,
J-043,K-043,L04,P4,R043。
Note 1:“-”means this data can be use.
Note 2:In front of the numeral is 0, indicated this data only write the effective
data。
Note 3:The digital presentation is a figure, when is two, top digit expression
integer figure biggest figure, after low position expresses decimal point most
imperial throne.
Introduce all the functions and using method of instruction code in this system.
4.3.1 Functional meaning of address symbol,data list
80
-NEWKER-CNC - NEW16iM operation manual
81
-NEWKER-CNC - NEW16iM operation manual
82
-NEWKER-CNC - NEW16iM operation manual
83
-NEWKER-CNC - NEW16iM operation manual
84
-NEWKER-CNC - NEW16iM operation manual
85
-NEWKER-CNC - NEW16iM operation manual
86
-NEWKER-CNC - NEW16iM operation manual
Suspend program
M00
Suspend
program,input M22
M01
effective suspend
Program is over other parameter P10=0 is set not to
Program M02 symptomatically plus 1, instruction
Program end
controlling M87 to make workpiece number
M05,M09 program is plus 1
M30
over
Program is over,
automatic repeat run
the program according
M20 to the parameter
which set the running
times, be used for the
debugging
87
-NEWKER-CNC - NEW16iM operation manual
88
-NEWKER-CNC - NEW16iM operation manual
M412:Clear C axis
machine coordinate
M413:Clear Xs axis
machine coordinate
M414:Clear Ys axis
M412 machine coordinate
M413 M415:Clear A axis
M414 machine coordinate
Clear M415 M416:Clear B axis
machine M416 machine coordinate
coordinate M417 M417:Clear X axis
M418 machine coordinate
M419 M418:Clear Y axis
M420 machine coordinate
M419:Clear Z axis
machine coordinate
M420:Clear all axis
machine coordinate
89
-NEWKER-CNC - NEW16iM operation manual
90
-NEWKER-CNC - NEW16iM operation manual
91
-NEWKER-CNC - NEW16iM operation manual
G91 are respectively used to point out the coordinate with absolute value or
incremental value.
Format: G90 (Mode,initial) ;Absolute
G91 (Mode) ;Increment
Pay attention:The rotating axis use nearest calculation and move accordingly
when using absolute coordinate to programme, using programming calculation
to work when using relative coordinate to programme.
(4) Select Plane(G17/G18/G19)
Format:G17 (Mode,Original) ;Set XY Plane
G18 (Mode) ;Set ZX Plane
G19 (Mode) ;Set YZ Plane
Used to point out arc interpolation plane.
Note:this instruction does not produce motion.
(5) Rapid motion(G00)
Tool moves to workpiece coordinate system by instruction according to G00 speed
in parameter.
In absolute method, use endpoint coordinate to program;
In incremental method, use moving distance of tool to program.
Format:G00 X- Y- Z- A- (Mode,original)
Note:X,Y,Z,A , means motion axis.The data point out motion distance and
direction by absolute or incremental method.
In G00 instruction, each axis moves to endpoint separately with the specified speed.
Each axis stops moving till the aim point, and next axis keep moving to instruction
position. All of axis can move simultaneously by other parameter P9, D6=0 means
linked moving.
Moving speed is determined by Speed parameter of G00.
(6) Line interpolation(G01)
Used for single axis motion or 2,3,4 axis interpolation processing..
Format:G01 X_ Y_ Z_ A_ F_ (Mode)
Note:X,Y,Z,A means motion axis.The data point out motion distance and
direction by absolute or incremental method.Motion speed is determined by F word.
The F instruction is mode.
The feeding speed of F in G01 can be adjusted by feeding override on the panel, the
range is 0%~150%.
G01 instruction also can be written G1.
(7) Arc interpolation(G02/G03)
In the program plane, G02 clockwise and G03 counter-clockwise are used to
execute arc interpolation processing
92
-NEWKER-CNC - NEW16iM operation manual
Note:Arc interpolation must point out interpolation plane,the X、Y、Z word point
out the arc end coordinate value,I、J、K is incremental value from original point(speed
parameter P47 =+4 means endpoint) of X, Y, Z axis to center point. In another word,
let the original point be zero point, and if the center is in the forward direction of
original point, the value will be positive, if the center is in the backward direction of
original point, the value will be negative.I J K are used to define center point
coordinate. Besides, R program is also used to define center point coordinate,the R is
negative when arc angle is over 180 degree, but it is not applicable for whole cycle.
The trend of arc goes from positive to negative direction that is perpendicular to arc
interpolation plane in right-handed rectangular coordinates.
The arc track of different arc interpolation plane as follow:
Y X Z
G03 G03 G03
0 X 0 Z 0 Y
I J K are used to define the arc center position, the value behind I J K are vector
component from original point to arc center. I J K must must be marked as positive
or negative according to directions. I J K can be omitted, then endpoint and original
point is the same one, and the arc will be whole cycle when center is specified by I J
K, it will always be incremental as following no matter G90 or G91.
93
-NEWKER-CNC - NEW16iM operation manual
1) absolute programming
N0000 G92 X200 Y40 Z0; set start point absolute coordinate;
N0010 G90 G03 X160 Y40 I-20 J0; count-clockwise arc;
N0020 G02 X120 Y40 R20; clockwise arc;
N0030 G02 X120 Y40 R20; whole cycle;
N0040 G26 M02; end and back to start point.
2) Relative programming
N0000 G91 G17 G03 X-40 Y0 R20 F300; count-clockwise arc;
N0010 G02 X-40 Y0 R20; clockwise arc;
N0020 G02 X0 Y0 R20; whole cycle;
N0030 G26 M02; end and back to start point.
Two methods have the same result.
(8) Spiral interpolation (G02/G03)
Spiral interpolation means arc interpolation adding another linear-axis interpolation,
F instruction defines arc interpolation speed.therefore, the feed speed of line
interpolation axis is as follow:
G02 I_J_
Format :G17 X_Y_ Z_F_ ;XY plane(Mode)
G03 R_
94
-NEWKER-CNC - NEW16iM operation manual
95
-NEWKER-CNC - NEW16iM operation manual
M02
(10) Delay instruction(G04)
Used to delay a certain time for the requirements of processing technique.
Format:G04 P_ ;or
G04 X_ ;or
G04 U_ ;
Function:Every axis is stop and mode instruction is still working when execute this
instruction, after delaying the specified time to execute the next program segment.
Instruction introduction:
a.The unit of P delay time is ms(Millisecond).
b.The unit of X and U delay time are S(second).
c.Example:
G04 X1; delay 1s.
G04 P1000; delay 1s.
G04 U1; delay 1s.
d.Special application:G04 can be accurate stop instruction, such as processing corner
kinds of workpiece, it appears over cutting sometimes, if use G04 instruction around
the corner, it will eliminate the over cutting.
Example as follows:
Program: … …
N150 G01 X20 Z10 F100;
N160 G04 P150;(Clear the over cutting)
N170 G01 W-10;
……
Pay attention: Set No.21 parameter in “N”(processing) parameter to clear the
over cutting.
96
-NEWKER-CNC - NEW16iM operation manual
97
-NEWKER-CNC - NEW16iM operation manual
out scaling. The number behind the X_ Y_ Z_ is the coordinate of current workpiece
coordinate system.
Format:G36 X_Y_Z_R_ (mode) ;Carry out
G37 (mode,original) ;Cancel
Note:behind R is the scale coefficient is
For example:
P1` P2` P3` P4` magnify to P1 P2 P3 P4,R=P0P4`/P0P4. When P1 P2 P3 P4
reduce to P1` P2` P3` P4`, R=P0P4/P0P4`. So: R<1 when magnifying, R>1 when
reducing,R=1 can be default.
Scale center
In the proportions scale section, cannot use tool length and radius compensation:
Original track
98
-NEWKER-CNC - NEW16iM operation manual
Note : The (G17)X-Y- or (G18)Z-X- or (G19) Y-Z- behind G68 is used for
pointing out rotate center.
R word is used for pointing out rotate angle, unit is °(degree), the value
behind X_Y_Z_ is coordinates of current coordinate system;
positive R means rotate CCW;
Negative R means rotate CW.
Example:
Rotate angle
Rotate center
To specify plane and select code(G17 G18 or G19) before the G68 code program
segment, select the code cannot be specified in the mode of rotating coordinate system.
Cancel the mode G69 code must occupy a program segment separately. After rotating
the coordinate system to carry out tool radius compensation, tool length compensation,
tool offset and other compensation.
In the mode of rotating coordinate system, the G code (G28 G26 G31 G30 etc)
which is related with backing to the home point and those related with the the G code
(G52, G54/G59) of coordinate system cannot be specified, if need these G codes,
must specify after canceling coordinate rotation mode. The first moving instruction
must use absolute value instruction after the coordinate system rotation cancel G69, if
use incremental instruction, it will not to carry out correct motion.
Example:
99
-NEWKER-CNC - NEW16iM operation manual
Rotate center
100
-NEWKER-CNC - NEW16iM operation manual
Format:
G43 H_ ;Add tool length compensate。
G44 H_ ;subtract tool length compensate。
G49 or H0 ;cancel tool length compensate.
Note:tool length compensation refers to add or subtract the value of tool length
compensation on Z axis or other axis. Invoking number is H1-H99. compensation
value of parameter starts from the tool position before compensation.
101
-NEWKER-CNC - NEW16iM operation manual
For G02 and G03 is increasing or decreasing one or two tool radius in the direction
of arc radius.
150 K J
I H
60
60
120
C D
60
60
60 30
G
A B E F
F X
0
Program as follows:
N0000 G01 Z-20 F400 G91 ; Z point starts
N0010 G46 T01 X55 Y55 ; Point location to A point, X and Y axis both
decrease one tool radius(T01)
N0020 G47 G01 X60 F200 ; A-B X axis increase two tools radius
N0030 Y60 ; B-C length not change
N0040 G48 X60 ; C-D X axis decrease two tools radius
N0050 Y-60 ; D-E length not change
N0060 G45 X30 ; E-F X axis increase one tools radius
N0070 G45 G03 X30 Y30 R30 ; F-G CCW radius increase one tool radius
N0080 G45 G01 Y60 ; G-H Y axis increase one tool radius
N0090 G46 X0 ; H-I Move for one tool radius along the
negative direction of X axis
N0100 G46 G02 X-30 Y30 R30 ; I-J CW radius decrease one tool radius
N0110 G45 G01 Y0 ; J-K Move for one tool radius along the
positive direction of Y axis
The relationship between Plus(+), Minus(-) and tool radius in above example is
addition of term of the same sign, subtraction of term of different sign. Coordinate can
be zero, used to specify coordinate axis, run length is 1 or 2 radius. The direction is
specified by signs of instruction and radius.
(17) Tool radius compensate instruction(G40/G41/G42)
When the tool is moving,tool track can offset a radius。In order to offset a
radius,CNC establish offset vector whose length equal tool radius。Offset vector
102
-NEWKER-CNC - NEW16iM operation manual
workpiece
Note:
Left or right side of G41/G42 is following in the direction of cutting, tool is in
the left or right of workpiece. tool radius is invoked by T1-T99. execution of offset
stars from the line of G41/G42. It will generate transition line at sharp corner, in
order to transit from the tool radius offset vector in the end of last segment to the
offset vector in the beginning of next segment. Tool offset vector refers to describing
value and direction of tool offset.radius vector is radius of tool. For arc, its direction
is the radius direction. And for line, it direction is vertical direction of line.
Tool radius compensation establish and cancel have two type: A type and B
type , which can set in other parameter 。 Furthermore, Tool radius compensation
establish and cancel must be executed in line section。
For example:
103
-NEWKER-CNC - NEW16iM operation manual
Start Unit:mm
G54 X0 Y0 Z0;…………………………………
N1 G90 G17 G00 G41 T15 D2 X250.0 Y550.0; establish compensation
N2 G01 Y900.0 F150; ……………………… from P1 to P2
N3 X450.0; ……………………………………from P2 to P3
N4 G03 X500.0 Y1150.0 R650.0; ……………from P3 to P4
N5 G02 X900.0 R-250.0; ……………………from P4 to P5
N6 G03 X950.0 Y900.0 R650.0; ……………from P5 to P6
N7 G01 X1150.0; ……………………………from P6 to P7
N8 Y550.0; ……………………………………from P7 to P8
N9 X700.0 Y650.0; ……………………………from P8 to P9
N10 X250.0 Y550.0; …………………………from P9 to P1
N11 G00 G40 X0 Y0; ……………………… cancel compensation
(18) Program circulation instruction (G22--G800)
G22 is program circulation instruction, G800 is an instruction to end circulate. But
G22 must be used with G800 for repeated processing. L means circulation times, the
range is 1-99999.The circulation instruction can nest.
104
-NEWKER-CNC - NEW16iM operation manual
For example
Program as follows:
N0000 G17 G90 X0 Y0 F250 M03 ;
N0001 G91 G01 Z-10
N0010 G22 L4 ;
N0020 G01 X20 ;
N0030 G03 X10 I5 J0 Y0 ;
N0040 G800 ;
N0050 G01 X20 ;D-E line
N0060 Y-30 ;E-F line
N0070 G11 X140 Y-30 ;set mirror
N0080 G22 L4 ;circulation begin
N0090 G01 X20 ;F-G line
N0100 G03 X10 I5 ;G-H arc
N0110 G800 ;circulation end
N0120 G01 X20 ;I-J line
N0130 G01 Y-30 ;cancel mirror
N0140 G12 ;J-A line
N0150 G26 ;go back to program begin point
N0160 M02 ;over
(19) Accurate localization/Continual way processing (G60/G64)
According to requirement of processing,we can set program section connection
way by the G60/G64 instruction.
Format:G60 ; accurate stop (mode)
G64 ; continue section(mode,original)
105
-NEWKER-CNC - NEW16iM operation manual
106
-NEWKER-CNC - NEW16iM operation manual
When tool touched the bottom of hole, tool will back to plane where R point
stands, or original plane. Generally, G99 is used in first drilling, and G98 is used in
final drilling.the original plane will not change even by G99, The difference of G98
and G99 as follow:
Use the L word to set cycle time, and L is just valid in specified segment. the
maximum value is 9999, the default value is 1;
Orientation plane is determined by G17(XY)/G18(ZX)/G19(YZ). Besides, speed
parameter P41 arc backlash compensation is set as 2 or 10.
(21) High speed drill deep hole(G73)
This cycle execute high speed drilling deep hole until reaching to bottom, at
the same time, remove the cutting trifling from hole.
Format: G73 X_Y_Z_R_Q_F_L_ ;
X_Y_:hole position data
Z_:the distance(G91) or coordinate(G90) from R
point to hole bottom
R_: the distance(G91) or coordinate(G90) from
original point to R point
Q_:cutting depth every time
F_:cutting speed
L_:repeated times
107
-NEWKER-CNC - NEW16iM operation manual
Note:High speed drilling cycle along the Z axis to carry out intermittent feeding,
when using this cycle, the swarf can be easily discharged from the hole and can set
the smaller value when backing. This allows to carry out drilling effectively. No.1
parameter in "N"(Processing) parameter is to set the value of the tool withdrawal(d).
Using auxiliary function to rotate spindle before specifying G73 (M code).
Set the offset of tool length(G43 G44 or G49) in changeless cycle which is located
to R point to plus offset, the offset of tool radius is ignored.
For example:
M3 S2000 Spindle starts rotating
G90 G99 G73 X300. Y-250. Z-150. R-100. Q15. F120. Drill the fist hole and
return to R point
Y-550.; Drill the second hole and return to R point
G98 Y-750.; Drill the third hole and return to R point
G80
M30; The end
(22) Drilling cycle, point drilling cycle(G81)
The cycle is used for normal drilling, execute the feeding cut to hole bottom. Then,
the tool moves fast return form hole bottom.
108
-NEWKER-CNC - NEW16iM operation manual
Format:G81 X-Y-Z-R-F-L- ;
X-Y-:Data of hole position
Z-:Distance form R point to hole bottom(G91)
or coordinate value(G90)
R-:Distance form initial point to R point(G91)or
coordinate value(G90)
F-:Cutting speed
L-:Repeated times
Note: Move fast to R point along the X and Y axis location, execute drilling process
from R point to Z point, then tool returns with rapid move.
Use auxiliary function M code to rotate spindle before specifying G81
Locate to R point plus the offset when specifying the offset of tool length(G43 G44
or G49) in fixed cycle, the offset of tool radius is ignored.
Example:
M3 S2000; spindle begins to rotate
G90 G99 G81 X300 Y-250 Z-150 R-100 F120; drill the first hole, and then return
to R point
Y-550; drill the second hole, and then return to R point
G98 Y-750; drill the third hole, and then return to panel of the initial position
G80
M30; end
(23) Drilling cycle,Reaming cycle(G82)
The cycle is used to drill hole,servo cut to the bottom and pause, then tool recede
rapidly.
Format:G82 X-Y-Z-R-P-F-L- ;
X-Y-: hole position data
Z-: the distance(G91) or coordinate(G90) from R
point to hole bottom
R-: the distance(G91) or coordinate(G90) from
original point to R point
P-:pause time
F-:cutting speed
L-:repeat time
109
-NEWKER-CNC - NEW16iM operation manual
Note:orientating in the direction of X axis and Y axis, rapidly move to R, then drill
from R to Z point, when tool arrive at the bottom, execute pause,then tool recede
rapidly.
Rotate spindle with M code before G82 specified.
Set offset in the location of R point, while specify tool length offset(G43,G44,G49)
in fixed cycle. Tool radius offset is ignored.
For example:
M3 S2000
G90 G99 G82 X300. Y-250. Z-150. R-100. P1000 F120.
Y-550.;
G98 Y-750.;
G80
M30;
(24) Intermission drill cycle (G83)
It applies to chip removal from hole during the execution of intermittent feeding
cut to bottom of hole.
Format :G83 X_ Y_ Z_ R_ Q_ F_ L_ ;
X_ Y_ : hole position data
Z_ : the distance(G91) or coordinate(G90) from R
point to hole bottom
R_ : the distance(G91) or coordinate(G90) from
original point to R point
Q_ :cutting depth every time
F_ :cutting speed
L_ :repeated times
110
-NEWKER-CNC - NEW16iM operation manual
Note: Q means the cutting depth of each cutting feed, it must be specified in the
incremental value. Cutting feed in the second and later must be executed quickly to
move to d point to execute again before the end of last drilling, No.2 parameter in
processing parameter set the cutting feed d, must specify the positive value in Q,
negative is ignored.
Use the auxiliary functions M code to rotate spindle before specifying G83.
Set offset in the location of R point, while specify tool length offset(G43,G44,G49)
in fixed cycle. Tool radius offset is ignored.
For example:
M3 S2000 spindle starts;
G90 G99 G83 X300. Y-250. Z-150. R-100. Q15. F120. drill the first hole, back
to R;
Y-550.; drill the second hole, back to R;
Y-750.; drill the third hole, back to R;
G98 Y-600.; drill the fourth hole, back to original plane;
G80
M30; End.
(25) Boring cycle(G85)
Format:G85 X_ Y_ Z_ R_ F_ L_ ;
X_ Y_: Hole position data
Z_ : the distance(G91) or coordinate(G90) from R
point to hole bottom
R_ : the distance(G91) or coordinate(G90) from
original point to R point
F_ :cutting speed
L_ :repeated times
111
-NEWKER-CNC - NEW16iM operation manual
Note:Along the X and Y axis to locate, move fast to R point and carry out boring
from R point to Z point, carry out cutting feed and return to R point when arriving the
bottom of hole.
Set offset in the location of R point, while specify tool length offset(G43,G44,G49)
in fixed cycle. Tool radius offset is ignored.
For example:
M3 S100 spindle starts
G90 G99 G85 X300. Y-250. Z-150. R-120. F120.bore the first hole, back to R;
Y-550; bore the second hole, back to R;
Y-750; bore the third hole, back to R;
G98 Y-600; bore the fourth hole, back to original plane
G80
M30; End
(26) Boring cycle(G86)
Format:G86 X_ Y_ Z_ R_ F_ L_ ;
X_ Y_ : hole position data
Z_ : the distance(G91) or coordinate(G90) from R
point to hole bottom
R_ : the distance(G91) or coordinate(G90) from
original point to R point
F_ :cutting speed
L_ :repeated times
112
-NEWKER-CNC - NEW16iM operation manual
Note:Along the X and Y axis to locate, move fast to R point and carry out boring
from R point to Z point. The tool will return quickly when spindle stopping at the
bottom of hole.
Set offset in the location of R point, while specify tool length offset(G43,G44,G49)
in fixed cycle. Tool radius offset is ignored.
For example:
M3 S2000 Spindle starts
G90 G99 G86 X300. Y-250. Z-150. R-100. F120. bore the first hole, back to R;
Y-550.; bore the second hole, back to R;
Y-750.; bore the third hole, back to R;
G98 Y-600.; bore the fourth hole, back to original plane
G80
M30; End.
(27) Boring cycle, Back boring cycle(G87)
G87 only works in machine center controller(NEW1000MiC/NEW18iMi),
because it requires that spindle has orientation function(output M61, check M22).
During finishing boring, when tool reaches bottom of hole, spindle stops, and tool will
leave the surface of work piece according to direction defied by Processing parameter
P4.
Format:G87 X_ Y_ Z_ R_ Q_ P_ F_ L_ ;
X_ Y_ : hole position data
Z_ : the distance(G91) or coordinate(G90) from
R point to hole bottom
R_ : the distance(G91) or coordinate(G90) from
original point to R point
Q_ : offset value in hole bottom, direction is
defined by processing parameter P4;
P_ : pause time unit:s
F_ : cutting speed
L_ : repeat times
113
-NEWKER-CNC - NEW16iM operation manual
Note: after positioning in the X and Y axis direction, spindle stops at fixed degree.
Tool moves rapidly in reversed direction(defined by process parameter P4,P5) of tool
endpoint, then position at R point of hole bottom. Then tool moves in direction of tool
endpoint and spindle rotate CW. Boring to Z point in the Z positive direction. Spindle
stops at fixed degree when reaches Z point, tool moves rapidly in reversed
direction(defined by process parameter P4,P5) of tool endpoint, afterwards tool retract
to initial position, tool shifts in tool endpoint direction, spindle rotates CW, go to next
segment.
please use M code to rotate spindle before G87. specifying tool length
offset(G43,G44,G49) during fixed circle while positioning at R point, tool radius
offset will be ignored.
Sample:
N10 M3 S100 ; spindle starts
N20 G90 G99 G87 X300 Y-250 Z-150 R-100 Q5 ; position, boring 1 hole,
then back to R point, orientation at hole bottom then move 5mm
N30 Y-350 ; boring 2 hole, then back to R point
N40 Y-550 ; boring 3 hole, then back to R point
N50 Y-750 ; boring 4 hole, then back to R point
N60 G80
N70 M30
114
-NEWKER-CNC - NEW16iM operation manual
115
-NEWKER-CNC - NEW16iM operation manual
Note: when reaches hole bottom, spindle tops in fixed degree, and tool will
return in revered direction of tool point, which will make sure process surface not be
damaged. Spindle orientation degree is defined by process parameter P5. please use
M code to rotate spindle before G76. specifying tool length offset(G43,G44,G49)
during fixed circle while positioning at R point, tool radius offset will be ignored.
Sample:
N10 M3 S100 ;spindle start
N20 G90 G99 G76 X300 Y-250 Z-150 R-100 Q5 ; position, boring 1 hole, then
back to R point, orientation at hole bottom then move 5mm.
N30 Y-350 ; position, boring 2 hole, then back to R point,
N40 Y-550 ; position, boring 3 hole, then back to R point,
N50 Y-750 ; position, boring 4 hole, then back to R point,
N60 G80
N70 M30
116
-NEWKER-CNC - NEW16iM operation manual
Format:G74 X_ Y_ Z_ R_ P_ K_ S_ L_ ;
X_ Y_ : hole position data
Z_ : the distance(G91) or coordinate(G90) from
R point to hole bottom
R_ : the distance(G91) or coordinate(G90) from
original point to R point
P_ : pause time unit:s
K_ : screw pitch
S_ : spindle rotate speed
L_ : repeated times
Note: The speed of coordinate axis is determined by speed of spindle and screw
pitch when processing thread,it is not a matter with speed F. The system will limit the
speed within maximum feeding speed.
Spindle override switch and feeding axis override switch are invalid when
processing thread.
Should specify the screw pitch K value in every processing program segment of
thread, otherwise not through compile.
Use spindle CCW rotation to carry out tapping. Should process a negative thread in
order to return spindle CW rotation when arriving at the bottom of hole. In the left
tapping period, feeding suspension does not stop lathe until the return action
completed.
Use auxiliary function to rotate spindle CCW before specifying G74. When the
spindle is pulse controlling mode without using auxiliary functions M code.
Set offset in the location of R point, while specify tool length offset(G43,G44,G49)
in fixed cycle. Tool radius offset is ignored.
For example:
N1 M4 S100 Spindle starts;
N2 G90 G99 G74 X300. Y-250. Z-150. R-100. K5 S100
tap the first hole, then back to R point;
N3 G98 Y-550. K5; tap the first hole, then back to R point;
N4 G80;
N5 M30; End;
(31) Right tap cycle(G84)
117
-NEWKER-CNC - NEW16iM operation manual
For example:
M3 S100 Spindle starts.
G90 G99 G84 X300 Y-250 Z-150 R-120 P300 K5 S100
Tap the first hole, then back to R;
Y-550. K5; Tap the second hole, then back to R;
G98 Y-750. K5; tap the third hole, then back to original plane;
G80
M30; End.
(32) Cancel cycle instruction (G80)
Cancel cycle instruction.
Format:G80 ;
Note: Cancel all cycle instruction and execute normal operation.
(33) Pole coordinate instruction(G15/G16)
Pole coordinate instruction inquire user provide radius and angle,the positive
direction of angle is anticlockwise of positive direction of the first axis in plane, and
negative direction is clockwise. Radius may use absolute and increase type(G90,
G91),Angle only use absolute type(G91).
118
-NEWKER-CNC - NEW16iM operation manual
Format :
G15 Cancel Pole coordinate;
(G17/G18/G19) (G90/G91) G16 IP_ ;establish
Note:
1.G17/G18/G19 specify the panel of pole coordinate instruction.
2.G90 specify the zero point of workpiece coordinate system as the origin of pole
coordinate, measure radius from this point.
3.G91 specify current position as the origin of pole coordinate system, measure
radius from this point.
4.IP_ specify the panel axis address and value of pole coordinate system panel
selection.
First axis: Radius value of pole coordinate.
Second axis: Value of pole angle.
5.G90 set the zero point of workpiece coordinate system as origin of pole
coordinate system:
Use programming instruction of absolute value to specify the radius(The distance
between zero point and programming point).When using local coordinate
system(G52), the origin of local coordinate system changes into the center of pole
coordinate system, the angle uses absolute value. As the follow shown:
6.G91 set the current position as the origin of pole coordinate system:
Using programming instruction of incremental value to specify the radius(The
distance between the current position and programming point).The angle use absolute
value.As the follow shown:
For example:
119
-NEWKER-CNC - NEW16iM operation manual
G17 G90 G16 X0 Y0; specify polar coordinate instruction, set the zero point of
XY plane coordinate system as the original point of polar coordinate system;
G81 X100.0 Y30.0 Z-20.0 R-5.0 F200.0; specify distance of 100mm and angle
of 30°;
Y150.0; specify distance of 100mm and angle of 150°
Y270.0; specify distance of 100mm and angle of 270°
G15 G80; cancel polar coordinate system.
(34) Metric system and British system(G20/G21), Feeding method(G94/G95)
Format:
G20 ; inch;
G21 ; millimeter;
G94: minute feeding;
G95: rotate feeding.
Note:The G code must be compiled in the beginning of the program, using
separate program segment to specify before setting the coordinate system.Switch the
unit of input data into minimal inch or millimeter after G code of switching inch or
millimeter specifying,the angle of data input unit keeps unchanged, change the units
of value as follows after switching the inch or millimeter:
120
-NEWKER-CNC - NEW16iM operation manual
121
-NEWKER-CNC - NEW16iM operation manual
Note:the way that G61 back to the point memorized by G25 is by G00.
Pay attention:
1.The address of I and R are specified with radius model. The running distance of
this line and the next line must be greater than the length of beveling or radius of
122
-NEWKER-CNC - NEW16iM operation manual
smoothing, otherwise the system will decrease the length of beveling or radius of
smoothing to minimal running distance of this line and the next line automatically.
2. The two adjacent lines must be 90 degrees.
For example:
0 G54 G0 X-50 Y-50 Z20
N1 M03 S500
N2 G01 G42 D01 X0 Y0 F200
N3 G01 Z-5
N4 X100 I4 ;Beveling4x4
N5 Y40 R6 ;SmoothingR6
N6 X47 R5 ;SmoothingR5
N7 Y70 I3 ;Beveling3x3
N8 X15
N9 X0 Y40
N10 Y0
N11 G0 X-50 Y-50 G40
N12 Z50
N13 M30
(40) Program call(M97 M98 M99)
Unconditional jump
The line running unconditional jump to the line which is specified by P; P4 stands
for using four field of digital specify the program to the entrance line of the calling
main program (mark line).
Subroutine call
In this system the subroutine should be an independent program.
M98 P L unconditional call subroutine instruction. P is to specify the name and
path of subroutine call, L refers to the calling times address of subroutine.
The M98 instruction can be omitted without writing, format: PP file name, the file
name can be hidden files, the first character of hidden files must be "HIDEFILE" at
the beginning. Such as the file "HIDEFILE01", this program in the program area is
not displayed, can use the instruction M98 PHIDEFILE01 or M98 P*01 or PP*01 or
PPHIDEFILE01 when calling.
For example:
P sub/1390 means subroutine is tmp/NC/sub/1390
Note:
1.tmp/NC/ is the system's default path, sub is a folder for the following
2.The subroutine must be a independent program.
3.Method of the main program in USB calls the subroutine in USB: P[or P].
For example:
M98 P[A1234 means calling the subroutine A1234 in USB;
M98 P]SS12 means calling the subroutine SS12 in USB;
PP[FFDE means calling the subroutine FFDE in USB;
It needs to write the path of file if call the subroutine in folder of USB.
123
-NEWKER-CNC - NEW16iM operation manual
There must be space in front of L(Subroutine calling times). Return to the next
program segment of main program when subroutine running to the end.If the program
contains a fixed sequence or repeated pattern, then the sequence or pattern can be
compiled to subroutine to save in memory storage in order to programme easily, the
subroutine can be called by main program which is also can be called by another
subroutine.
M99 is an instruction of ending subroutine return, must have this instruction to end
the subroutine.
Pay attention:
1) M99 in the main program is the same as M02;
2) M99 with P in the main program is the same as M97;
3) M99 returns to main program call in subroutine is in the next line;
4) M99 with P in the subroutine returns to P program line in main program;
Subprogram can call another subprogram(embedded). no matter the program called
is main program or subprogram, it will back to the program line next to main calling
program. When the subprogram is called by the main program, it is consider as
first-level subroutine.
The Sub-program can embedded call as follow :
For example:
The calling instruction can be used for 9999 times in the most.
Conditional wait, jump instruction
The system of M code is used for detecting the external input signal as the
condition, as follows:
Conditions wait
M12 M13 instruction are used to detect the input signal M12, M12 in program
line is to detect M12 input signal is effective to execute the next program line , M13
means to detect M12 input signal is invalid to execute the next program line.The
instruction is in an independent line.
M14 M15 instruction are used to detect the input signal M14, M14 in program
line is to detect M14 input signal is effective to execute the next program line, M15
means to detect M14 input signal is invalid to execute the next program line.The
instruction is in an independent line.
124
-NEWKER-CNC - NEW16iM operation manual
M16 M17 instruction are used to detect the input signal M16, M16 in program
line is to detect M16 input signal is effective to execute the next program line, M17
means to detect M16 input signal is invalid to execute the next program line.The
instruction is in an independent line.
M18 M19 instruction are used to detect the input signal M18, M18 in program
line is to detect M18 input signal is effective to execute the next program line, M19
means to detect M18 input signal is invalid to execute the next program line.The
instruction is in an independent line.
M22 M23 instruction are used to detect the input signal M22, M22 in program
line is to detect M22 input signal is effective to execute the next line program, M23
means to detect M22 input signal is invalid to execute the next program line.The
instruction is in an independent line.
M24 M25 instruction are used to detect the input signal M24, M24 in program
line is to detect M24 input signal is effective to execute the next line program, M25
means to detect M24 input signal is invalid to execute the next program line.The
instruction is in an independent line.
M28 M29 instruction are used to detect the input signal M28, M28 in program
line is to detect M28 input signal is effective to execute the next line program, M29
means to detect M28 input signal is invalid to execute the next program line.The
instruction is in an independent line.
Conditional jump
Plus Pxxxx (number of program line) in front of the M12 /M13 /M14 /M15 /M16
/M17 /M22 /M23 /M28 /M29 instruction. Shifting if the condition success, otherwise
execute the next.
For example: M14 P0120
When the program running to this line and the system detecting the M14 input
signal effectively, program will jump to the 120th line of program (the marking
line),execute the next instruction if the M14 input signal is invalid.
M186/M187 welding follow instruction(optional for Bus type controller):
(1) A axis is rotary axis, parameter set as all reduction, for tool rotation.
(2) C axis is rotary axis, parameter set as all reduction, for tool rotation.
C axis positive direction and XYZ coordinate should be agreed with right
hand coordinate principle.
(3) in order to perform C axis rotation degree between sections in program, the
C axis command speed is G00 speed, and moves nearby.
(4) Command:
M186: open welding follow function
M187: close welding follow function
(5) sample:
G54 G0X10Y60Z30
M3S200
M186 ; open follow function
125
-NEWKER-CNC - NEW16iM operation manual
126
-NEWKER-CNC - NEW16iM operation manual
parameter P56-2, output 0-10V analog voltage, share the same analog output with the
second spindle, but only works when the second spindle is controlled by full pulse
signal.
(44) Macro program instruction(G65,G66,G67)
1.Input instruction: WAT
Waiting for the input port X valid or invalid instruction
Format: WAT+ (-) X
Note: "+" to means the input is effective;
"-" means the input is invalid;
"X" means the input port X00-X55; see the I/O diagnosis;
2.The output instruction: OUT
Set the output port Y is valid or invalid instruction
Format: OUT +(-)Y
Note: "+" means the output is effective;
"-" means the output is invalid;
"Y" means the output port Y00-Y31; see the I/O diagnosis;
3. Variable and assignment: =
1) #0--#20 local variable: local variables only can be used to store data in macro
program, such as a result of operation, when power is off, the local variables are
initialized to the empty. The argument assignment to the local variable when calling
the macro program.
2) #21--#600 global variables: The meanings are the same in different macro
program.
When power is off, the variable #21--#100 is initialized to zero, the variable
#101--#600 data is saved not to loss even if the power is off.
3) #1000-- system variable: the system variables are used to change various data
when reading the running CNC. For example, the current position and the
compensation of tool.
Special note: macro variables #100--#155 and #190--#202 have been used by the
system, users can not use.
The global variable available for user are: #31-#99, #205-#379, #391-#999, the
rest are occupied by system.
#161-#165 can used to display or record XYZAB coordinate in G31/G311.
#201: repeat times of G76(method 1).
#202: tool offset value in Z direction when G76 repeats. Uint:mm,(method 1).
#203: repeat times of G76(method 2).
#204: tool offset value in Z direction when G76 repeats. Uint:mm,(method 2).
4) The macro variables #1001--#1099 corresponds the X axis offset value of lathe
T1--T99(Unit: micron)
The macro variables #1401--#1499 corresponds the Z axis offset value of lathe
T1--T99(Unit: micron)
Could read the value, for example: #200=#1003; To read the X axis offset value of
the third tool into macro variables #200.
Could modify the value, for example: #1003=23000; To modify the X axis offset
127
-NEWKER-CNC - NEW16iM operation manual
128
-NEWKER-CNC - NEW16iM operation manual
Transfer to the program line with sequence number appears error when specifying
beyond the 1-99999, could use expression to specify the sequence number.
For example: GOTO 5, GOTO#100
6.Conditional transfer: IF (Conditional expression) GOTO or THEN
1)IF (Condition)GOTO or THEN
2)IF (condition)
<operation>
ELSE
<operation>
ENDIF
3)IF (condition)
<operation>
ELIF
<operation>
ELIF
<operation>
ENDIF
If the conditional expression specified meet, execute this segment; if the conditional
expression specified does not meet, execute the next segment.
For example:
IF (#100 EQ 2) THEN #100=5
IF (#101 GT 2) GOTO 6
Operation meaning:
EQ equal
NE not equal
GT greater than >
GE greater than or equal >=
LT less than <
LE less than or equal
7. Cycle: WHILE (conditional expression) DO 1, 2, 3
Specifies a conditional expression in front of WHILE. When the specified
conditions are met, execute the program between DO and END. Otherwise, turn to the
program line after END. Cycle of the embed is 3 at the most.
For example:
WHILE (#100 LT 3)DO 1
……
WHILE (#103 EQ 5)DO 2
……
WHILE (#200 GE 20)DO 3
……
END 3
……
END 2
……
129
-NEWKER-CNC - NEW16iM operation manual
END 1
8.Non-mode to call macro program:G65
Format: G65 P- L- <A-B-C-...... Argument passing data >
P is the name of macro program, L is the calling times,A B C are argument, the name
of argument as follows:
#0->A、#1->B、#2->C、#3->D、#4->E、#5->F、#6->H、#7->I、#8->J、#9->K、
#10->M、#11->Q、#12->R、#13->S、#14->T、#15->U、#16->V、#17->W、#18->X、
#19->Y、#20->Z.
Special attention: The address G、L、N、Q、P can’t be used in argument.
For example:
Main program:9000
G00 X0 Z0
G65 P8000 L1 A5 B6
G0 X0 Z0
M30
Macro program:8000
N1 #2=#0+#1
N2 IF (#2 EQ 10)GOTO 4
N3 GOO X#2
N4 G00 Z#1
N5 M99 ;Return
9.Mode to call macro program:G66 G67
G67 instruction is to cancel G66 instruction.The format is the same as G65.
For example:
Main program:9000
G00 X0 Z0
G66 P8000 L2 A5 B6
A8 B1
A9 B10
G67
M30
Macro program:8000
N1 #2=#0+#1
N2 IF (#2 EQ 10)GOTO 4
N3 GOO X#2
N4 G00 Z#1
N5 M99 ;Return
10. information prompt dialog:
Format: MSG(parameter) or MSG[parameter]: parameter is information character
string, pause;
Notice: the instruction also applies to NC program(non-macro program).
When prompting information dialog, system will convert into pause
mode automatically.
Format: STAF(parameter) or STAF[parameter], parameter is information
130
-NEWKER-CNC - NEW16iM operation manual
131
-NEWKER-CNC - NEW16iM operation manual
132
-NEWKER-CNC - NEW16iM operation manual
Function: starting from the center of circle, execute arc interpolation repeatedly in the
way of spiral, till process the circle groove.
Definition of instruction: please refer to fixed cycle instruction in chart3-2.
G110: clockwise rough milling of circle groove;
G111: anticlockwise rough milling of circle groove.
1. I: radius of circle groove, I should be more radius of current tool;
2. W: the first cutting depth in the direction Z axis, the distance down from R
reference plane, it should be more 0.(if the first cutting depth is more than groove
bottom, processing can start from the bottom)
3. Q: increment of each cutting depth in the direction of Z axis.
4. K: increment of width cutting on the XY plane, it should be less than tool
diameter, and more than 0;
5. V: the distance from the end processing plane when declining tool, it should be
more than 0;
6. E: processing margin of rough milling of circle groove.( more than or equal to
0, negative value is absolute)
7.D: number of tool radius, range is 0-32, D0 default as 0, calling the current tool
radius according to number.
Cycle process:
(1) Rapidly locating at the XY plane;
(2) Rapidly dropping to R point plane;
(3) Cutting by depth W by the cutting speed;
(4) Milling the disc of radius I and spread incrementally by K value from the center.
(5) Z axis returns to R reference plane rapidly;
(6) X and Y axis locate at the center;
(7) Z axis drops rapidly by the distance V to end processing plane;
(8) Z axis cuts by the depth Q+V;
(9) Loop step 4-step 8 till processing of disc is finished.
(10) Return to R point.
(11) Return to X Y hole orientation position. Instruction tracking as following.
133
-NEWKER-CNC - NEW16iM operation manual
134
-NEWKER-CNC - NEW16iM operation manual
negative.
D: The number of tool, the range 1~32, D0 default is 0. Take out the radius of the
current tool according the number.
Cycle process:
(1) Orient to the position of XY plane
(2) Move down to the R point plane
(3) Cutting feed to the hole bottom
(4) Process the arc interpolation according to the track of transition arc 1
(5) Whole circle interpolation according to the arc 2, arc 3
(6)Arc interpolation to the starting point according to the track of transition arc 4
(7) Fixed to return R point
The track:
Note:
Q P L invalid under this cycle, but it will keep the value of Q P as the fixed mode
cycle value to save.
Example: Use G112 to accurate milling the circle groove which has rough milled.
G90 G00 X50 Y50 Z50; (G00 orient with rapid move)
G99 G112 X25 Y25 R5 Z-50 I50 J10 F800 D1; (Start fixed cycle, move to the
hole bottom and process accurate milling cycle in circle D1=5)
G80 X50 Y50 Z50; (Cancel the fixed cycle, return from R point plane)
M30;
135
-NEWKER-CNC - NEW16iM operation manual
Note:
(1) The direction of transition arc and finishing milling arc is different when finishing
milling excircle, the interpolation direction means the interpolation direction of
accurate milling arc.
(2) Q P L invalid under this cycle, but it will keep the value of Q P as the fixed mode
cycle value to save.
Example:
136
-NEWKER-CNC - NEW16iM operation manual
137
-NEWKER-CNC - NEW16iM operation manual
Cycle process:
(1) Orient to the position of XY plane
(2) Move down to the R point plane
(3) Move down to W depth
(4) Process straight interpolation to feed tool with the first time feeding value C of
X axis and track of straight 1.
(5) Process whole circle interpolation with track of arc 2
(6) Every time according to the K value to increase to mill the (I+E) radius circle
from outside to the center
(7) Orient Z axis back to R plane
(8) Orient to starting position(XY plane)
(9) Z axis rapid move to the position (unmachined plane + Q)
(10) Cycle 5~9 motion until finish all the cutting depth Z
(11) Fixed return to R point
(12) Return to starting position of XY
138
-NEWKER-CNC - NEW16iM operation manual
Note: P and L are invalid under the cycle, but it will keep the value of P as the fixed
mode
cycle value to save.
Example: Use G117 to rough mill
139
-NEWKER-CNC - NEW16iM operation manual
K: The incremental cutting width in XY plane (should smaller than the tool radius,
greater than 0, take absolute value if negative, it not specify K, the default is K=D tool
radius)
C: The first time feed cutting in direction of X ( C should be greater or equal to the
tool radius +2.0, X axis move positive direction when greater than 0, the workpiece is
located at the positive direction. When smaller than 0, X axis move negative direction,
the workpiece is located at the negative direction)
D: The number of tool, the range 0~32, D0 the default is 0. Take out the current
tool radius according to the number which is specified
Cycle process:
(1) Orient to the position of XY plane
(2) Move down to the R point plane
(3) Move down to W depth
(4) Process straight interpolation to feed tool with the first time feeding value C of X
axis and track of straight 1.
(5) Process straight interpolation with track 2.
(6) Every time according to the K value to increase to mill the rectangle with ( I+2E)
long , ( J+2E) width.
(7)Arc angle of milling rectangle
(8) Z axis returns to R point plane
(9) X and Y axis orient to the starting point plane
(10) Z axis rapid move to the position (end processing plane + Q)
(11) Cycle 4~9 motion until finish all the cutting depth Z
(12) Fixed return to R point
(13) Return to starting position of XY
140
-NEWKER-CNC - NEW16iM operation manual
Note: P L invalid under the cycle, but it will keep the value of P as the fixed mode
cycle value to save.
Example: Use G133 to rough mill
141
-NEWKER-CNC - NEW16iM operation manual
142
-NEWKER-CNC - NEW16iM operation manual
Note: P and L is invalid under the cycle, but it will keep the value of P as the fixed
mode cycle value to save.
Example: Use the fixed cycle G134 to rough milling groove in rectangle
143
-NEWKER-CNC - NEW16iM operation manual
Note: P and L is invalid under the cycle, but it will keep the value of P as the fixed
mode cycle value to save.
144
-NEWKER-CNC - NEW16iM operation manual
145
-NEWKER-CNC - NEW16iM operation manual
Note:
(1) The interpolation direction of transition arc and finishing milling arc is different,
in finishing milling outside the rectangle, the interpolation direction means the
direction of finishing milling arc.
(2) Q, P, L are invalid under the cycle, but it will keep the value of Q, P as the fixed
mode cycle value.
Example: Use the fixed cycle G138 to do finishing milling.
146
-NEWKER-CNC - NEW16iM operation manual
Note:
G10 means open programmable data input, modal instruction;
G710 means close programmable data input, modal instruction;
L address specifies data type, 54--59 matches G54-G59 offset value,
5401--5448 matches G54.1-G54.48 offset value, modal instruction;
P address specifies axis which will be modified, 1-8 corresponds to
XYZABCXsYs, modal instruction;
R address specifies modify value, absolute value;
I address specifies modify value, incremental value;
Sample:
G10 L55 ;open programmable data input, set G55 coordinate offset value
P2 R6 ;Y axis of G55 coordinate offset set as 6mm
L56 X1Y2Z3;set G56 coordinate as X1Y2Z3
P1 I5 ;X axis of G56 coordinate add 1.5mm incrementally
G710 ;open programmable data input
(55) Programmable data input instruction G10
<1> when call L2, it means set external work piece coordinate or G54-G59
coordinate home offset value:
G10 L2 P_X_Y_Z_A_B_C_.....
P=0 means set external work piece coordinate home offset.
Method 1: P0 set external work piece coordinate home offset;
Method 2: when main interface shows G53 status, press F7 to set tool, and
set external work piece coordinate offset.
Method 3: In coordinate interface, set P1-0=53, then P1-1/P1-8 can be
used to set each axis offset value in external work piece coordinate.
When P=1--6, it corresponds to G54-G59 home offset value.
If current coordinate status is G90, then coordinate offset is absolute value. If
current coordinate status is G91, then coordinate offset is incremental value.
When call L2, G10 is non-modal instruction, G10 L2 must be added in each
line.
Sample:
147
-NEWKER-CNC - NEW16iM operation manual
148
-NEWKER-CNC - NEW16iM operation manual
R is parabola equation coefficient, means double of distance between focus and vertex,
allowing postive or negative, unit:mm.
Q is rotary angle of parabola around vertex, CCW direction of right-hand coordinate
system is positive, unit: degree, without Q means no rotary olique angle.
G702 are mode instruction, and RQ are modeless.
Attention: R value allows positive or negative, corresponding to different direction of
parabola, positive R means rightward parabola, negative R means leftward parabola.
C means the system calculates the tool trajectory of radius compensation according
to the last program line and the next program line.
4.5.1 Inside and outside
It calls inside when the included angle of tool trajectory is over 180 degrees which
is built by two program segments, it calls outside when the included angle is between
0 and 180 degrees. As the follows:
Inside: Outside:
149
-NEWKER-CNC - NEW16iM operation manual
A type B type
Straight line->Arc
A type B type
Straight line->Arc
A type B type
150
-NEWKER-CNC - NEW16iM operation manual
151
-NEWKER-CNC - NEW16iM operation manual
(2) The tool motion around the outside corner of obtuse angle(90≤α<180)
The tool center will move to the tool vector radius vertex of the starting point in
next program line.
Straight line->Straight line
A type B type
Arc->Straight line
A type B type
152
-NEWKER-CNC - NEW16iM operation manual
Arc->Straight line
A type B type
D
C
O
A
B
E
40
153
-NEWKER-CNC - NEW16iM operation manual
N3 Z10
N4 G01 Z-10 F200 Start cutting from Z axis
N5 G01 G41 T01 D01 X-20 Y-20 Move to B point
F400
N6 Y20 Tool cuts BC line at the left of the
workpiece
N7 X20 Closed angle transition in C point, cut
CD line
N8 Y-20 Closed angle transition in D point, cut
DE line
N9 X-25 Closed angle transition in E point,cut CB
line is for smooth,move 5mm more
N10 G00 X-40 Y-40 G40 Move outside of circle
N11 G01 G41 X-20 Y-20 F500 Lengthen T01 value along A-B
N12 Z-20 F100 Start cutting from Z axis
N13 G91 G02 I20 J20 Y0 X0 Circle of contact
N14 G00 Z50 End cutting
N15 G40 G00 X0 Y0 Cancel tool compensation
N16 M05 Turn off spindle
N17 M02 Program ends.
Example 2:
154
-NEWKER-CNC - NEW16iM operation manual
Assume to used 3 tools T11 T15 T31. The tool length compensation values were
200 (H1), 190 (H1), 150 (H1), entered into the tool parameter. According to the
processing requirements of parts drawing, the program is as follows:
N1 G54 X0 Y0 Z0 Set workpiece coordinate at
the home point
N2 G90 G00 Z250.0 T11 Tool exchange
N3 G43 Z0 H1 The offset length in initial
position
N4 S30 M3 Turn on spindle
N5 G99 G81 X400.0 Y-350.0 Z-153.0 R-97.0 To drill #1 hole
F120
N6 Y-550.0 To drill #2 hole and return to
initial position
N7 G98 Y-750.0 To drill #3 hole and return to
initial position
N8 G99 X1200.0 To drill #4 hole and return to
initial position
N9 Y-550.0 To drill #5 hole and return to
initial position
N10 G98 Y-350.0 To drill #6 hole and return to
initial position
N11 G00 X0 Y0 M5 Return to the home point and
stop spindle
155
-NEWKER-CNC - NEW16iM operation manual
156
-NEWKER-CNC - NEW16iM operation manual
157
-NEWKER-CNC - NEW16iM operation manual
1.Method A: the coordinate of follow-up axis will not follow, while the fourth axis
can be hidden in screen. When axis parameter P414 is 7, the fourth axis is following
X axis in both automatic and manual mode. When P414 is 8, the fourth axis is
following Y axis in both automatic and manual mode. When P414 is 9, the fourth axis
is following Z axis in both automatic and manual mode.
Besides, when P414 is 17/18/19, the C axis is following X/Y/Z axis in both
automatic and manual mode. When P414 is 27/28/29, the B axis is following X/Y/Z
axis in both automatic and manual mode.
2. Method B: it is applied to specify follow-up axis with instructions in automatic
mode, but not follow in manual mode. In this way, is coordinate following when axis
is following.
M123: turn on the follow-up Y axis following X axis;
M124: turn off the follow-up Y axis following X axis;
M125: turn on the follow-up A axis following X axis;
M126: turn off the follow-up A axis following X axis.
158