GSK928TD Lathe CNC System User Manual
GSK928TD Lathe CNC System User Manual
GSK928TD Lathe CNC System User Manual
Declaration!
z We try to describe all the various matters as much as possible in this
manual. However, it is impossible to give detailed descriptions to all
the unnecessary or unallowable operations because there are too
many possibilities. Therefore, the matters not specially described
herein should be considered as impossible or unallowable.
Warning
z Before installing, connecting, programming and operating the product,
please read this manual and the manual provided by the machine tool
builder carefully, and operate the product according to these manuals.
Otherwise, the operation may cause damage to the product and
machine tool, or even cause personal injury.
Caution
z The functions and specifications (e.g., precision and speed) described
in this manual are only for this product itself. For those CNC machine
tools with this product installed, the actual function configuration and
specifications depend on the designs of the machine tool builders.
Moreover, the function configuration and specifications of the CNC
machine tool are subject to the manual provided by the machine tool
builder.
z Please refer to the user manual issued by the machine tool builder for
the function and meaning of each key on the panel.
All specifications and designs in this manual are subject to change without notice.
III
1)
Caution
2)
Precautions
Note
3Installation
Caution
because the
Avoid
places
where
there
is
powerful
electromagnetic interference.
z
4Connection
Warning
Caution
Note
5Debugging
Warning
6Operation
Warning
Warning
Warning
7Troubleshooting
Caution
Warning
VI
1)
Coordinate system
Incorrect coordinate system may cause the machine not to work as expected
even if the instruction is correct, which may injure the operator, and damage the
machine as well as its tool and workpiece.
2)
end point. Make sure that the path for the tool is safe before G00 rapid traverse
starts, otherwise the tool, the machine and the workpiece may be damaged, and
even the operator injured.
3)
functions and max. controllable ranges, which are subject to change with the
machine. Therefore, some functions described in this manual may not be
applicable to a specific machine tool. If there is any doubt, please read the
instruction for the machine.
4) Functions of the CNC and machine tool
The functions of CNC machines not only depend on CNC systems, but also
power voltage cabinets, servo systems, CNC and the operator panels. It is hard to
explain all the integrated functions, programming and operation. Do not use
integrated instructions not included in the manual until they have been tested
successfully.
VII
Make sure the system input feedrate is suitable for the expected operation.
In general, there is a maximum feedrate for each machine tool. The proper
feedrate varies with different operations. Please refer to the user manual to
determine the maximum feedrate. If the user doest not operate the machine tool at
a proper speed, the machine tool may work incorrectly, thus causing damage to
the workpiece or the machine tool itself, or even cause personal injury.
4 Compensation function
When tool compensation is needed, check the direction and the amount of the
compensation. Improper compensation causes the machine to work wrongly, so
as to damage the workpiece and the tool, as well injure the operator.
5 Manual operation
If the machine is to run in Manual Mode, check the current position of the tool
and the workpiece, and correctly specify the moving axis, moving direction and the
feedrate. During MPG feed, rotating the MPG (previously called electronic
handwheel) with a large override, such as 100%, causes the tool and worktable to
move rapidly. In such a case, the tool and worktable will not stop immediately even
when the MPG is not rotated. Therefore, MPG movement with a large override may
cause damage to the tool or machine, or even injury to the operator.
IX
Safety responsibility
Manufacturer Responsibility
Be responsible for the danger which should be eliminated on the design
and configuration of the provided CNC systems
Be responsible for the safety of the provided CNC and its accessories
Be responsible for the provided information and advice
User Responsibility
Be trained with the safety operation of CNC system operation
procedures and familiar with the safety operation.
Be responsible for the dangers caused by adding, changing or
modifying the original CNC systems and accessories.
Be responsible for the danger caused by failing to observe the
operation, maintenance, installation and storage in the manual.
Thank you for your support when you are using the products
of Guangzhou CNC Equipment Co., Ltd.
Contents
OPERATION
PROGRAMMING
Connection
Appendix
XI
Contents
CONTENTS
OPERATION 3
CHAPTER ONE
OVERVIEW3
CHAPTER TWO
TECHNICAL SPECIFICATION 5
CHAPTER THREE
OPERATION PANEL 7
3.1 LCD 7
3.2 LED Status Indicator 7
3.3 Keyboard 7
3.3.1 Character Key 7
3.3.2 Operation Mode Select Key 8
3.3.3 Function Key 8
3.3.4 Cycle Start Key and Cycle Pause Key (Feed Hold key) 9
3.3.5 Manual Axis Control Key 9
3.3.6 Manual Auxiliary Function Key 10
3.3.7 Edit Key 11
3.3.8 Reset Key 12
CHAPTER FOUR
SYSTEM OPERATION 13
4.1 System Power-on, Power-off, Initial State, Modal State, and Safety Protection 13
4.1.1 Power On 13
4.1.2 Power Off 14
4.1.3 Initial State and Modal State of System and Program 14
4.1.3.1 Initial State and Modal State of System 14
4.1.3.2 Initial State and Modal State of Program 15
4.1.4 Safety Protection 15
4.1.4.1 Hard Limit Protection 15
4.1.4.2 Soft Limit Protection 16
4.1.4.3 Emergency Stop Alarm (Stopping System Emergently) 17
4.1.4.4 Drive Unit Alarm 19
4.1.4.5 Other Alarms 19
4.1.4.6 Power Off 20
4.1.4.7 Reset Operation 20
4.2 Operation Mode Selection for CNC System 21
4.3 Edit Operation Mode 21
4.3.1 Part Program Directory Search 22
4.3.2 Selecting, Creating, Deleting, Renaming and Copying a Part Program 23
4.3.2.1 Selecting and Creating a Part Program 23
4.3.2.2 Deleting a Part Program 24
4.3.2.3 Deleting All Part Programs 24
4.3.2.4 Renaming a Part Program 24
4.3.2.5 Copying a Part Program 25
4.3.3 Part Program Communication 25
4.3.3.1 Sending Part Program (CNCPC, CNCUSB, CNCCNC) 25
4.3.3.2 Receiving Part Programs (PCCNC, USBCNC, CNCCNC) 26
4.3.3.3 Standard Format of TXT Part Program on PC 27
4.3.4 Inputting and Editing the Contents of Part Program 28
4.3.4.1 Inputting Program Contents 31
4.3.4.2 Inserting a Block 32
4.3.4.3 Deleting a Block 32
4.3.4.4 Inserting a Character in a Block 33
4.3.4.5 Deleting a Character in a Block 33
4.3.4.6 Altering Contents of a Block 33
4.3.4.7 Inserting a Macro String 34
4.3.4.8 Storage Capacity for Programs 34
4.3.4.9 Operating No. 253 Program 34
4.3.4.10 Operating No. 254 program 35
XIII
Contents
4.5.5.2 MPG Speed Control 81
4.5.6 Interruption Operation during Program Execution 82
4.5.6.1 Interruption with Keys during Program Execution 82
4.5.6.2 External feed/Spindle hold Knob 83
4.5.6.3 External Start and Pause Signals 84
4.5.6.4 Feeding Device Alarm Function 84
4.5.7 Modifying Tool Offset during Program Execution 84
4.5.7.1 Methods of Modifying Tool Offsets during Program Execution 84
4.5.7.2 Modifying Validity of Tool Offsets during Program Execution 85
4.5.8 Viewing Running Information in AUTO Operation Mode 85
4.5.9 Return to Program Reference Point in AUTO Operation Mode 87
4.5.10 System Reset Key and Emergency Stop Signal Processing in Auto Mode 87
4.5.11 Adjusting Brightness of LCD screen in AUTO, MANUAL Operation Mode 87
4.5.12 Displaying Executing States of M Commands in Auto, Manual Operation Mode 88
4.5.13 Additional Operation in Auto Operation Mode 88
4.6 Parameter Operation Mode 89
4.6.1 Parameter Overview 90
4.6.1.1 Parameter Authority 90
4.6.1.2 Entering an Operation Level 90
4.6.1.3 Parameter Management 90
4.6.2 Modifying Parameters 92
4.6.2.1 Searching Parameters 92
4.6.2.2 Modifying Parameters 92
4.6.3 Parameter hp6 Function 93
4.6.3.1 Parameter Communication and Standard Format 93
4.6.3.2 Parameter Extraction and Solidification 96
4.6.3.3 System Software Upgrade and Internal Memory Update 97
4.6.3.4 Function Command Authority 98
4.6.4 Description of Parameters 98
4.6.4.1 Parameters of Reference Point, Soft Limit __ P000P020 98
4.6.4.2 Parameters of Zero Return Function__ P021P026, P109P111, P406P407 99
4.6.4.3 Parameters of Movement Speed and Acceleration Time __P100P108, P112P119
101
4.6.4.4 Parameters of Drive and Compensation P200P209, P411, P1000P1905 103
4.6.4.5 Parameters of Spindle and Coolant __ P300P317, P326, P329, P341, P410 106
4.6.4.6 Parameters of Tool Post __ P318P325, P408 109
4.6.4.7 Parameters of Chuck and Tailstock __ P327P328, P409 112
4.6.4.8 Bit Parameters of Running and Efficiency__ P400P401 113
4.6.4.9 Relationship between Path and Parameters of Running and Efficiency 115
4.6.4.10 Bit Parameters of Safety and Debugging__ P402P404, P419 116
4.6.4.11 Bit Parameter of Motor Driver__ P405 121
4.6.4.12 Parameters of Other Interfaces__ P412, P330P332 121
4.6.4.13 Other Parameters__ P413P416, P333 123
4.6.4.14 Parameters of Interface __P500P556 126
4.6.4.15 Initial Values of Variables __P600P639 127
4.6.4.16 Parameters of G76 __P336P339 127
4.6.5 Appendix Parameter List 128
4.6.5.1 Reference Parameter List 128
4.6.5.2 Motion Parameter List 129
4.6.5.3 Drive Parameter List 130
4.6.5.4 Auxiliary Parameter List 130
4.6.5.5 Bit Parameter List 131
4.6.5.6 Interface Parameter List 132
4.6.5.7 Variable Initial Value List 133
4.6.5.8 Pitch Error Compensation Parameter List 134
4.6.5.9 List of Parameters Relative to Command Disabling 134
4.6.5.10 List of Parameters Relative to Output Interface Releasing 135
4.6.5.11 List of Parameters Related to Input Interface Releasing 135
4.7 Tool Offset Operation Mode 137
4.7.1 Searching Tool Offset Value 138
4.7.2 Inputting Tool Offset Data from Keyboard 138
XV
CHAPTER FIVE
PROGRAMMING 155
CHAPTER ONE
CHAPTER 2
2.1
2.2
2.3
2.4
2.5
2.6
Character 160
Word 160
Block Number161
Block161
Block Skip Symbol and Comment162
Program Structure163
CHAPTER 3
Contents
3.1.14 M21, M22, M23, M24 User Output Control 171
3.1.15 M91, M92, M93, M94 User Input Control 171
3.1.16 M60~M74 Custom Command 172
3.2 M81, M82, M83User Input/Output Condition Control 172
3.2.1 M82 Output Control and Detection 173
3.2.2 M81Control According to Input Signal State 173
3.2.3 M83Control According to Output Signal State 174
3.3 S function Spindle Function 174
3.3.1 Spindle Motor Controlled by Gear Shift 174
3.3.2 Variable-frequency Motor Controlled by Speed 175
3.4 T Function Tool Function 176
3.4.1 Tool Offset Execution Mode-Moving Slide Carriage 176
3.4.2 Tool Offset Execution Mode- Modifying Coordinates 177
3.5 F Function Feedrate Function 177
CHAPTER FOUR
CHAPTER FIVE
CHAPTER SIX
ALARM MESSAGE261
CHAPTER SEVEN
CHAPTER EIGHT
CONNECTION 307
CHAPTER ONE
1.1
1.2
CHAPTER TWO
CHAPTER THREE
Contents
3.4.3.5 Tool Change Mode 4 325
3.4.4 Tool Signal Check and Parameter Setting 326
3.4.4.1 Default mode (P408_d7=0) 326
3.4.4.2 Table Checking Mode 327
3.5 X3 Motor Interface 328
3.5.1 Signal Definition 328
3.5.2 Technical Specifications 329
3.5.3 Equivalent Circuit 329
3.5.3.1 Drive Unit Alarm Signal Xalm, Zalm 329
3.5.3.2 Enable Signal Xen, Zen 330
3.5.3.3 Pulse Signal and Direction Signal 330
3.5.4 Connection between CNC System and Drive Unit of Compound Stepper Motor 330
3.5.5 Connection between CNC and Drive Unit of Reaction Stepper Motor 333
3.5.6 Connection between CNC and AC Servo Drive Unit 335
3.5.7 Connection Diagram between CNC and Panasonic Drive Unit 337
3.5.8 Connection Diagram between CNC and Yaskawa Drive Unit 338
3.6 X4 Spindle Interface 339
3.6.1 Signal Definitions 339
3.6.2 Converter Technical Specification 339
3.6.3 Encoder Technical Specifications 340
3.6.4 Connection Diagram of Converter Analog Voltage Interface 340
3.6.5 Encoder Interface Principle 340
3.6.6 Encode Interface Connection Diagram 340
3.7 X5 MPG Interface 341
3.7.1 Signal Definition 341
3.7.2 MPG Interface Principle 341
3.7.3
MPG Interface Connection Diagram 341
CHAPTER FOUR
4.1
4.2
4.3
4.4
4.5
Appendix 1
Appendix 2
Appendix 3
Appendix 4
Appendix 5
Appendix 6
Supplementary Explanation353
1.
2.
3.
Chapter One
Overview
OPERATION
OPERATION
OPERATION
2
User Manual
Chapter One
Overview
OPERATION
CHAPTER ONE
OVERVIEW
The GSK928TD system employs a 32-bit high performance CPU and a complex
The product, equipped with a true color LCD with resolution of 480234, uses the
international standard NC language, also known as ISO codes, to write part programs.
It is characterized by the full-screen program editing, Chinese/English operation
interface, real-time track and display of the part graph and simple operation as well as
the high cost performance. It can be matched with stepper motors or AC servo drive
units, and by means of programming, it is capable of machining outer cylinders, end
faces, grooves, tapers, circular arcs, threads, etc.
Technical specifications
9 Link axes: 2 (X, Z axes), short linear smooth interpolation at a high speed realizable;
Interpolation precision: 0.001mm, max. rapid traverse: 15m/min
9 Flexible and convenient programming
9 USB interface communication, fast and easy to operate
9 Least command increment: 0.001mm, electronic gear ratio:199999/199999
9 Realizing controls like automatic tool post, spindle automatic gear shift.
9 Backlash compensation, tool length compensation
9 Exponential acceleration/deceleration control, applicable to high-speed and high-precision
machining
9 Tapping function
9 Available to cut inch/metric thread, end face thread, continuous thread; with thread high-speed
run-out
9 Full-screen part program editing, capable of storing 255 programs; a capacity of 4 MB for No.
253 program
9 True color LCD with a large screen, color profiles selected by parameters
9 Real-time tracking and display of MSTF status during processing
9 Multi-level passwords, convenient for equipment management
9 Parameter backup function
9 Communication of parameters and tool compensation data
9 Support for two-way communication between CNC and CNC, and between CNC and PC; CNC
software upgraded through a serial port
9 Support for two-way communication between CNC and USB; CNC software upgraded through
USB
3
OPERATION
as its control center, thus realizing the movement control with a m-level precision.
User Manual
OPERATION
4
CHAPTER TWO
2.1
TECHNICAL SPECIFICATION
Electronic gear: Command multiplier coefficient 199999, command division coefficient 199999
adjustment
Motion control
Cutting feedrate: Max. 4000mm/min; feedrate override: 16-level real time adjustment from 0150%
(increment 10%)
Manual feedrate: 0mm/min1260mm/min 16-level real time adjustment, or user-defined speed in
real time
MPG feed: Three gears, 0.001mm, 0.01mm, 0.1mm
Acceleration/deceleration: Either exponential or linear acceleration/deceleration can be selected for
cutting feed.
G codes
G codes: G00, G01, G02, G03, G04, G05, (G22/G80), G26, G28, G30, G31, G32, G33, G50, G51,
G66, G67, G71, G72, G73, G74, G75, G76, G90, G92, G94, G96, G97, G98, G99
Capable of machining single /multiple metric/inch straight thread, taper thread and end face thread;
Thread
machining
Thread run-out length, angle and speed characteristics settable, with high-speed run-out processing;
thread pitch: 0.001mm500mm or 0.06 teeth/inch ~ 25400 teeth/inch; taping function available
Spindle encoder: Setting range of encoder lines: 100 p/r5000p/r; drive ratio between encoder and
spindle: 11
Backlash compensation: 0 mm10.000mm
Precision
compensation
M codes
M78, M79, M80, M81, M82, M83, M96, M97, M98, M99, M91, M92, M93, M94, M21, M22, M23,
M24user defined M codesM60M74
T codes
Up to 16 tool numbers (T01T16), control process of tool change is selected by setting tool
post type parameters; tool post type is set to 0 when using a line-up tool.
Speed switch value control mode: The output range of S command 4-gear direct control is S01
S04; or the output range of the 16-gear BCD code is S00S15.
Spindle speed
Speed analog voltage control mode: S commands specify the spindle speed per minute or cutting
control
linear speed (constant surface speed control); the CNC outputs 0V10V voltage to the spindle
frequency converter; spindle stepless speed variation; support for 4 spindle mechanical gears M41
M44
I/O function
Display
interface
Program edit
Edit mode: Full-screen editing, support for incremental/absolute coordinate mixed programming,
program calling, and subprogram multi-level nesting
5
OPERATION
Rapid traverse rate: Max. 15000mm/min; rapid override: F25%, 50%, 75%, 100% four-level real time
Communication
Adaptive driver
OPERATION
6
With USB interface; bidirectional transmission of programs, parameters and tool compensations
between CNC and USB; support for system software upgrade by USB download
GSK DA98 series digital AC servo or DY3 series step drive device, with pulse + direction signal input
Chapter Three
CHAPTER THREE
Operation Panel
OPERATION PANEL
This turning machine CNC system (abbreviated to system or CNC) employs an operation
panel made from aluminum alloy.
3.1
LCD
OPERATION
LCD: Human-machine interface, with resolution of 480234, lattice true color LCD
3.2
keys with a LED indicator. When the indicator lights up, the corresponding function of the key is enabled;
when it goes out, the function is disabled.
3.3
Keyboard
According to the standard of GSK, the function keys with the visible signs below are designed for
the system. The corresponding function of a function key is enabled when it is pressed. The meaning of
each key is as follows:
3.3.1
Character Key
The keys are identified by a sign and letters. The user can finish the corresponding function by
pressing an operation mode select key. The meaning of each key is as follows:
OPERATION
mode, and increases the speed override of G00 command in AUTO operation mode.
mode, and decreases the speed override of G00 command in AUTO operation mode.
and increases the speed override of G01 command in AUTO operation mode.
Feedrate override decrease
and decreases the speed override of G01 command in AUTO operation mode.
manual, the program reference point is also called the program zero point)
Chapter Three
Operation Panel
manual, the machine reference point is also called the machine zero point).
Dry run key When Dry Run is selected in AUTO operation mode to execute commands,
whether M, S, T commands are valid is determined by bit parameter P401_d7. After the Dry
Run state is exited, the coordinate of each axis of the system automatically resumes to the
one before Dry Run.
Single/Continuous key
3.3.4 Cycle Start Key and Cycle Pause Key (Feed Hold key)
In AUTO operation mode, they are respectively used to start and suspend the program execution. The
meaning of each key is as follows:
Cycle Start key starts the program in AUTO operation mode, and then the program is
executed automatically; moves the coordinate axis in MANUAL operation mode.
3.3.5
In MANUAL operation mode, the meanings of manual axis control keys are as follows:
OPERATION
OPERATION
RAPID/FEED key In MANUAL operation mode, it switches between rapid traverse rate and
feedrate.
In MANUAL operation mode, it is MPG control selection and axis selection; in other
operation modes, it is the hp function.
In MANUAL operation mode, it is Z/Y axis selection, which is invalid for 928TD; in other
operation modes, it is the hp function.
3.3.6
The keys below are used for controlling and completing a variety of auxiliary functions of the machine
tool. The meaning of each key is as follows:
Spindle CW rotation
Spindle stop
10
Chapter Three
Operation Panel
Spindle CCW rotation The spindle rotates in CCW direction (viewed from the tailstock to
the chuck)
Coolant control
selects the speed of each spindle gear for the machine tools equipped
with multi-speed spindle motors and control circuits.
Tool change key selects the next tool whose tool number is adjacent to the current one.
3.3.7
Edit Key
Key
Designation
ENTER key
INPUT key
Function
Press this key for confirmation after input.
ALTER key
insertion/alternation;
In other operations, it has specific meanings.
In Edit operation mode, press it to delete words, blocks or a
DELETE key
whole program.
In other operations, it has specific meanings.
ESCAPE
key
HOME key
END key
OPERATION
Designation
Function
In AUTO operation mode, it means Single/Continuous
SINGLE
BLOCK key
program execution.
In EDIT operation mode, it means Single/Continuous analog
program execution.
OPERATION
Cursor move
h p0
hp 1
keys
Page
change keys
3.3.8
Reset Key
Reset
12
Chapter Four
CHAPTER FOUR
SYSTEM OPERATION
This chapter describes in detail the operation and precautions of each functional module of the CNC
system. Before operating the machine, please thoroughly read this chapter.
4.1
System Power-on, Power-off, Initial State, Modal State, and Safety Protection
There is no power switch on the operation panel of this CNC system. The user may install a power
switch if necessary, so as to prevent the system from electric impact.
Before turning on the system, please confirm that:
1)
2)
3)
Turn on the system power switch, then the system displays the initial screen as shown in fig. 4-1. In
this state, press any key other than
The following steps are completed in order after system power on.
z
Note
1) Do not press any key on the operation panel during system power on. If the system enters
the key test interface, please press RESET key to exit.
13
OPERATION
4.1.1 Power On
Power Off
OPERATION
In general, if it is the first time that the system is powered on, self-check and
initialization should be performed first.( This procedure is done by the machine tool
builder rather than by the user. Otherwise, the parameters set by the machine tool
builder may be lost. )
For the procedures of turning off the power of the machine, please see the user manual
provided by the machine tool builder.
2)
4.1.3
4.1.3.1
The initial state of the system is the specific state to which a function is automatically set upon
system power on; therein, none of the auxiliary functions has actual output.
The modal state of the system is the state that a function remains in after the system executes this
function.
Initial state and modal state of the system:
System state
System machine coordinate system
System tool nose coordinate system
Cutting feedrate: F
Frequency-conversion spindle speed: S
Spindle gear
Manual slow feed/rapid feed state
Feedrate override
Rapid override
Spindle state
Coolant state
Chuck state
Lubricant state
T tool number state
Tailstock state
14
Modal state
Keeps until being changed.
Keeps until being changed.
Keeps until being changed.
Keeps
Keeps
Keeps
Keeps
Chapter Four
4.1.3.2
The initial state of the program is the state automatically set by the system by means of initialization
before a machining program is executed; i.e., the initial default state for the default programming word
and speed word when the system executes the first command of the machining program.
Program initial states of the system are as follows:
The non-modal commands are only effective in the current block. They must be specified each time
they are used.
Note
In AUTO operation mode, when the system executes the first command, or executes the first
command after executing M20, or selects a block between the first lock and the last block as its first
command, it will automatically resumes to the program initial state.
4.1.4
Safety Protection
A series of safety protection is set for the CNC system, so as to protect the operator as well as the
machine tool. (Y axis function is invalid)
4.1.4.1
For the machine tools mounted with limit switches, the system can detect the switches. When the
slide carriage of the machine tool moves and presses down a limit switch, the system will stop feeding
without turning off the other auxiliary functions, and then the program execution is stopped, with the hard
limit alarm being displayed on the screen.
After the stroke limit alarm is issued, the user can select MANUAL operation mode and then press
the axis move key that moves the carriage in the reverse direction to exit the stroke limit, then the alarm
displayed on the screen will disappear.
Explanation
15
OPERATION
The positive stroke limit detection of X, Y and Z axes shares the same pin +TL, and the negative
limit detection shares the same pin TL; If a positive hard limit alarm occurs, all the axes cannot
be moved in positive direction other than in negative direction; and vice versa.
2)
When the limit switch hits the limit stopper, the limit signal is generated; The length of the
effective part of the hardware stopper signal should be greater than 300 mm, to prevent the
signal effective area being exceeded.
3)
If the limit emergency stop mode is set by bit parameter P402_d7=1, there may be a large
OPERATION
error between the coordinates displayed on the system and the actual ones after the limit
stopper is hit. In such a case, the machine coordinates must be readjusted.
Related parameters
Bit parameter: P402_d7, P404_d6, P404_d1.
Therein: Bit parameter P402_d7 sets the modes of the hard limit alarm;
Bit parameter P404_d6 sets whether the hard limit alarm is detected;
Bit parameter P404_d1 sets the level of the hard limit alarm for each axis.
When bit parameter P404_d1=1, the alarm is set to high level. The positive limit switch +X, +Y or +Z
of each axis should be a normal closed contact, and connected to X/Z/Y positive limit input interface +LT
in series (an alarm occurs if open ); the negative limit switch -X, -Y, -Z of each axis should also be a
normal closed contact, and connected to X/Z/Y negative limit input interface -LT in series; it is
recommended that the user select a normal closed contact for the hard limit of each axis. The
connection is shown as the figure below:
When bit parameter P404_d1=0, the alarm is set to low level. The positive limit switch +X, +Y or +Z
of each axis should be a normal open contact, and connected to X/Z/Y positive limit input interface +LT in
parallel (an alarm occurs if closed ); the negative limit switch -X, -Y, -Z of each axis should also be a
normal open contact, and connected to X/Z/Y negative limit input interface -LT in parallel; The
connection is shown as the figure below:
4.1.4.2
Chapter Four
Mechanical soft limit protection is used to limit the movement range of the machine coordinates, in
order to prevent the slide carriage from moving beyond the range. If the machine position (machine
coordinates) exceeds the range, the mechanical soft limit alarm is issued.
Method of releasing the overtravel alarm: In MANUAL operation mode, move the carriage in the
opposite direction (e.g. if the positive overtravel occurs, move the carriage in the negative direction; and
vice versa).
4.1.4.3
There is an external emergency stop input terminal ESP among the system interfaces. The user
should connect the normal closed contact of the red mushroom emergency button on the panel to the
terminal. In case of emergency, press the Emergency Stop button to cause the system to enter
emergency stop state, then the system will stop all the feed and turn off the spindle and cooling, issuing
the alarm Emergency Stop (If there are other popups displaying on the screen, the emergency stop
function is executed firstly, then the alarm Emergency Stop is displayed later).
After the cause of emergency stop is removed, press the Emergency Stop button in the direction of
arrow, then the button will lift automatically, cancelling the emergency stop signal.
When the system is in the emergency stop state, if the external emergency stop signal has been
cancelled, press RESET key to exit the state and return to the operation mode before emergency stop.
When the system is in the emergency stop state, if the external emergency stop signal is not
cancelled, it is forbidden to operate the system in Manual, Auto and Diagnosis operations; but the user
17
OPERATION
Tool nose software limit protection is used to limit the movement range of the tool nose coordinates,
is shown as follows:
OPERATION
1) During emergency stop, the system stops all the feed; program execution stops; the spindle
stops and the cooling and lubricating are turned off.
2) During emergency stop, the system automatically sets the states of chuck and tailstock saved in
the memory to M11 and M79 respectively. After the emergency stop is released, the states of
the system chuck and tailstock are M10 and M78 respectively when their foot switches are
pedaled for the first time.
3) During emergency stop, if the system is executing commands such as tool change, chuck,
tailstock or gear shift, the execution will be stopped immediately (tool post positive/negative
rotation signal is cancelled, and whether chuck and tailstock are cancelled depends on the
parameter setting); here, the system assumes that the tool post, chuck, tailstock and gear are in
uncertain positions, and issues red flashing. Only after the emergency stop alarm is released,
can the system recover to the normal state by re-performing the operation successfully, or by
turning off the system and then on.
4) During emergency stop, the interface output signal of MDLY keeps unchanged. How to process
the interface control signals other than those of MDLY, spindle, coolant and lubricant is
determined by parameters. If P403_d3 is set to 0, only the output signals of the spindle, coolant
and lubricant are turned off; if P403_d3 is set to 1, all the interface control signals including the
chuck and tailstock are turned off.
5) After the emergency stop alarm is released, if the system is in the Dry Run state in Auto
operation mode, it will exit the Dry Run state; if the system is in Rapid Traverse state in
MANUAL operation mode, it will automatically enter Feed state; the set F value keeps
unchanged; and the spindle analog voltage keeps unchanged; the states of other functions
except the above are in program initial states.
6) After the emergency stop alarm is released, the time counting of low-pressure detection function
and automatic lubricating control function will be restarted.
Special attentions
1 The standard Emergency Stop function executed by the system is the function of turning on or
turning off the system output signals uniformly. The user can set it as follows: In Manual/Auto
operation mode, after Emergency Stop button is pressed, and the system executes the standard
Emergency Stop function, the system executes an additional M74 custom command once (only
when in MANUAL/AUTO operation mode and when there is a solidified M74 command in
the system, the execution is available). This function is applicable to some special machine
components and is used only when some of the output signals are required to turn off and some
18
Chapter Four
maintained. If there is an alarm occurs during the execution of the M74 custom command, the
execution is stopped. After the emergency stop button is pressed, if the solidified M74 custom
command is being executed, the system will automatically terminate the command when it
proceeds to an axis move command or tool change command,
2 In Manual/Auto operation mode, when the M74 custom command can be executed in Emergency
Stop state by setting a parameter (P412_d1=1), there is a prompt +M74 ( indicating the M74 is
3 For the programming, debugging and solidification of M74 custom command, please see Chapter
Eight Custom Command Programming in this manual.
4 Be careful to use M74 function during Emergency Stop. The function is only applicable to some
special machine tools.
Relative parameters
When bit parameter P404_d7 is set to 0, the external emergency stop signal is valid; when it is set
to 1, the signal is invalid.
When bit parameter P403_d3=0: If the emergency stop alarm is valid, the system only turns off the
output signals of the spindle, cooling and lubricating.
When bit parameter P403_d3=1: If the emergency stop alarm is valid, the system turns off the
output signals of all auxiliary functions.
Parameter P404_d7 is set for the convenience of system debugging. In the on-line state, it must be
set to the valid state. Otherwise, it cannot provide protection.
Parameter P412_d1 sets whether M74 custom command is executed in the emergency stop state.
4.1.4.4
When the CNC system is connected to the alarm output signal of a drive unit, and the drive unit
alarm is issued, the system will automatically stop all the feed, and prompt Z/X axis drive unit alarm on
the screen. All the axes, as well as the program execution, are stopped immediately. Here, check the
drive unit and relative components to remove the fault and then power on the system after power-off.
If the alarm occurs during movement, there may be a large error between the system displayed
coordinates and the actual ones. Therefore, the user must readjust the machine coordinates.
In MANUL operation mode, if the alarm occurs, all the axes movement is stopped.
In AUTO operation mode, if the alarm occurs, it is forbidden to execute the program.
Relative parameters
When bit parameter P404_d5 is set to 0, the drive unit alarm is detected.
Bit parameter P405_d4, P405_d3 and P405_d2 set the alarm level of the drive unit respectively for
Z, X and Y axes.
4.1.4.5
Other Alarms
When other alarms are issued in the system, they are displayed on the screen. Here, the user can
handle them according to prompts and the countermeasures described in Chapter Six Alarm Message.
19
OPERATION
being executed) added on the emergency stop window (if there is a solidified M74 custom
Power Off
In case of emergency during machine running, the user can turn off the machine power immediately,
so as to prevent accidents.
However, if the power is turned off during coordinate axes movement, please note that there may be
a large error between the system-displayed coordinates and the actual ones after power-on. The user
must readjust the coordinate coordinates by performing machine zero point return or other means, in
OPERATION
order to make the system displayed coordinates coincide with the actual ones.
4.1.4.7
Reset Operation
When abnormal system output or coordinate axis move occurs, press RESET key to cause the
system to enter Reset state as follows:
1) All axes decelerate to stop.
2) Bit parameter P403_d2 sets whether M function (spindle, coolant) output is valid.
3) Automatic operation ends, and modal functions and states are kept.
4) The system is in G00, G97, G98 state; F value, as well as the spindle analog voltage output,
keeps unchanged.
5) The system terminates the operation in progress, and returns to the initial interface of the current
operation mode.
Special attentions
1) The standard Reset function executed by the system is the function of turning on or turning off the
system output signals uniformly. The following function can be set: In Manual/Auto operation,
after Reset button is pressed, and the system executes the standard Reset function, the system
executes an additional M73 custom command (only when in Manual/Auto operation mode and
when there is a solidified M73 command in the system, the execution is available). This
function is applicable to some special machine components and is used when only some of the
output signals are required to turn off and some maintained. If there is an alarm occurs during the
execution of the M73 custom command, the execution is stopped.
2) In Manual/Auto operation mode, when the M73 custom command can be executed in Emergency
Stop state by setting a parameter (P412_d2=1), there is a prompt +M73 ( indicating the M73 is
being executed) added on the reset window (if there is a solidified M73 custom command in the
system).
3) For the programming, debugging and fixing of M73 custom command, please see Chapter Eight
Custom Command Programming in this manual.
4) Be careful to use M73 custom function during Reset. The function is only applicable to some
special machine tools.
Relative parameters
20
Chapter Four
When bit parameter P403_d2=0:
After pressing Reset key, the system will turn off the output
signals of the spindle and cooling.
After pressing Reset key, the system will keep the output states
of the spindle and cooling before Reset.
Parameter P412_d2 sets whether M73 custom command is executed during Reset.
to switch different modes directly, thus realizing simple, convenient and visible operation.
The screen shown in Fig. 4-1 is displayed after system power-on. If no key is pressed, the screen
keeps unchanged. When a key on the panel is pressed, the system enters Edit operation mode.
4.3
Edit operation mode is to operate the workpiece programs by using the system operation
panel. For each step, the system provides corresponding intelligent prompt messages. Also, the user
can press the hp2 key on the upper right corner of the system to view the list of the system operation
keys in Edit operation mode.
The explanations for the input format and examples about related setting and operation in the
manual are as follows: The meanings and use of the function keys to be pressed are described at the
beginning of the manual; the letter keys, numeric keys to be input are indicated by an underline; the
prompt messages of the system are indicated by a rectangle.
When setting or inputting an item, or during the man-machine dialogue, if ESC key is pressed
before confirmation, the current operation is quit.
mode consists of two main pages, which are the program directory search page and program editing
page. The program directory search page is shown as Fig. 4-2.
21
OPERATION
The operation modes are directly selected by the operation mode keys in this system. It is available
[EDIT] DDIRECTORY
Middle
Pro.Size 1KB
Name
Size
Remark
% 000
1KB
G00
% 001
1KB
G0
% 002
1KB
G50
% 020
1KB
% 032
1KB
G50
X0
X115
Latest
Name
Size
Top
Remark
Latest
Upper middle
Z0
Z155
Popup window
[Key
prompt]
X150 Z25
Z35
Free memory
X250
OPERATION
Lower
middle
Program count
EDIT
JOG
394KB
AUTO
Bottom
PARA
DIAG
OFFT
4.3.1
The part program directory search page displays the number of programs stored in the system. All
the programs can be arranged in the following four orders:
1) Sort by name: Sorting by the program numbers from the top to bottom, and from the left to right;
2) Sort by size: Sorting by the size of the programs, from top to bottom, and from left to right;
3) Sort by remarks: Sorting by the size of the first 12 strings in the first line of the programs, from
top to bottom, and from left to right;
4) Sort by latest: Sorting by the time that the programs are input, from top to bottom, and from left to
right.
and
Chapter Four
4.3.2
It means the operation of selecting, creating, deleting, renaming or copying a part program.
1. Up to 255 programs can be operated, from number %000%254. When operating a program
number bigger than 254, the system prompts E160 Input program number error.
2. If there are no part programs in the system, or it is the first time that the system is used, the
system automatically creates and selects No. %000 program as the current program. If there are
part programs in the system, the system arranges the programs which existed before last
power-off according to their numbers.
3. The system supports multiple inputs, with the leading zero omissible. E.g. inputs the program
with name %003. Press INPUT key, and then input 0 0 3; or 0 3; or 3 .
4.3.2.1
The steps of selecting a part program or creating a new part program are as follows:
Press INPUT key in EDIT operation mode;
Input the program number to be selected using the keyboard, or input a program number not
included in the program directory as a new program number;
Press ENTER key;
Then the part program selection or creation is completed. The screen displays the contents of
the program, and the system enters the program edit page.
Note
1) After selecting a program, the user can change the desired program only through the above
steps; once a program is selected, it keeps unchanged even if the power is turned off.
2) If the input part program does not exist in the program directory, a new program with the input
program number is created and taken as the current program.
Example
Example 1: The procedures of creating a part program with number %20 when it is not included in
the program directory:
Press keys: INPUT 2 0 ENTER. The new program with name %020 is created,
and the system enters program edit page.
Example 2: Procedures of selecting the part program with number %001 when it is included in the
program directory:
Press keys: INPUT 1 ENTER. The program with number %001 is selected, and the
system enters program edit page.
23
OPERATION
Note
ESC-Exit Deletion;
Press ENTER key to delete the part program whose number is input; or press ESC key to cancel
the deletion, and returns the control to the Edit operation mode.
OPERATION
Note
1) If the program to be deleted does not exist, the system prompts E100 The program to be
deleted does not exist
2) If the program to be deleted already exists: when it is not the current program, it is deleted from
the program list; when it is the current program, it is deleted from the program list, and the
system takes the program with the smallest number on the list as the current program; when
there are no programs existing after deletion, the system automatically creates an empty
program with name 000 as the current program.
Example
Example: The procedures of deleting the program with number %003 are as follows:
Press keys: ENTER
Press DELETE key, then the system prompts: ENTER-Confirm to delete all programs
ESC-Escape deletion;
Press ENTER key to delete all the programs; press ESC key to cancel the deletion, and return
the control to the Edit operation mode.
Note
After all the programs are deleted, the system will create an empty program with a name 0000 as
the current program.
4.3.2.4
The part program renaming is to replace the name of the current program by a new one. The new
program is taken as the current program. The procedures are as follows:
24
Chapter Four
Input a program number which does not exist in the program directory, and press ALTER key to
Example
Example: The procedures of renaming the current program 000 as 005 are as follows:
5 ALTER. Then the renaming is completed.
Example
Example: Procedures of copying the current program 000 to program 005 are as follows:
Press keys: INPUT
4.3.3
receiving. The part programs can be sent from system to computer (CNCPC), from system to U disc
(CNCUSB), or between two CNC systems (CNCCNC); in addition, the system can receive the part
programs from a computer (PCCNC), from another system(CNCCNC), or from a U disc
(USBCNC).
When pressing hp6 key on the program directory search page, the system prompts the part
program communication interface.
4.3.3.1
Before transferring the files, set the communication baudrates of parameter P414_d7 and
P414_d6. The communication baudrate is decided by the setting of the sender. Setting range:
25
OPERATION
Output the part programs stored in the system to an external computer or CNC system:
Connect the communication cable with the system power OFF, then turn on the system.
On program directory search page, press keys: hp6 R hp2 in order;
OPERATION
Enable the external computer or CNC system to remain in receiving state; (For details, see
Chapter Five RS232 and USB System Communication)
The system sends the selected programs, and displays the progress bar at the same time till
the sending is completed; if multiple programs are selected, the system sends the programs
one by one in the ascending order according to their program numbers.
It is possible to interrupt the sending by pressing ESC key.
Mode 2: USB communication;
1 After entering USB communication mode, the system first checks whether a U disc has been
inserted. If no U disc is inserted, the system displays a prompt message box, prompting No USB
device inserted . If a USB disc containing a folder named C001PRO has been inserted, and
there are CNCxxx.TXT files in the folder, the files will be listed on the USB file directory box. If
there are no CNCxxx.TXT files in the C001PRO folder, the system prompts: USB device
specified directory: C001 PRO has no programs. If the folder namedC001PROdoes not exist in
the U disc, the system prompts: No specified directory in USB device: C001 PRO.
2 Output the part programs stored in the system to the U disc:
The system automatically opens the file directory of the U disc (when the U disc contains a
folder C001PRO, and the folder contains files CNCxxx.TXT). If the folder named
C001PRO does not exist in the USB root directory, the system will create one.
Press ENTER key to send the programs, and select the send mode according to the system
prompts.
The system sends the programs according to the selected mode, and displays the progress
bar till the sending is completed;
4.3.3.2
Set the baudrate and communication port of the communication software; (for details, see
Chapter Five RS232 and USB System Communication in Part Programming)
26
Chapter Four
2)
Input the part programs stored in the external computer to the system; or transfer programs
between CNC systems; the procedures are as follows:
Connect the communication cable with the system power OFF, then turn on the system;
On the program directory search page, press keys: hp6 R EDIT in order;
After confirming the system is in receive state, input the programs stored in the external
It is possible to stop receiving programs pressing ESC key in the progress of receiving.
Press ENTER key to receive programs, and select the send mode according to the system
prompts;
The system receives part programs according to the selected receive mode, and displays the
progress bar until the receiving is completed;
Press ESC key to exit the U disc.
Note
If the name of a program to be sent to the system already exists in the system, the system prompts
whether to replace the original one. Once replaced, the original program will be replaced by the
sent program.
4.3.3.3
On a personal computer, the part program can be edited using TXT or LST text. However, the file
name and its contents must be edited in the standard format required in the system, so that the program
can be correctly sent to the system. The specifications are as follows:
1)
On a personal computer, the user should name the part program file with suffix TXT or LST, e.g.
CNC008.TXT; It is recommended that the user use suffix TXT for the convenience of the part
program operation on the PC.
2)
The first line of the TXT file must indicate the program number, in the format of % XXX , i.e. an
one-digit, two-digit or three digit number behind the percent, within a range of 0~254. No other
contents can be contained in the first line. The range of the program number must be within
0~254. Otherwise, the system fails to receive the programs and prompts corresponding error
27
OPERATION
The number of the program transferred by the USB is the Arabic numerals xxx of
OPERATION
the program should be the same as the Arabic numerals XXX in CNCxxx.TXT in the folder
C001PRO of the U disc root directory.
3)
The second line and the following are blocks. The format of a block must accord with the
requirement, and each block, ended with ENTER key, cannot contain more than 250 characters.
Otherwise, the system reports an error message Block overlong in received program
The size of the TXT file cannot exceed the limit of the program storage capacity of the system.
Standard format of part program communication on PC:
TXT file format
%099
N0000
G50 X100
Z100
M20
R5
Setting coordinate
system
Rapid positioning
Linear cutting
Circular cutting
Tool change
Explanation
1. When the system is receiving a program,
the program name %099 cannot be
omitted; the first line must be a
three-digit number between 0~254.
2. N**** is the line number of a block.
Blocks without N**** have no line
numbers.
3. The beginning of each line is a space.
4. For the block with a line number, there
is a space between the line number and
the command.
5.
/ indicates the block is skipped;
6. ; The contents behind it are comments.
28
Chapter Four
EDIT
F80
Lines 11
Size 1KB
hp2
Top
Popup
window
Fig. 4-3
OPERATION
N0000 G0 X100
N0010 X0
N0020 X100
N0030 X0
N0040 G1 X100
N0050 X0
N0060 X100
N0070 X0
N0080 X100
N0090 X0
N0100 G1 Z100
N0120 M20
Middle
Program editing
After pressing hp2 key, the system prompts Program editing Help message prompts,
introducing the functions of the help keys to be used.
2.
When bit parameter P416_d0 is set to 1, it is forbidden to edit or alter a program, and the
system displays alarm message E174 Part programs are locked, and forbidden to
modify; when it is required to edit and alter a program, set the bit parameter P416_d0 to
0.
By pressing a cursor key once, the cursor moves up (or down) vertically till it reaches the
uppermost (or lowest) line, taking the current cursor column value as the reference movement
value. By holding the cursor key, the cursor moves up (or down) continuously till the first (or last)
block is reached, or till the key is released. When using the string search function (hp5), the two
keys are used for retrieving the desired string up and down.
2)
By pressing a cursor key once, the cursor moves one character towards left (or right). By
holding the cursor key, the cursor continuously moves to the left (or right) till the first (or last)
character of the block is reached, or till the key is released.
29
Line Home key: The cursor rapidly moves to the beginning of a line or the beginning of
the first word of the line. When repeating pressing the Line Home key, the cursor
location is switched between the beginning of a line and the first word of the line. By
pressing the Line Home key and Delete key together, the current line is deleted.
Line End key: The cursor rapidly moves to the end of a line.
OPERATION
Insert/Alter key:
Changing the edit input mode: By pressing the ALTER key once, the input mode
toggles between Insert and Alter, with the cursor displaying in different shapes. In
Insert mode, the cursor is a flicking underscore, while in Alter mode, the cursor
becomes a flicking and highlighted block cursor.
Input key: It switches the program edit state to the program directory search state,
displaying Please input program number;.
Enter key:
It inserts a new line when the cursor is located at the beginning or the end of a line,
with the cursor moving to the new line; when the cursor is located in other position, it
moves to the beginning of the next block by pressing Enter key.
30
Chapter Four
hp4 key: On program edit page, the user can control the movement of the cursor using
10
number of the current program is 253 or 254, the operation of the program with
OPERATION
>
First key
value
Second
key value
X
Z
Third key
value
First key
value
Second
key value
Third key
value
()
>
Space
<
and
or
Panel display
( )
and
<
then
else
4.3.4.1
Note:
if
then
else
or
Note
OPERATION
key.
3 The first column of each line is a space, which is created automatically by the system; the
number of the first column is 1, and that of the last column is 252; Only the cursor rather than the
character can be displayed at the first and last column; up to 250 characters can be edited in one
block.
For two adjacent blocks, move the cursor to the end of the first block or to the beginning of the
second block;
By pressing Enter key, the system automatically creates a new block number between the
current block and the next block (the increment of the sequence number is the integer which is
1/4 of the value set in parameter P333. If the numbers are not enough, modify the number of the
next block.) and leaves one blank line.
After the input, if it is necessary to insert multiple blocks, press ENTER key; if only one block is
required to insert, this operation is unnecessary.
Example
Example: The operation procedures of inserting a new block M3 between block N0020 and block
N0030 are as follows:
Move the cursor to the end of block N0020 or to the beginning of block N0030; Press Enter
key, then input M3 for the new block.
4.3.4.3
Deleting a Block
The procedures of deleting all contents (including the block name) in one line are as follows:
32
Chapter Four
Pressing ALTER key to switch the input mode to Insert mode, i.e. the cursor is displayed as an
underscore;
Insert the desired contents before the character where the cursor is located.
Note
According to the requirement of the system, a space must be left between two words (a word means
a letter followed by digits) to separate them. The space can be created automatically during program
editing. However, it may not be created during insertion operation. In this case, the operator is required
to input the space, in order to keep the program complete.
Example
Example: The procedures of inserting
X0.0
between
and
G0
G0
X10.0
behind
X , then input
Z0.0
Press DELETE key to delete the character where the cursor is located.
In Alter mode: Procedures of directly altering the contents where the cursor is located:
Press ALTER key to switch the cursor to Alter mode (the character where the cursor is located is
highlighted by a rectangle);
Input the new contents, then the cursor moves to the next character.
Example
33
OPERATION
Move the cursor to the character behind the position where the contents are to be inserted;
in block N0020
G0
X0.0
Z0.0 to
are as follows:
Switch the input mode to ALTER mode, move the cursor to the bottom of X , and then input
After alteration, the block becomes N0020
G0
U 0.0
U.
Z0.0.
Press hp6 key to display on the screen the macro string list;
OPERATION
4.3.4.8
The system provides 400k storage capacity for storing programs from No.0~ No.252, and No.254.
Therefore, the size of a single program can reach 400K theoretically. For No.253, the system provides
another 4 M storage space.
Explanation
1) The screen displays the remaining program storage capacity, as well as the remaining storage
size of the system program area.
2) If the size of the program (No. 0252, 254) being edited currently is greater than the max.
storage capacity (400k), the program cannot be saved. and the system prompts that the program
storage space is full: Edit area overflow. If the remaining storage space is insufficient, delete
some old programs.
3) The edit storage space for No. 253 program is 4 M, but the program cannot be saved.
4) If the size of a program is large, it takes longer time to save the program.
4.3.4.9
As the size of No. 253 program can be up to 4M, the operation of this program is special. The
procedures are as follows:
1 The No. 253 program cannot be saved into the system. It is lost after power-off.
2 When No. 253 program is changed to other programs, the No. 253 program cannot be saved
neither, i.e. it will be lost;
3 The communication of No. 253 program is unavailable by using USB or RS232 mode.
Note
1)
34
Chapter Four
2)
4.3.4.10
After selecting No. 254 program on program edit page, press hp5 key, then the help information
about how to edit, solidify and read No. 254 program appears. The operation procedures are as follows:
Key 5, for editing and solidifying No. 254 program:
1)
When compiling No. 254 program, if the compiling fails, the system issues an alarm; if the
OPERATION
2)
It reads No. 254 program saved in the solidification area (FLASH) to the edit buffer area, to
update the program.
Key 6, for deleting the custom command of No. 254 program
3)
If there is a custom command in the solidification area, the command will be displayed on the
screen. After the custom command in No. 254 program is deleted, there is no custom command
in the system solidification area; the help information dialog box for No. 254 program prompts
No custom command in solidification area
Press ESC key to exit the current state.
4)
4.3.5.1
When hp5
are input on program edit page, the system prompts Command help introduction
interface; this function is capable of retrieving all the commands of the system, including G, M, S, T, F
commands. The operation procedures are as follows:
1) Press G, M, S, T, or F key to respectively view the corresponding explanation for the G, M, S, T or
F command.
2) Press INPUT key, then input the command number to be searched; the system displays the
meaning, function, format as well as explanation for the command number.
Example
INPUT
G 05
35
Input hp5
2 on program edit page, then the system prompts Please input relative arc parameters
Example
OPERATION
As shown in the figure below: Coordinates of start point A (Z60X10), coordinates of start pinot B
(Z40X30).
[Please input relative arc parameters] (Explanation: X direction is the radial programming,
P413_d6=1 )
[Start point coordinates] Z 60
10
30
[Circle radius] R 20
After inputting the data above, the system will automatically calculate the following data:
CW circle center 1:
Z 40 X
10
Z 60
30
Z -20 X
Z 0
-20
20
36
Chapter Four
4.3.5.3
Input hp5 3 on program edit page, then the system rearranges the programs, with the rearranged
program numbers increased based on the multiple of 10. (Parameter P333 is set to 10)
Note
4.3.5.4
Replacement of Strings
Input hp5 R on program edit page, then the system prompts String replacement page; perform
the operation according to the system prompts. After the replacement of the string, all the characters to
be replaced are replaced from the current character where the cursor is located to the last character.
4.3.5.5
Cursor Position
The string search function provided by the system is used for locating the contents to be searched,
which is convenient for the user to search the desired contents. Press hp5 key on program edit page,
then the system prompts the functions of
1)
Press
key to move the cursor to the first page of the current program.
2)
Press
key to move the cursor to the last page of the current program.
3)
After pressing F key, input the string to be searched in the current program, then press ENTER
key. After that, the cursor is located at the searched string, highlighted in red. In inputting the
string to be searched, the system automatically records the latest 10 times of string search. If
there is no record, nothing is displayed.
or
search the desired string in the current program. If the desired string does not exist in the current
program, the system prompts: Search completed, string not found
4.3.5.6
After the MPG is connected to the system, press MPG key on the program edit page. You can
quickly browse the programs by rotating the MPG to control the movement of the cursor when the MPG
LED indicator on the operation panel lights up. By pressing MPG key again, the LED indicator goes out.
In this case, it is unavailable to perform MPG operation. For the connection of MPG, see Part
Connection.
37
OPERATION
2)
After the block numbers are rearranged, if the skip command is used in programming, the
program skip error may occur.
When the value of parameter P333 is 0, the program number rearrangement function is invalid.
1)
OPERATION
By pressing the compiling command key, the system checks and compiles the part program from the
first block according to the execution path, and generates an object code which is convenient for
execution. If an error in the program is detected, the system stops the compiling, displaying the word
position and error number in the block where the source program error occurs, and prompting the user to
modify the error.
4.3.6.1
On program edit page, press hp3 key, the system compiles the current program line by line. If an
error message is detected, a windowProgram Alarm pops up. If no error exists in all commands, the
system displays: Current program compiling succeeded
The information of Program Alarmconsists of:
Error: indicates error codes (View Chapter Six Alarm Message in PART Programming
according to the codes);
Program: indicates contents in the error block;
Position: indicates error letter or word in the error block.
Explanation
1)
Only those programs successfully compiled by hp3 can be executed in Auto operation mode.
2)
The system automatically completes the compiling when the control is switched from edit
operation mode to other operation modes.
3)
AfterProgram Alarmappears during the compiling by hp3 key, the cursor automatically moves
to the error block by pressing any key.
4)
During the execution of hp3 compiling command, the system starts execution from the first
block of the current program, assuming that the axes of the machine take the position of the
current workpiece coordinates as the start point. Therefore, for some special programs, the
stop position of each axis may affect the compiling; it is suggested that each axis stop in
advance at the machining start point.
38
Chapter Four
Program alarm: means the alarms caused by the command error in the programming. The alarm
can be removed by inputting a correct command. It is not closely relative to the parameter setting.
Program compound check alarm: means the alarm which occurs during the program command
check (relevance check according to the setting of auxiliary parameters and interface parameters). It is
required to analyze the program in accordance with the setting of auxiliary parameters and interface
parameters, and then modify the program and parameter setting to remove the alarm.
Example
OPERATION
4.3.6.3
After the program is compiled, if no error is detected, in general, the program can be executed in
Auto operation mode. However, under the following conditions, the system displays the prompts of the
program compound check.
1) The range of tool nose soft limit or machine soft limit is exceeded.
During the execution of the program, if the range of tool nose soft limit or machine soft limit is
exceeded, the system displays the program compound check prompts when the control is switched from
EDIT operation mode to AUTO operation mode.
2Inconsistent with the tool setting record
If tool setting inconsistence occurs during the execution of the program, the system displays the
program compound check prompts when the control is switched from the EDIT operation mode to the
AUTO operation mode.
Example
[Example for program compound check alarm]
E.g. When the tool is T0408 during tool setting, and there is T0308 in the program, it is inconsistent
with the tool setting record; When bit parameter P403_d4 is set to 1, an alarm message T0308
inconsistent with tool setting record T0408 pops up when the control is switched from the EDIT operation
mode to the AUTO operation mode.
39
In JOG (Manual) operation mode, the user can perform a certain operation pressing function keys
directly, or perform a certain setting or operation pressing letter keys. For each step, the system offers
corresponding intelligent prompt messages.
Descriptions for the relative setting or the input format and examples of relative operation are as
follows: The function keys required to press are indicated by a sign; the letter keys or numeric keys
OPERATION
are indicated by an underline; the prompt messages of the system are indicated by a rectangle.
If incorrect data is input during the input of letters or figures, press
pressing this key, a window pops up, displaying the directory of the operation keys in Manual mode;
by pressing this key again, the window is closed; by pressing other function keys directly, the window
is automatically closed.
For the CNC machine tool, a large amount of work, such as the installation and debugging of a variety of
electrical components, debugging of motion performance, establishment of the coordinate system and
tool preparation, is completed in Manual operation mode.
After the Manual page is entered, the system performs necessary analysis and pre-check in accordance
with the user parameter list and tool offset values. If the precheck finds that the Manual operation may
result in serious accidents, the system locks the function of Manual operation, and pops up a window
displaying an alarm message; In this case, the user should modify relative parameters according to the
alarm message, and then perform Manual operation.
This system provides multiple modes for the execution of part programs. Before the execution, the user
can perform necessary setting in Manual operation mode, to ensure the safety during machining.
The main functions of Manual operation mode include:
The axes can be moved in JOG mode, STEP mode or MPG mode.
The axes can be moved by absolute or incremental programming.
Establishment of machine coordinate system, establishment of workpiece coordinate system
Auxiliary functions such as spindle, chuck, cooling, or tool post
Tool setting
Real-time display of the states of the machine tool, real-time alarm displayed in a popup window.
Note: 928TD system has no Y axis function.
40
Chapter Four
[JOG]
Popup
window
X 0289.850ESP Emergency
stop alarm
Z 0104.060
01 00
Upper
left
Top
JOG
100%
100%
S0500
Middle
right
OPERATION
S01
G97 S0200 r
Lower left
G98 F30
F 00100
EDIT
JOG
AUTO
PARA
OFFS
DIAG
41
Before moving the coordinate axis, please determine the movement speed, movement
distance first. In case of emergency, press down the Emergency Stop button immediately.
4.4.1.1
JOG movement
OPERATION
By pressing
key, the control can be switched from STEP or MPG mode to JOG mode.
JOG movementmeans holding a coordinate axis movement key to cause the machine slide
carriage to move continuously; When the key is released, the machine carriage decelerates to stop.
The meanings of axis movement keys are as follows:
X axis direction movement key;
key lights up is
By pressing Z/Y axis switch key, the user can switch the operation between Z axis and Y axis; that
the Z/Y axis switch indicator lights up is for Y axis operation. (when bit parameter P405_d1=1, the
machine tool has Y axis, then the switch is valid). Note: 928TD system has no Y axis function.
When the machine tool is switched to Y axis operation, it is also the Y axis that is valid for operations
such as program reference point return and machine zero point return.
Attention
1)
When the motor is running at a high speed, if the coordinate axis movement key has been
released, the machine carriage keeps moving instead of stopping immediately, because of the
automatic acceleration/deceleration of the system. The movement distance varies with the max.
motor speed, system acceleration/deceleration time and feedrate. The higher the speed is, and
the longer the acceleration/deceleration time is, the longer the distance the slide carriage moves;
and vice versa.
4.4.1.2
Step Movement
By pressing
key, the system can be switched from JOG mode or MPG mode to STEP
mode.
STEP movementindicates that the slide carriage moves a pre-set step width pressing a
coordinate axis movement key once. The movement speed is executed at the selected rapid traverse
42
Chapter Four
rate or feedrate. However, the max. movement speed of Z, X, Y axis is respectively limited by parameter
P100, P101, P102.
By holding the key, the slide carriage feeds continuously by step width. The last step width is moved
when the key is released. The step width of Step movement is displayed in the black background.
The step width of STEP movement is divided into 6 levels: 0.001
0.01
0.1
1.0
10.0
50.0.
Note
The movement can be stopped by pressing CYCLE PAUSE key during movement. After the key is
pressed, the slide carriage decelerates to stop, without retaining the remaining step width.
4.4.1.3
Pressing
key, the user can switch the control from JOG or STEP mode to MPG mode.
When the MPG dial rotates one scale, the coordinate axis moves one step width. There are three
gears (0.001mm, 0.01mm, 0.1mm) selectable for the step width. The user can press STEP
REGULATION key to switch among the three gears.
Determining the coordinate axis controlled by the MPG before hand:
Pressing MPG key repeatedly, the user can select one coordinate axis (between X or Z/Y)
controlled by the MPG. The coordinate of the selected axis is highlighted. When the indicator of Y/Z axis
switch lights up, by repeatedly pressing MPG key, the MPG-controlled axis is switched between Y axis
and X axis.
After selecting the coordinate axis to be moved, rotate the MPG to move the selected axis.
Rotating the MPG clockwise moves the coordinate axis in the positive direction. Rotating the MPG
counterclockwise moves the coordinate axis in the negative direction.
Note
1)
The MPG rotation speed should be less than 5 r/s. If it is exceeded, the motor cannot stop
immediately even if the MPG stops rotating, resulting in the MPG rotating scale differing
from the movement amount of the slide carriage.
2)
In MPG mode, neither JOG or STEP movement function, nor the program zero point return
and machine zero point return are valid.
3)
In MPG mode, when operating the functions relative to coordinate axis movement, e.g.
when inputting word absolute/incremental movement, the functions relative to the MPG is
forbidden temporarily. In this case, the MPG operation is invalid, with its LED indicator
flicking. After the above-mentioned functions are executed, the MPG functions
43
OPERATION
1)
When a large override (0.1 mm gear) is selected, if the MPG is rotated at a high speed, the
slide carriage moves at a high speed. Here, even if the MPG is not rotated, the slide
carriage still keeps moving instead of stopping immediately. The moving distance varies
with the max. motor speed, system acceleration/deceleration time, feedrate and MPG
rotation speed. The higher the max. speed is, and the longer the acceleration/deceleration
time is, and the faster the MPG is rotated, the longer the distance that the slide carriage
OPERATION
When parameter P400_d4 is set to 0, step width 0.1 is valid; When parameter P400_d4 is set
to 1, step width 0.1 is invalid.
6)
When p400_d1 is set to 1, neither the control knob of the external MPG, nor the Y/Z axis
select key and step regulation key are valid.
4.4.1.4
switch the state between manual rapid traverse and manual low-speed feed. That the speed indicator
lights up indicates the rapid traverse state is selected.
The manual movement operation affected by rapid traverse override and feedrate override is as
follows:
JOG movement operation: When the speed indicator lights up, it is affected by rapid traverse
override; when the indicator goes out, it is affected by feedrate override.
STEP movement operation: When the speed indicator lights up, it is affected by rapid traverse
override; when the indicator goes out, it is affected by feedrate override.
Input word movement operation: When the speed indicator lights up, it is affected by rapid traverse
override; when the indicator goes out, it is affected by feedrate override.
Program reference point return operation:
Machine zero point return operation:
44
Chapter Four
Note
1)
2)
In manual Jog movement mode, first select the rapid traverse override, and then press the axis
movement key.
In manual Step movement mode, the user can select the rapid traverse override first, or adjust
the rapid traverse override during movement, with the traverse speed changed accordingly.
selected.
Feedratemm/ min
0
7.5
22
38
60
82
110
180
Feedrate
override
80%
90%
100%
110%
120%
130%
140%
150%
Feedratemm/ min
240
300
420
525
675
850
1000
1260
Note
1) There is an error between the speed in the table and the system actual speed. The system
actual speed prevails.
2) When the feedrate override is 0, the system prompts Feedrate override is 0; which
indicates the command is being executed, and the slide carriage is in the standstill state.
To cause the slide carriage to move immediately, adjust the feedrate override to a value
other than 0.
Feedrate override
There are 16 gears (0%150% with an increment of 10%) selectable for the feedrate override; By
key once, the feedrate override increases by one gear till 150%; By pressing
pressing
key, the feedrate override decreases by one gear till 0%.
4.4.1.6
In Manual operation mode, it is available to move the axes according to the input length and
direction, or to directly move the axes to the input coordinate position from the current position. The
operation methods are as follows:
45
OPERATION
Feedrate __ F word (F0000F4000, the leading zero can be omitted, unit: mm/min)
OPERATION
F_
Y(V)_
F_
Z(W)_
X(U)_
F_
X(U)_
Y(V)_
F_
Z(W)_
Y(V)_
F_
Note
1)
In Manual operation mode, up to two axes can move simultaneously, at the selected manual
traverse speed.
2)
When Y axis is enabled by setting the system parameter, Y (V) word can be input.
Example 1
Input:
Move W
-5.2
Enter
Run?
START
Move X
40
Enter
Run?
Input: F200
Input: F0
The feedrate is set to 0. The system is switched to Feed state and the
built-in speed is used.
If word F is not input, when the current speed indicator lights up, the speed is rapid traverse,
which is affected by the rapid override; when the indicator goes out, the speed is low-speed
movement, affected by the feedrate override.
2)
If word F is input, the system automatically switches to the low-speed feed state, with the speed
indicator off; Feedrate override gear is the current gear; if the input F value is greater than the
one set in P113, the latter one prevails.
46
Chapter Four
3)
If the input value of word F is 0, the system uses the built-in feedrate.
4)
Both JOG movement operation and STEP movement operation are controlled by word F even if
the speed indicator goes out.
5)
If word F is not input, when the indicator goes out, the speed of the low-speed feed is limited by
parameter P113 (max. cutting feedrate); if the speed of the low-speed feed is greater than the
one set in P113, the latter prevails.
If word F is not input, when the indicator goes out and the speed is double-axis low-speed feed,
G01 command in AUTO operation mode. The two axes rapid traverse proportionally and stop
proportionally at the same time.
7)
If word F is not input, when the indicator lights up, the speed of the single-axis rapid traverse is
determined by parameters P100P102 (rapid traverse rate) and rapid traverse override.
8)
If word F is not input, when the indicator lights up, the movement of the double-axis rapid
traverse is determined by parameter P400_d3, which is the same as that in executing G00
command in Auto operation mode. When bit parameter P400_d3=0, the movement mode is
independent movement mode that each axis rapidly and independently traverses. The resultant
speed displayed on the screen is greater than the max. traverse speed of each axis. When bit
parameter P400_d3=1, the mode is the interpolation movement mode, i.e. the double axes
rapid traverse proportionally and stop proportionally at the same time. The system takes both
movement parameters and slope of the movement line segments into consideration, ensuring
no step out occurs during movement. It is normal that the rapid traverse rate varies with the line
segments with different slopes (priority is given to the axis which moves slower)
9)
When the feedrate override is 0, and the system is in the low-speed state or there is word F in
the block, no movement is allowed. After Enter key is pressed, the system prompts Feedrate
override is 0 until the feedrate override is adjusted to another value.
10)
Word F is input using G98 command. The system cannot input G99 command.
4.4.1.7
Set bit parameter P416_d4 to 1, and press DELETE key twice successively in Manual or Auto mode,
then the servo unit is turned off, and the motor is in the free state. By pressing DELETE key once when
the drive unit is turned off, the unit is turned on, and the motor is in the working state.
4.4.1.8
When operating the axis movement, if the currently moving axis touches the soft limit of tool nose
47
OPERATION
its movement mode is the interpolation movement mode, which is the same as that in executing
6)
issues the soft limit alarm. When a command is input to move Z/X axes in input word movement
OPERATION
mode, if the specified value exceeds the range, the system prompts the soft limit alarm and does
not perform execution. Whether the alarm for the machine or tool nose soft limit is valid is set by
parameter P404_d4 or P404_d3 respectively.
Machine zero
The machine coordinate system is the reference coordinate system for CNC to calculate the
coordinate position. It is the inherent coordinate system of the machine tool. After the system is installed,
you should establish the machine coordinate system first.
The reference point of the machine coordinate system is referred to as the machine zero. (or
machine reference point, or mechanical zero). For each machine, there is a fixed point taken as the
machine reference point. Each time the machine returns to the machining start point after returning to
machine zero, the error of the machine coordinate system caused by power-off and stepout can be
removed. After unexpected power-off, you can retrieve the machine coordinate system and workpiece
coordinate system by performing zero return, without setting the tool again.
In most cases, the system seeks the machine reference point using the deceleration switch and
zero switch installed on the machine; you can install the deceleration switch only, then use the
one-revolution signal of the servo motor to seek the machine reference point. The deceleration switches
are generally installed on the max. stroke of Z/X axes in the positive direction.
Press
48
Chapter Four
Zero return mode 1: When there is a deceleration signal and a zero signal, the system performs
execution by mode 1; the procedures of machine zero return are as follows:
Step 1: The axes rapidly traverse at the rapid traverse rate in the specified direction, and
decelerate to stop when the system detects the start point of the deceleration signal
after the deceleration switch is pressed down.
Step 2: The axes traverse at the specified zero return speed in the reverse direction, and
decelerate to stop when the start point of the deceleration signal is detected.
Step 4: The axes continue to move at the specified zero return speed, and then decelerate to
stop when the zero signal is detected.
Step 5: Then the zero return and detection is completed; finally, the system automatically
modifies the machine coordinates of the current point to the zero position coordinates
set by the parameter.
Zero return mode 2: When there is no zero signal but only a deceleration signal, the system
performs execution by mode 2.
Compared with mode 1, mode 2 has no zero signals, so step 3 and step 4 are unnecessary;
Only step 1, step 2 and step 5 are required to complete the zero return. However, the precision
of the zero return of this mode is poorer than that of mode 1.
Zero return mode 3: When there is no deceleration signal, but only a zero signal, the system
performs execution by mode 3.
Compared with mode 1, mode 3 has no deceleration signal, so step 1, step 2 and step 3 are
unnecessary; Only step 4 and step 5 are required to complete the zero return. In this mode, the
operator needs to move the axes to a specified position manually, and then performs the zero
return. Otherwise, the result is incorrect.
Zero return mode 4: Where there is neither a deceleration signal nor a zero signal, the system
performs execution by mode 4.
If there is no machine zero detection device (including zero switch and deceleration switch)
installed on the machine, set the relative parameter to 0;
If the machine zero return function is performed at this moment, the system does not detect the
zero signal and deceleration signal till the zero coordinate position of the axis is returned to.
Note
1)
All the axes return to the machine zero in the zero return direction. Therefore, if the zero
return direction is set to the positive direction before the zero return, the axes should
stay at the negative direction of the machine zero.
2)
During the machine zero return, the rapid traverse rate of the coordinate axis is
restricted by the rapid traverse override.
3) During the machine zero return, the movement of the axis is not restricted by the soft
limit parameters.
4) For the parameters relative to the machine zero return, see Parameter Setting Operation
Mode in Part Programming.
49
OPERATION
Step 3: If the specified zero offset is not 0, another zero offset will be moved.
return) as a prompt.
OPERATION
4.4.2.2
Reference Point)
(Note: This operation is invalid for those axes equipped with zero detection devices)
For those axes without zero detection devices (without a deceleration signal and zero signal), the
operations below can be used to create a machine coordinate system.
Format
Input: INPUT U New coordinate ENTER. To modify the machine coordinate of X axis to the
new coordinate.
Input: INPUT W New coordinate ENTER. To modify the machine coordinate of Z axis to the
new coordinate.
4.4.2.3
This system employs the floating workpiece coordinate system. The floating workpiece coordinate
system is the reference for the tool setting and relative dimension.
X New coordinate
Z New coordinate
machining)
1.
2)
Move the tool to cut a small step on the trial-cut workpiece, and keep the X axis position
unchanged.
3) Move the tool to a safe position in the Z direction and then stop the spindle. Measure the
diameter of the cut step.
4) Press INPUT key, the screen displays Setting, then press X key, the screen displays Set
50
Chapter Four
workpiece coordinate system X; input the measured diameter (input radius if in radius
programming) , press ENTER key, then the system automatically sets the workpiece coordinate
of X axis.
2.
Start the spindle and move the tool to cut an end face on the workpiece. Keep the position of Z
axis unchanged.
2)
Move the tool to a safe position in the X direction, then stop the spindle.
machine, such as the chuck end face or other reference faces, so that the newly established
workpiece coordinate system coincides with the original one after the latter one is broken) .
Measure the distance from the cut end face to the selected reference point in the Z axis
direction.
3)
Press ENTER key, the screen displays Setting, then press Z key, the screen displays Set
workpiece coordinate system Z; input the measured data, then press ENTER key, then the
system automatically sets the workpiece coordinate of Z axis.
Note: After the above operations, the establishment of the system workpiece coordinate system is
completed.
Explanations
1)
The operations of setting the workpiece coordinate system are to modify the tool nose
coordinates of the current point under the condition that the machine coordinates and tool
compensation are not changed. The result of the operation is equal to that after resetting the
offset amount between workpiece coordinate system and machine coordinate system.
2)
In general, the operations of setting the workpiece coordinate system are performed once after
the system initialization, or after the replacement of the workpiece type (when all the tool
compensation values are cleared). It is unnecessary to set the workpiece coordinate system
afterwards.
Note
When the actual position of the tool is inconsistent with the one of the workpiece coordinate
system due to the step out caused by some special causes, it is inappropriate to use the method
of resetting the workpiece coordinate system, because both workpiece coordinate system and
machine coordinate system are changed after step-out. In this case, if only the workpiece
coordinate system is corrected, without correcting the machine coordinate system, an
unexpected machine coordinate soft limit alarm may occur.
After the motor is out of step, the appropriate operations are as follows:
1) Choose a reference point for tool setting (a position easy for the tool nose to reach and
easy to observe), and measure Z and X coordinates of this point;
2) Move the tool nose to a reference point (the coordinates of the reference point are known)
3)
If the coordinates of the tool nose are inconsistent with those of the reference point,
press DELETE key twice successively to turn off the drive unit;
51
OPERATION
Select a point as the reference point (it is suggested that this point be a fixed point on the
Input word movement to make the tool nose coordinates consistent with the reference
point coordinates (the coordinates are changed without changing actual tool nose);
5)
4.4.2.4
OPERATION
In the machine coordinate system, the operator should determine a position. When the tool nose
stays at this position, it is safe and convenient to change the tool and clamp the workpiece. When the
tool post stays at this position to set the program reference point, this position is referred to as the
program reference point (or program zero point). The coordinates of the program reference point are
relative to the machine coordinate system.
Format
By pressing INPUT key, the screen displays Setting; then by pressing 0 key, the screen displays
Set program reference point? ; here, press ENTER key to confirm this point as the program reference
point of Z/X/Y axes.
If the workpiece coordinate system is reset after setting the program reference point, the
coordinates of the original reference point is unchanged in the new workpiece coordinate system. In this
case, reset the program reference point. The initial values of the program reference point are X=150
Z=200.
After setting the program reference point, both the operations of program reference point return
command (G26) and program zero point return using keys on the system operation panel return to this
point, regardless of where the slide carriage is.
4.4.2.5
Before performing program reference point return, the operator must determine the position
of the program reference point. Otherwise, unexpected accidents may occur.
In Manual operation mode, perform this operation by directly pressing function keys. After pressing
the keys, the corresponding axes rapidly return to the program reference point. When the axis change
indicator lights up, the operation is for Y axis.
By pressing
key, X axis rapidly returns to the program reference point from the current
point.
By pressing
key, Z axis rapidly returns to the program reference point from the current
point.
Note
1) When waiting for machining, each axis should stay at the program reference point generally.
52
Chapter Four
point return is displayed as a prompt before the corresponding machine coordinates on the
screen.
4.4.2.6
In Manual operation mode, the workpiece coordinate system and program reference point have
been set. If the blocks containing G50 command are executed in Auto operation mode, the workpiece
operator can recover the workpiece coordinate system and program reference point set in the Manual
operation mode.
Format
Key in: G
4.4.3
4.4.3.1
stop by directly pressing the function keys on the panel or by keying in M03/M04/M05 command
(Feed/Spindle hold knob is invalid in Manual operation mode).
Press
key, or key in M
displays the state of the spindle, and the LED indicator on the key lights up.
Press
key, or key in M
Press
key, or key in M
displays the state of the spindle, and the LED indicator on the key lights up.
Spindle JOG control
It is available to switch to the spindle JOG control using the spindle stop key.
When the spindle stops, by pressing
state, highlighting the spindle state icon on the screen. By pressing the
system switches to the normal state. In the spindle JOG control state, by pressing
key, the spindle rotates for a specified period of time at the specified speed and then stops. (If the
53
OPERATION
coordinate system and program reference point are changed. With the following operations, the
state, the spindle control commands M03, M04, M05 input by MDI are invalid. The spindle JOG speed is
set by parameter P309, and the JOG rotation time by parameter P308. After the JOG time is up, the
spindle stops automatically, with the LED indicator on the key OFF.
When P402_d5=0, the interlock relationship between hydraulic chuck control and spindle control is
OPERATION
as follows:
1) When the chuck is not clamped, it is forbidden to start the spindle; otherwise, Chuck is not
clamped, spindle start forbidden is issued.
2)
When the spindle is rotating, it is forbidden to operate the chuck; otherwise, Spindle is not
stopped, chuck operation forbidden is issued.
follows:
When the spindle is rotating, it is forbidden to operate the tailstock; otherwise, Spindle is not
stopped, tailstock operation forbidden is issued.
Executing M04
ExecutingM05
t1
M04 pin
t1
t1
t1
M05 pin
t2
MSP brake pin
t3
2 In level control mode, output time sequence of M3, M4, M5, MSP (here, M5 pin does not output, which can be
used for other purpose):
Executing M03
Executing M04
Executing M05
M03 pin
t2
M04 pin
t2
MSP brake pin
54
t3
Chapter Four
t1: Hold time output by signal M3, M4, M5 in the pulse control mode, set by parameter P326;
t2: Spindle stop brake delay time, set by parameter P315;
t3: Hold time output by spindle brake signal MSP, set by parameter P316.
4.4.3.2
order to use S function to shift the spindle gear. The standard format of word S consists of an S and a
two-digit number, which indicates the spindle gear number.
Format of S code
Sx
Sxx
Example
Select the second gear speed of the spindle:
Key in: S
2 ENTER ; the system outputs S02 signal, and the screen displays gear state S02.
Explanations
1)
When parameter P410_d5 is set to 0, the gear control signal is directly output by the bit, and
the range of S code is S00S04. Each gear signal corresponds to one output point. S0 means
all the outputs are invalid.
2) When parameter P410_d5 is set to 1, the gear control signal is the coded output, and the range
of S code is S00S15. The coded output is as follows:
Code
Output
point
S01
S00 S01 S02 S03 S04 S05 S06 S07 S08 S09 S10 S11 S12 S13 S14 S15
S02
S03
S04
Note: in the table indicates that the output of the corresponding output point is valid.
3)
The line number controlled by the actual output of the spindle gear is set by parameter P310.
P310=4, the actual output control points are S01, S02, S03, S04;
P310=3, the actual output control points are S01, S02, S03; S04 is released, which can be
used for other purpose;
P310=2, the actual output control points are S01, S02; S04, S03 are released, which can be
used for other purpose;
P310=1, the actual output control point is S01; S04, S03, S02 are released, which can be used
for other purpose;
55
OPERATION
If the machine is not equipped with a variable frequency spindle, set parameter P410_d6 to 0, in
(Note: Those users who employ a variable frequency spindle are not required to read this section.)
During the coded output of the gear control signal (parameter P410_d5 is set to 1), if the control
lines specified by parameter P310 are less than 4, only the low-gear control lines are valid, the
high-gear ones are not output. Thus the high-gear coded control lines are released, which are
not affected by the gear control.
Gear shift execution of spindle S commands and signal output time sequence:
OPERATION
At system power on, the default is S00, and S01S04 are invalid. When executing any one of S01,
S02, S03, S04, the corresponding S signal output is valid and retained, while the other three S signal
outputs are cancelled. When executing S00 command, the outputs of S01S04 are cancelled. Only one
of S01S04 is valid at a time.
Executing S01
Executing S02
Executing S00
S01 pin
t1
S02 pin
key once, the spindle speed is output in the order of S01S04 or S00S15
(coded output) recurrently. If there is only the four-gear spindle speed, you need to press
three times to switch the gear to S01 from S02.
key
Chapter Four
M41
M42
M43
M44
Explanations
M41, M42, M43, M44 output the gear control signals. Each gear signal corresponds to one
output point of S01, S02, S03, S04 respectively.
The control lines of the actual output of the spindle gear is set by parameter P310.
P310=4, the actual output control points are S01, S02, S03, S04;
P310=3, the actual output control points are S01, S02, S03; S04 is released, which can be
used for other purpose;
P310=2, the actual output control points are S01, S02; S04, S03 are released, which can be
used for other purpose;
P310=1, the actual output control point is S01; S04, S03, S02 are released, which can be
used for other purpose;
P310=0, the actual output control points do not output; S04, S03, S02, S1 are released,
which can be used for other purpose;
3)
Execution process and signal output time sequence of spindle M gear shifting:
At CNC power on, whether the spindle gear is memorized is controlled by parameter P400_d6
(spindle gear memory):
1)
When the parameter is set to 0, the spindle gear is not memorized at power on after power off.
The default is the first spindle gear, and M41M44 have no output.
2)
When the parameter is set to 1, the spindle gear is memorized at power on after power off.
If the specified gear is consistent with the current one, no gear shift is performed. If the specified
gear is inconsistent with the current one, the process of gear shift is as follows:
Execute any one of M41, M42, M43 and M44 commands, and output the analog voltage to the
spindle servo or frequency converter according to the value (unit: mv) set by data parameter
P314 (the voltage output during spindle gear shift);
After delaying the time set in data parameter P311 (gear shift time 1 of the variable frequency
spindle), turn off the output signal of the original gear;
After delaying P313 (gear switch interval of the variable frequency spindle), output the new gear
shift signal;
When the system is connected to the detection of gear shift in-position signals M41I, M42I,
M43I, M44I; If the gear shift is not in-position, the CNC does not proceeds to the next step until
the gear shift in-position signal is detected; when the system is not connected to the detection
of gear shift in-position signals, it directly proceed s to the next step; M41IM44I input signals
are defined in the interface parameters.
57
OPERATION
2)
1)
After delaying data parameter P312 (gear shift time 2 of the variable frequency spindle), output
the spindle analog voltage by the value set in data parameters P300P303 (corresponding to
gears 1~4 respectively) according to the current gear, to complete the gear shift.
commands. The standard format of S command consists of an S and a 4-digit number. The two-digit
number indicates the spindle gear number. There two ways to input spindle speed:
OPERATION
1) S sets the fixed speed of the spindle (r/min); the spindle speed keeps unchanged if S value is
not changed, which is referred to as constant rotation speed control.
2) S sets the surface speed (m/min) of the tool nose relative to the outer circle of the workpiece,
which is referred to as constant surface speed control. In constant surface speed control mode,
the spindle speed varies with the coordinate of X axis during cutting feed. See Constant Speed
Control G96, Constant Speed Control Cancel G97 in Part Programming.
Code format
G96
G96
S__
Setting the constant surface speed cutting state and specifying the value of
the surface speed; range: 09999 m /min;
G97
G97
S__
Cancelling the constant surface speed state and specifying the value of the
rotating speedrange09999 r /min
S__
The type of speed depends on the current state; it is either rotating speed
value or constant surface value.
Example
Key in: S
0 0 ENTER ; the system converts the rotating speed to the analog voltage of 0~10
of parameters P300P303, then modify the setting of parameters P300P303 according to the
spindle speed displayed by the system.
3) The analog voltage is 0 V at system power on. After executing S command, the system outputs
a corresponding voltage; then the voltage keeps unchanged (unless it is in the cutting feed state
of constant surface speed control and the coordinate of X axis is changed). After executing S0,
58
Chapter Four
the analog voltage output is 0V. The analog voltage output remains unchanged at CNC reset
and emergency stop.
4.4.4
Coolant Control
In Manual operation mode, the coolant ON/OFF operations can be controlled by directly pressing
on the screen, and the LED indicator on the key indicate corresponding states. When the coolant is ON,
the LED indicator lights up; when the coolant is OFF, the indicator goes out.
Key in: M
Key in: M
1)
Output time sequence of M8, M9 in level control mode: (M9 pin does not output, which can be
used for other purpose)
Executing M08
Executing M09
M08 pin
2)
Executing M09
t1
M09 pin
t1
t1: Hold time of M08, M09 signal output in pulse control mode, set by parameter P326.
Relative parameters
P410_d7: When it is set to 1, the coolant is controlled by the system pulse output; when it is set to
0, the coolant is controlled by the system level output. This parameter is shared by the spindle control
output parameter.
4.4.5
In Manual operation mode, the tool change control can be performed by directly pressing the tool
change function key on the panel or inputting T function commands.
key once, the tool post rotates to the next tool number, which will be displayed
on the screen (if parameter P403_d5 is set to confirmation required, press ENTER key afterwards.)
59
OPERATION
By pressing
first two digits indicates the tool number, and the last two digits indicates the tool offset number. It is not
required that all the four digits be input. The operator can use 2~4 digits depending on the conditions.
Format
Txx
____ The first digit means the tool number, and the second number means the tool offset
number
OPERATION
Txxx
____ The first digit means the tool number, and the second two digits means the tool
offset number;
Txxxx
____
The first two digits means the tool number, the last two digits means the tool offset
number.
Explanations
The range of the tool number is determined by parameter P319 (Max. tool number: 1~16); if P319
is 4, the tool number can be 0~4. If the tool number input is 0, the current tool number is maintained.);
Range of tool offset number: 0~64; if the input tool offset number is 0, the tool offset is cancelled.
Example
Key in T
Key in T
Key in T
Enter Maintaining the current tool number, and executing tool offset
number 6
Key in T
1 2
Key in T
0 5
Key in T
Key in T
Key in T
4 0
Enter Maintaining the current tool number, and executing tool offset
number 40
Note
1)
Example: Inputting T400 means changing to tool number 4 and cancelling the tool offset. (Note:
T400 cannot be input as T040 here.)
2)
If the electric tool post malfunctions, the system displays the alarm message Tool number
signal detection overtime on the screen, which indicates that the corresponding tool number
cannot be found within a specified period of time.
3) The CNC system employs the absolute tool change mode, so the position of each tool number is
fixed on the tool post when an electric tool post is used. Make sure the tool number where the
tool post is located is the same as that displayed on the screen during installation and
debugging.
60
Chapter Four
4)
When parameter P318 is set to 0, the selected tool post is the line-up tool post, which does not
output the tool change signal during tool change.
5)
The tool offset can be executed by moving the slide carriage or modifying the coordinate system.
It is set by parameter P403_d6.
When P403_d6 is set to 1, the slide carriage is moved without changing the coordinates during
tool offset execution.
6)
If the tool change fails or it is interrupted (by reset, emergency stop), the system assumes that
the tool is in an uncertain position, and keeps the tool number flicking read as an prompt. In this
case, the machining program cannot be started; Only by performing a successfully tool change
or powering on the system after power off, can the system recover to the normal state.
7)
During tool change, if the target tool number is the current one, only the tool offset is changed
without performing tool change output action, with the exception of the following two cases:
After tool change fails, the tool number is flicking red on the screen, which means the tool
number displayed is not necessarily the same as the actual tool number. If the target tool
number in the tool change command to be executed next time is the current tool number, the
system executes one tool change action.
During the first tool change after system power on, if the target tool number is the current tool
number displayed on the screen, the system executes one tool change action.
The system is provided with multiple tool change modes. For details, please refer to Section 3.4
Tool Change Control Function and Connection in Part Connection in this manual.
OPERATION
When P403_d6 is set to 0, the coordinates displayed are modified without moving the slide
T0309, so it is inconsistent with the tool setting record. It is highly dangerous in this case, and the system
OPERATION
It is suggested that the operator execute the offset number first, and then perform tool setting,
making the operation visible. E.g. if the offset value in tool number 4 needs to be stored to offset
number 9, first execute T49 command.
5) The tool setting must be performed on the condition that the workpiece coordinate system is
normal. Otherwise, unexpected accidents may occur.
The system is provided with trial-cut tool setting and fixed-point tool setting, which can be chosen by the
user. The explanations for them are as follows:
Format
Key in: I
Measured value
ENTER
Measured value
ENTER
Chapter Four
3) Without moving X axis, move the tool to a safe position in Z direction and stop the spindle.
Measure the diameter of the cut step.
4) By pressing I key, the screen displays Tool setting X; Input the diameter measured, then
press ENTER key.
5) The system prompts Confirm tool offset No.: XX; and automatically presets an offset
number. If this offset number is the same as the one to be input, press ENTER key directly.
number.
(2)
Without moving Z axis, move the tool to a safe position in X direction and stop the spindle.
3)
Select a point as the reference point, measure the distance from the cut end face to the
selected reference point in Z direction.
4) By pressing K key, the screen displays Tool setting Z; input the measured data, then press
ENTER key.
5) The system prompts Confirm tool offset No.: XX; and automatically presets an offset
number. If this offset number is the same as the one to be input, press ENTER key directly.
Otherwise, press ENTER key after inputting the offset number. The system then
automatically calculates the tool offset value of Z axis and stores it to the specified offset
number.
Fix the trial-cut workpiece on the machine, and then select any tool (select the first tool used
in the machining generally).
2)
Select an appropriate spindle speed, and start the spindle. Move the tool to cut a step along
the workpiece surface in Manual operation mode.
3)
of X axis to a safe position and stop the spindle. Measure the diameter of the step measured.
4)
By pressing I key, the screen displays Tool setting X; input the measured diameter, then
press ENTER key.
5)
The system prompts Confirm tool offset No.: XX; and automatically presets an offset
number. If this offset number is the same as the one to be input, press ENTER key directly.
Otherwise, press ENTER key after inputting the offset number. The system then
automatically calculates the tool offset value of X axis and stores it to the specified offset
number; the system automatically cancels the tool setting icon as well.
63
OPERATION
automatically calculates the tool offset value of X axis and stores it to the specified offset
Otherwise, press ENTER key after inputting the offset number. The system then
OPERATION
1) When the tool setting icon is flickering, it is available to perform operations such as spindle
start/stop, coordinate axis movement; if tool setting is performed, the system automatically
cancels the tool setting icon, and does not memorize the original tool setting point.
2) If K or I is directly pressed without the tool setting icon appearing, the system assumes the
current point as the tool setting point.
Fixed-point tool setting:
After determining a reference point on the machine (or on the workpiece), first set a group of
coordinates (Z, X) for the point by means of actual measurement or using other methods. Then move all
the tool noses to this reference point to obtain this group of coordinates, with the system memorizing the
tool offsets automatically. This type of tool setting is called the fix-point tool setting. I.e. first execute
Input reference point coordinates or Modify reference point coordinates to determine the reference
point coordinates; then move the tool nose to the reference point and execute Fixed-point tool setting
to complete the tool setting.
Fix-point tool setting by pressing hp1 key
1)
general, this method is applied when the coordinates of the reference point is unknown, but the tool nose
coordinates of the current tool is considered as correct. Move the tool nose to the reference point, and
then execute Input reference point coordinates to complete the input operation. After that, the system
automatically stores the current tool nose coordinates as the coordinates of the reference point. If a tool
is broken or needs to be re-mounted, select any tool which has been set as the reference.
2)
the reference point coordinates; in general, this method is applied when the coordinates of the reference
point is known.
64
Chapter Four
3)
ENTER key to complete the tool setting of the current tool. The system will automatically generate the
tool offset.
Note
1)
Chuck operation
In Manual operation mode, key in M10/M11 command to control the chuck clamping/releasing
Key in: M
0 ENTER ; the chuck is clamped. The screen displays the spindle state.
Key in: M
Key in: M 1
2 ENTER ; the chuck control signal is cancelled. (M12 is used for some special
chuck devices)
Relative parameters
When parameter P409_d7 is set to 0, the system has hydraulic chuck control function.
When P402_d5=0, there is an interlock relationship between hydraulic chuck control and spindle
control.
When P402_d4=0, the chuck response signal consecutive detection is turned off.
When P402_d4=1, the chuck response signal consecutive detection is turned on.
When P409_d6=0, the hydraulic chuck is the outer chuck mode.
When P409_d6=1, the hydraulic chuck is in the inner chuck mode.
When P409_d5=1, the hydraulic chuck requires the response detection; the response signal is
green when it is normal, and is yellow when it is abnormal.
When P409_d5=0, the hydraulic chuck does not require the response detection.
When P409_d3=0, the hydraulic chuck control signal is level control;
When P409_d3=1, the hydraulic chuck control signal is pulse control; the pulse width is set by
parameter P327.
When P409_d1=0, the footswitch input of the hydraulic chuck is valid;
When P409_d1=1, the footswitch of the hydraulic chuck is invalid
signal from M10 pin (Whether to output a pulse signal or level signal is selected by a parameter), then
65
OPERATION
3)
2)
If using an optical tool setting gauge, the user can set the tool setting point at the
intersection of the reticle of the gauge without starting the spindle; the other operations
are the same.
The tool offset automatically generated by the system can be viewed and modified in the
tool offset operation mode. See Tool Offset Operation Mode.
When using the line-up tool, if the tool is located at the other side of the workpiece, the
measured value in the X direction input during trial-cut tool setting should be negative.
After executing M11 command, the system outputs the chuck releasing signal from pin M11
OPERATION
(whether to output a pulse signal or level signal is selected by a parameter). If the response detection
signal is not required, the chuck releasing action is completed. If the response detection signal is
required, the system waits until the chuck clamping is in-position. After the chuck releasing in-position
signal (interface pin RM11 is low level, and RM10 is high level) is detected, the chuck releasing action is
completed. Otherwise, the alarm Chuck releasing response detection overtime is issued.
In the inner chuck modeafter executing M10 command, the system outputs the chuck clamping
signal from pin M11; after executing M11 command, the system outputs the chuck releasing signal from
pin M10. Therefore, only the output pins are opposite to those of the outer chuck mode, and the others
are the same.
In addition to controlling the hydraulic chuck with commands, the user can also control it with an
external footswitch. By pedaling the footswitch once, the system switches between clamping and
releasing once according to the control mode of the clamping/releasing command M10/M11. Before
switching to Manual or Auto operation mode from other modes, it is required that the chuck footswitch be
released (disconnected). Otherwise, the system issues an alarm of abnormality.
Output time sequence of hydraulic chuck control signal:
1)
Executing M11
Executing M10
Input signal
t1
t1
M10 pin
M11 pin
t1
t1: M10, M11 signal output hold time in pulse control mode, set by parameter P327;
2)
66
Executing M11
Executing M10
Chapter Four
Note
1) When the hydraulic chuck function is valid, the system is in the chuck releasing state by default
after power on or emergency stop; When the first hydraulic chuck footswitch input is valid, the
system outputs the chuck clamping signal.
2) When there is an interlock relationship between chuck and spindle: it is forbidden to operate the
3) The operation of the footswitch is invalid during automatic continuous execution, regardless of
whether the spindle is running or not.
4) If the operation of the chuck fails or is interrupted (by reset, emergency stop), the system
assumes that the chuck is at an uncertain position, and displays a red flicker, prompting the
chuck state (M10 or M11). In this case, it is unavailable to start the machining program; only by
performing a successful chuck operation or powering on the system after power off, can the
system recover to the normal state.
5) Chuck response signal consecutive detection (bit parameter P409_d5=1) is to continue
detecting whether there is abnormal releasing occurring in the normal state or machining state.
6) When the chuck signal is cancelled (in M12 state), there is an underscore being displayed under
the chuck state (M10 or M11), i.e. M10 or M11 are displayed.
4.4.8
Tailstock operation
In Manual operation mode, key in M78/M79 command to control tailstock advancing/retracting
Key in: M
Key in: M
Key in: M
0 Enter ; The tailstock control signal is cancelled. (M80 is used for some special
tailstock devices)
Relative parameters
When parameter P409_d4 is set to 0, the system has the hydraulic tailstock control function.
When P402_d3=0, there is an interlock relationship between hydraulic tailstock control and spindle
control.
When P402_d2=0, the hydraulic tailstock response signal consecutive detection is off;
When P402_d2=1, the hydraulic tailstock response signal consecutive detection is on.
When P409_d2=0, the hydraulic tailstock control signal is level control.
When P409_d2=1, the hydraulic tailstock control signal is pulse control; the pulse width is
determined by the time set in parameter P328.
When P409_d0=0, the footswitch input of the hydraulic tailstock is valid;
When P409_d0=1, the footswitch input of the hydraulic tailstock is invalid;
67
OPERATION
chuck during spindle running, or an alarm occurs; it is forbidden to start the spindle in the chuck
advancing in-position signal. After the tailstock advancing in-position signal (interface pin RM78 is low
OPERATION
level, and RM79 is high level) is detected within a specified period of time (set by parameter P329: M
command response detection time specification), the operation is completed; otherwise, the alarm
Tailstock advancing in-position response detection overtime is issued.
After executing M79 command, the system outputs the tailstock retracting signal from pin M79
(whether to output a pulse signal or level signal is set by the parameter), then the tailstock retracting
action is completed; if the response detection signal is required, the system waits for the tailstock
retracting in-position signal. After the tailstock retracting in-position signal (interface pin RM79 is low
level, and RM78 is high level) is detected within a specified period of time, the operation is completed;
otherwise, the alarm Tailstock retracting in-position detection overtime is issued.
In addition to controlling the hydraulic tailstock with commands, the user can also control the
tailstock with an external footswitch. By pedaling the footswitch once, the system switches between
tailstock advancing and retracting once according to the control mode of the tailstock
advancing/retracting command M78/M79.
Before switching to Manual or Auto operation mode from other modes, it is required that the
tailstock footswitch be released (disconnected); otherwise, the system issues an abnormality alarm.
1)
Executing M79
Executing M78
Input signal
t1
t1
M78 pin
M79 pin
t1
t1: Signal M78, M79 output hold time in pulse control mode, set by parameter P328;
2)
M78 pin
M79 pin
68
Executing M79
Executing M78
Chapter Four
Note
1) When the hydraulic tailstock function is valid, the system is in the tailstock retracting state by
default after power on or emergency stop; When the first hydraulic tailstock footswitch input is
valid, the system outputs the tailstock advancing signal.
The definition of pins must be accomplished by the machine tool builder because incorrect
definition may cause damage to the system and the machine tool electric.
4.4.9.1
If the function is required, define its output pin in the interface parameters and correctly connect the
lines; the system will output a signal at the corresponding pin.
P502LMP3Green light (program execution signal light 3)
P503LMP2Yellow lightprogram execution signal light 2
P504LMP1Red lightalarm lightalarm light control signal 1.
Function description
1)
The triple-color indicator is valid in Manual/Auto operation mode; in other operation modes, it is
invalid.
2)
During program execution, if the green light lights up, it indicates the normal operation.
69
OPERATION
4.4.9
2) When there is an interlock relationship between tailstock and spindle: it is forbidden to operate
the tailstock during spindle running, or an alarm occurs.
3) The tailstock control input is invalid during automatic continuous execution, regardless of
whether the spindle is running or not.
4) If the operation of the tailstock fails or is interrupted (by reset, emergency stop), the system
assumes that the tailstock is at an uncertain position, and displays a red flicker, prompting the
tailstock state (M10 or M11). In this case, it is unavailable to start the machining program; only by
performing a successful tailstock operation or powering on the system after power off, can the
system recover to the normal state.
5) Tailstock response signal consecutive detection (set by parameters P519, P520) indicates the
system continues detecting whether the tailstock is released abnormally in the normal state or
machining state. If the function is set to alarm (bit parameter P402_d2=1), the program
machining is stopped and the spindle is turned off when the tailstock is released during
machining.
6) When the tailstock signal is cancelled (in M80 state), there is an underscore displayed under the
tailstock state (M78 or M79), i.e. M78 or M79.
If an alarm occurs, the green light goes out, and the red light lights up.
4)
When the execution of the program is stopped, and no alarm occurs, the red and green lights
go out, while the yellow light lights up.
4.4.9.2
Lubricant Control
If the function is required, define its output pin in the interface parameters, and connect the lines
OPERATION
correctly; the system will output the signal at the corresponding pin.
P506M32O:
Function description
1)
Non-auto lubrication
When P330 is set to 0: the lubrication is non-automatic. The lubricant ON/OFF is controlled with
commands.
In Manual/Auto operation mode, Lubricant ON/OFF command M32/M33 is valid if input.
After executing M32, the lubricant output is ON; after executing M33, the lubricant output is
OFF.
2)
Automatic lubrication:
When P330 is set to 0: Automatic timing lubrication.
Lubrication start time and lubrication interval are settable. After the system is powered on, the
system starts the lubrication and lasts a period of time set by P330, then stops output; after delaying
the time set by P331, the system outputs lubricant again, and so on.
Note
If the system enables the automatic lubrication function, the values of parameter P330 and P331
should be greater than 1s. If the values are smaller than 1s, they are processed as 1s.
Function description
If the machine electricity delay power-on control signal is defined in interface parameters, the
system outputs the signal from the self-defined pin after delaying 3s, and then retains. During the
3-second delay, it is unavailable to press keys to operate the system.
Chapter Four
Function description
1)
When SAGT signal is connected to 0V, the system confirms that the safety door is closed.
2)
In Auto operation mode, if the system detects the safety door is open, the alarm Safety door
not closed occurs.
3)
During automatic operation, if the system detects the safety door is open, all the axes feed is
4)
The safety door detection function is valid only in Auto operation mode.
OPERATION
4.4.9.5
Relative parameters
When P412_d5 is set to 1, the low-pressure detection function is valid.
P412_d4 sets the low pressure alarm level; when P412_d4=1, the low-level alarm is set, when
P412_d4=0, the high-level alarm is set.
P332 sets duration for low pressure alarm.
Function description
1) After choosing the low pressure alarm detection function, the pressure detection icon is
displayed on the right of the status bar in Manual and Auto operation modes. When the
pressure is normal, the icon is displayed as a green solid triangle . Once the system detects
the low-pressure alarm signal PRES is valid, the screen displays a half-empty yellow triangle if
the low pressure hold time is less than half of the time set in P332. If the low pressure hold time
exceeds half of the time set in P332, the screen displays a yellow full-empty triangle . If the
signal hold time exceeds the value set in P332, the icon is displayed as a red empty triangle ,
with the alarm Low pressure alarm being issued ; in this case, all axes feed is suspended, the
spindle is stopped, and the automatic cycle cannot start.
4.4.10
stopped, and then the spindle is stopped, the coolant is turned off, with an alarm being issued.
71
OPERATION
Type
Spindle control
Command
M03, M04, M05
Coolant
M08, M09
Chuck
Lubricant
Tailstock
M32, M33
M78, M79, M80
User output 1
M21, M22
User output 2
M23, M24
Spindle gear
User-defined
command
Output control and
detection
M60 ~ M74
Note:
72
M82
Function
Spindle CW rotation, CCW rotation,
and stop
Coolant ON/OFF
Clamping, releasing, cancelling chuck
output signal
Lubricant ON/OFF
Tailstock
advancing,
tailstock
retracting, tailstock cancelling output
signal
Q17.0
Remarks
Function interlock,
state retained
D3 or M82
When inputting an M command, if its first digit is 0, the 0 can be omitted. The function of this M command is the
same as that in Auto operation mode. See the explanations for commands in Part Programming.
Chapter Four
4.5
In Auto operation mode, the descriptions for the input format of relative setting and
operation as well as the examples are as follows: The function keys to be pressed are indicated
with an icon; the letter keys, numeric keys to be pressed are indicated with an underscore; the
OPERATION
In Auto operation mode, on the right corner of the screen is displayed the
page key;
by pressing this key, the directory window displaying the operation keys in Auto mode pops up; by
pressing the key again, the pop-up window is closed; by directly pressing other function keys, the
window is automatically closed.
system completes the workpiece machining specified by the machining program; the system executes
the program from the first line in accordance with the logic path until the end of the program.
After entering the Auto page, the system performs necessary analysis and pre-check to the part
program in terms of the user parameter list and tool offsets. If the system detects the execution of the
program results in serious consequences after precheck, it will lock the CYCLE START key, and prompt
a window displaying an alarm message; in this case, it is unavailable to press CYCLE START key to
execute the program; the user should modify the program or relative parameters correctly in accordance
with the alarm message, and then perform the execution.
This system provides multiple modes for executing the workpiece program. Before the execution,
the user can perform necessary setting to ensure the safety during machining.
1)
2)
Setting Dry Run (without output) to check the execution, the program execution can be
accelerated in Dry Run state.
3)
4)
Setting the program block, starting the execution from any block between first block and last
block
5)
6)
Performing Pause, Block Stop, End Stop, Cycle Stop during program execution
7)
8)
9)
Displaying the states of the machine in real time, popping up the real-time alarm
The explanations for the areas on the screen are shown in fig. 4-5:
Top:
Displaying the execution mode (Single/Continuous, Dry Run), current program number, part
count, machining time, and key
OPERATION
Fig. 4-5 Auto operation mode
4.5.1
In Auto operation mode, the system may be in the following states from the perspective of program
machining; the functions which can be operated by the user vary with the system state; in this manual,
several simple concepts are introduced to describe these states.
Initial state: The execution has not been started, and the pointer points at the first block of the
program; When switched to Auto operation mode from other modes, the system is in
the initial state; after completing the execution, or after an alarm, the system returns to
the initial state.
Running state: The system is executing blocks, and the axes are moving.
Pause state: The execution is suspended when the axis move commands are being executed; the
system waits for users operation by pressing keys.
Block stop state: The execution stops after the current block has been executed and before the
next block is executed; the system waits for users operation by pressing keys.
4.5.2
4.5.2.1
Chapter Four
In the Continuous execution, the user can also press this key to switch to Single mode; then after
the current block is executed, the execution is stopped; by pressing CYCLE START key, the user can
continue the execution.
In Continuous mode, by pressing CYCLE START key once, the program is executed from the
beginning to the end once.
In Single mode, by pressing CYCLE START key once, one block is executed (for the cycle
If the system is set to Dry Run when executing commands, whether M, S, T are valid is set by
parameters. After the system exits Dry Run state, the coordinate of each axis automatically recovers to
the one before Dry Run.
Parameters which are valid in Dry Run mode:
Parameter P401_d7
0:
When executing auxiliary functions, the system outputs and detects signals as usual.
1:
When executing auxiliary functions, the system does not output and detect signals.
Parameter P401_d6:
0:
The execution speed of the feed command is set by the program as usual.
1:
The execution speed of the feed command is out of the control of the program. The system
demonstrates the program path at the max. speed of cutting feed (P113).
Note
1)
The Dry Run key is valid only when the program executes the initial state. This key is invalid
during the program execution, or before the end of the execution, or before the execution state
is exited.
2)
When P401_d7=0, all the M, S, T auxiliary function commands are executed in Dry Run state;
after the dry run state is exited, the system does not recover to the previous state.
3)
When P401_d7=1, the system does not output and detect signals when executing auxiliary
functions; however, when executing T functions, the tool offset number is executed (e.g. if the
original one is T11, it becomes T13 after executing T33); after exiting Dry Run state, the original
state recovers.
4)
In Dry Run state, all M60~M74 commands are executed normally; if the tool offset is modified,
the offset will be changed. If the tool offset is modified, the tool nose coordinates of the
corresponding offset number will be changed after exiting Dry Run state.
75
OPERATION
operation)
command, only one operation is executed; press CYCLE START key again to perform another
In Dry Run state, the part counter does not increase by 1 automatically.
In Auto operation mode, press T key to switch between Coordinate Display and Graph Display
anytime.
OPERATION
In Graph Display mode, by pressing S key, the graph display path can be cleared.
4.5.2.4
After entering Auto operation mode, the system is in the initial state, and the pointer always points at
the first block of the current program. By pressing CYCLE START key, the user can start the program
automatic execution.
During the execution, the block being executed is displayed in poor color and blinks; the first line is
the block that has been executed, and the third line is the one to be executed; if the program being
executed is a conditional command, and the jump or call object is not known, the third line may not be
displayed.
By press INPUT key, the system displays the program browser window displaying the current
program, and the pointer points at the first line.
2)
By pressing
, or
last (next) page of programs. By pressing ESC key, the system exits the selection and displays
the original program.
3)
When the pointer points to the block to be selected, press ENTER key, then the window
prompts Run ?, and waits for the next operation.
4)
At this time, if CYCLE START key is pressed, the system starts execution from the block which
the pointer points to; if ESC key is pressed, the system exits the selection, and the pointer
points at the first block.
Note
1)
The specified block cannot be in the canned cycle, compound cycle or subprogram;
otherwise, unexpected accidents may occur. Generally, select G00 command, or the tool
change command before G00 to start execution.
76
Chapter Four
2)
It is suggested that the selected block from which the execution is started be the linear
movement or M, S, T commands. When selecting G02/G03/G05 command for execution,
make sure the coordinates of the tool and machine stay at the start point of the arc;
otherwise, the arc machined may not meet the requirements.
3)
During the execution, by pressing ENTER key, the system also displays the browser
window, but it is forbidden to select a block.
During the program execution, on the screen are displayed the running states, dynamic running
coordinates, as well as the real-time tool nose running path, so as to monitor the running states of the
machine and program. The contents displayable are as follows:
Dynamic coordinates or dynamic tool nose movement path during the program execution.
Auxiliary function states, e.g. spindle, coolant, lubricant, tool, rotation speed, chuck, tailstock.
Machining time.
Part count
Continuous
%001
Part Count1
Machining Time000000
Z length : 286
mm (workblank)
X length : 260
mm (workblank)
Z offset :
74
mm
X offset : 0
mm
Scaling :
30 mm/grid
T 01 00
100%
Custom
30mm/grid
Program-created
X:0~300
Z:74~494
Z
X
0273.595
0166.523
100%
S01
S0500
G97
S0200 r
G98
F30
EDIT
JOG
AUTO
F 00100
PARA
OFFT
DIAG
OPERATION
4.5.3
Z-200 220
Hereinto:
1) The coordinates of the intersection point between Z scale mark and X scale mark are
OPERATION
2) Both Z scale mark and X scale mark are divided into a fixed number of equal grids.
3) The length of each grid is referred to as the display scaling, which is the scaling of the
display graph. It has nothing to do with the actual machining scaling.
4) If the size of the workpiece is too large, select scaling down; if the size is too small, select
scaling up, in order to view the graph clearly; the actual value range of X/Z offset: -9999
9999
After entering system graph display, the total lengths of Z scale mark and X scale mark of the part
program workblank are Z length and X length respectively. (Unit: mm)
Z:
Scaling Number of grids that the tool nose path graph occupies on Z axis;
X:
Scaling Number of grids that the tool nose path graph occupies on X axis 2
The graph area is classified into the custom type and program-created type. When selecting the
custom type, the length, offset, scaling can be modified; when selecting the program-created type, the
length, offset, and scaling cannot be modified. Here, the area range values pre-set by the system is the
complete graph of the program movement path, so it is unnecessary to modify the length, offset and
scaling. The system enters the program to set the execution state.
key or
key or
key to select the data to be modified. Then the screen displays the previously defined data as
follows. Move the cursor to the data to be modified, then press
and input the desired data.
Z length 200
mm workblank
X length 200
mm workblank
Z offset -200
mm
X offset -200
mm
Scaling
50
mm/grid
Custom
Program-created
Chapter Four
recurrently.
Modifying the scaling: When the cursor points at Scaling, press
key or
key to
60, 70, 80, 90, 100, 200, 300, 400, 500, 600. The user can select an appropriate level to obtain
the optimal display effect depending on the actual conditions.
Two types of graph area: Press
key or
program-created type. When selecting the program-created type, the data cannot be modified;
when selecting the custom type, the data can be modified. At this moment, the user can input the
new data as required.
After completing the modification of the data, press ESC key or ENTER key to exit, and return the
system to Auto operation mode. If it is in the graph display mode, the system refreshes the graph
display range according to the set display data. When the set display data exceeds the displayable
range, the system prompts X/Z overlimit. At this moment, re-adjust the display data or reduce the
display scaling.
Note
1)
To correctly display the tool path, the start position of the tool should be beyond the display
range of the workblank, or the machining progress cannot be correctly displayed.
2)
During the program execution, if the coordinate display is switched to the graph display, the
system may not correctly display the workpiece shape until the next cycle starts.
4.5.3.3
Part count: After the program executes the program end command M02, M20 or M30 once, the
part count increases by one. The max. count is 99999. If it is exceeded, it is
automatically cleared. When M99 command is used to end a program, the part count
also increases by 1 after the program is executed once.
Machining time: Total program execution time. When CYCLE START key is pressed to start
program execution, the system starts timing until the program ends. During the
execution, if a pause operation is performed, the timing is stopped simultaneously.
After the execution recovers, the timing is started again. In Single operation, the
system only records the execution time of each block. The max. execution time:
99 hours 59 minutes 59 seconds; if the time reaches the maximum value, it is
automatically cleared.
79
OPERATION
scale down or scale up. The built-in scaling in the system contains 16 levels: 5, 10, 20, 30, 40, 50,
Part count and machining time clearing: In the initial state, by pressing
4.5.4
key twice,
OPERATION
In Auto operation mode, by pressing function keys, the user can operate some of the auxiliary
functions, which are the same as those in MANUAL operation mode. However, the auxiliary
functions allowed to operate by pressing keys vary with the system state; The rules are as follows:
1)
2)
When bit parameter P400_d5 is set to 0, the spindle CW, CCW, Stop keys are valid.
(invalid in the running state)_.
3)
In the initial state, the spindle gear shift key (speed switch key) is valid.
4)
In the initial state, when the hydraulic chuck control function is valid, the user can control
the clamping and releasing of the chuck with an external button or footswitch. The chuck
clamping/releasing action interlocks with the spindle.
5)
4.5.5
4.5.5.1
In the initial state, when the hydraulic tailstock control function is valid, the user can control
the clamping and releasing of the tailstock with an external button or footswitch. The
tailstock clamping/releasing action interlocks with the spindle ..
In Auto operatio mode, the feedrate override key and rapid override key are valid in any state.
In Auto operation mode, the program execution speed can be changed by changing the speed
override, without altering the program and the speed set in parameters.
Feedrate override
adjusting the speed of rapid traverse commands such as G00 in the program.
Z axis actual rapid traverse rate =
The rapid traverse override contains four gears: 25%, 50%, 75%, 100%. It controls all the rapid
traverse commands and operations during the program execution.
The feedrate override can be changed with the rapid traverse +/-, keys/feedrate +/-keys. During the
program execution, the actual speed of the slide carriage varies with the speed override.
80
Chapter Four
The program execution is stopped when the feedrate override is 0 during the program execution,
and the system prompts Feedrate override is 0 . By adjusting the feedrate override to a nonzero value,
the program execution is continued.
When bit parameter P402_d1=1, the rapid traverse/feedrate override controlled by an MPG is valid. The
In Auto operation mode, the user can also use a MPG to control the rapid traverse/feedrate override.
OPERATION
OPERATION
By pressing CYCLE PAUSE key, the execution is stopped during program execution. After the
system responds, all the move axes are stopped, with PAUSE displayed on the lower left
corner of the screen.
2)
In the pause state, by pressing CYCLE START key, the system recovers the program and then
continues executing the remaining blocks; by pressing ESC key, the system exits the program
and then returns to the initial state automatically, with the pointer pointing at the first block of
the current program.
Caution
1) After pause, the spindle and tailstock are controllable. Before pressing CYCLE START key to
perform execution, make sure whether the spindle is started and whether the chuck and
tailstock are ready. Otherwise, it may cause damage to the machine or results in personal
injury.
2) In executing G32, G33, G92, G76 command, this key is invalid when the system is in the block
where the spindle machining thread is tracked.
Single stop
1) During Continuous program execution, by pressing SINGLE key, the system switches to single
execution mode. After the current block is executed, the screen displays Single stop.
2) After Single stop, the program execution is continued if CYCLE START key is pressed; and the
system returns to the initial state with the pointer pointing at the first block of the current program
if ESC key is pressed.
Note
1) In executing the canned cycle commands, the Single Stop is valid after each step in the cycle is
completed.
Cycle end stop
1)
During Continuous program execution, the screen displays Cycle stop: ON by pressing hp6
key. The execution is stopped after M20 is executed, and the screen displays Cycle stop
82
Chapter Four
4.5.6.2
The External feed/Spindle hold knob is effective only in Auto operation mode.
Parameter P412_d6 sets whether the External feed/Spindle hold knob is effective.
When P412_d6=1, the system External feed/Spindle hold knob is effective; the input signals are led
in through pin MXZ1, MXZ2.
for other purposes.
Introduction to External feed/Spindle hold knob
This CNC system contains an interface for the External feed/Spindle hold knob. When the knob is
rotated to different positions, the movement of the spindle and slide carriage can be enabled or disabled.
When debugging the program, it is very convenient to control the movement and stop of the spindle and
carriage. The External feed/Spindle hold knob has three positions, whose functions are as follows:
Position 1 enables the spindle rotation and the slide carriage movement.
Position 2 enables the spindle rotation, and disables the slide carriage movement.
Position 3 disables the spindle rotation, and enables the slide carriage movement.
Use of External feed/Spindle hold knob
Before executing the program:
When the External feed/Spindle hold knob is at position 1 and position 2, the spindle start/stop can
be controlled by pressing keys manually; however, when it is at position 3, the spindle cannot be started.
In Single operation mode:
When the External feed/Spindle hold knob is located at position 1, all the commands are executed
as usual; when it is at position 2, the spindle control commands can be executed rather than the move
commands of X, Z axes. These move commands can be executed only when the knob is rotated back to
position 1. When it is at position 3, no block can be executed. To execute the blocks, rotate the knob
back to position 2 or position 1.
In Continuous execution mode:
After starting the program, the user can rotate the External feed/Spindle hold knob anytime to
control the spindle and the movement of the slide carriage.
When the knob is located at position 1, the program is executed normally.
When the knob is rotated to position 2 from position 1, the slide carriage enters the pause state and
stops moving, but the spindle state is maintained.
When the knob is rotated to position 3 from position 2, the spindle stops rotating.
83
OPERATION
When P412_d6=0, the External feed/Spindle hold knob is ineffective; the input signal pins are used
OPERATION
The external cycle start/pause signal, which is set by parameter P412_d7, is effective only in AUTO
operation mode.
When P412_d7=1, the system external cycle start/pause signal is effective; the input signals are led
in through pin ST, SP.
When P412_d7=0, the system external cycle start/pause signal is ineffective; the input signal pins
are used for other purposes.
The function of the external pause operation key signal (SP) is the same as that of the feed hold key
(cycle pause key) on the panel; and the external cycle start key signal (ST) is the same as that of the
cycle start key on the panel. Both SP and ST are output to the system from the machine, with the low
level valid.
Before the system is switched to Auto operation mode from other modes, it is required that the
external start button and external pause button be released (disconnected). Otherwise, the system
issues an abnormality alarm.
For the connection, refer to Chapter Three CNC Device Connection in Part Connection.
4.5.6.4
If the function is required, define its input pin in interface parameters, and perform the connection
correctly; the system detects the signal at the corresponding pin.
P512
Dalm
Function descriptions
1)
When executing M20 command, the system automatically stops and issues an alarm after
detecting the signal.
2) If the program does not end with M20 command, but with M02 or M30 command, the feeding
device alarm function is invalid.
4.5.7
In the machining, it is available to modify the tool offsets in a pop-up window. However, this
operation should be performed with caution.
Chapter Four
1)
In the automatic operation, by pressing OFFSET key, the system displays a window, showing
the tool offset modification page; by pressing OFFSET key again, the system closes the window,
and so on.
2)
,
or
,
key (See
3)
Press ENTER key, then input the data; if the input data is required to directly replace the
original data, press ENTER key; if it is necessary to add the input data to the original data,
press ALTER key; if it is required to cancel the data, press ESC key.
4)
After the input, press OFFSET key or ESC key to exit the tool offset display page.
Note
1)
In inputting the data, the user can switch back to display page of Auto operation mode anytime.
Then after switching to the tool offset display page again, the previously-input data which has
been confirmed by pressing ENTER key is retained, and the user can continue the data input.
2)
On the tool offset modification page, the operations in Auto operation mode, such as dwell and
feedrate override modification, are still valid. During dwell, the user can also switch to the tool
offset modification page to modify the tool offsets.
4.5.7.2
Warning
The tool offset data modified is valid only after the tool change is executed. If it is the tool offset data
corresponding to the current tool offset number that is modified, the modified data is valid after the next
tool change is executed. If it is the tool offset corresponding to the tool offset number which has not been
executed that is modified, the modified data is valid in this execution.
If the tool offset of the current tool offset number is modified in the program without a tool change
command, the modified tool offset becomes valid after executing M02, M30, M20, Reset or interruption.
4.5.8
This function is valid in any state in Auto and Manual operation modes.
In the process of machining a part program automatically, a window can be displayed for the user to
view three kinds of data, i.e. macro variable, I/O variable and others during the system operation. The
explanations are as follows:
Macro variable: Viewing and modifying all the common variables; (unsupported)
I/O variable: Viewing the values (i.e. system interface states) of the system interface variables;
(unsupported)
85
OPERATION
or
Viewing the blocks that have been executed, spindle fluctuation range in threading, nesting
call level in subprogram and program cycle.
three-item (macro variable, I/O variable, others) page; by pressing ESC key, the system closes
the window.
OPERATION
2) Press
or
black.
3)
(pointed by the pointer). Here, the macro variable cannot be modified. Then press
key to view the last or the next macro variable, or press
or
the last page or next page of macro variables (seven lines per page); press
or
key to view
key to return,
In automatic initial state, the common variable at which the pointer points can be modified by
pressing ENTER key.
5) After viewing the variables, press ESC key to exit the display page.
Explanations
1)
Macro variable: Displaying the common variables being executed in the program where they are
edited, including the variable sequence number, variable name, variable value and state.
Therein, the variable values varying with the program execution are dynamically displayed, and
the sequence number as well as the variable name are arranged in ascending order. Variables
r001r040 are displayed in brown, variables r041r99 are in orange, and variables r100r199
are in green.
2 I/O variable: Dynamically displaying the interface state of the current program. The two state
values of the input interface variable are: 0 (low level) or 1 (high level); The low level indicates
that the external signal is valid, and the pin is connected to 0 V; the high level indicates that the
external signal is invalid. Variable state of the input interface: When 0 is output, the external
can form a return circuit. When 1 is output, the external cannot form a return circuit. r1001
r1032 are the states of the input interfaces, and r2001r2032 are the states of the output
interfaces; These states are classified into 8 groups. The first line displays the first group: r1008,
r1007, r1006, r1005, r1004, r1003, r1002, r1001, and so on.
3) Others: Viewing the total number of blocks that have been executed, spindle fluctuation range in
threading, nesting call level of the subprogram and program cycle.
86
Chapter Four
4) Before starting the program, the macro variables r100 r199 can be modified manually.
Modification method: Select the macro variable to be modified, press ENTER key to input the
desired value, and then press ENTER key again to complete the modification.
4.5.9
4.5.10 System Reset Key and Emergency Stop Signal Processing in Auto Mode
In Auto operation mode, the system enters the Reset state by pressing Reset key. See Section
4.1.4.7 Reset Operation in PartOperation.
For details about the emergency stop signal in Auto operation, see Section 4.1.4.3 Emergency Stop
Alarm in PartOperation.
Note
1)
Before releasing the emergency stop alarm, first confirm the fault has been removed;
2)
Pressing down the emergency stop button before Power On and Power Off can reduce
the surging to the equipment.
3)
Re-perform machine zero return after releasing the emergency stop alarm, to ensure the
coordinate position is correct (if the machine is not equipped with the machine zero, it is
forbidden to perform machine zero return);
4)
The external emergency stop is valid only when bit parameter P404_d7 is set to 0.
Press 9 key twice rapidly to cause the system to display the brightness adjusting window; the
windows is closed by pressing any key other than the brightness adjusting key.
87
OPERATION
This system allows the program to be started wherever the slide carriage is after the user sets the
Note
OPERATION
1) When the LCD has LED backlight, the brightness adjusting function is valid for the LCD screen;
when the LCD has CCFL backlight, the function is invalid for the screen.
2) The brightness adjusting window will disappear in 10 seconds if no key operation is performed.
3) It is also available to adjust the LCD screen brightness in Manual operation mode in the same
way as in Auto operation mode.
4.5.12
The displayed M commands are classified into the following 6 groups: M21/22, M23/24, M61/62,
M63/64, M65/66, other M commands: M60, M67M74, M81/82/83. In Manual/Auto operation mode, if
the M codes above are executed, the screen displays corresponding prompts. The M commands being
executed are displayed in red; the M commands which have been executed are in green; the M
commands which are terminated during operation are in yellow.
4.5.13
When executing the program in Auto operation mode, if there is an interlock relationship between
spindle and chuck, execute M3 to start the spindle during M11; there are two choices after an alarm
occurs:
1)
Press ESC key to exit to the initial state in Auto operation mode.
2)
Pedal the footswitch to execute M10; or execute M3 to start the spindle by pressing CYCLE
START key; or exit to the initial state in Auto operation mode by pressing ESC key.
88
Chapter Four
4.6
The functions of Parameter operation mode include: parameter input, parameter extraction,
parameter solidification and parameter transfer; for each operation, the system provides corresponding
intelligent prompt messages. Also, the user can press the hp2 key on the upper right corner of the
displays a window requiring passwords, input the user password or directly press Enter key to enter
the Parameter interface).
hp2
[ PARAMETER ]
M-REFER PARAM
P000
303.698
X-MOTION PARAM
P001
203.698
Z -DRIVE PARAM
P002
0.000
S-AUXLIARY PARA
P003
200.000
T-BIT PARAM
P004
200.000
U-INTRFACE
P005
200.000
W-VARIBLE
P006
200.000
P007
200.000
F-PITCH PARAM
EDIT
JOG
AUTO
PARAM
OFFT
DNG
OPERATION
manual are as follows: the function keys to be pressed are indicated by a sign; the letter keys, numeric
Parameter Overview
According to the level of the password that the user input, the parameters corresponding to this
level can be modified.
2)
If ENTER key is pressed without inputting any password, the operation level is level 4. The user
can enter the parameter interface to view the parameters here rather than modify them.
3)
The input and display format of the parameter: a decimal should include a decimal point, and a
OPERATION
negative number should include a negative sign; for the convenient and safe operation, the
system limits the number of effective digits.
4)
The user can open the message window which prompts the input range of the parameter data.
5)
The system self-checks the parameter data at power on, and prompts automatic initialization
after detecting the data is in mess.
6)
The system provides abundant and applicable safety parameters. Therefore, the user can
reduce the misoperation by setting the parameters appropriately, so as to prevent accidents.
4.6.1.1
Parameter Authority
The parameter authority is the password level to modify parameters. For convenient management,
the system provides the parameter authority setting function. The current operation level is displayed on
the prompt column on the top of the parameter page.
Arranged from high to low, the parameter password levels are as follows:
Level 1:
****
Level 2:
****
Device administrator,
Level 3:
3333
Level 4:
****
For the parameter levels of each type of parameter, see the parameter lists in the appendix.
Input the operation password (each time a number is input, a sign * is displayed.)
After the input, press ENTER key to enter the operation level corresponding to this password.
4.6.1.3
Parameter Management
The parameter management consists of the parameter display, parameter authority, and parameter
initialization, solidification, extraction, sending and receiving according to the parameter authority.
Parameter display
Meanings of the parameter colors:
In the current authority, the parameters allowed to modify are displayed in yellow, the parameters
not allowed to modify are displayed in white;
90
Chapter Four
On the parameter page, some operation function options are also relative to the authority; e.g. the
function options which are not operable after pressing hp6 key are displayed in grey-white.
Prompt message display:
When inputting a parameter, the user can open or close the prompt message about the parameter
value range by setting parameter P415_d7.
Other displays:
On the parameter page, if a parameter is modified successfully, a sign * is marked in front of its
parameter number, indicating the parameter modification succeeds.
After completing the some operations of hp6, the system displays the operation result, and marks a
sign * ahead of the parameter number which is successfully modified, indicating the parameter
modification succeeds.
Parameter authority
In different authorities, the alterable parameters are displayed in yellow, and the unalterable
parameters are displayed in white. The parameter update (e.g. parameter update through a serial port or
USB) can only modify the parameter data of the current user authority or lower.
The sign
level;
before a parameter means the parameter is alterable under the current password
Authority modification
The authority is modified using passwords, i.e. inputting the password when entering the parameter
password input page. If the password input page does not appear when entering the parameter page,
the user can set whether to memorize the password by setting bit parameter P416_d7. When
P416_d7=0, the password is not memorized. In this case, after entering the parameter page from other
operation modes, the parameter password input page will appear. The operations are as follows:
1)
2)
Press any operation mode key other than PARAMETER operation key;
3)
4)
5)
After the input, press ENTER key to enter the operation level corresponding to the password.
Parameter saving
The successfully-modified parameter is automatically saved into the CNC system. In addition, when
exiting from the parameter page (i.e. pressing other operation mode keys to enter other operation mode
pages), the system saves all the parameters. The parameter data saved in the system are read each
time the system is powered on. If the system detects a parameter exceeds the range during parameter
reading, the system replaces the value by the one within the range and issues a prompt. If the
parameters read during Power On are in chaos, the system prompts whether to read the original
solidified parameters; if there is no solidified parameter, the system prompts the user to select
91
OPERATION
displays the alarm message Without modification authority! on the parameter setting area.
If the user tries to modify the parameters with a higher authority than the current one, the system
4.6.2
Modifying Parameters
The system parameters have been initialized in factory. After installing the system to the machine,
please modify and debug the parameters appropriately depending on the actual conditions.
OPERATION
4.6.2.1
Searching Parameters
The parameter search is to search the desired parameter; there are two methods:
Method 1:
On the parameter page, select: M - reference parameters, X - motion parameters, Z - drive
Press
key or
or
key to move
the cursor leftwards or rightwards to select different bits, with the meaning of the selected bit
displayed at the same time.
Method 2:
Locate the desired parameter number directly. The procedures are as follows:
Press P key, and input the parameter number to be searched, then press ENTER key. The system
then displays the desired parameter with a highlighted block cursor. E.g., to search P208, first input P,
and input 2
0
8, then press ENTER key to seek parameter P208.
4.6.2.2
Modifying Parameters
Press ENTER key, then input the parameter data; or directly input the parameter data.
Note
1)
If the data input exceeds the specified parameter range, the data is invalid, and the contents of
the parameter are not changed.
92
2)
After inputting the data, the input data is invalid if ESC key is pressed.
3)
Chapter Four
After selecting the parameter to be modified, select the parameter bit to be modified using left
and right keys (the explanation for the currently selected bit is displayed on the bottom of the
screen).
Modifying a single bit: Directly input the desired data (only 0or 1).
Modifying all bits: the method is almost the same as that of manual setting of common
parameters. The only difference is that the data is input from left to right. E.g. input 11, and press
Bit parameter P411_d6: if it is changed, the pitch error compensation parameters P1000P1899
are initialized to 0, i.e. all the values of previous pitch error compensation parameters are
changed to 0.
4.6.3
According to the password level, the user can communicate, extract and solidify the parameters as
well as update the system software and memory; I is for parameter extraction; K for parameter fixture;
F for software update (the system software is upgraded with USB or RS232); D for internal memory
update.
During data solidification and extraction, please do not turn off the power, and do not perform other
operations before the operation is completed. The data solidification and extraction have no effect on the
part programs stored in the system.
4.6.3.1
There are two types of communication depending on the parameter transmission direction:
Parameter sending and parameter receiving. The parameter receiving includes three modes: PCCNC,
USBCNC, CNCCNC; the parameter sending also includes three modes: CNCPC, CNCUSB,
CNCCNC.
Parameter sending: (Operation level: all levels)
The operators of all levels can send the parameters to a U disc or a PC through RS232 serial port.
Parameter receiving: (Operation level: Machine tool builder, device administrator, machine operator)
The operators of level 3 or above can receive the parameters from a U disc or PC (RS232).
However, it is only valid for those parameters which can be modified in the corresponding level.
93
OPERATION
ENTER key, then the parameter is modified to: 00000011; input 11000000, and press ENTER
OPERATION
Set the baudrate and communication port of the communication software; see Chapter Five
RS232 and USB System Communication in PartOperation.
2.
Input the parameters saved in the external computer to the CNC system; or transmit the
parameters between CNC systems.
1) Connect the communication cable between CNC system and computer, or between CNC
systems at Power Off.
2) Turn on the CNC system and select the Parameter setting operation mode. Set a
corresponding authority in the CNC, and the received parameters can only modify the
parameters with a corresponding authority level; Before inputting a password, the CNC
disables the parameter
4)
5)
The operation is completed, and the system prompts the receiving succeeds
Chapter Four
When using a U disc to transmit parameters, create a folder with file name C001PAR in its root
directory, and the receiving and sending of parameters are in this folder. Format of file name: PAR + file
number (three digits) + .TXT
Standard format of TXT parameter file on PC
On a PC, the parameter files can be edited with TXT or LST text. However, to send the files correctly
system.
1)
On a PC, the suffix of the file name should be TXT or LST, e.g. PAR099.TXT; it is suggested
that the user use TXT suffix, for the convenience of the operation on PC.
2)
The first line of the contents of the TXT file must be the parameter mark: CNC_GSKC001; this
is an essential part.
3) The second line is the comment part, in front of which should be placed //; this item is omissible.
4)
The third line and the following lines are the contents of the parameter. The contents must be in
accordance with the requirements of the standard format.
E.g. P000: 00000.000
Hereinto, P000 is the parameter number; the format of the parameter number includes three
parts: P + number + :. If any part of them is missing, the parameter number is incorrect.
00000.000 is the contents of the parameter; // is placed in front of the parameter comment.
5)
6)
0000000000
P1010
0000000000
P1020
0000000000
P1880
0000000000
P1890
0000000000
P1900
P1901
P1902
P1903
P1904
P1905
OPERATION
the system. The requirements are as follows according to the parameter file pattern output by the
to the system, the file name and the contents of the file must be in accordance with the requirements of
00000.000000000.000000000.000000000.000000000.0000
P2010
00000.000000000.000000000.000000000.000000000.0000
OPERATION
7)
P2880
00000.000000000.000000000.000000000.000000000.0000
P2890
00000.000000000.000000000.000000000.000000000.0000
P2900
00000.000
P2901
00000.000
P2902
00000.000
P2903
00000.000
P2904
00000.000
P2905
00000.000
Remarks
CNC_GSKC001
//reference coordinate;
P000
00200.000 // Z program reference point
P027
0
// Y zero offset
//motion parameters;
P100
6000
// Z max. rapid traverse rate
P209
1200
// Spindle encoder lines
//Auxiliary function
P300
1000
// M41 gear max. speed
P344
0
//bit-control parameter;
P400
00000000 // Running setting
//interface parameter
P512
0
// Feed device alarm detection Dalm
P1905
0
//Y pitch compensation interval
4.6.3.2
The parameters which can be viewed on the interface are saved in the SRAM memory of the
system. The memory has the power failure protection function; if the battery of the mainboard fails , the
parameters will be lost.
The system is provided with the parameter initialization function; please perform the initialization
operation depending on the matched motor drive unit; for the system matched with a DA98 series drive
unit, perform the servo initialization, and for the system matched with a DY3 series drive unit, perform
the step initialization. The difference between servo and step initialization parameters lies primarily in the
96
Chapter Four
X- motion parameter. For the difference between servo/step values, see the motion parameter list in the
appendix.
The initialization parameters are not applicable to all the machines. The machine tool builder should
modify the parameters, such as the spindle and tool post, according to the specific machine
configuration.
To prevent the parameters from being lost, the user should perform the solidification command. That
Before performing the parameter solidification, the system checks corresponding parameters. If
the check is not passed, the system prompts an alarm message requiring the user to modify the
corresponding parameters; if the check is passed. the user can save the parameters to the
FLASH of the system for solidification.
2)
If no parameters are solidified before, the user cannot perform solidified parameter extraction.
4.6.3.3
The system software upgrade is to upgrade the system software, i.e. to replace the old version of
software by the new version; so as to improve the system functions.
The system update is to update and improve the system software, so as to make the system more
stable. It does no harm to the system, but incorrect operation may result in the system update failure. If
the update fails, the system cannot be started up, or even the system hardware will be damaged.
Therefore, we suggest the user not upgrade the system software without authorization. It is
recommended that the upgrade service be provided by our professional staff with our after-sale service
center.
The system memory upgrade is to upgrade the system memory, including the memory occupied by
the system software.
If the memory upgrade fails, serious consequences may occur. It is suggested that the
operation be performed by our professional technician instead of the user.
The methods of upgrading the system and memory include: USB mode and RS232 mode; the
operation can be performed only with the authority of the machine tool builder.
1)
OPERATION
The FLASH memory is capable of storing the data permanently without any battery. If the current
is, to solidify the parameters that have been modified to the FLASH memory of the system as a backup.
When upgrading the memory with USB mode, create a folder with the name C001MEMO in the
root directory of the U disc. The receiving and sending of codes are in the folder. Format of the file name:
MEMO+ file numberthree digits+.TXT. Range of the file number: 0~254. When upgrading the
OPERATION
memory
with
RS232
mode,
complete
the
operation
using
the
communication
software
GSKCOM_C001.EXE.
Note
1)
After the upgrade using USB mode succeeds, if ESC key or RESET key is pressed, the user
needs to return the control to Edit operation mode to re-edit the current program, or the system
issues an alarm.
4.6.3.4
On the parameter page, some operation function options are also relative to the authority; it is not
allowed to operate those function options displayed in grey white.
Correspondence between function options and password authorities
Operation authority
Operation option
Step,
servo
parameter
initialization
Extracting
parameters
of
machine tool builder
Parameter
solidification
operation
Parameters received with USB
and RS232
Parameters sent with USB and
RS232
System software update and
memory update
Level 1
Machine
tool builder
Level 2
Device
administrator
Level 3
Machine
tool
operator
According to
parameter
level
All
According to
parameter
level
All
According to
parameter
level
All
Level 4
No
password
According to
parameter
level
All
The in the table indicates the required authority; the space indicates no authority is required.
4.6.4
Description of Parameters
The system parameters are classified based on their use and functions. Their functions are as
follows: (Y axis function is invalid)
4.6.4.1
The reference coordinate parameters include the important coordinate position points of machine
Z/X/Y axes. The movement of each axis is based on these points.
98
Chapter Four
Program reference point of Z/X/Y axis__ Reference coordinate parameters P000, P001, P002
This parameter is used for setting the position of the program reference point. In Manual/Auto
operation mode, the machine returns to this position after performing the program reference point return.
The setting of the position can be modified by inputting a command (in Manual operation mode) or
executing G50 command (in Auto operation mode) .
The coordinates of the program reference point are the machine coordinates, which are not affected
4.6.4.2
P407
Machine zero coordinates of Z/X/Y axis__Reference coordinate parameters P021, P022, P023
This parameter determines the coordinates of the machine zero point position. If the machine is
equipped with the device to detect the machine zero point, and P407_d1 is set to 0, after the Machine
Zero Return (or G28) is executed in Manual/Auto operation mode and the system detects the Zero
99
OPERATION
Second, third program reference point of Z/X/Y axis__ Reference coordinate parameters P003,
axis coincides with the zero point rotation signal, the zero return precision may be affected (the
OPERATION
difference my be one revolution); in this case, set the offset to 2mm to avoid 2mm, then perform the
detection.
Zero-return low speed of Z/X/Y axis__ Motion parameters P109, P110, P111
Zero-return low speed is the traverse speed of the axis when detecting the zero signal during the
execution of machine zero function. When the zero return speed is higher than the minimum start speed,
the zero return is performed at the minimum start speed. When the zero-return speed is lower than the
start speed, the zero return is performed at the zero-return speed. After setting the zero-return speed, do
not modify it freely. Otherwise, the zero-return precision may be affected.
Zero setting 1__ Bit parameter P406 (password level: 1)
d7
d6
d 5
d4
d3
d2
reserved
d0
1: With.
// If the machine is not equipped with a machine zero switch or stopper, set it to 0;
1: With.
// If the machine is equipped with a machine zero switch and stopper, set it to 1;
// The system provides four types of zero return (see CONNECTION for details) as follows:
Zero return
type
1
2
3
4
100
Deceleration
signal
Zero
signal
With
With
With
Without
Without
With
Without
Without
Remarks
Return to machine zero using both the deceleration
signal and zero return signal
Return to machine zero only using the deceleration
signal
Return to machine zero only using the zero signal.
Return to the zero coordinates set by parameters
(without a machine zero)
Chapter Four
OPERATION
d6
d5
d4
d3
d2
d1
Reserved
// If the deceleration switch is installed at the end of the positive direction for the
coordinate axis, the parameter is set to 0, and the system moves towards the
positive direction to detect the zero point;
1: Negative.
// If the deceleration switch is installed at the end of the negative direction for the
coordinate axis, the parameter is set to 1, and the system moves towards the
negative direction to detect the zero point;
// The system decelerates to stop during axis zero return when detecting the
deceleration signal is the low level.
1: High.
// The system decelerates to stop during axis zero return when detecting the
deceleration signal is the high level.
d1__ Whether to modify machine coordinates after the machine zero is returned.
0 Modify machine coordinates
1:
4.6.4.3
equipped, the system returns to the machine zero by type-4 zero return, i.e. returning to the zero
P112P119
To enhance machining efficiency, the system can be applied to motors of different types or machine
tools of different loads by adjusting parameters P100P116, etc. E.g. When using a stepper motor,
adjust the parameters to a lower value to prevent stepout; when using a servo motor, adjust the
parameters to a higher value appropriately.
101
Actual rapid traverse rate of Z axis = P100 rapid override (unit: mm/min)
OPERATION
Actual rapid traverse rate of X axis = P101 rapid override (unit: mm/min)
Actual rapid traverse rate of Y axis = P102 rapid override (unit: mm/min)
Minimum initial speed of Z/X/Y__Motion parameters P103, P104, P105
Parameters P103, P104, P105 determine the minimum initial speed for Z, X, Y axis respectively
when the axis movement is performed in MANUAL operation mode or G00 is performed in AUTO
operation mode; When the speed of Z, X, Y axis is lower than the value set in P103, P104, P105, the
value set in P103, P104, P105 takes precedence.
Adjust the value of this parameter to a proper value based on the actual loading of the machine tool.
(Unit: mm/min)
Z/X/Y rapid feed acceleration/deceleration timems__Motion parameters P106, P107, P108
Parameters P106, P107, P108 determine the time that the speed linearly increases from 0 to
15m/min for, X, Y, Z axis respectively when the axis movement is performed in MANUAL operation mode
or G00 is performed in AUTO operation mode; (X axis is programmed in radius ). The greater the values
of P106, P107, P108, the longer the acceleration process of Z, X, Y axis. To improve machining
efficiency, decrease the values of P106, P107, P108 as much as possible on the condition that the load
characteristics are satisfied. (Unit: ms)
Initial speed of cutting feed__Motion parameterP112
P112 cutting initial speed. Parameter P112 determines the initial speed of cutting commands such
as G01, G02, G03, G05 during system automatic machining. (Unit: mm/min)
Max. speed limit of cutting feed__Motion parameter P113
P113 maximum speed of cutting feed. P113 determines the maximum speed of cutting commands
such as G01, G02, G03, G05 during system automatic machining. When the F speed value specified by
the program is greater than the one set in P113, the latter takes precedence. When the thread cutting
speed exceeds P113, the system issues an alarm, terminating the thread machining. (Unit: mm/min)
Cutting feed linear/exponential acceleration/deceleration time (ms)__Motion parameters P114,
P115
P114 Feed linear acceleration/deceleration time; P115 Feed exponential acceleration/deceleration
time;
Parameters P114 and P115 determine the time that the speed of cutting commands such as G01,
G02, G03, G05 accelerates from 0 to 15m/min during system automatic machining. (Unit: ms)
Thread cutting acceleration/deceleration time (ms)__Motion parameter P116
102
Chapter Four
Parameter P116 determines the time that the speed of the thread cutting axis accelerates from 0 to
15m/min. The smaller the P116, the shorter the generated distance. If P116 is too small, the stepper
motor may step out. (Unit: ms)
Thread run-out acceleration/deceleration (ms)__Motion parameter P117
When there is run-out in thread cutting, parameter P117 determines the acceleration/deceleration
time is the time that the speed accelerates from 0 to 15m/min. The smaller the P117, the steeper the
run-out. If P117 is too small, the stepper motor may step out. (Unit: ms)
If the parameter is set to 0, the system detects the lines of the spindle encoder each time it executes
G99 command. It starts to execute the commands following G99 when the encoder rotates to the lines
set in P118, i.e. the spindle rotates to a specific angle.
If the setting value of the parameter is not 0, the system does not detect the lines of the encoder, but
directly executes the commands following G99.
The lines that the system detects is four times that of the spindle encoder.
E.g. If the lines of the encoder installed is 1200, the lines that the system detects changes between
0~4800 recurrently. This parameter should be set between 04800 as well, or the system keeps waiting
because G99 command cannot be detected.
Delay time when positioning converts to cutting (ms)__Motion parameter P119
If the last command is a rapid positioning command, and its following one is a cutting command, the
delay set in P119 is automatically inserted between these two commands;
This parameter is used for preventing the taper streak on the workpiece due to the excessively fast
command transition. If the parameter is too large, the machining efficiency may be affected. In general,
set it between 0100.
Example 1:
G00 U-50
Rapid positioning
G01 W-10 F100 The following command (this one ) is a cutting command. Before executing this
command, delay P119 is inserted; to prevent taper streak generating on the front end.
Example 2
G00 U-50
Rapid positioning
S1000
G01 W-10 F100 Since this command does not follow the rapid positioning command closely (another
command separates them ), no delay is inserted during execution.
4.6.4.4
103
OPERATION
OPERATION
1)
When setting parameters of drive, the ratio of the multiplier coefficient to the division coefficient
should be limited between 1/128 128, or the system issues an alarm.
2)
3)
When the ratio of the multiplier coefficient to division coefficient is not 1:1:
Z/Y axis: Each time 0.001 mm is moved, the pulse that the system outputs is: multiplier
coefficient/division coefficient
X axis: In system radius programming, each time 0.001 mm is moved, the pulse output is:
multiplier coefficient * 2/divisioin coefficient. (In system diameter programming, each
time 0.001 mm is moved, the pulse output is: multiplier coefficient/division coefficient. )
4) The maximum pulse output frequency of the system is 511pps/ms. This value cannot be exceeded
anytime, or an alarm occurs during movement. I.e. System parameter P100 (maximum traverse
speed) multiplier coefficient/division coefficient should not be greater than 30000mm/min.
Spindle encoder lines__Drive parameter P209
This parameter determines lines with settable range between 1005000 for the spindle encoder.
When the spindle is ON and the diagnosis operation mode is entered, if the set value is inconsistent with
the lines of the spindle encoder, the diagnosis check prompt : Encoder lines inconsistent with parameter
is displayed in the diagnosis mode. Unit: line/rev.
Backlash value for Z/X/Y__ Drive parameters P200, P201, P202
These parameters respectively determine the backlash values of mechanical drive for Z, X, Y axes.
Unit: mm.
Because gaps exist in the driving parts such as a screw and speed reducer on the machine tool,
errors occur when the tool post moves back and forth. To compensate the errors caused by the gaps,
Parameters P200, P201, P202 are provided. By setting these three parameters, the system
automatically compensates the gap errors when the machine changes its direction during movement.
The mechanical drive gap of the machine can be measured with following method (an example for Z
axis)
1)
2)
Mount the dial-indicator to a proper position on the machine, move the tool post till it touches
the measuring head, and then set the pointer of the dial-indicator to 0.
104
Chapter Four
3)
4)
Press Z axis coordinate axis move key to move the tool post towards the dial-indicator, then
make the pointer of the dial-indicator rotate one revolution and point at 0.
5) Press Z axis coordinate axis move key to move in the reverse direction, the dial-indicator rotates
back because the pointer cannot return to 0 position due to the gap. Here, the difference
between the position where the pointer points and 0 position is the backlash value of Z axis.
Note
It is necessary to repeat the above steps several times to measure the gap correctly.
2)
The measuring method for X axis is the same, but the measured value should be multiplied by 2
to convert to the diameter amount.
d6
d5
d4
Reserved
Reserved
d1
Reserved
1: Enabled.
Unequal space.
input for each axis; the interval between points is the same.
Since the compensation data formats for corner description method and equal-space description method
are different, the system prompts whether to confirm the modification when modifying this bit parameter.
If the modification is confirmed, the original compensation data will be cleared, and the user needs to
re-input the data in terms of the new format.
d5__ Tool nose radius compensation function
0: Disabled.
1:
Enabled.
// The system processes the transition mode for the sharp corner as the line
Arc transition // The system processes the transition mode for sharp corner as the arc
transition in executing tool nose radius compensation.
// Z/X/Y axis performs backlash compensation at the low speed, which is set by
P103, P104, P105.
1: High speed.
// Z/X/Y axis performs backlash compensation at the high speed, which is set by
P100, P101, P102.
105
OPERATION
1)
4.6.4.5
OPERATION
d7
d6
d5
d4
d3
d2
Reserved
Reserved
Level.
1:
Pulse.
// The control signals for the spindle gear are direct outputs S01S04. It is forbidden to
use S05S15 commands.
1: Coded.
// The control signals of the spindle gear are coded outputs S00S15.
// This parameter is used together with P310 (Occupied lines of the spindle gear control ). If it is set
to direct output, each control line controls one gear, and the total number of gears is the same as
that in P310; If it is set to coded output, it performs coded output based on the number of control
lines in use. The total number of control gears is 2P310 ; up to 4-channel control line output can be
set as gear control signal.
d4__ Switching between spindle and Y axis
0: Not performed. // The spindle cannot operate in position control mode. It is forbidden to use
M47/M48 command.
1: Performed.
1: Not used.
// When executing M5, the brake signal MSP is not output. The MSP signal interface
can be used for other interface controls.
106
Chapter Four
1: Not used.
Maximum speed of gear M41, M42, M43, M44__ Auxiliary parameter P300, P301, P302, P303
This parameter is the maximum speed of gear M41, M42, M43, M44. When the system employs a
the spindle is controlled by a spindle multi-gear switch value, parameters P300, P301, P302 and P303
are disabled. (Unit: r/min)
Spindle minimum speed in constant surface speed__ Auxiliary parameter P304
This parameter limits the minimum speed in the constant surface speed cutting. According to the
computational formula for the constant surface speed cutting:
Surface speed = Spindle speed * |X| */1000 (Unit for X: mm, unit for spindle speed: r/min)
The X in the above formula means the absolute value (diameter value) of the X-axis tool nose
coordinate. When X is smaller than a certain value, the spindle speed calculated is smaller than the
value set in P304. In such a case, the spindle speed is clamped to the speed set in P304.
Spindle maximum speed in constant surface speed__ Auxiliary parameter P305
This parameter limits the maximum speed in the constant surface speed cutting. According to the
computation formula for the constant surface speed cutting:
Surface speed = Spindle speed * |X| */1000 (Unit for X: mm, unit for spindle speed: r/min)
The X in the above formula means the absolute value (diameter value) of the X-axis tool nose
coordinate. When X is greater than a certain value, the spindle speed calculated is greater than the
value set in P304. In such a case, the spindle speed is clamped to the speed set in P305.
Thread smooth speed boundary__Auxiliary parameter P306
During thread machining, the system has two modes: One is the high-speed machining, the other is
the low-speed machining. Parameter P306 is the boundary between the two machining speeds (unit:
r/min ). In general, P306 should be greater than 100.
If P306 is set to 300, make a judgment on the mode to be used based on the currently-detected
actual spindle speed before the system machines the thread. If the actual speed is greater than 300, use
the high-speed machining mode. Otherwise, use the low-speed machining mode.
When using the high-speed machining mode, the system following performance for the spindle
speed fluctuation is the highest, but the motor running stability may be reduced; When the spindle speed
fluctuation is intensive, there may be vibrating streak generated on the machining surface, or step-out
occurs on the stepper motor.
When using the low-speed machining mode, the system following performance for the spindle
speed fluctuation is slightly lower, but the motor running stability may be enhanced; When the spindle
speed fluctuation is intensive, the vibrating streak is not obvious and the stepper motor is not easy to be
out of step.
107
OPERATION
the maximum speed corresponding to the machine when the system outputs 10V analog voltage. When
frequency converter to control the spindle, and the spindle gear is in gear M41, M42, M43 or M44, it is
OPERATION
In spindle JOG mode, it is the time for starting the spindle, then the spindle stops automatically after
the time is up. When parameter P308 is 0, the spindle JOG function is disabled. (Unit: ms)
Speed in spindle JOG__ Auxiliary parameter P309
When the spindle is in the JOG state in MANUAL mode, it is the speed after spindle start key is
pressed. (Unit: r/min)
If P309=0, the JOG output speed is the same as the speed at which M03/M04 is executed.
Occupied lines of spindle gear control__Auxiliary parameter P310
The parameter limits the number of output control lines used for spindle gear control. Up to 4 control
lines can be used. When the control lines are less than 4, only the low-digit control lines can be used,
and the unused high-digit control lines can be used for other purposes.
When the occupied number of lines =0, no output is available.
When the occupied number of lines =1, only S01 output is available.
When the occupied number of lines =2, only S02 and S01 outputs are available.
When the occupied number of lines =3, only S03, S02 and S01 outputs are available.
When the occupied number of lines =4, S04, S03, S02, S01 outputs are available.
Frequency-conversion spindle gear shift time 1, 2ms
__ Auxiliary parameters P311, P312
The spindle gear shift time for M41~M44 when the spindle is the frequency-conversion spindle.
(Unit: ms). For details, refer to Section 4.4 Manual Operation Mode in PartOperation.
Interval time for spindle gear shift(ms)__ Auxiliary parameter P313
This parameter determines the time interval from cancelling the original gear signal to outputting the
new gear signal. (Unit: ms)
Output voltage during spindle gear shift (mV)__ Auxiliary parameter P314
It is the output voltage during spindle gear shift. (Unit: mV)
Delay time from spindle stop to spindle brake (ms)__ Auxiliary parameter P315
This parameter determines the delay time from sending the spindle stop signal to sending the
spindle brake signal. (Unit: ms)
Spindle brake output time (ms)__Auxiliary parameter P316
This parameter means the brake signal output time. In general, it is set to the time required for the
spindle motor to stop completely from the braking. (Unit: ms)
Spindle maximum speed limit__Auxiliary parameter P317
This parameter limits the spindle maximum speed. (Unit: r/min)
108
Chapter Four
If the S speed set by the program command is greater than the value given by P317, the spindle
speed is clamped to the one set in P317.
Spindle control pulse time (ms)__Auxiliary parameter P326
This parameter determines the hold time of the pulse signal when the spindle (M03/M04/M05),
coolant (M08/M09) output is the pulse control mode. (Unit: ms)
M code response detection timems__
(Unit: ms). E.g. When executing M10 in MANUAL operation mode, if the chuck clamping response signal
is not detected after waiting for the period of time set in P329, the system issues: Chuck clamping
response detection overtime alarm.
Cutting enabled when rotation speed reaches certain percentage__Auxiliary parameter P341
If the cutting is started immediately after the spindle is started or the gear is shifted, the tool life and
workpiece will be affected because the spindle has not reached the preset speed.
This parameter is used for the automatic identification of the spindle speed arrival. E.g. P341=80
means the cutting is allowed when the spindle actual speed is within the speed range (100%20%) set
by the program, i.e. within the range between 80%120% ; If the programming is S2000, the cutting is
allowed when the actual speed detected by the system is within the range of 16002400. Otherwise,
the system has to wait.
When P341=0, this function is disabled. When P341 is not set to 0, the system automatically detects
the actual speed in MANUAL or Auto mode, with the state of the spindle actual speed being displayed on
the screen; if the spindle speed Sxxxx is displayed in yellow, it means the preset range has not been
reached; if it is displayed in green, it means the preset range has been reached.
Use: When using either a frequency-conversion spindle or gear-shift spindle, this parameter is valid.
When using the frequency-conversion spindle, the system makes a judgment by using the
programmed speed S and actual speed.
When using the gear-shift spindle, the spindle speeds of gears S1S4 respectively correspond to
the set values of parameters P300P303; e.g. when the gear of the gear-shift spindle is S1, the system
makes a judgment by using parameter P300 and the actual speed. P341 is invalid for other gears, so
they are not restricted by P341 during cutting.
This parameter is valid only for the cutting commands, e.g. G01, G02, G33; and it is also valid for
the cutting in compound commandsWhen cutting commands are executed continuously, only the first
cutting command is detected. If the spindle speed is displayed in yellow, and the cutting command does
not move, it means the system is waiting for the spindle to reach the preset speed.
4.6.4.6
109
OPERATION
signal is not detected within this period of time, the system prompts the corresponding alarm message.
This parameter determines the limit for M code response detection time. If the M code response
d6
d5
d4
d3
d2
Reserved
Reserved
1: Table checking
// For some special tool posts, it is necessary to use the table checking
method, which requires to set the tool number detection signals in
parameters P541P556 . For details, refer to Section 3.4.4 in Part
Connection.
OPERATION
// Without the tool post clamping in-position signal (input interface 9 can be released).
// With the tool post clamping in-position signal (input interface 9 is occupied).
1: High
// Tool post temperature control switch (TGR signal) low level is valid.
1: High
// Tool post temperature control switch (TGR signal) high level is valid
1: High
1: High
Chapter Four
standard configuration of the system is 8-station electric tool post. The tool number signal can be
extended to 12~16 stations electric tool post according to the specific coded input. See Section 3.4 Tool
Change Control Function and Connection in Part Connection
Number of lines occupied by tool number signal__ Auxiliary parameter P320
This parameter determines the number of system hardware interfaces occupied by the tool number
signal. The maximum number is 8, i.e., up to 8 interfaces can be occupied. In general, it is set in
OPERATION
operation mode.
combination with the maximum tool number. The interface occupation can be displayed in the Diagnosis
4.6.4.7
OPERATION
If the chuck is in the pulse control mode, this parameter determines the duration of the pulse signal
output by executing the chuck command (M10/M11). (Unit: ms)
Tailstock control pulse timems
__Auxiliary parameterP328
If the tailstock is in the pulse control mode, this parameter determines the duration of the pulse
signal output by executing tailstock command (M78/M79). (Unit: ms)
Chuck tailstock__Bit parameter P409password level: 1
d7
d6
d5
d4
d3
d2
d1
d0
// If the response detection is required, input interfaces RM10 and RM11 are
respectively used as clamping and release in-position signal inputs
1: Pulse.
// In pulse control mode, the output holding time of signals M10, M11 is set by parameter
P327.
1: Pulse.
// Pulse control mode, the output holding time of signals M78, M79 is set by parameter
P328.
112
Chapter Four
1: Not required.
d0__Hydraulic tailstock foot switch input
0: Required.
1: Not required.
OPERATION
4.6.4.8
d6
d5
d4
d3
d2
d1
Reserved
// Spindle gears M41M44 are not memorized in MANUAL or AUTO state. The
gear is M41 after the power is turned off and then back on.
1: Enabled. // Spindle gears M41M44 are memorized in MANUAL or AUTO state. The gear
after power on is the one before the last power-off.
d5__ Spindle in AUTO mode
0: Is controlled by keys. // In the state that no program is executed in AUTO mode, Spindle CW,
Spindle CCW, Spindle Stop keys are enabled.
1Is not controlled by keys.
1: Disabled.
1: Smooth.
// The external MPG control knob is enabled, and the axis select key on
the keyboard is disabled.
// In MANUAL operation mode, after pressing MPG key to switch to MPG mode, the indicator lights
up, and on the screen are displayed the states of the external MPG control knob, axis select key and
movement amount knob. The coordinate axis selected is highlighted.
113
d6
d5
d4
d3
d2
d1
d0
1: Skipped.
// In the dry run state, when executing the auxiliary function command, the signals are
not output and detected.
OPERATION
//Short linear connection transition does not use the high-speed connection.
// When P401_d5=0, for the successive short line blocks (no empty line, notation line, or other block
between blocks) with short movement distance and fast executed speed, the CNC realizes the
optimal speed connection transition by adopting the advanced preview control mode. Up to 80
blocks can be pre-read.
d4__Cutting command
0: Continuous smooth transition.
1: Deceleration to 0.
// In G01, G02, G03 cutting feed, when bit parameter P401_d4=0, the system employs
post-acceleration/deceleration. At the intersection of the paths of the two adjacent cutting feed
blocks, an arc transition is formed due to the acceleration/deceleration. In such a case, the
intersection of the two paths cannot be precisely positioned, so there is an error between actual
path and programmed path. To prevent such a contour error, insert a delay command (G04)
between the two blocks or set the system bit parameter P401_d4 to 1. At this moment, the former
block decelerates to 0 when it moves to the block end point, precisely positioning at the end point.
Then the system proceeds to the next cutting feed block; in this mode, however, because each
block starts to accelerate from 0 speed, and the next block is not executed until it decelerates to 0
at the end point. Thus, the program run time will increase, reducing the machining efficiency.
d3__ Execution sequence of multiple commands in the same block
0 step by step
1: Simultaneously.
114
Chapter Four
// When P401_d3=1, the execution is simultaneous execution; in this mode, the irrelative
commands are executed almost at the same time, without following the execution sequence of
step by step or waiting for each other. However, for those M codes with interlock relationship, the
system automatically arranges the execution sequence according to the parameter.
// When P401_d3=0, the execution is performed step by step; the non-simultaneous execution
sequence is as follows: after a function command is executed, the next function command can be
// Under the premise that P401_d3=1, P401_d2=1 is valid. When P401_d2=1, the rapid
block skip execution is allowed. In the mode, as long as the axis move commands in
the current block are executed (without waiting for the completion of the execution of
other MST commands), the system rapidly skips to the next block to execute.
d1__G92
Run-out
0: Optimized. //When there is run-out in G92, the run-out axis directly retracts to the start point of
G92 if there is only I; thus enhancing the efficiency and improving the run-out effect.
1: Common. // The run-out is performed according to the G92 run-out mode described in Section
4.13.2 in Part Programming.
d0__Cutting efficiency
0: Normal state.
// The cutting speed is the normal value set by cutting feed command F.
1: Optimized. // The cutting efficiency is improved by 5% by optimizing the speed; which applies to
the situation that F is not modified, but efficiency needs to be improved.
When P401_ d4=0, it is the cutting command continuous smooth transition. The system
acceleration/deceleration after interpolation is valid:
Processing of G01:
When P401_ d5=0, G01 command has the acceleration/deceleration function before
interpolation, and the connection transition between G01 and G02 is performed at the optimal speed;
then the system performs the acceleration/deceleration processing after interpolation; When the
cutting speed is high, the line segment path is accurate, and the transition point is smooth. In this
case, the acceleration/deceleration function after interpolation does not have much effect on the
path precision.
When P401_ d5=1, G01 command does not employs high-speed connection. It directly
performs the acceleration/deceleration after interpolation instead of acceleration/deceleration
before interpolation.
Processing of an arc
When P400_ d2=0, it is the path precise processing when the arc crosses the vertex. The arc
command has the acceleration/deceleration function before interpolation. The speed decelerates to
115
OPERATION
2When P401_ d4=1, the cutting command decelerates to 0; the deceleration function after
OPERATION
interpolation is invalid:
Processing of G01:
When P401_ d5=0, G01 command has the acceleration/deceleration function before
interpolation, and the connection transition between G01 and G02 is performed at the optimal speed;
all the G01 commands decelerate to 0 speed when moving to the end point of the block, and are
positioned at the end point precisely; when the cutting speed is high, the line segment path is
accurate, and the transition point is smooth.
When P401_ d5=1, G01 command has the acceleration/deceleration function before
interpolation. Each cutting command decelerates to 0 after it is executed.
Processing of an arc
When P400_ d2=0, it is the path precise processing when the arc passes the vertex. The arc
command has the acceleration/deceleration function before interpolation. The speed decelerates to
the start speed when the quadrant is passed, then the backlash is performed, and the machining
path transits to the next quadrant, then accelerates, and then decelerates before the end.
When P400_ d2=1, it is the smooth processing when the arc passes the convex; the arc
command has the acceleration/deceleration before interpolation. If the backlash is 0, the
deceleration is not performed when the quadrant is passed.
4.6.4.10
d6
d5
d4
d3
d2
d1
d0
// When it set to 0, the move axis decelerates to stop if the hard limit alarm
occurs. The coordinate is the same as the actual position.
1: Emergency stop.
// When it is set to 1, the move axis immediately stops after the hard limit
alarm occurs. The coordinate may not be the same as the actual position.
// If the spindle stops during cutting, the system stops the feed and turns off the
spindle, with an alarm being issued.
116
Chapter Four
1: Not performed.
// In MANUAL/AUTO operation mode, after the spindle is started, the system automatically detects
the spindle speed. If the spindle is not started normally, the system prompts Spindle rotation
abnormality. If the spindle stops rotating by accident during cutting feed, the system will stop the
feed, suspend the program execution and turn off the spindle, issuing an alarm.
// When the spindle is required to work at a very low speed (lower than 1 r/min), the system may
// When it interlocks with the spindle, the chuck cannot be controlled before the
spindle stops; the spindle cannot be started neither when the chuck is not
clamped tightly.
1: Is released. // When the interlock between chuck and spindle is released, neither the spindle
starting is affected by the state of the chuck, nor the chuck control is affect by the
state of the spindle.
d4__ Chuck response signal consecutive detection alarm is
0: Not issued.
1: Issued.
// This bit indicates whether to detect the state of the chuck in real time. Anytime the
chuck is released, an alarm is issued. This control bit is valid only when there is a
response signal for the chuck (P409_ d5=1).
// When the tailstock interlocks with the spindle, the tailstock cannot be controlled
before the spindle stops; the spindle cannot be started neither when the tailstock
is not clamped tightly.
1: Is released. // When the interlock between tailstock and spindle is released, neither the spindle
starting is affected by the state of the tailstock, nor the tailstock control is affect by
the state of the spindle
d2__ Tailstock response signal consecutive detection alarm is
0. Not issued.
1: Issued // This bit indicates whether to detect the state of the tailstock in real time. Anytime the
tailstock is released, an alarm is issued. This control bit is valid only when there is a
response signal for the tailstock (setting parameter P519, P520).
d1__ Auto MPG control
0: Disabled.
// In AUTO operation mode, using MPG to control the rapid/feed override is invalid.
1: Enabled.
// In AUTO operation mode, using MPG to control the rapid/feed override is valid.
OPERATION
frequency-conversion spindle, when the programmed speed is lower than S0, the system will not
issue an alarm by mistake. In this case, the user should set the parameter to 1. For the
d6
d5
d4
d3
d2
d1
d0
OPERATION
// During tool change in MANUAL state, the system prompts Confirm tool
change?, then you can execute tool change by pressing ENTER key.
// The program compound check prompt alarm caused by inconsistence with the tool
setting record is not displayed.
1: ON.
// The tool setting record has been set in the tool offset number. When the other tool
numbers still use this tool offset number during programming, the system displays
[Program compound check prompt alarm]. E.g. T0205 is inconsistent with the tool
setting record T0105.
system only turns off the output signals of the spindle, coolant and lubricant.
1: All are turned off.
//When the emergency stop alarm is valid, the system turns off all the output
signals of the auxiliary functions.
Turned off.
// After pressing Reset key, the system turns off the output signals of M03, M04,
M08, M32.
// After pressing Reset key, the system does not turn off the output signals of
M03, M04, M08, M32.
Chapter Four
Otherwise, the system issues an alarm and terminates the machining program when the relative
commands cannot be completed.
In the process of automatic machining, the commands that can be retried are: T commands, chuck
(M10/M11) control and tailstock (M78/M79) control.
When executing these commands, if the corresponding valid input signal is not detected, the
commands cannot be completed within a specified period of time, then the system prompts whether to
After the fault is removed, press R key to re-execute the command which caused the fault. After the
retry operation is correctly completed, the system is at the pause state, and the user can continue the
machining by pressing CYCLE START key. If the retry execution is still incorrect, you can perform the
retry operation several times; if the command cannot be executed correctly after multiple retry
operations, you can exit the machining program by pressing ESC key.
d0__ Waiting for the speed to be stable before thread machining is
0: Not performed.
1: Performed.
// Whether the spindle speed is stable is not detected before thread machining.
d6
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
// The system displays a window to prompt the state change of the spindle, chuck
and tailstock.
119
OPERATION
check relative input signals and remove the fault in terms of the prompted message.
retry. After the retry message appears, the system is at the pause state; at this moment, the operator can
judges whether the state is consistent with the previous one after CYCLE START key is pressed. If the
OPERATION
states are inconsistent with each other, a window pops up to prompt the changed contents. In such a
case, you can recover the state by another operation, or press Y key to continue the execution; after N
key is pressed to exit, the window displaying prompts for M3/M4/M5, M10/M11, M78/M79 dispappears,
and the system returns to the pause state.
Debugging setting__Bit parameter P404 (password level: 2)
d7
d6
d5
d4
d3
d2
d1
d0
This parameter is set for the convenience of the system debugging. In the online state, it must be
set to the valid state. Otherwise, it cannot provide protection.
d7__Emergency stop alarm is
0: Detected.
1: Shielded.
1: Shielded.
1: Shielded.
1: Allowed.
Chapter Four
OPERATION
d6
d5
d4
d3
d2
d1
d0
This parameter sets the motor working state and whether there is the Y axis control.
d7__Z axis motor direction;
d6__X axis motor direction;
d5__Y axis motor direction;
0: Positive.
1: Negative.
// By setting the parameter for the motor direction, it is available to change the
motor rotation direction without changing other external conditions. Make the tool
post actual movement direction the same as the system-defined direction.
// When the input signal of drive unit alarm for Z, X, Y axis is the high level, Drive unit
alarm is issued.
1: Low. // When the input signal of drive unit alarm for Z, X, Y axis is the low level, Drive unit
alarm is issued.
d1__Control axis
0: Without Y axis.
1: With Y axis.
// The control axis has Y axis, and Y axis move command is allowed. Note: 928TD
has no Y axis function.
1: Exponential.
4.6.4.12
Whether to modify and then re-solidify the solidified program is determined by the
P330P332
d6
d5
d4
Reserved
d2
d1
d0
1 Enabled
// The system external interface for the feed/spindle hold knob is invalid.
1: Enabled. // The system external interface for the feed/spindle hold knob interface is valid.
OPERATION
// The system is provided with the low pressure detection function; P412_d4 sets
the alarm level.
// Disconnected with 0 V.
1: Low.
// Connected with 0 V. After the system low pressure alarm detection function is selected,
the Low pressure alarm is issued once the system detects the low pressure alarm
signal PRES is valid and the signal hold time exceeds the set value of data parameter
P332; at this moment, the axis feed pauses, the spindle stops, and the automatic cycle
cannot start.
1: Performed.
1: Enabled. // It is allowed to perform the statement programming to the pins of all input signals.
Automatic lubrication start time (s)__Auxiliary parameter P330:
This parameter determines the lubrication start time. (Unit: s)
122
Chapter Four
OPERATION
4.6.4.13
d7
d6
d5
Reserved
d3
Reserved
Reserved
Reserved
d7__Interface language
0: Chinese.
// The command value of X axis in the program is input in diameter, and the
coordinate of X axis is displayed in diameter.
1: Radius.
// The command value of X axis in the program is input in radius, and the coordinate
o f X axis is displayed in radius.
// The coordinate value of X axis in the system can be expressed in radius and diameter. When
modifying this bit parameter, the system will prompt whether to convert the parameter. If the
conversion is confirmed, the system will convert the reference coordinate parameters P001, P004,
P007, P011, P012, P017, P018, P022 and P025.
// After modifying this bit parameter, it is required to re-perform tool setting and programming.
Otherwise, the data in X axis direction is incorrect.
d5__Coordinate system setting
0: Front tool post.
// The definition of the front tool post is shown in figure 1-1 in Chapter One in
Part Programming
// The definition of the rear tool post is shown in figure 1-2 in Chapter One in
Part Programming.
// This parameter is used only for displaying the icon of the imaginary tool nose number visually in
manual tool setting; during manual tool setting, the system uses this parameter to judge whether the
front tool post coordinate system or rear tool post coordinate system is used, in order to correctly display
the position relationship between tool nose center and imaginary tool nose.
// 928TD does not support the tool nose radius compensation function.
d3__ Lease command increment
0: Metric.
1: Inch.
d6
Reserved
Reserved
Reserved
Reserved
Reserved
d0
OPERATION
0: Decided by d7.
1 38400
Baudrate
d7 =0 d6 =0
9600
d7 =1 d6 =0
19200
d7 =0d6=1
38400
d7 =1d6=1
Bit select
1: Debugging state.
Reserved
Reserved
Reserved
d3
Reserved
Reserved
Reserved
d7
d6
d5
d4
Reserved
Reserved
d1
d0
1: Performed.
// In tool offset mode, it is allowed to delete all the tool offset values.
// In tool offset mode, it is forbidden to delete all the tool offset values.
// It is forbidden to turn off the drive unit by pressing DELETE key in MANUAL state.
1: Enabled. // It is allowed to turn off the drive unit by pressing DELETE key in MANUAL state.
124
Chapter Four
1: Alterable items are displayed. // According to the parameter password level, only the alterable
parameters rather than all parameters can be displayed.
d0__Program modification in EDIT mode
// The program lock function is invalid, and it is allowed to modify the program using
1: Disabled.
// The program lock function is valid. It is forbidden to modify the program using keys
in EDIT mode. Otherwise, the system issues an alarm.
d6
d5
d4
d3
Reserved
Reserved
Reserved
Parameter P417 is for setting whether to record the contents of alarms. When the bit parameter is set
to 0, the system records the alarm messages; when changing a part program or during the emergency
alarm or alarms in MANUAL/AUTO operation mode, the system automatically records the alarm without
bit parameter setting; alarm messages of the system are classified into the following types:
P417 bit parameter
(record or not)
d7
d7
d6
d6
d5
d5
d4
d3
d4
d3
d0
Alarm message
Alarms in parameter/tool offset operation mode
(E001~ E099)
Alarms in EDIT operation mode (E101~ E199)
Alarms relative to program (E201~ E299, E601~
E699)
M03/M04/M05 start/stop operation
Tool change T operation
Emergency
stop
alarm,
alarms
in
MANUAL/AUTO mode (E301~ E499)
Program change in EDIT operation mode
125
OPERATION
0: Enabled.
1: Not performed.
d6, d5, d4, d3__ Recording edit alarm, program alarm, spindle alarm, tool change alarm is
0: Performed.
OPERATION
1: Not performed.
Display alarm__Bit parameter P418 (password level: 3)
d7
d6
d5
d4
d3
Reserved
Reserved
d0
Parameter P418 sets whether to display the alarm messages recorded by the system. When the bit
parameter is set to 0, the system displays the alarm messages; the system automatically displays all the
messages about program change, without bit parameter setting; The system displays the alarm
messages as follows:
d7__ Displaying parameter/tool compensation is
0:
Performed.
1: Not performed. // The alarm messages recorded by the system in parameter/tool offset
operation mode are not displayed.
d6, d5, d4, d3, d0__ Displaying edit/program/spindle/ tool change alarm, emergency stop in
MANUAL/AUTO is
0:
Performed.
1: Not performed.
Note
1)
Alarm record is only a search function provided in some special cases; it is suggested that the
operator not operate it without special reasons.
4.6.4.14
In addition to the control and detection functions for the main devices, like spindle, chuck, tailstock
and tool post, this system also provides the control and detection functions for the additional devices
such as the signal lamp, lubrication and safety door. The former occupies the fixed signal pins. However,
the system does not set fixed signal pins for the additional devices due to the limited number of pins.
They are set by the machine tool builder based on the actual conditions.
If the unused signals for the main devices are released, it is available to add the signals required by
the additional devices by means of interface parameter setting. In this case, the system can realize the
control and detection for the additional devices.
First judge what the interface parameter occupies is the input or output interface. P500P510 are
output interface parameters, and P511P540 are input interface parameters.
126
Chapter Four
Parameters P541P556 are used for the multiple-station tool number signal encoding. When bit
parameter P408_d7 is set to 1 (tool number signal detection mode: Table checking), parameters P541
P556 are used for setting the tool number check signal.
If the interface parameter value is not 0, the input or output interface is occupied; If the set value is
the sequence number of a common signal name, it means the pin corresponding to the common signal
name of the occupied input or output. If the initial value of the interface parameter is 0, the function of
4.6.4.15
The initial values of variable parameters P600P639 correspond to the variable initial values
r001r040; for details about the variable explanation, please refer to Chapter Severn Statement
Programming in Part Programming
Note: 928TD has no statement programming function.
4.6.4.16
When using G76 command, the information about the thread machining can be notified in advance,
then the system automatically arranges the thread cutting, and finally machines the threads conforming
to the requirements.
G76 tool angle P__Auxiliary parameter P336
This parameter determines the angle between two adjacent teeth threads. The actual thread angle
is decided by the tool angle. Therefore, P336 should be the same as the tool angle. Unit: Degree.
G76 fine turning times L__Auxiliary parameter P337
This parameter determines the number of times for the thread fine turning.
127
OPERATION
If the pin of input or output is already occupied by other functions, the interface parameter cannot be
When the system is executing G76 command , it will automatically set the values of words P,
L, R, Q of G76 command into their corresponding parameters P336, P337, P338, P339
OPERATION
When P, L, R, Q in G76 command are entirely or partially omitted, the execution of G76 is
performed by the set values of parameters P336, P337, P338, P339.
4.6.5
Appendix
4.6.5.1
Parameter
No.
P000
P001
P002
P003
P004
P005
P006
P007
P008
P009
P010
P011
P012
P013
P014
P015
P016
P017
P018
P019
128
Parameter List
Parameter
level
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
2
2
2
2
2
Parameter designation
Unit
Initial value
Range
mm
mm
mm
200.000
150.000
100.000
-99999.999
+99999.999
mm
210.000
mm
160.000
mm
110.000
mm
220.000
mm
170.000
mm
120.000
mm
8000.000
mm
-8000.000
mm
8000.000
mm
-8000.000
mm
8000.000
mm
-8000.000
mm
8000.000
mm
-8000.000
mm
8000.000
mm
-8000.000
mm
8000.000
User
backup
Chapter Four
P020
P021
P022
P023
P024
1
1
1
2
P025
2
2
4.6.5.2
P101
P102
P103
P104
P105
P106
P107
P108
P109
P110
P111
Parameter
level
2
2
2
2
2
2
2
2
2
1
1
1
P112
P113
2
2
P114
P115
P116
P117
P118
P119
-8000.000
mm
mm
mm
300.000
200.000
200.000
mm
mm
mm
010
010
010
09999
Parameter
No.
P100
mm
2
2
2
2
2
Parameter designation
Maximum rapid traverse
rate limit for Z axis
Maximum rapid traverse
rate limit for X axis
Maximum rapid traverse
rate limit for Y axis
Minimum start speed for Z
axis
Minimum start speed for X
axis
Minimum start speed for Y
axis
Z
axis
rapid
feed
acceleration/deceleration
time (ms)
X
axis
rapid
acceleration/deceleration
(ms)
Y
axis
rapid
feed
acceleration/deceleration
time (ms)
Zero return low speed of Z
axis
Zero return low speed of X
axis
Zero return low speed of Y
axis
Cutting feed initial speed
Maximum speed limit for
Cutting feed
Linear
acceleration/deceleration
time for cutting feed (ms)
Exponential
acceleration/deceleration
time for cutting feed (ms)
Acceleration/deceleration
time for thread cutting
(ms)
Acceleration/deceleration
time for thread run-out
(ms)
G99 initial lines
Delay when positioning is
switched to cutting (ms)
Unit
Stepper
initial
value
Servo
initial
value
Range
mm/min
5000
8000
115000
mm/min
2500
4000
115000
mm/min
5000
6000
115000
mm/min
300
600
110000
mm/min
150
300
110000
mm/min
300
600
110000
ms
400
150
112000
ms
400
150
112000
ms
400
150
112000
mm/min
100
100
02000
mm/min
100
100
02000
mm/min
100
100
02000
mm/min
mm/min
100
4000
200
6000
12000
15000
ms
500
200
112000
ms
500
200
112000
ms
400
150
18000
ms
300
150
18000
ms
0
100
0
100
030000
08000
User
backup
129
OPERATION
P027
P026
Parameter
No.
P200
P201
P202
P203
Parameter
level
2
2
2
1
P204
P205
OPERATION
P206
P207
P208
P209
P210
4.6.5.4
1
0
Z axis backlash
X axis backlash
Y axis backlash
Z axis command pulse
multiplier
Z axis command pulse
division coefficient
X axis command pulse
multiplier
X axis command pulse
division coefficient
Y axis command pulse
multiplier
Y axis command pulse
division coefficient
Spindle encoder lines
Undefined (reserved)
Initial
value
0.000
0.000
0.000
Unit
mm
mm
mm
Range
User
backup
010.000
1
1
1
199999
1
1
1
1200
0.000
1005000
-1.0001.000
Parameter
No.
P300
Parameter
level
2
P301
P302
P303
P304
P305
P306
P307
P308
P309
P310
2
2
2
2
1
P311
P312
P313
P314
P315
P316
P317
P318
P319
P320
2
2
1
1
1
P321
P322
2
2
130
Parameter designation
Parameter designation
Unit
r/min
Initial
value
3000
r/min
3000
r/min
3000
r/min
3000
r/min
100
r/min
8000
r/min
r/min
ms
r/min
100
300
0
200
4
19999
199999
099999
099999
04
ms
100
199999
ms
100
199999
ms
100
199999
mV
010000
ms
100
199999
ms
r/min
1000
8000
1
4
4
199999
199999
09
116
18
ms
ms
100
100
199999
199999
Range
099999
User
backup
Chapter Four
P323
P324
2
2
P325
P326
P327
P328
P329
2
2
2
P332
P333
P334
P336
P337
P338
1
3
3
3
P339
P341
100
1000
199999
199999
ms
10000
199999
ms
ms
ms
ms
10
10
10
5000
199999
199999
199999
199999
60
099999.999
600
099999.999
600
0.001
99999.999
10
0100
h
deg
0
0.000
1
0100000
099.000
199
mm
0.000
099.999
mm
0.000
099.999
090
OPERATION
ms
ms
P331
4.6.5.5
P330
The corresponding bits of the bit parameters are set to 0 or 1 to realize different control functions,
thus satisfying the requirements of different machine tools.
Parameter
No.
P400
P401
P402
P403
P404
P405
P406
P407
P408
P409
Parameter
level
3
3
2
2
2
2
1
1
2
1
P410
P411
1
2
P412
P413
P414
2
2
2
P415
P416
P417
P418
P419
3
3
2
3
2
Parameter
designation
Running setting
Efficiency setting
Safety setting 1
Safety setting 2
Debugging setting
Motor drive
Zero point setting 1
Zero point setting 2
Tool post setting
Chuck
tailstock
(hydraulic system)
Spindle configuration
Precision
compensation
Other interfaces
Interface language
Communication
interface
Display interface
Function switch
Record alarm
Display alarm
Safety setting 3
Initial value
Range
User
backup
00000100
00000000
01000000
00100001
00000000
00011100
00000000
00000000
00000000
00000000
00000000
00000010
0000000011111111
00000000
00000000
00000000
10001000
00000000
00000000
00000000
00000000
131
OPERATION
132
Parameter
No.
P500
Parameter
level
1
Signal
designation
M21O
Function
explanation
User
command
output
User
command
output
Program run
signal light 3
Alarm light
control
signal 2
Alarm light
control
signal 1
Machine
electricity
delay
power-on
control
signal
P501
M23O
P502
LMP3
P503
LMP2
P504
LMP1
P505
MDLY
P506
M32O
P507
TZD
P508
TFD
P509
P510
P511
1
1
1
A001
A002
SAGT
P512
Dalm
Feed device
alarm
detection
P513
M41I
Gear
shift
in-position
signal
P514
M42I
Gear
shift
in-position
signal
P515
M43I
Gear
shift
in-position
signal
P516
M44I
Gear
shift
in-position
signal
P517
M91I
P518
M93I
User
command
input
User
command
input
Lubrication
control
switch
Tool
post
worktable
brake output
Tool
post
pre-indexing
output
Reserved
Reserved
Safety door
detection
Standard definition
and use
I/O
O
Initial
value
17
18
For
tricolor
light
control (green light)
For
tricolor
light
control (yellow light)
For
tricolor
light
control (red light)
Range
099
User
backup
Chapter Four
RM78
P520
RM79
P521
Wsp
P522
WsY
P523
WsX
P524
WsZ
P525
Wbk2
P526
Wbk1
P528
TFDC
P529
TXT
P530
TGR
P532
G31I
P533
M61I
P534
M63I
P535
M65I
P541
P556
Tailstock
advancing
in-position
detection
Spindle
retracting
in-position
detection
External
MPG
emergency
stop
External
MPG
axis
select Y
External
MPG
axis
select X
External
MPG
axis
select Z
External
MPG
override 2
External
MPG
override 1
Pre-indexing
in-position
detection
Tool number
strobe signal
Tool
post
overheat
detection
G31
input
detection
M61/M62
execution
switch
M63/M64
execution
switch
M65/M66
execution
switch
Number 1
16
tool
number
detection
signal
Applicable
to
external MPG
an
Applicable
to
external MPG
an
Applicable
to
external MPG
an
Applicable
to
external MPG
an
Applicable
to
external MPG
an
Applicable
to
external MPG
an
Applicable to AK31,
SBWD-80 tool post
Applicable to AK31,
SBWD-80 tool post
Applicable to AK31,
SBWD-80 tool post
Used
for
multiple-station
tool
post signal encoding
OPERATION
P519
032
and 99
0
255
Note
1) When bit parameter P409_d4 =1 (the tailstock control function is invalid), the interfaces RM78, RM79 for tailstock
advancing/retracting in-position detection are invalid.
2) When bit parameter P410_d6 =0 (spindle S gear shift control), the interfaces M41I, M42I, M43I, M44I for gear
shift in-position signals are invalid.
4.6.5.7
Parameter No.
P600P639
Parameter
level
3
Parameter
designation
r001r040
Initial
value
0
Range
User
backup
-9999999999999999
133
P1002
P1299
OPERATION
P1300
P1301
P1600
P1601
P1900
P1901
P1902
P1903
P1904
P1905
Parameter range
-1000+1000
-1000+1000
-1000+1000
-1000+1000
-1000+1000
-1000+1000
-1000+1000
Parameter
range
09999.999
-1000+1000
0-9999.999
-1000+1000
0-9999.999
-1000+1000
09999.999
-1000+1000
-9999.9999999.999
-9999.9999999.999
-9999.9999999.999
0999.999
0999.999
0999.999
Pitch error compensation interval range for P1903P1905: 0999.999, with the interval not smaller than
0.256 mm.
4.6.5.9
Some command names in this system are forbidden to use due to the parameter setting relative to
them; once the parameter setting satisfies the conditions to forbid a command name, the system will
forbid the use of corresponding command and its function. The parameters relative to command
disabling are as follows:
Command name
Command function
M41M44
S05S16
Spindle S control
M47M48
M32M33
M04
Lubrication function
Spindle CCW rotation
134
Chapter Four
Chuck
clamping/releasing
Tailstock
advancing/retracting
M10M11
M78M79
Command relative to Y
axis
Pin
programming
command
r1001r1032
4.6.5.10
released interfaces can be used as common output interfaces; the interface parameters can be defined
as the released output interfaces. The parameters related to output interface releasing are as follows:
Special
signal name
Function
Common
signal name
Variable
name
M79
Tailstock retraction
UO16
r2016
M78
Tailstock advance
UO15
r2015
M10
Chuck clamping
UO14
r2014
M11
Chuck releasing
UO13
r2013
TL+
Tool
post
CW
rotation
output
signal
UO12
r2012
TL-
Tool
post
output signal
UO11
r2011
M8
Coolant ON
UO10
r2010
M9
Coolant OFF
UO09
r2009
MSP
UO08
r2008
M3
Spindle CW rotation
Spindle
CCW
rotation
UO07
r2007
UO06
r2006
M4
CCW
M5
Spindle stop
UO05
r2005
S04/M44
UO04
r2004
S03/M43
UO03
r2003
S02/M42
UO02
r2002
S01/M41
UO01
r2001
135
OPERATION
By parameter setting, the interfaces are not necessarily used for special signals. In this case, the
DecX
OPERATION
DecZ
Common
signal name
Variable
name
UI32
r1032
UI31
r1031
UI30
r1030
UI29
r1029
UI28
r1028
SP
UI27
r1027
ST
UI26
r1026
MXZ1
UI16
r1016
MXZ2
External feed/spindle
hold signal
UI15
r1015
RM10
UI14
r1014
RM11
Chuck releasing
in-position detection
UI13
r1013
TPS
UI12
r1012
SHL
UI11
r1011
PRES
UI10
r1010
TCP
UI09
r1009
UI01
r1001
P318=0 or 9
UI02
r1002
UI03
r1003
UI04
r1004
UI05
r1005
UI06
r1006
UI07
r1007
UI08
r1008
T1
T2
T3
T4
T5
T6
T7
T8
136
Function
Tool post
signal T1
Tool post
signal T2
Tool post
signal T3
Tool post
signal T4
Tool post
signal T5
Tool post
signal T6
Tool post
signal T 7
Tool post
signal T8
tool number
tool number
tool number
tool number
tool number
tool number
tool number
tool number
Chapter Four
4.7
Tool offset operation mode: The system compensates the tool offset. For each step of
operation, the system provides corresponding intelligent prompt messages. It is also available to
The explanations for the input format and examples about related setting and operation in the
manual are as follows: The function keys required to press are indicated by a sign; the letter keys,
numeric keys to be input are indicated by an underline; the prompt messages of the system are
indicated by a rectangle.
If incorrect data are input during the input of letters or figures, press
key to delete
The main functions of the tool offset operation mode consist of:
137
OPERATION
press the hp2 key on the upper right corner of the system to view the operation key list for the
[ OFFSET ]
OFFSET NO.
OPERATION
0001.111
-0001.111
0000.100
00
0001.111
02
0002.222
-0002.222
0000.200
00
0002.222
03
0003.333
-0003.333
0000.300
00
0002.222
04
0004.444
-0004.444
0000.000
00
0002.222
05
0000.000
0000.000
0000.000
00
0000.000
06
0000.000
0000.000
0000.000
00
0000.000
07
0000.000
0000.000
0000.000
00
0000.000
EDIT
AUTO
JOG
Fig.
4.7.1
01
PARA
OFFT
DGN
The search of the tool offset value is to search the desired tool offset value; there are two methods:
Method one: Scanning
The contents of each tool offset value can be viewed in Tool Offset operation mode. By pressing
,
key, the last or next tool offset value can be searched. By pressing
key,
the last page or next page of tool offset values can be searched, with each page containing 7 lines.
Method two: Searching
P + Offset number +
4.7.2
ENTER .
2)
Press
offset number to be changed; or find the tool offset number to be changed using SEARCHING
method; then press
value, X offset value, R tool radius, T tool shape or S tool setting record to be changed,
138
Chapter Four
3)
4)
Input the desired data from the keyboard. During the data input, if incorrect data is input, press
key to cancel it then input the right value.
5)
Press ENTER key to store the input data into the offset value of the currently-selected tool
If sign * appears ahead of the data to be changed, it means the data modification succeeds
Select Tool Offset operation mode; then move the highlighted block cursor to the data to be
changed.
2)
Press INPUT key, or directly input the desired data from the keyboard.
3)
Input the desired data from the keyboard. During the data input, if the input data is incorrect,
press
key to cancel it then input the right value. By pressing ALTER key, the system
performs addition operation by adding the input data to the original value of the selected offset
value.
4.7.3
The procedures of clearing the offset values of each group are as follows:
1)
2)
Move the highlighted block cursor to the S tool setting record of the tool offset number to be
cleared.
3)
Press Delete key to clear the Z offset value, X offset value, R tool radius, T tool shape and S
tool setting record of the tool offset number.
4.7.4
By pressing hp6 key on the page of Tool Offset operation mode, the display is as follows:
139
OPERATION
6)
offset number.
In the root directory of the U disc, a folder with name C001OFT needs to be created. The naming
rule of the tool compensation file includes 10 characters, i.e. OFT+File number3 digits+.TXT. The
file number cannot be greater than 666, or the system will not list the file when reading the U disc. The
OPERATION
2.
For details about the operation of the transmission software using RS232, please see
PartOperation: Chapter Five RS232 and USB System Communication. The transmission of the tool
compensation can be completed according to the system operation prompts.
3.
On a PC, it is possible to edit tool compensation files using TXT, LST text. but the file name and its
contents must be edited in the standard format required in the system, so that the files can be sent to the
system correctly. The specifications are as follows:
1)
On a personal computer, the user should name the tool compensation file with suffix TXT or LST,
e.g. OFT088.TXT; It is recommended that the user use suffix TXT for the convenience of the
parameter file operation on the PC.
2)
The first line of the contents of the TXT file must be the tool compensation mark:
CNC_GSKC001; which is indispensable.
3)
The contents behind // are the annotation, which lists in turn the offset number, Z offset value,
X offset value, tool radius, tool shape, tool setting record.
4)
The contents of the tool compensation must be consistent with the requirement of the standard
format.
E.g. T01
00000.000
00000.000
00000.000
00
Thereinto:
Range of tool number: 0164. If it is exceeded, the system processes it as an error;
Offset number format: Three parts: T + Number (0164) + : , which are indispensable.
A comma must be used to separate different tool compensation data in a line;
There are five compensation data for each line. More than five data indicates there are illegal
characters in the tool compensation data;
If there are less than five tool compensation data in a line (i.e. not all Z offset value +X offset
value + R tool radius +T tool shape + S tool setting record are included), the system
processes the data as Z offset value , X offset value , R tool radius, T tool shape and S tool
setting record from left to right; if the data at the end of a line need to be modified, the data
at the beginning should be added first. The values of Z, X, R, T and S cannot exceed their
respectively-specified ranges.
140
Chapter Four
Example
CNC_GSKC001
// Tool No. Z offset
X offset
T01:
00000.000,
00000.000,
00002.000,
0,
00
T02:
00000.000,
00000.000,
00000.000,
0,
00
T03:
00000.000,
00000.000,
00000.000,
0,
00
T04:
00000.000,
00000.000,
00000.000,
0,
00
T05:
00000.000,
00000.000,
00000.000,
0,
00
T06:
00000.000,
00000.000,
00000.000,
0,
00
T07:
00000.000,
00000.000,
00000.000,
0,
00
..
T63:
00000.000,
00000.000,
00000.000,
0,
00
T64:
00000.000,
00000.000,
00000.000,
0,
00
OPERATION
141
Diagnosis operation mode: The system detects and displays the states of input/output (I/0)
signals, spindle speed, encoder lines in real time. For details about the operation key list for the
system diagnosis, press hp2 key on the upper right corner of the system.
OPERATION
Self-diagnosis function;
Displaying the states of the input/output (IO) signals;
Diagnosis of spindle control function input, output signals.
Diagnosis of tool post control function input, output signals;
Diagnosis of hard limit signals for each axis;
Diagnosis of machine zero point (machine reference point ) signal for each axis;
Diagnosis of spindle speed and encoder lines
[ DIAGNOSIS ]
UI01 1
UI09 1
UI17 1
UI25 1
ALZ 1
UI02 1
UI10 1
UI18 1
UI26 1
ALX1
Spindle speed
UI03 1
SHL 1
UI19 1
UI27 1
ALY 1
0000
UI04 1
TPS 1
UI20 1
UI28 1
PCZ 1
UI05 1
UI13 1
UI21 1
UI29 1
PCX 1
Encoder lines
0000
UI06 1
UI14 1
UI22 1
UI30 1
PCY 1
UI07 1
UI15 1
UI23 1
-LT 1
PA 1
UI08 1
UI16 1
UI24 1
+LT 1
API 1
EDIT
JOG
AUTO
PARA
Fig. 4-10
4.8.1
hp2
Input interface
OFFT
DNG
First set bit parameter P415_d3=1 (the diagnosis page prompt is ON). In the Diagnosis operation
mode, not only the explanations of each I/O but also the common signal name, hardware interface and
pin number of each I/O can be viewed; if the bit parameter is set to OFF, it is unavailable to view the
relative explanations.
Press
142
Chapter Four
Press
4.8.2
or
key to display the pages of input interface and output interface alternately.
This system has 23-channel switch value input signals and 18-channel switch value output signals;
each signal has a name, which indicates the meaning of the signal.
UO01UO32, with each signal corresponding to one pin. Thereinto, UI17UI25 signals and UO19
UO32 signals are not led out in the interfaces.
Special signal name: For a specific machine tool, once a signal is occupied by a special function,
the signal is assigned a special name. The system sets a standard special signal name for the signal to
be used by each function.
On the display of Diagnosis, the signal used by a special function is indicated by a special signal
name; it means this function is set enabled in the parameter. The initialization parameters in the system
has enabled most of the auxiliary functions. Thus most of pin signals are displayed with a special signal
name, while the unoccupied signals are displayed with a common signal name.
For the explanations and connection of command signal names and special signal names, please
refer to Part Connection in this manual.
4.8.3
On the display of input interface diagnosis, when an external signal is valid, its corresponding bit is
displayed as 0; when an external signal is invalid, its corresponding bit is displayed as 1. The diagnosis
of input interface signals is performed recurrently all the time, displaying the current signal states
anytime.
The definition of the input interface signal is determined by parameter. Therefore, the definition
varies with the corresponding setting of the parameter.
Example
The standard configuration of the electric tool post is 4 stations. When electric tool post
configuration of the system is 4 stations, the diagnosis messages are shown as follows:
The auxiliary parameter P320 is 4; parameter P319 is 4; parameter P318 is 1: Electric tool post.
The leftmost column on the diagnosis input page displays the diagnosis messages of T1 ~ T4.
4.8.4
When the bit in the output interface diagnosis is displayed as 0, the output of the corresponding bit is
valid; and when the bit is displayed as 1, the output is invalid. The output interface diagnosis displays the
current hold state of each output bit. If the signal is pulse, and the pulse time is short, the output of the bit
is valid, but it is still displayed as 1.
143
OPERATION
Common signal name: The names of input signals are UI01UI32, and those of output signals are
4.8.5
Move the cursor to the input signal to be modified using direction keys, and change the value of the
output signal where the cursor is located by pressing 1 or 0 key. If the value differs from the current value,
it is displayed in red; if the value is the same as the current value, it is displayed in yellow.
OPERATION
Note
Diagnosis output interface operation is used for system debugging. For system safety, the
operation is available only when the parameter password level is higher than 2.
2)
When the spindle is started, and the initial page of the Diagnosis operation mode is entered, if
the detected number of lines of the encoder is inconsistent with the number of lines of the
spindle encoder, the system prompts: [Diagnosis check prompt]: Encoder line number
inconsistent with parameter.
3)
The spindle encoder rotates simultaneously with the spindle: I.e. each time the spindle rotates
one revolution, the encoder also rotates one revolution; otherwise, the spindle speed detected
is inconsistent with the actual value.
4.8.7
Press hp6 key on the diagnosis page, then the display is as follows:
Key 0 Viewing alarm messages
Key 2 Entering keyboard test
Key 4 Viewing version info.
ESC - Exit
Chapter Four
indicates white;
Key 2 Keyboard test: Testing the keyboard;
Key 3 Viewing CPLD pulse number:
Key 4 Version information: Displaying the system version information: System software, CPLD
version information and software version re-loading operation;
Key 5 RAM import and export: The system RAM is transmitted through U disc or serial port
RS232.
It is required to create a folder with name C001RAM in the root directory of U disc. The naming
rule of the system RAM file includes 10 characters, which are RAM+File number3 digits+.TXT. The
file number cannot be greater than 999, or the system does not list the file when reading the U disc. The
memory file must be placed in the folder C001RAM. If there is no such a folder, the system prompts: No
RAM file in the directory after detection. After opening the RAM directory page, the system can only send
the RAM files.
2. RAM data transmission through RS232 interface
This CNC system can transmit RAM data through RS232 interface. It is possible to complete the
RAM transmission in terms of the operation prompts provided by the system.
Note
1)
2)
For the system safety, it is allowed to operate the RAM and load and upgrade the version
only when the parameter password level is higher than level 2.
4.8.7.1
In the Diagnosis operation mode, press hp6 key, then 0 key. Then the system displays the alarm
record messages, as shown in figure 4-11.
Alarm record function: The system records the alarm messages in detail. For each step of
operation, the system provides corresponding intelligent prompt messages. It is also available to view
the operation key list for the system alarm record function by pressing the hp2 key on the upper right
corner of the system.
This system is capable of storing up to 4031 alarm messages. When the alarm record number
exceeds 4031, the system will automatically delete the oldest alarm messages, and display the newest
alarm messages. Therefore, it is necessary for the operator to download and save the alarm record, lest
the old alarm record cannot be referred to.
The main functions of the alarm record consist of:
Searching the number of startup times, alarm messages
Displaying the total alarm record counts, the record counts required to list according to parameter
setting, and the current record number.
Transmitting the alarm record to a U disc through USB interface.
Transmitting the alarm record to the external computer through RS232 communication interface.
145
OPERATION
Total records890
NO.125
90:59:02
1001:20:59
OPERATION
NO.129
No. 0220
hp2
E346
M05
Spindle stop
2001:05:59 %028
NO.126
Displayed records220
00:01:59
E367
01:11:20
01:21:59
E302
Z driver alarm
00:40:20
E303
X driver alarm
120:40:20
E317
Fig. 4-11
Example
E.g. latest alarm record:
120:40:20
E317
Thereinto, the system startup times is the NO.129 displayed in the last alarm record, i.e. the time
this alarm record (220th) occurs is 120 hours 40 minutes and 20 seconds after the 129th startup. The
contents of the alarm is E317: X tool nose direction soft limit alarm.
Note
1)
When replacing a program, the alarm record will display the program number; just like %028 in
figure 4-13, which indicates the part program is changed to %028 after 2001 hour 05 minute 59
second after the 125th startup.
2)
The maximum time displayed for the alarm record is 99999 hours 59 minutes and 59 seconds;
the maximum number of startup times displayed for the alarm record is 999.
3)
The current alarm record is highlighted, and on the right side of the scrollbar is displayed the
position where the current alarm record is located among all the displayed alarm records.
4)
The alarm record is a search function provided in some special cases; the operator should not
operate it without special reasons.
4.8.7.2
The alarm record search is to search the specified alarm record, view the identical alarm records, or
count the number of error numbers which is the same as the error number (alarm number in system
alarm message, e.g. E001) of the current alarm record. There are three methods:
Method one: Scanning
It is possible to view the contents of the record on the alarm record display page. By pressing
,
view the last or next page of records, with each page displaying up to 8 lines.
146
Chapter Four
ENTER
The searching type includes: Eby alarm error number, M by spindle command, T By tool
In addition, the system provides the function of viewing the identical alarm records. By pressing
,
key, you can view the alarm records which is identical with the current one upward and
downward.
By pressing
key, you can count the number of alarm records which is identical with the
current one; The display window disappears in 5 seconds, or it disappears immediately within 5 seconds
if any other key is pressed.
Relative parameters
Parameters relative to the alarm record function: P417, P418.
4.8.7.3
By pressing hp6 key on the alarm record display page, the display is as follows:
Alarm record sending mode select
Key U USB interface transmission
Key R RS232 interface transmission
Key ESC Return
OPERATION
types.
change number, P by program number; press E, M, T or P key to enter the search modes of different
You can execute the machine auxiliary functions by using the auxiliary function keys on the
operation panel, rather than by inputting commands.
Press
key: The spindle rotates clockwise. When bit parameter P410_d7=0, the LED
indicator lights up, and the corresponding bit of M3 in the output interface
OPERATION
displays 0. (When bit parameter P410_d7=1, the LED indicator lights up, and
M3 in the output interface firstly outputs validity. After the pulse output, the
corresponding bit of M3 displays 1.)
Press
key: The spindle stops. (When bit parameter P410_d7=1, the diagnosis output
interface page displays M5.)
Press
Press
key: The coolant switches between ON/OFF. When bit parameter P410_d7=0 and
the coolant is ON, the LED indicator lights up, and the corresponding bit of M8
in the output interface displays 0; when the coolant is OFF, the LED indicator
goes out, and the corresponding bit of M8 in the output port displays 1. (When
P410_d7=1 and the coolant is ON, the LED indicator lights up, and the
corresponding bit of M8 in the output port firstly outputs validity. After the pulse
output, the corresponding bit of M8 displays 1. When the coolant is OFF, the
indicator goes out, M9 in the output interface firstly outputs validity. After the
pulse output, the corresponding bit of M9 displays 1.)
Press
key: Used for spindle gear cycle. The spindle motor executes S01S04 or S00
S15 (based on the setting of parameter P410_d6, P410_d5)
Press
148
key: The tool post rotates to the next tool number, and the tool number state is
displayed on the corresponding position of input interfaces T1~T4.
Chapter Five
CHAPTER FIVE
System Communication
This system can transmit the part programs, system parameters, system software and tool offsets
through RS232 and USB interfaces; for the operation of the part program transmission, see Section
parameters and system software, see Section 4.6.3 Parameter Operation Mode in Part; for the
OPERATION
operation of tool offset transmission, see Section 4.7.4 Tool Offset Operation Mode in Part.
PC configuration:
Hardware: Common-use PC with RS232 serial port; serial port communication cable (with three
lines)
Operation system: Microsoft Windows 98/2000/2003/XP.
2)
Connect the communication cable on the condition that both PC and CNC are powered off:
Insert DB9 female plug into the RS232 communication interface on the front cover of the CNC,
and insert the other DB9 female plug into the 9-pin serial port (COM1or COM2) on the PC;
2)
4.3.3 Edit Operation Mode in PartOperation; for the operation of the transmission of system
Select the port and baudrate for communication on PC. The communication baudrate is
determined by the sender.
Setting the port of GSKCOM_C001.EXE communication software on PC
After running the communication software, leftclick to select port number, selecting the
communication serial port..
Setting the baudrate of GSKCOM_C001.EXE communication software on PC
After running the communication software, leftclick the baudrate to select the communication
baudrate (Set to: 38400 (unitb/s
149
Set the communication baudrate of bit parameters P414_d7, P414_d6: See Section 4.6
Parameter Operation Mode in PartOperation.
GSK928TD) . The CNC for sending data is referred to as the sender; while the CNC for receiving the
OPERATION
CNC1
Sender
CNC2
Receiver
Connect the communication cable on the condition that both CNC systems are powered off:
Insert the DB9 female plug into the RS232 communication interface on the front cover of each
CNC.
2)
Set the communication baudrate of bit parameters P414_d7, P414_d6: See Section 4.6
Parameter Operation Mode in Part Operation.
2)
Do not turn off the power during the data transmission,. Otherwise, the data
transmission error may occur.
3)
The communication cable for the communication between CNC and PC is the same as
that for the communication between CNC and CNC.
Chapter Five
5.2.1
System Communication
USB Operation
When performing USB operation, insert the U disc directly into the USB interface on the system
panel. If the U disc contains the folder and file names created in accordance with the system
requirements in its rooted directory, the system automatically identifies and opens the U disc. At the
same time, on the system interface is displayed the USB icon.
1) After the U disc operation, the user must press ESC key to turn off the U disc before
Then when the USB icon displayed on the system interface disappears,
pull the U disc out from the USB interface. Otherwise, the system hardware and U disc
may be damaged.
2) Never attempt to pull the U disc out when its indicator is blinking, because it is reading or
writing data at this moment. Pulling it out halfway may cause damage to the hardware or
result in data loss.
3) A U disc generally has a write-protect switch. The switch should be performed before the
U disc is inserted into the system interface rather than during the U disc running.
4) The storage size of the U disc should be as small as possible, in case that the
communication speed between system and U disc is affected. It is suggested that the
user not use those removable storage devices with a size larger than 8G. Otherwise, the
system hardware and the devices may be damaged.
5) When the U disc operation fails, press RESET key on the system, and then re-insert the U
disc after pulling it out.
5.2.2
When transmitting different kinds of data during USB communication, the system requires different
names for the USB files. The folder names required to create in the rooted directory of U disc are as
follows:
Data type
Name type
Part program
Parameter
data
Tool offset
data
System
software
upgrade
C001PRO
C001PAR
C001OFT
C001DATA
CNCxxx.TXT
PARxxx.TXT
OFTxxx.TXT
DATAxxx.TXT
0254
0999
0999
0254
Memory whole
upgrade
Alarm history
System RAM
Data type
Name type
Folder name in U disc
rooted directory
C001MEMO
C001ERR
C001RAM
MEMOxxx.TXT
ERR xxx.TXT
RAMxxx.TXT
0254
0999
0999
151
OPERATION
pulling it out.
Note
OPERATION
152
PROGRAMMING
PROGRAMMING
153
PROGRAMMING
154
Chapter One
Programming Fundamental
PROGRAMMING
CHAPTER ONE
PROGRAMMING FUNDAMENTAL
The automatic machining of CNC machine is the course of automatically running edited part
programs. The programming is defined that the drawing and the technology of machining workpiece are
described with CNC language and are edited to the part programs. Here describes the definition of
command and the programming mode of CNC part programs. Please read carefully these contents
before programming.
PROGRAMMING
841:2001 Industrial Automation System and Integration-Numerical Control of MachinesCoordinate System and Motion Nomenclature. The two coordinate axes are named with X and Z,
which are perpendicular to each other to form XZ plane rectangular coordinate system as Fig. 1-1:
Fig. 1-1
X: It is defined to be perpendicular with the rotary centerline of spindle. X positive direction is the
one in which the tool leaves from the rotary center of spindle.
Z: It is defined to be coincident with the rotary centerline of spindle and Z positive direction is the
one that the tool leaves from the headstock.
Fig. 1-2 X-Z plane rectangular coordinate system 2 (rear tool post coordinate system)
155
1.2
machine.
Machine zero (or machine reference point, or mechanical zero) is a fixed point on the machine.
Generally, it is set at the position of X, Z max. stroke in the positive direction, with the machine zero
check device installed on the machine. Do not use the machine zero return function or set bit parameters
P406_d7, P406_d6, P406_d5, P406_d4, P406_d3, P406_d2 to 0, i.e. no machine zero when the
machine zero check device is not installed.
PROGRAMMING
1.3
tool change and workpiece fixing when the tool post stops at it. Program reference point is set when the
tool post stops at the position, which is called program reference point (or program zero). Program
reference point coordinates are relative to the machine coordinate system.
Once the reference point is determined, the tool can return to the reference point by executing the
reference point return function in JOG operation mode or AUTO operation mode. Even if the system is
switched off, the reference point remains valid. If the stepper motor is employed, there may be slight
error caused by the motor vibrating upon system power on. Execute the reference point return once to
avoid the error.
The program reference point is automatically set to X=150, Z=150 without setting the program
reference point after the system is switched on for the first time.
1.4
Their functions are similar to the program reference point, and the system has corresponding commands
to move the worktable to the 2nd, 3rd program reference point.
1.5
workpiece coordinate system. Its axes are separately parallel with X, Z axis in the same direction.
156
Chapter One
Programming Fundamental
After the workpiece coordinates is created, all absolute coordinate values in programming are the
coordinate values in the workpiece coordinate system. Generally, Z axis in the workpiece coordinate
system is set on the rotary center of workpiece.
According to the actual condition in programming, define the workpiece coordinate origin, i.e. the
programming origin in the workpiece drawing and the coordinate origin of CNC system command. The
workpiece coordinate system is created by setting workpiece coordinates.
PROGRAMMING
The absolute coordinate value is the distance to the coordinate origin, i.e. the coordinate position
of the end point of tool movement, as Fig. 1-3
Z
B
A
x
Fig.1-3
Z 70.
157
Z
B
x
Fig.1-4
W -40 (X with
PROGRAMMING
W - 4 0.
Diameter programming rules in the manual are described except for special explanations.
2)
3)
Execute the tool setting and programming again after P413_d6 is modified, otherwise, X data
is not correct.
Chapter One
Programming Fundamental
called link axes. The moving distance, direction and speed of the link axes are controlled synchronously
in the course of movement to form the required composite motion path. Positioning control is defined
that only motion end point of one axis or multiple axes and only the motion path in the course of
movement are controlled.
This system is a two-axis linkage CNC, with X and Z as its link axes. It provides includes linear,
circular and thread interpolation functions .
Linear interpolation: Composite motion path of X, Z axis is a straight line from starting point to end
point.
Circular interpolation: Composite motion path of X, Z axis is an arc with its radius specified by R (or
by center by I, K) from starting point to end point; or an arc formed by
coordinates I, K of a mediate point on the curve.
Thread interpolation: Move amount of X or Z or both X and Z is determined by the rotation angle of
the spindle to form a helical cutting path on the workpiece surface (rotating
PROGRAMMING
159
CHAPTER 2
PROGRAM CONFIGURATION
2.1
Character
Character is the basic unit to compose the program. The characters in the system are English
PROGRAMMING
U V
W X
Y Z
H I
then
then
else
and
or
<
>
()
/;
Multiplication or modification;
. Decimal point;
/ Division in assignment statement, and block skip sign in others;
Blank space;
; Comment.
2.2
Word
A word consists of an address character and the following digits. For example: N0100 X12.8
W-23.45. Rules are as follows:
Each word must have an address character (an English letter) and the following number
character string.
160
Chapter Two
Program Configuration
The leading zero of a command can be omitted. For example: G00 can be written as G0.
The positive sign must be omitted, but the negative sign must not be omitted.
2.4 Block
A block with a line number is composed of a block number and several words; a block without a line
number has no block number. One block can contain 255 characters at most (including spaces between
words). The block number is indispensable for a block. It can be either created automatically by the
system, or modified in EDIT state.
A block can contain several words or no words. When a block contain many words, one or more
blank space must be input between words.
161
PROGRAMMING
When automatic block number creation is selected, and parameter P333 is not set to 0, the line
G1
X130
W-40
F50
N0120
Block number
G1
Preparatory function
X130
W-40
Enter
Motion data
F50
Motion speed
Enter
Block end, not displayed on the screen. However, each program ends with
ENTER.
Note
1) Each word of a block is separated with a blank space generated automatically by the system;
but it is necessary to input the blank space manually by user when this system cannot
distinguish words.
PROGRAMMING
2)
3)
Insert / in front of the head of the block, the block will turn into green.
4)
Except for the first condition above, the block where the cursor is located becomes light green;
and becomes orange in other conditions.
5)
Chinese comments following ; can be input only through serial port or USB instead of the
system keyboard, but the system can display Chinese.
6)
; must be input in half-width format, when comments are input through serial port or USB,
because the system does not support full-width input format.
162
Chapter Two
2.6
Program Configuration
Program Structure
A block consists of a group of commands realizing one or several technology operations in the
course of machining. A machining program (also referred to as part program) consists of multiple
blocks arranged according to the machining technology. A block number (line number) is used for
identifying different blocks, and a program name is used for identifying programs.
Each part program consists of one program number and some blocks (up to 9999 blocks). A block
number is composed of letter N and the following 4-digit integer. A program name is comprised of sign %
and a program number (3-digit integer). The general structure of a program is as Fig. 2-1.
%020
EDIT LSL
N0010 G50
X0 Z0
/N0020 G1
X100 Z100
Line 8
Total lines 10
Length 1KB
hp2
Program comment
F200
Word
Block number
N0070
G0
X0
Block
Z0
G1
X0
X50
Z30
Cursor
Z0
N0080 M30
Fig. 2-1
According to the figure above, a program consists of program comments and blocks; each block
begins with a block number (omissible), followed by characters and words; and there is a block skip
symbol and comments in a block.
Example
Program (program name%012)
N0000 G50 X200 Z300
G00 X200 Z200
N0020 T11
N0030 G00 X100 Z100
/N0040 G02 X150 Z150 R50
N0030 G01 X100 Z100
2008
N0050 M30
Remarks
Blocks containing N**** are the blocks with a line number,
blocks not containing N**** are the blocks without a line
number;
Home of each line is a blank space;
There is a blank space between line number and code for the
program with line numbers;
/ Block skip
; The followings are comments.
163
PROGRAMMING
; 2008.12.12
Column 15
CHAPTER 3
This chapter introduces in details all MSTF command functions and their use in this CNC system.
3.1
the ON/OFF of some machine operations and execution sequence of the machine program. The used M
functions in the system are as follows:
PROGRAMMING
Command
Function
Programming
format
Explanation
M00
M00
M02
End of program
M02
M20
End of program
M20 L
M30
M30
M03
M04
M05
M03
M04
M05
M08
Cooling ON
M08
M09
M10
Cooling OFF
Workpiece clamp
M09
M10
M11
Workpiece release
M11
M12
M12
M32
M33
M41
M42
M43
M44
M78
Lubricating ON
Lubricating OFF
Spindle gearing No. 1
Spindle gearing No. 2
Spindle gearing No. 3
Spindle gearing No. 4
Tailstock forward
M32
M33
M41
M42
M43
M44
M78
M79
M80
Tailstock backward
Tailstock output signal cancel
M79
M80
M96
M96 P Q L
M97
Program transfer
M97 P
M98
M99
Subprogram call
Subprogram return
M98 P L
M99
M21
M21 D
M22
M22 D
M23
M24
M91
M23 D
M24 D
M91 P
M92
M93
164
M92 P
M93 P
Chapter Three
M94
M60~M74
M94 P
Refer to Chapter 8 Custom Command Programming in
Part Programming
M81
M82
M83
Note
1)
The leading zero of M command can be omitted; Example: M00 can be abbreviated to M0,
which is the same as M00.
2)
Bit parameter P403_d3, P403_d2: When Emergency Stop button or Reset key is pressed, they
are used to set the M function output state.
3)
PROGRAMMING
3.1.1
M00 Pause
Command format
M00
; Program pause
Explanation
M00 suspends the program execution temporarily and the system prompts PAUSE in flash; the
program execution is continued after CYCLE START is pressed.
Press ESC to exit from program running.
M00 function is different from that of CYCLE START key. M00 is used to perform pause before a
specified block in advance, and CYCLE START is used to perform pause at random.
3.1.2
Command format
M02
; End of program
Explanation
M02 indicates that the program ends, and the system returns the control to the first block to wait.
3.1.3
Command format
165
L ; Return to the first block to cycle the machining, L is the cycle machining
times, range: 1 ~ 9999.
Explanation
L is the cycle machine times (when L is equal to 3, the actual machined workpiece is 4PCS)
The system defaults the infinite cycle machine when L is omitted.
M20 indicates that the program ends and the system returns the control to the first block to execute
repetitively; M20 is used when the system or machine is tested.
3.1.4
Command format
M30
Explanation
PROGRAMMING
M30 indicates the program ends, spindle is OFF and cooling is OFF and the system returns the
control to the first block to wait.
3.1.5
Command format
M03
; Spindle CW
M04
; Spindle CCW
M05
; Spindle stop
Explanation
The system is in M05 state after power-on.
When M03/M04 is executed, M03/M04 output is valid and the spindle ON state remains unchanged.
Turn OFF the spindle when M05 is executed. Cancel M03/M04 signal output during system emergency
stop.
See Section 4.4.3.1 Spindle Start/Stop Control in PartOperation for details.
3.1.6
Command format
M08
; Cooling ON
M09
; Cooling OFF
Explanation
The system is in M09 state upon power-on.
When M08 is executed, its output is valid, and the cooling is ON; when M09 is executed, M08 output
is cancelled, and the cooling is OFF. M08 signal output is cancelled when the system is in the
emergency stop state.
See Section 4.4.4 Coolant Control in Part Operation for details.
166
Chapter Three
3.1.7
Command format
M10
; Clamping chuck
M11
; Releasing chuck
M12
; Cancelling chuck output signal; (only some special chuck devices can use M12)
Explanation
M11 output is valid while M10 output is invalid when the system is turned on.
Whether M10, M11 are valid, whether they require response detection, whether they are pulse
control output or level control output, and whether they are in inner or outer chuck control mode can be
set by parameters. Interlock between chuck and spindle is decided by P402_d5: When P402_d5=0, they
are interlocked; when P402_d5=1, their interlock is released.
See Section 4.4.7 Hydraulic Chuck Control Function in PartOperation for details.
PROGRAMMING
3.1.8
Command format
M32
; Lubricating ON
M33
; Lubricating OFF
Explanation
M33 output is valid while M32 output is invalid upon power-on.
For details, see Section 4.4.9.2 Lubricating Control in PartOperation.
3.1.9
Command format
M41
M42
M43
M44
Explanation
M41, M42, M43, M44 can be used only when the machine employs the variable-frequency spindle.
See Section 4.4.3.3 Spindle S CommandRotation Speed Control in PartOperation for details.
167
M78, M79, M80 Tailstock Advancing and Retracting, Tailstock Output Signal
Cancelling
Command format
M78
; Tailstock advancing
M79
; Tailstock retracting
M80
; Cancelling tailstock output signal (only some special tailstock devices can use M80)
Explanation
Whether M78, M79 are valid, whether they require response detection, and whether they are pulse
control output or level control output can be set by parameters. The tailstock is interlocked with the
spindle. See Section 4.4.8 Hydraulic Tailstock Control Function in PartOperation for details.
PROGRAMMING
Command format
M96
Word
P Entry block number of called program. The leading zero of the block number can be omitted.
Q Last block number of called program. The leading zero of the block number can be omitted.
L Call times. The number of call times is 1 when L is omitted or is 1. L is within 19999 times.
Explanation
Program group called by M96 can contain M96, M98/M99, G22/G80, and allows nesting.
The embedded use of M96 and M97 can prevent the program returning to the block following M96
and then rerunning after M96 is executed.
Example
Method
Method
N0040 U5 W-5
N0050 W-5
N0060 M30
N0070 U5 W-5
N0080 W-5
N0090 M30
Method 1: After M96 specifies that the specified program is called three times, the cursor returns to N0030 and the
subsequent blocks are executed till the program ends.
Method 2: After M96 specifies that the specified program is called three times, the cursor returns to N0030 and
then the system uses M97 to continue executing the subsequent blocks till the program ends. The
results of method 1 and method 2 are the same.
168
Chapter Three
3.1.12
Command format
M97
; Program transfer
Word
P Block number which is transferred to. The leading zero of the block number can be omitted.
Explanation
M97 command causes the program to transfer from the current block to the block specified by P
and then continues the execution. Block number specified by P should exist in the program. Otherwise,
the program issues the alarm E215Line number missing.
The block number specified by P cannot be M97 block.
Prevent the endless loop when using M97 command.
Example
G00
X100
N0040
M98
P0060
N0050
M97
P0090
N0060
G01
U2
N0070
W-5
N0080
M99
N0090
M02
PROGRAMMING
N0030
When executing N0050, the program directly executes N0090 instead of N0060.
M99
Word
P Block number where the subprogram is located. The leading zero of the block number
can be omitted.
L Call times of subprogram. The subprogram is called once if L is omitted or is 1. L is
within 19999.
Explanation
If a fixed sequence which appears repetitively in the program, the sequence can be taken as a
subprogram, so it can be called instead of being compiled when it is needed again.
When M98 calls the subprogram and there is M99 in the execution of the subprogram, the
subprogram call ends and the program returns to the main program and proceeds the block following the
subprogram block.
169
PROGRAMMING
z
x
Fig. 3-1
Method 2
N0010 G00 X100 Z50
N0020 M03 S01
N0030 G0 X66 Z15 F500
N0040 M98 P0080 L5
Call subprogram
N0050 G0 X100 Z50
N0060 M05
N0070 M02
End of main program
N0080 G0 U-4
N0090 G01 Z-10 F80
N0100 U20 Z-25
Subprogram follows the
N0110 Z-35
main program
N0120 G0 U2 Z1
N0130 U-22
N0140 M99
Method 1: When the system executes N0040, it calls the subprogram and executes N0060N0120
five times. Then it executes N0050and the program skips to N0130 and executes the
following blocks.
Method 2: When the system executes N0040, it calls the subprogram and executes N0080N0140
five times, and then executes blocks from N0050 to N0070, and so the program ends.
170
Chapter Three
3.1.14
Command format
M21
M22
M23
M24
D
D
D
D
; The output of No.1 user output signal is valid (output low level)
; The output of No.1 user output signal is invalid (output OFF)
; The output of No.2 user output signal is valid (output low level)
; The output of No.2 user output signal is invalid (output OFF)
Word
D Signal hold time. (unit: s; range: 09999.999). When D is omitted, the output signal is always
being held.
Explanation
M21, M22, M23, M24 have no concrete definitions specified the system, so the user can specify
their definitions according to the specific requirements. M21, M22, M23, M24 separately correspond
PROGRAMMING
to two user-defined output points. By using corresponding commands, the states of output signals
can be changed.
User output point 1 and 2 are defined in the interface parameters (M210, M230). See Part
Connection after defining the output interfaces.
Note
1) M21, M22, M23 and M24 cannot be in the same block with other commands. Each of them
must be specified in a separate block.
2) M21M24 can contain parameter D: when M21M24 are executed with parameter D, the
time specified by D is delayed after corresponding output is executed, and then the previous
output is cancelled. If the command has no D, the output signal is being kept.
3.1.15
Command format
M91
M92
M93
M94
P
P
P
P
;
;
;
;
Word
PBlock number of the target block which is jumped to. It does not skip when P is omitted. The
leading zero of the block number specified by P can be omitted.
Explanation
The definitions of input signals corresponding to M91, M92, M93 and M94 are not determined, so
the user can define them according to the requirements. M91, M92, M93, M94 separately correspond to
two user-defined input points. User input point 1 and 2 are defined in the interface parameters (M911,
M931). See Part Connection after defining the output interfaces.
171
M91 checks the state of No. 1 user input. When the state is valid (the input terminal is
connected to 0V), the systems waits till the input is invalid.
M92 checks the state of No. 1 user input. When the state is invalid (the input terminal is
disconnected to 0V), the system waits till the input is valid.
M93 checks the state of No. 2 user input. When the state is valid (the input terminal is
connected to 0V), the system waits till the input is invalid.
M94 checks the state of No. 2 user input. When the state is invalid (the input terminal is
disconnected to 0V), the system waits till the input is valid.
When P0
PROGRAMMING
M91 checks the state of No. 1 user input. When the state is valid (input terminal is connected to
0V), the system skips to the block specified by P. Otherwise the next block is executed.
M92 checks the state of No. 1 user input. When the state is invalid (input terminal is
disconnected with 0V), the system skips to the block specified by P; otherwise the next block is
executed.
M93 checks the state of No. 2 user input. When the state is valid (input terminal is connected to
0V), the system skips to the block specified by P; otherwise the next block is executed.
M94 checks the state of No. 2 user input. When the state is invalid (input terminal is
disconnected to 0V), the system skips to the block specified by P; otherwise the next block is
executed.
3.1.16
Command format
M60
M74
Explanation
See Chapter 8 Customized Command Programming in Part Programming for details.
3.2
M81, M82, M83 are a group of condition control commands based on input/output signal state.
Representations of signal point, level and holding time are: for example: I8.1, Q17.0, R18.0, D5, etc.
172
Chapter Three
1) Letters I, Q, R represent the input signal, output signal and output signal state respectively (two
states: when 0 is output, the external can form a conducted circuit; when 1 is output, it means high
impedance state, and the external cannot form a conducted circuit.); D represents the signal holding
time.
2) The integral part after letters represents signal points, corresponding to the pin of input signal UIxx
or output signal UOxx pin; the range is 1~32 point.
3) .0 behind the decimal point represents low level (0, which is the system default, can be omitted); .1
represents high level.
4) D: Signal holding time; (unit: s
5) Relevant parameter: Bit parameter P412_d0. M81, M82, M83 are affected by this parameter.
3.2.1
M82
Q17.1
M82
Q17.0
D3
PROGRAMMING
M82
; UO17 pin outputs low level, and the output is cancelled after delaying time
D.
M82
Q17.0
I8.0
; UO17 outputs low level, and the next is executed after detecting UI18
pin is at low level;
M82
Q17.0
I8.0
D3
; UO17 pin outputs low level, after delay time D, the output is
cancelled; the next is executed after detecting UI08 pin is low level;
Note. Example
M81, M83 cannot be executed in MANUAL mode, and M82 can be executed in following two formats:
M82 Q17.0 D3 or M82 Q17.0
For example: M82 Q17.0 D5
; UO17 pin outputs low level (conducted), then the output is
cancelled after 5 seconds delay. In MANUAL mode, it can be simply input as M Q
1 7 D 5.
3.2.2
I8.0
If the input UI08 pin is at low level, the system proceeds to the next
command; otherwise, it keeps waiting.
M81
I8.1
If the input UI08 pin is at high level, the system proceeds to the next
command; otherwise, it keeps waiting.
M81
I8.0 P1000
If the input UI08 pin is at low level, the system transfers to P1000;
otherwise, it proceeds to the next command.
M81
I8.0 Q17.0
If UI08=0, then, UO17 outputs 0, and the system proceeds to the next
command; otherwise, it keeps waiting.
M81
I8.0 Q17.0
D3 If UI08=8, UO17 outputs 0, the signal holds for D3, and the system
proceeds to next command; otherwise, it keeps waiting
173
R8.0
If the input UO8 pin is at low level, the system proceeds to the next
command; otherwise, it keeps waiting.
M83
R8.0
P1000
If the input UO8 pin is at low level, the system transfers to P1000;
otherwise, it goes to the next command.
M83
R8.0
Q17.0
If UO8 pin is at low level, UO17 pin outputs 0, and system proceeds to
the next command; otherwise, it keeps waiting.
M83
R8.0
Q17.0
D3
If UO8 pin is at low level, UO17 outputs 0, the signal holds D3, and
the system proceeds to the next command; otherwise, it keeps
waiting.
PROGRAMMING
3.3.1
Command format
S01 ~ S04
S00 ~ S15
Explanation
When P410_d6=0, S function controls the multi-speed spindle motor; when it controls the
multi-speed spindle motor, whether to directly output 4-gear control signal or output16-gear BCD code
signal can be selected.
P410_d5=0: Spindle control is the 4-gear direct control output S01S04, each gear corresponds
to one output point;
P410_d5=1 Spindle control is 16-gear BCD code output S00S15.
174
Chapter Three
3.3.2
analog voltage signal to control the converter to realize the stepless speed regulating for the spindle
motor.
Gear control of variable-frequency spindle
Command format
M41
M42
M43
M44
G96
G96
PROGRAMMING
Command format
; Setting constant surface cutting state;
S__
; Setting constant surface cutting state, and specifying the surface speed
value;
range: 09999 m /min;
G97
G97
S__
; According to the current state; speed value or surface speed value cutting.
. Explanation
1)
In JOG and AUTO operation mode, the screen displays the actual spindle speed S_.
2)
In JOG and AUTO operation mode, the screen displays the cutting constant surface speed
control G96
3)
S___r.
Parameters related to the spindle speed analog voltage control are as follows:
Data parameter P305: Max. spindle speed of constant surface speed;
Data parameter P304: Min. spindle speed of constant surface speed;
Data parameter P300P303: Max. spindle speed in the spindle gear 14 (corresponding to
M41M44).
4)
175
PROGRAMMING
Txx
____
The first digit is the tool number; the second one is the tool offset number;
Txxx
____
The first digit is the tool number, the last 2 digits is the tool offset number;
Txxxx
____
The first digit is the tool number and the last two digits is the tool offset number.
Word
1) Tool number range: Determined by P319 (maximum tool number: 116); E.g. if P319 is 4, the
tool number is 04; if the input tool number is 0, it means keeping the current tool number.
2) Range of tool offset number: 064; if the input tool offset number is 0, it means cancelling the
tool compensation.
Explanation
1)
The system can select up to 16 tools and P319 sets the maximum tool number.
2)
When the system executes the manual tool setting operation, it automatically matches the tool
offset number to the tool number and saves it to the tool compensation table. When P403_d4 is
set to 1, the system automatically identifies the relationship between tool setting record and tool
number and tool offset number of the tool change command in the program; if inconsistency
occurs, the system issues the Program Compound Check Alarm but does not lock the program
execution.
3)
The system executes the tool setting operation based on the trial cutting mode or fixed point
mode in Jog operation mode. See Section 4.4.6 Manual Tool Setting in PartOperation.
3.4.1
When executing T command, the system first changes the tool to the tool number specified by T,
then executes the tool compensation of T command. In such a case, the system modifies the tool nose
coordinates. The system uses two methods according to the parameters:
P403_d6 = 0: After the system executes the tool compensation and modifies the tool nose
coordinates, it does not move the slide carriage, i.e. the execution is completed;
176
Chapter Three
P403_d6 =1: After the system executes the tool compensation and modifies the tool nose
coordinates, it moves the slide carriage to recover the too nose coordinates (move to
the position before modification, making the tool nose coordinates unchanged).
Move the machine slide carriage:
1)
Move the carriage in JOG operation mode to recover the tool nose coordinates. X, Y axes
rapidly traverse simultaneously.
2)
In AUTO operation mode, when T command is a separate block, its execution mode is the same
as that in JOG operation mode, i.e. the system moves the carriage to recover the tool nose
coordinates. X, Y axes rapidly traverse simultaneously.
3)
3.4.2
In AUTO operation mode, when T and G00/G01 are in the same block, the system executes the
tool change first, and then adds the tool compensation value to X, Z coordinates of G00/G01 for
movement. The system performs the rapid traverse in G00 and cutting speed in G01.
PROGRAMMING
When P403_d6=0, the tool compensation execution mode is to modify the system coordinates.
In JOG and AUTO operation modes, the slide carriage does not move after the system executes
the tool compensation and modifies the tool nose coordinates.
In AUTO operation mode, after the system executes the tool compensation, the workpiece
program is in undefined state if the tool nose coordinates are changed and not recovered. The
solutions are as follows when the system executes different subsequent commands:
1) When the subsequent command is G00 Z/X absolute coordinate positioning, the tool directly
traverses to G00 positioning point;
2) When the subsequent command is G00 W/U relative coordinate movement, the tool directly
traverses one relative amount;
3) When the subsequent command is G00 single-axis positioning, the other axis does not move.
Note
1) Correct programming method: After the system executes the tool change command, use G00 to
perform Z/X double-axis re-positioning, or use G00 single-axis repositioning in order. Prevent
unexpected alarms during machining.
2) To improve the machining efficiency, T command and G0 must be in the same block. For
example, 0
X100
Z200
T0202.
3) Adding the tool compensation to program command value is available only when G0/G1 and the
tool compensation command are in the same block.
4) For G0/G1 in the compound cycle, no T command is allowed in the same block.
3.5 F Function
Feedrate Function
It defines the tool cutting feedrate. I.e. the feedrate function (G98/G99, F command).
177
F.
G99
F.
Explanation
Cutting feed: The system can simultaneously control X, Z motion, making the tool motion path and
the path defined by commands (straight line, arc) consistent, and the instantaneous
speed in the tangent direction of motion path and F word consistent. This kind of
motion control is called cutting feed or interpolation. The cutting feedrate is
specified by word F. When the system executes the interpolation command (cutting
feed), it divides the cutting feedrate specified by F into X, Z direction according to the
programming path, and simultaneously controls X, Z instantaneous speed to make the
vector resultant speed of speed in the two directions equal to F command value.
PROGRAMMING
fx =
fz =
dx
dx + dz2
2
dz
dx2 + dz 2
F
F
unitmm/min)
unitmm/r)
F is a modal value. Once specified, it is not necessary to input it again. It is the feed per minute (G98)
state upon power-on, and the tool actual traverse rate is controlled by F and feedrate override.
Tool actual cutting speed = Fx feedrate override (feed per minute)
Tool actual cutting speed = Fx spindle speed x feedrate override (feed per rev)
Reduction formula between feed per rev and feed per min: Fm = FrS
Fm: Feed per min (mm/min);
Fr: Feed per rev (mm/r);
S: Spindle speed (r/min)
F value keeps unchanged after F command is executed, and is not changed during system reset
and emergency stop. The system provides 16-level feedrate override (0150increment of 10%). In
MANUAL and AUTO operation modes, the feed override keys on the system panel can regulate the
feedrate in real time, and the actual feedrate can be regulated within 0150% of the command speed.
In addition, the feedrate override is memorized after power-off. For details about feedrate override
regulation, refer to Section 4.4.1.5 Selecting Speed for Low-Speed Feed in PartOperation.
178
Chapter Three
Relative parameters
1) System parameter P112: Initial speed in cutting feed.
2) System parameter P113: Max. speed limit of cutting feed.
3) System parameter P114: Linear acceleration/deceleration of cutting feed.
4) System parameter P115: Exponential acceleration/deceleration of cutting feed.
5) System parameter P118: G99 initial lines.
Note
Uneven cutting feedrate occurs when the spindle speed is lower than 1 r/min (in G99 modal state);
and following error occurs in the actual cutting feedrate when there is fluctuation in the spindle
speed. To ensure the machining quality, it is recommended that the selected spindle speed
should not be lower than min. speed of the effective torque output by the spindle servo or the
converter.
PROGRAMMING
179
CHAPTER FOUR
Here describes the functions and use of the G commands in the system
Note: The Y command function is invalid for GSK928TD.
ZW)_
XU)_
G00
ZW)_
G00
XU)_
PROGRAMMING
Word
X, Z Absolute coordinates of end point;
U, WRelative movement from starting point to end point;
Use relative or absolute coordinates; the coordinates not to be moved can be omitted; G00 without
coordinate words cannot be specified.
Word range
X, Z, U, W
-9999.9999999.999mm
Explanation
Z/X can select single-axis movement and simultaneous two-axis movement.
If the tool change command and tool offset command is in the same block with G00, the tool offset
value is added to G00 movement value, in order to improve the work efficiency. In general, the tool
change and tool offset commands should be specified in the same block with G00.
G00 actual run speed is controlled by the rapid override. For example, when G00 rapidly traverses
in the independent movement mode, the actual speed is set by P100, P101.
Z actual rapid speed = P100 rapid override
X actual rapid speed = P101 rapid override
The actual max. speed of the machine depends on its actual condition and matched motor. For
particular parameters, please see the manual issued by the machine tool builder. G00 is a modal
command, which can be omitted in the next block in which it is used. G00 can be abbreviated to G0,
and G0 and G00 are equivalent.
Relative parameters
Parameters related to G00: P100, P101, P103, P104, P106, P107, P112, P114, P400_d3.
180
Chapter Four
Each axis can move at its respective rapid traverse rate or simultaneously rapidly move according to
the proportion, and their movement mode is defined by P400_d3: P400_d3=0, each axis performs
positioning at rapid traverse rate separately (independent movement mode) in G00; P400_d3=1, each
axis performs positioning rapidly and simultaneously (interpolation movement mode) in the proportion
mode in G00.
When P400_d3=0, the independent movement mode is executed as follows: (an example of Z axis)
Speed raising stage: Z axis raises the speed at the initial speed of P103;
Raise the speed to max. speed set by P100; the acceleration time in the speed raising stage is
P106.
When each axis moves at the rapid speed, the actual speed displayed by the system is the resultant
rapid traverse speed; when two axes or more move simultaneously, the actual rapid traverse speed
displayed will be greater than the values set in P100, P101and P102.
P400_d3=1: interpolation movement mode is executed as follows:
The acceleration time in the speed raising phase is P114.
Here, the traverse speed is the resultant speed of the system. The movement axes rapidly
perform positioning according to the proportion, and their actual speeds are controlled by
P100, P101.
Note
Ensure the tool is placed at a safe position to prevent the tools collision when G00 is executed.
Example
Fig. 4-1
G00
X18
Z0
G00
U-52
W-30
181
PROGRAMMING
Raising speed stage: Raising the speed at the initial speed of P112;
Command format
G01
ZW)_
ZW)_
G01
XU)_
F_
F_
XU)_
Z single-axis feed
F_
X single-axis feed
G01 command causes the tool to move along the line from current point to XU, Z Wspecified
point at the set speed, and to reach the specified end point simultaneously.
Word
X, Z: Absolute coordinates of end point;
U, W: Relative move amount from starting point to end point.
PROGRAMMING
F: Cutting feedrate. F value is modal, which can be omitted when it is not changed. At the
same time, it is controlled by the feedrate override.
Word range
X, Z, U, W
-9999.9999999.999mm
F0.001mm/min4000mm/min
Explanation
Z/X can select single-axis feed and two-axis simultaneous feed.
The traverse speed of G01 is specified by F and controlled by the feedrate override.
Actual feedrate
feedrate override
G01 is a modal command which can be omitted in the next block if used. G01 can be abbreviated to
G1, and G1 and G01 are equivalent.
Relative parameters
Parameters related to G01: P112, P113, P114, P401_d5, P401_d4
Interpolation movement execution is as follows:
Raising speed stage: Raising speed at the initial speed of P112;
The acceleration time of raising speed stage is P114; at the same time, the system checks
whether the feedrate (Fx feedrate override) exceeds P113 limit. If it does, the feedrate is P113.
P401_d5, P401_d4 set in the cutting machining: Whether the system uses high-speed connection
mode, and whether uses continuous smooth transition or deceleration to zero.
182
Chapter Four
Example
X45
Z-35 F150
G01
U25
W-35
F150
Note
F cutting feed command in the examples of this chapter is executed with feed per minute (G98)
except for special explanations; F word can be 0 during programming; when it is 0, and the program is
executed in AUTO operation mode, the system issues an alarm: Feedrate is zero.
4.3
Command format
G02
ZW)_
XU)_
I_
G02
ZW)_
XU)_
R_
G03
ZW)_
XU)_
I_
G03
ZW)_
XU)_
R_
G05
ZW)_
XU)_
I_
K_
F_
F_
K_
F_
K_
F_
The G02, G03, G05 causes the tool to traverse along the arc from the current point to X(U), Z(W)
specified point at the set speed. The arc radius is R or the vector from circle center to starting point is I, K
(G02, G03), or arbitrary point I, K (G05) on the arc.
Word
X, Z: Absolute coordinates of end point;
U, W: Relative move amount from starting point to end point;
F: Cutting feedrate;
R: Arc radius;
183
PROGRAMMING
Explanation
G02, G03, G05 can only be Z/X programming; the traverse rate is set by F and controlled by
PROGRAMMING
Table 4-1
Word
G02
Specified content
Arc rotation direction
G03
X,Z
U,W
I,K (G02,G03)
Absolute coordinate
Relative coordinate
Circle
center
coordinates
Meaning
CCW arc in front tool post coordinate system/ CW arc
in rear tool post coordinate system
CW arc in front tool post coordinate system/ CCW arc
in rear tool post coordinate system
Absolute coordinates of arc end point
Distance from starting point to end point of arc
Vector from circle center to starting point of arc in
G02 ,G03
R
F
I,K (G05)
Arc radius
Feedrate
An intermediate point
on arc
G02, G03 cause the tool to move along the specific arc path at the set speed. G02/G03 arc direction
definition: Taking the circle center as the reference point, their directions are reverse in the front/rear tool
post coordinate system as follows:
184
Chapter Four
G02
G02
G03
G03
X
G03
G02
G02
G02
G03
G03
Z
G02
G03
G02 X..Z..I..K..F..;
or
G02 X..Z..R..F..;
Absolute value
Diameter programming
X
Z
Center of circle
Z
X
Center of circle
Z
K
G05: I, K specify the coordinates of an intermediate point on the arc. Three points determine one
circle: Starting point, end point and an intermediate point on arc as Fig. 4-5:
0
Z
End point
An intermediate point
on arc
(IK)
Starting point
X
Fig. 4-5
PROGRAMMING
and Z vector from starting point to the circle center. I is X vector component (in diameter), K is Z
PROGRAMMING
3 For the arc with very small radius R, when the value of programming speed x feedrate is too
large, the step angle in interpolation should not be more than 1.5 degree. Otherwise, the
system automatically decelerates and there is the difference value between the actual
feedrate and programmed speed.
4 The system automatically decelerates when the programmed speed is tool high in machining
small arc.
5 When using K, I programming in G02, G03, the system checks the current coordinates
(starting point), end point coordinates and circle center coordinates; when the end point is not
on the circle, and Z deviation is more than 0.015mm or X deviation is more than 0.03mm mm,
the system issues: E238 Distances between circle center to two points are not equal.
6 when using G05 programming , the system checks the current coordinates (starting point),
end point coordinates and coordinates of an intermediate point on the arc; the system issues
the alarm: E239 Three points are in one line and cannot consist of an arc when the three
points cannot form a triangle. However, when the specific intermediate point, arc start point
and end point are the same, the system processes the tool path as one point.
7 The system alarms: E237 chord length is greater than the diameter when the diameter 2R is
less than the distance between the current point (starting point) and end point in R
programming.
8 G02, G03, G05 cannot be in the same block with T, or the system issues: E205 Command
incompatible.
9 The arc cannot be more than 180 in R programming.
186
Chapter Four
Example 1
x
PROGRAMMING
G00
X20 Z60
Or
N0100
N0110
N0110
N0110
N0110
G00
G02
G02
G02
G02
X20
X60
X60
U40
U40
Z60
Z40 I40 K0 F100
Z40 R20 F100
W-20 I40 K0 F100
W-20 R20 F100
Example 2
Absolute programming
N0000 G0 X18 Z0 ;
N0010 G02 X30 Z-15 R20 F100 ;
N0020 M30
Relative programming
N0000 G0 X18 Z0 ;
N0010 G02 U12 W-15 R20 F100 ;
N0020 M30
Fig. 4-7 Circular interpolation
187
PROGRAMMING
retraction groove. However, there is large pitch error due to the acceleration/deceleration of X axis and Z
axis at the beginning and end of the thread cutting. Therefore, it is necessary to leave the thread lead-in
length and the tool retraction distance at the actual thread start point and the end.
When the thread pitch is determined, X, Z traverse speed is determined by the spindle speed in
thread cutting and is not related to feedrate override. When the spindle override control in the thread
cutting is valid and the spindle speed changes, there is pitch errors because of X, Z
acceleration/deceleration. Therefore, never attempt to adjust the spindle speed or stop the spindle in
thread cutting. Stopping the spindle may cause damage to the tool and workpiece. The thread cutting
command can only be Z/X programming.
4.4.1
Command format
G33
XU )_
ZW)_
PE)_
G33
ZW)_
PE)_ K_
I_
Q_
H_
G33
XU )_
PE)_
I_
Q_
H_
K_
K_
I_
Q_
H_
Thread cutting
Word
P Metric thread lead.
E Inch thread lead.
It is the axial thread and Z axis is the thread axis when P/E is a positive value; it is the end
face thread and X axis is the thread axis when it is a negative value.
X(U) /Z(W) Absolute/relative coordinates of thread end point.
For the axial thread, Z movement amount cannot be 0; it is the axial straight-thread if X is
omitted.
188
Chapter Four
For the end face thread, X movement amount cannot be 0; it is the end face thread when Z
is omitted.
K It is the length from the thread run-out starting point to the thread end point in the thread
machining axis.
K cannot be negative and must be less than the movement amount of thread machining axis.
I Total movement amount in thread run-out axis direction during thread run-out. (there is no
thread run-out when it is omitted).
For straight-thread, the thread runs-out in the positive direction when I is positive; the
thread runs-out in the negative direction when I is negative.
For taper thread, the thread run-out direction is same as that of the taper, the sign of I has
no effect.
For axial taper thread, the thread runs-out in the positive direction when U is positive; the
thread runs-out in the negative direction when U is negative.
For end face thread, the thread runs-out in the positive direction when W is positive; the
Q Initial angle, which is 0 if not specified; it is used to thread part.
H Execution mode symbol, each bit has different meaning (H_d7 ~ H_d2reserved) ; it is
00000000 if it defaults
H_d0 = 0: Retraction is limited by K value;
H_d0 =1: Thread run-out starts when the thread cutting axis reduces speed, and K value is
invalid.
H_d1: It selects the continuous thread machining raising/reducing speed mode
H_d1 = 0: In continuous thread cutting, between two neighboring threads, the thread
machining axis has a process of reducing the speed from machining speed to initial
speed, and then raising the speed from initial speed to thread machining speed. The
thread pitch length changes in the transition stage of speed raising and reducing
H_d1 = 1: In continuous thread cutting, between two neighboring threads, the machining
speed of the current thread suddenly changes to the one of the next thread without
the process of reducing the speed from machining speed to initial speed, and then
raising the speed from initial speed to thread machining speed. Therefore, it is not
suitable to machine those taper threads with a large taper using this mode.
Otherwise, the motor may step out.
Word range
X, Z, U, W-9999.999mm9999.999mm
I-9999.999mm9999.999mm
K09999.999mm
P0.001mm500.000mm (the negative sign can be added at the front of the range. The positive
value indicates the axial thread, and the negative value indicates the end face thread.)
E(0.06025400.000) tooth/inch(the negative sign can be added to the front of the range. The
189
PROGRAMMING
Relative parameters
Parameters related to G33: P100, P101, P103, P104, P106, P107, P113, P116, P117, P209, P306,
P307, P403_d0.
Taking axis thread for example, the relationship between G33 and relative parameters:
Before the system enters raising speed stage, it firstly checks whether the thread cutting speed
exceeds P113, if it does, the system issues an alarm to terminate the thread machining;
Raising speed phrase: Z axis raises speed at P103 initial speed; Acceleration time of raising
speed stage is P116;
When there is thread run-out, X axis rapidly executes the thread run-out at P101 speed;
PROGRAMMING
Z
D
K1
B
C
I/2
X
Fig. 4-8a G33 execution path 1
I=0, no run-out at the end of thread:
Check the spindle speed, count the reference speed of thread machining according to the
rotation speed and the lead P. When the reference speed exceeds P113 (max. cutting
feedrate), the system issues an alarm. Before this, the user must ensure the spindle speed is
stable; otherwise, there may be confused machining teeth.
190
Check one-turn signal of coder from the initial angle; Z axis raises speed from the current
Chapter Four
position A (G33 starting point), which makes the traverse speed reach the reference speed, At
the moment, Z moves to B; the lead of AB section maybe not standard (in the actual
machining, the front of AB section must reserve an idle distance which does not touch the
workpiece), the higher the reference speed is, the longer AB section is.
The system follows the spindle speed from B to execute the cutting to C; the cutting speed
changes with the spindle speed; the lead of BC section is standard.
Z reduces speed from C till D position Z (W); CD lead maybe not standard, CD length is equal
to AB section (when the reference speed is lower than the initial speed, raising/reducing
speed is not required, the lengths of CD and AB are 0); therefore, X should execute the thread
run-out in advance when the end of thread has no thread run-out groove.
Fig. 4-8b
Explanation
1) G33 can machine metric/inch constant straight, taper, internal and external threads.
2) In the spindle CW rotation, the positive cutting is the right-hand thread, and the negative is the
left-hand thread. For the spindle CCW rotation, they are reverse.
3) Generally, it is necessary to rough turn and finish turn the same path many times during thread
machining. The thread cutting starts after 1-turn signal from the spindle coder is detected, so the
cutting points on the circumference of the workpiece are the same after multiple thread cuttings.
However, the spindle speed must keep unchanged; otherwise there is an error in the thread.
4) The thread machining cutting speed is controlled by P113 (max. cutting feedrate); when the
speed exceeds the max. feedrate, the system issues an alarm. It is suggested that the thread
machining cutting speed should be less than 3000 mm/ min; if the speed is too high, the motor
may be slow to response, causing confused thread teeth.
The thread feedrate formula is as follows:
191
PROGRAMMING
longer the X distance I is, the better the effect is. If permitted, the speed should be more than
PROGRAMMING
2 In the course of thread cutting, the feed hold key and the feedrate override are invalid; the feed
stops as the spindle stops.
3 As soon as the spindle starts, do not machine the thread because of the unstable spindle speed,
otherwise, the thread machining precision may be affected.
4 In thread cutting, the photoelectric coder with 1200 or 1024 lines are generally installed to rotate
with the spindle synchronously. The selected coder lines must be the same as those of the
actually-installed coder. When the coder lines are 1200, P209 should be set to 1200; when the
coder lines are 1024, P209 should be set to 1024. If P209 setting is wrong, the pitch will be
incorrect when the thread is machined.
5 For the thread with run-out, the effect of thread run-out is affected by the spindle speed, the pitch,
the acceleration time of the run-out axis, the initial speed and I value. The higher the speed is,
and the bigger the pitch is, and the longer the acceleration time is, and the lower the initial speed
is, and the smaller I value is, the poorer the thread run-out effect will be.
6 When the previous block and the current one are both the thread cutting command, the system
does not detect the thread head signal (only one per revolution) but directly starts movement.
This function can realize the continuous thread machining.
E.g. G33 W-20 P3; The system detects 1-turn signal in thread cutting.
G33 W-30 P2; The system does not detect 1-turn signal in thread cutting.
7 The command must not be in the same block with other commands. It should be an independent
block.
G33 thread cutting programming modes (diameter programming)
0
K
I/2
X
192
0
W
I/2
Chapter Four
Z
W
U/2
I/2
U/2
X
PROGRAMMING
K/2
I
U/2
K/2
Example
1) G33 axial straight thread: as Fig. 4-9
193
Fig. 4-9
I sign determines the direction of thread run-out; there is no thread run-out if I is omitted;
Example:
G00
X100
Z100
G33
W-40
K3 I5 P2
M30
PROGRAMMING
2)
Fig. 4-10
P is negative; W sign determines the direction of the thread run-out; I sign is invalid;
Example: G00
G33
Z100
U20.7
X20
W-8.3
K3 I1.6 P-2
M30
3) G33 axial taper thread: as Fig. 4-11
194
Chapter Four
Fig. 4-11
U sign determines the direction of the thread run-out; I sign is invalid;
Example: G00
G33
Z100
X20
U6.2 W-40
K3 I5
P2
; End pointZ60X31.20)
M30
PROGRAMMING
Fig. 4-12
P is negative; I sign determines the direction of the thread run-out; there is no run-out if I is omitted;
Example: G00
G33
Z100
X20
U20.7 K3
I1.6 P-2
M30
5) Comprehensive example: as Fig. 4-13
4.5
G00
G01
G33
G00
Z5
G01
G33
G00
Z5
M30
X25 Z5
X23.5 F100
Z-50 P2 K2.5 I5.0
X26
X22.5
Z-50 P2 K2.5 I5.0
X26
PROGRAMMING
Command format
G32
ZW)_
PE)_ H_
; Z axis taping
Word
Z(W): Position which the taping is performed to; Z is the absolute coordinate of Z axis, and W
is the relative coordinate of Z axis; the user can use either relative coordinate or
absolute coordinate. The relative coordinate is the movement amount relative to the
current position
PMetric thread lead;
EInch thread lead;
HExecution mode symbol (reserved)
Word range
Z, W-9999.999mm9999.999mm
P0.001mm500.000mm
E0.060 teeth/inch25400.000 teeth/inch
H0000000011111111
Relative parameters
Parameters related to G32: P100, P103, P106, P112, P113, P114.
Explanation
G32
196
Spindle OFF.
Chapter Four
Note
1) Determine the spindle rotation direction according to the direction in which taping is possible
before tapping. The spindle will stop after the tapping ends. Restart the spindle if you need to
continue the machining.
2) There is a deceleration time for the spindle after the spindle is turned off. At the moment, Z
axis still rotates along with the spindle till the spindle stops completely. Therefore, the thread
bottom hole in actual machining is deeper than the actually-required one. The actual depth
should be determined by the spindle speed in tapping and by whether the spindle brake is
installed or not.
PROGRAMMING
M02
Z_ X_
G50
X_
G50
S_
PROGRAMMING
Word
Z, X, Y are absolute coordinate values. S limits the max. spindle speed (r/min). Refer to G96,
G97 for details.
Word range
X, Z-9999.999mm9999.999mm
Explanation
1) Z/X/ cannot be in the same block with S. Z/X can select single-axis or simultaneous two-axis to
set the workpiece coordinate system.
2) G50 must be specified in an independent block. It cannot be in the same block with other
commands.
3) Because there has been one workpiece coordinate system and one program reference point in
Jog operation mode, the system uses the new workpiece coordinate system and program
reference point in Auto and Jog operation modes after the system executes G50 till they are
replaced.
Relative parameter
Parameters related to G50: P000, P001.
Example
G50
X100
Z100
Chapter Four
Explanation
G51 must be specified in an independent block. It cannot be in the same block with other
commands.
Recover the workpiece coordinate system and reference point set in Jog operation mode. When
the workpiece coordinate and the program reference point set in Jog operation mode are replaced after
G50 is executed, use G51 to recover them. After recovering, the system uses the previous workpiece
coordinate system and program reference point in Jog and Auto operation modes till they are replaced.
XU)_
G26
ZW)_
Word
X, Z: Absolute coordinates of the intermediate point;
U, W: Relative movement amount from starting point to middle point.
Word range
X, Z, U, W-9999.999mm9999.999mm
Explanation
1 After this command is executed, the specified coordinate axes move to the point defined by
G50. The axes move to the program reference point defined in the Jog operation mode if
there is no G50 in the program. After the corresponding axis executes the reference point
return, ahead of the machine coordinates of this axis is displayed a green icon as a prompt.
2 The command and other commands cannot in the same block.
3 The execution mode of this command is the same as that of G00; refer to G00, G50 for
relative parameters.
4 Z/X can select single-axis, two-axis simultaneous program reference point return.
Example
G26
Z150
X100
G26
U0
PROGRAMMING
G26
Z(W) _
G28
X(U) _
Word
X, ZAbsolute coordinates of the intermediate point;
U, WRelative movement amount from starting point to intermediate point.
Word range
X, Z, U, W-9999.999mm9999.999mm
Relative parameter
PROGRAMMING
Main parameters related to G28: P021P026, P109, P110, P406 and P407.
Explanation
1 When the machine zero detection devices (zero switch and deceleration switch) are not
installed on the corresponding coordinate axis, the corresponding bit of P406 should be set to
0; in executing G28, the system does not detect the zero signal and deceleration signal, but
moves the axis to the intermediate point and then returns to the zero coordinate position of
this axis.
2 When the machine zero detection devices (zero switch and deceleration switch) are installed
on the corresponding coordinate axis, the corresponding bit of P406 should be set to 1; in
executing G28, the axis directly returns to the machine zero at the rapid traverse rate from the
start point without passing the intermediate point; which is equivalent to the machine zero
return in Jog operation mode.
3 For G28 machine zero return, see Section 4.4 Machine Zero Return in Jog Operation Mode in
PartProgramming.
4 G28 is a one-shot G command; its execution mode is the same as that of G00; for other
relative parameters, refer to G00.
5 After the corresponding axis executes the machine zero return, there is a blue icon
being displayed behind its machine coordinate
6 This command must be specified in an independent block. It cannot be in the same block with
other commands.
7 Z/X can only perform the single-axis machine zero return.
Example
200
G28
U0
; X axis rapidly returns to the machine zero without moving other axes
G28
W0
; Z axis rapidly returns to the machine zero without moving other axes
Chapter Four
4.10
Command format
G30
P2
ZW)_
XU)_
G30
P3
ZW)_
XU)_
G30
P2
ZW)_
Word
X, Z: Absolute coordinates of the intermediate point;
U, W: Relative movement amount from starting point to intermediate point.
P2 specifies the 2nd program reference point; P3 specifies the 3rd program reference
PROGRAMMING
point.
Word range
X, Z, U, W-9999.999mm9999.999mm
P2 or 3
Relative parameters
Main parameters related to G30: P003P008.
Explanation
1 The execution mode of the command is the same as that of G00; for other relative
parameters, refer to G00.
2 This command must be specified in an independent block. It cannot be in the same block
with other commands.
3 Z/X can select single-axis, two-axis simultaneous 2nd, 3rd program reference point return.
Example
G30
P2 Z150
X100
G30
P3
Z150
X100
G30
P3 W0
D__
; Timing delay
201
Word range
D09999.999 s
Explanation
1 G04 cannot be in the same block with other commands except S, F command.
2 In executing G04, pressing CYCLE START can terminate the delay, and then the system
proceeds to the next command.
Example
Example G04
4.12
D2.5
; 2.5s is delayed
G96 Constant Surface Speed Control, G97 Constant Surface Speed Cancel
PROGRAMMING
Command format
G96
G97
Word
S in G96 specifies the constant surface speed. (unit: m/min)
S in G97 specifies spindle speed after the constant surface speed is cancelled. (unit:
r/min)
Word range
S09999 r/min
09999 m/min
04multi-gear spindle
Explanation
G96, G97 are the modal words in the same group, only one of which is valid. G97 is the initial word
and it is valid by default when the system is switched on.
When the machine tool is turning the workpiece, the workpiece usually rotates taking the spindle
axis as the center line, the cutting point of tool cutting workpiece is a circle motion around the spindle
axis, and the instantaneous speed in the circumference tangent direction is called cutting surface
speed (or surface speed for short). Different workpieces and tools with different materials require
different surface speed.
The constant speed control is valid only when the spindle speed analog voltage control function is
valid. In the constant speed control, the spindle speed changes with the absolute value of X tool nose
coordinate in the programmed path (tool length compensation is ignored). When the absolute value of X
tool nose coordinate is increased, the spindle speed is reduced, and when absolute value is decreased,
202
Chapter Four
the spindle speed is increased, which ensures the cutting surface speed keeps unchanged at S value.
The use of constant surface speed control function for workpiece cutting can make the smoothness of
workpiece surface with diameter change even.
Surface speed = spindle speed |X| 1000
(unit: m/min)
The system issues E272- S value cannot be 0 in G50 when G50 S0 is programmed.
2)
The constant surface speed function can actually control the spindle speed only when the
variable-frequency spindle is used, i.e. bit parameter P410_d6 = 1. If the gear-shift spindle is
used, the constant surface control cannot be performed even if G96 command is specified.
3)
The constant surface speed control can be performed anytime when executing G00, G01, G02,
G03, G05, G90, G94, G71, G72 or G73; the constant surface speed control is invalid during
thread cutting when executing G32, G33, G34, G76 or G92; when X coordinate is changed in
G50 or executing the tool offset, the spindle speed adjustment is valid in the next command.
4)
5)
The rotary axis in the constant surface speed must be set in Z axis (X=0) of the workpiece
coordinate.
203
PROGRAMMING
speed and X coordinate value is more than the max. spindle speed set by G50 S_. After the system is
G96 is modal command. When G96 is valid, the single S command is taken as the new surface
speed data.
7)
In DRY RUN mode, the constant surface speed control is valid. Whether the single S command
is executed in Dry run is controlled by P401_d7: P401_d7= 0: T, M, S command is executed in
DRY RUN; P401_d7=1: T, M, S command is not executed.
8)
The constant surface speed control is invalid to get the constant spindle speed in thread cutting.
9)
In G96, when the system defaults S word, the system automatically counts the surface speed as
S value according to the current spindle speed (the last speed is taken as the current speed
when the spindle does not start, or the spindle initial speed is taken as the current speed when
the system is switched on just now) and X absolute coordinate value of tool nose.
10) In G97, when the system defaults S word, the system automatically counts the speed as S value
according to the current constant surface linear speed and X absolute value of tool nose.
11) In AUTO operation mode, if the initial state of the program execution is G96, the system
automatically changes G96 into G97 after CYCLE START key is pressed. The constant surface
PROGRAMMING
cutting is valid in machining the arc and straight line in the course of machining.
12) In Jog operation mode, move X coordinate in feed state (rapid/feed indicator OFF) in G96, G96
is valid, the spindle speed changes along with X coordinate value; and is invalid in rapid feed
state(rapid/feed indicator ON).
13) S value of G96 is limited by S value of G50 Sxxxx and P304, P305. The S value of G50 is
initialized to P305 upon power on, and their limit relationship is as follows:
G50 Sxxx<P304: G50 Sxxxx is invalid, the spindle speed is adjustable between P304~P305
in G96 .
G50 Sxxx>=P304: G50 Sxxxx is valid. The min. value of spindle speed range is limited by
P304 and max. value is limited by G50 Sxxx or P305, whichever is smaller.
Example
P304 value is the lower limit of the spindle speed in constant surface speed control. When the
spindle speed counted by the surface speed and X coordinate value is lower than P304 value, the lower
limit of the spindle speed is the actual spindle speed.
Exampleas Fig. 4-17; surface speed is 300m/min which can count the spindle speed annotated in
Table 4-2.
Fig.
204
4-15
Chapter Four
N0010
M3 G96 S300
N0020
N0030
N0040
N0050
G0 X100 Z50
G0 X50 Z0
G1 W-30 F200
X80 W-20 F150
N0060
N0110
G0 X100 Z100
M30
4.13.1
Command format
G90
ZW)_
XU)_
XU)_
F_
R_
F_
Word
X(U) Z(W) Cylinder(taper) face end point; two axis coordinates should be given;
R Diameter difference between starting point and end point of cycle. It is the axis surface cutting if
R is omitted.
F Feedrate.
Word range
X, Z, U, W, R-9999.999mm9999.999mm
F0.001mm/min4000mm/min
Command execution process
205
PROGRAMMING
It is necessary to cut the same machining path repeatedly in the course of some special roughing.
To simplify the programming and improve the programming and the machining efficiency, the canned
cycle is set. The tool will automatically return to the coordinate position before execution when executing
the canned cycle once. If the cycle needs to be executed again, you only need to program the feeding
data again instead of re-writing the canned command. The control is returned to the starting point of the
cycle after the system executes the cycle. If other G commands are contained in the block behind the
canned cycle, the cycle automatically ends. The single canned cycle only uses Z/X programming.
PROGRAMMING
Chapter Four
block is not the single X (U) command but other G commands instead, the system cancels the
cycle; if the next block is not the single X (U) but M, S, T command, the system prompts the
alarm message.
6 In single block execution, by pressing CYCLE START key once, one cycle step is executed.
The system stops at the end point of each step during single block stop.
7 This command cannot be in the same block with other commands. It can only be specified in
an independent block.
8 The explanations of the cycle contour of G94, G92 are the same as those of G90.
9 Relationships between the data behind U, W, R and the tool path are as follows:
1U0W0R0
2U0W0R0
U/2
U/2
PROGRAMMING
X
X from A to B is negative, so U<0;
Z from B to C is negative, so W<0;
X from C to B is negative, so R<0.
3U0W0R0
X
X from A to B is positive, so U>0;
Z from B to C is negative, so W<0;
X from C to B is positive, so R>0.
Example
207
X
Cutting feed
Rapid traverse
Fig. 4-18
Example 1:
Fig. 4-18a outer cylindrical face: the first cutting feed= 5 mm, the second cutting
feed= 2 mm, cutting feedrate F=100 mm/min.
PROGRAMMING
N0010
G00
X47 Z62
N0020
G90
X40 Z30
N0030
X35
; Rapid positioning to A
F100
; Cycle A B C D A once
; The first tool infeed executes E A B1 C1 D A
cycle once
N0040
X33
N0050
M30
G00
X55 Z5
; Rapidly positioning to A
N0020
G90
X50 Z-20
R-5
N0030
G90
X50 Z-20
R-10
; Executing cycle A B2 C D A
N0040
G90
X50 Z-20
R-15
; Executing cycle A B3 C D A
N0050
G90
X50 Z-20
R-20
; Executing cycle A B4 C D A
N0060
G90
X50 Z-20
R-25
; Executing cycle A B C D A
N0070
M30
F100
; Executing cycle A B1 C D A
Chapter Four
with another cutting depth follows G92, another cutting is also performed. Increasing the cutting depth
gradually using the subsequent command can machine the threads which accord to the depth
requirement.
Command format
G92
XU )_
ZW)_
PE)_
K_
I_
R_
L_
H_
Word
P Metric thread lead; E Inch thread lead.
When P/E is positive, Z axis is the thread axis; When P/E is negative, X axis is the thread
axis.
X(U), Z(W) Absolute/relative coordinates of the thread end point
Z movement amount of axial thread cannot be 0; X movement amount of end face thread
cannot be 0 either.
and
PROGRAMMING
R For the axial thread, it is the difference of X coordinate between thread start point
In G92 command, I and K indicate the depth of precession, which are not omissible.
2)
H_d1=1 in G92: When the run-out is performed using I, K linkage mode, the conditions of
precession are the same as those of run-out.
3)
H_d1=0 in G92: When the run-out is performed respectively using I, K rapid traverse mode, the
conditions of precession differ from those of run-out.
Word range
X,Z,U,W,R-9999.999mm9999.999mm
I-9999.999mm9999.999mm
K09999.999mm
P0.001mm500.000mm (An negative sign can be added in front of this range. The positive
means the axial thread, the negative means the end face thread)
PROGRAMMING
E(0.06025400.000) teeth/inch (An negative sign can be added in front of this range. The positive
means the axial thread, the negative means the end face thread)
L199
H0000000011111111
Command execution process
The execution process of G92 thread cycle is as Fig. 4-19 (taking axial thread cutting for
example)
Check the spindle speed, count the reference speed of thread machining according to the
speed and the pitch P. The system issues an alarm when the value exceeds P113 value
(max. cutting feed speed). Before it, the user must ensure the spindle speed is stable;
otherwise, it may cause to be the confused thread teeth.
X axis rapidly traverses from A to B: X (U) + R position (Thread start point B).
XZ execute the thread cutting from B to C.( including thread run-out); the process is the
same as that of G33.
X rapidly returns to D.
Fig. 4-19
210
Chapter Four
Relative parameter
In G92, refer to G00 for the relative parameters of rapid traverse, and refer to G33 for the relative
parameters of thread cutting
Explanation
1) The thread cutting generally requires several times feeding. At the moment, the user only needs to
alter X coordinate value of end point of cutting feed (or the increment value relative to the starting
point). The coordinate position is still on the starting point when the thread cycle ends.
2) The command cannot be in the same block with other commands. It must be specified in an
independent block.
3) G92 recycle subsequent command means the system executes one time the contour in G92 again;
when P(E) is positive, G92 recycle subsequent command can only be X(U) ; when P(E) is negative,
G92 recycle subsequent command can only be Z(W) .
the end point of the thread in cutting taper thread; it is limited by Z coordinate difference between
the starting point and end point of the cycle in cutting end face thread.
5) Notes are the same as those of G33 thread cutting.
6) For axial taper thread, the pitch P/E is the pitch in the thread axis (Z) direction; for the end face
thread, it is the pitch in the thread axis (X) direction.
7) The relationship between R, K, P and tool path is as follows:
P/E is positive (axial thread, Z is the thread axis):
1 U<0W<0R<0
2 U>0W<0R>0
3U<0W>0R<0
4U>0W>0R>0
5 U<0W<0R>0
6 U>0W<0R<0
7U<0W>0R>0
8U>0W>0R<0
Fig. 4-20
211
PROGRAMMING
4) The axial thread machining is limited by the diameter difference between the starting point and
5 U<0W>0R<0
2 U<0W<0R<0
6U<0W<0R>0
PROGRAMMING
Fig. 4-21
3U>0W>0R>0
4U>0W<0R<0
7 U>0W>0R<0
8U>0W<0R>0
W
K
I/2
X
0
W
I/2
Z
W
K
I/2
X
212
R/2
Chapter Four
0
U/2
K/2
I
R
Z
U/2
X
K/2
PROGRAMMING
W
K
I/2
I/2
W
K
I/2
K
I/2
Example
1) G92 axial straight thread: as Fig. 4-22
213
Fig. 4-22
P is positive; the sing of I determines the run-out direction; there is no the thread run-out when I
is omitted;
2) G92 axial taper thread: as Fig. 4-23, P is positive; the sign of R determines the run-out direction;
the sign of I is invalid.
PROGRAMMING
P2
U-50.5
U-51
M30
Fig. 4-23
3) G92 end face thread: as Fig. 4-24
P is negative; the sign of I determines the run-out direction; there is no run-out if I is omitted.
Example: G00 Z100 X10
G92 W-30 U80 K5 I2.5 P-2
W-31.5
W-32
M30
214
Chapter Four
Fig. 4-24
4) G92 end face thread: as Fig. 4-25
P is negative; the sign of I determines the run-out direction; there is no run-out if I is omitted;
Example: G00 Z100 X10
G92 W-30 U80 K5 I2.5 P-2
W-31.5
PROGRAMMING
W-32
M30
Fig. 4-25
5) Compound exampleas Fig. 4-28
Example 1: Metric cylinder thread as Fig. 4-26 a.( G1 14 : teeth 11d=41.910d2=40.431d1=38.952)
N0010
N0020
G00 X45 Z5
M03 S600
N0030
G92
X41 Z-50
; Rapidly position A
; Spindle CW, 600r/min
E11
N0040 X40.2
; Second cutting 0.8mm
N0050 X39.6
; Third cutting 0.6mm
N0060 X39.2
; Fourth cutting 0.4mm
N0070 X38.952
; Fifth cutting to the required dimension
N0080 M30
The tool is still on A after executing the above-mentioned blocks.
215
R114
B
A
C
D
B
B3
B2
B1
E
A(45,5)
Cutting feed
Rapid feed
Fig. 4-26
Example 2: Taper Outer thread as Fig. 4-26 b (R1 14 :d=41.910d2=40.431d1=38.952P=2.309,
thread valid length is 19.1)
PROGRAMMING
N0010
N0020
N0030
N0040
N0050
N0060
N0070
G00 X45 Z5
M03 S600
G92 X41 Z-19.1
X40.3
X39.9
X39.352
M30
P2.309 R-1.506
; Rapid positioning to A
; Spindle CW, 600r/min
; First tool infeed cutting
; Second tool infeed cutting
; Third tool infeed cutting
; Fourth tool infeed cutting
ZW)_
ZW)_
XU)_ R_
F_
F_
Word
XUZW End point coordinate. The coordinates of two axes must be given.
R Z coordinate difference between starting point and end point of taper face. It is the
end face cutting if R is omitted.
F Cutting speed
Word range
X, Z, U, W, R-9999.999mm9999.999mm
F0.001mm/min4000mm/min
216
Chapter Four
Fig. 4-27a
Relative parameter
In G94, refer to G00 for the relative parameters of rapid traverse, and refer to G01 for the relative
parameters of cutting feed.
Explanation
1 The G94 can be followed by the recycle subsequent command, which means the Z end point
coordinate is respecified, and the system recycles one more time according to the contour of
G94; W in the subsequent command is relative to the cycle starting point. E.g. After the system
redefines Z end point coordinate(Z/W), it repeats the cycle process according to the new Z (W)
coordinate. The subsequent command cycle contour must be consistent with that of G94,
otherwise, the system alarms.
2 There is only the independent Z(W) word in the cycle subsequent command; the next block of
the subsequent command can also be the subsequent command; if the next block is not the
independent Z (W) word but other G commands, the cycle is cancelled; when it is not the
independent Z (W) word but M,S,T, the system prompts the alarm message.
3 This command cannot be in the same block with other commands. It must be specified in an
independent block.
4 Other explanations of G94 are the same those of G90.
5 Relationships between the data behind U, W, R and the tool path are as follows:
217
PROGRAMMING
PROGRAMMING
Fig. 4-28
Example
Z
Z
C2 C1 C D
C
A(62,45)
B2 B1 B A
G
F
B B4B3B2B1 E
D
A(55,5)
X
a
Fig. 4-29
Example 1: Fig. 4-29a, the first feed= 5 mm, the second feed= 1.5 mm, cutting speed =80 mm/min, and
its programming is as follows
N0010 G00 X62 Z45
N0020 G94 X25 Z40 F80
N0030
N0040
N0050
Z35
Z33.5
M30
; Rapid positioning to A
; 1st cutting cycle of end face cycle cutting A
BCDA
; Tool infeed 5mm, the 2nd cycle A B1 C1 D A
; Tool infeed 1.5m, the 3rd cycle A B2 C2 D A
Example 2: Fig. 4-29b, feed R=-5 mm once, cutting speed =100 mm/min and its programming is as
follows
218
Chapter Four
N0010 G00 X55 Z5
N0020 G94 X30 Z-5 R-5
N0030
N0040
N0050
N0060
N0070
4.13.4
G94
G94
G94
G94
M30
X30
X30
X30
X30
Z-5
Z-5
Z-5
Z-5
F100
R-10
R-15
R-20
R-25
Command format
G74
XU)_
ZW)_
I_
K_
R_
E_
F_
Word
X(U) Z(W) Coordinates of hole bottomIt is the deep hole drilling cycle when X is omitted
K Each Z tool retraction amount (Z axis)
R Pecking cycle or deep hole cycle selection. When R is omitted or R=0, the distance of
retraction each time is only K, i.e. pecking cycle. When R=1, the tool retracts to the
starting point of the first hole drilling each time, i.e. deep hole drilling cycle
E Each offset value in X direction (diameter value) .
F Feedrate.
Word range
X, Z, U, W-9999.999mm9999.999mm
I, K09999.999mm
EDeep hole drilling cycle is 09999.999 mmEnd face deep hole machining cycle is0.001
mm9999.999 mm
R0 or 1
F0.001mm/min4000mm/min
Explanation
R=1, the cycle process of G74 command is as follows:
Fig. 4-30
PROGRAMMING
PROGRAMMING
follows:
Fig. 4-31
Chapter Four
2 None of I, K, E has signs. The system executes the operation according to K =I when K is
greater than I.
3 G74 cannot be in the same block without other commands. It must be specified in an
independent block.
4 In the end face deep hole machining cycle, E cannot be 0, otherwise, the system issues No.
E269 alarm; in the deep hole drilling cycle, E can be 0, which is valid.
Example
Executing end face deep hole machining cycle as Fig. 4-32: tool width= 5 mm, each tool infeed =6
mm, tool retraction= 2 mm, each offset= 5 mm, F=100 mm/min.
N0010 G0 X0 Z40
N0020 G74 X22.5 Z20 I6 K2 E5 F100
N0030 M30
XU)_
ZW)_
I_
K_
E_
F_
Grooving cycle
Word
XUZWGroove end point coordinates.
I Each X tool infeed.
K Each X tool retraction.
E Each Z offset.
F Feedrate.
Word range
X, Z, U, W-9999.999mm9999.999mm
I, K, E09999.999mm
F0.001mm/min4000mm/min
221
PROGRAMMING
Fig. 4-34
PROGRAMMING
Rapid feed
Cutting feed
The broken line means transiting to the next step.
Fig. 4-33
Relative parameter
They are the same those of G74
Note
1 In G75, the tool width has not been taken into account, so the Z coordinate of the end point
should adds or subtracts the tool width depending on the actual condition (it is determined by
the tool infeed direction).
2 None of I, K, E has signs. The system executes the operation according to K =I when K is
greater than I.
3 This command cannot be in the same block with other commands. It must be specified in an
independent block.
4 In the outer grooving cycle, E cannot be 0. Otherwise, the system issues E269 alarm; in the
outer machining cycle, E can be 0, which is valid.
222
Chapter Four
Example
Executing the grooving cycle as Fig. 4-34: tool width= 5 mmeach tool infeed = 6 mmeach
retraction= 2mmeach offset= 5 mmF=150 mm/min
N0010
G0
X125
N0020
G75
N0030
M30
Z100
X80 Z35
F150
4.14.1
Using the command group can realize the compound cycle rough and finish cutting of one group of
slope command collection. The system firstly starts from the starting point to rough the blank along the
axial direction (the tool is parallel to Z axis), and then cuts along the command group path, and finally
returns to the starting point to finish the roughing. If the roughing offset value (roughing allowance) is set
in advance anytime before executing the roughing command, the system automatically offsets one offset
value to execute the roughing. Anytime after executing the roughing command, the finishing tool can be
used along with G710 to execute the finishing.
G71 includes the following 3 commands:
G71
U W
G71
X(U) I
G710
X(U)
P Q
P Q F
PROGRAMMING
one group of slope command group. The system executes the gradual roughing in the axial direction
(referred to as sidestep roughing), and then executes the cutting along the command group path
(referred to as contour roughing), and at last returns to the initial point to complete the roughing. The
section describes the execution process of G71 roughing command.(assuming the roughing offset value
of command is: W0, U0) .
Command format
G71
XU)_
I_
K_
F_
P_
Q_
Word
XUX coordinate value of machining contour starting point.
I Each X tool infeed, without sign; I cannot be 0.
PROGRAMMING
Chapter Four
Repeat steps to rough the blank until X reaches the specified machining contour
starting point specified by X in the command.
X, Z execute the cutting at their respectively-specified speed according to the final path
and machine the shape described by the final path.
Finally, Z rapidly returns to starting point, and then X rapidly returns to the starting point.
Relative parameter
In G71, refer to G00 for the relative parameters of rapid traverse, and refer to the linear and circular
interpolation for the relative parameters of cutting feed.
Explanation
When executing G71, the system automatically searches and executes PQ blocks; after
executing them, it proceeds to the block following G71. However, if PQ blocks are
complied following G71, the system returns to the starting point and then executes the
block following Q.
programmed contour. To prevent imprint on roughing points, there should be an
allowance between roughing point and contour: 0.03 in X direction, 0.05 in Z direction.
In PQ blocks can only include G commands: G00, G01, G02, G03, G05, G04, G96,
G97, G98, G99; and common input/output control M commands; other commands are not
allowed (e.g. T, transfer, call command). The system only uses Z/X programming. The
number of paths in PQ blocks cannot exceed 1000.
F, S command in PQ blocks are invalid when executing the sidestep roughing, and they
are valid only in the cuntour path; thus, F speed should be specified in advance or F is
programmed in the same block with G71 in the sidestep roughing.
In PQ blocks, X, Z dimension data must be monotonous slope-type change (always
increasing or reducing) ; and X must starts from the machining contour starting point B to
monotonously change to G71 starting point A.
None of address I, K has signs, and the tool infeed direction is automatically determined by
the system. The smaller I is, the more the roughing layers are.
I range is related to X(U) range; I, U range must meet the requirement that U/I is smaller
than 10000.
When executing feed hold, single block, the system pauses after it executes the path end
point of the current step.
This command cannot be in the same block with other commands. It must be specified in
an independent block.
There are four cases when using G71 command to cut the workpiece, as in Fig. 4-36; For
each one, the tool cuts from G71 starting point A and roughs the blank in parallel with Z till
B is reached.
225
PROGRAMMING
Before roughing, the system will calculate the rough turning point according to
Fig. 4-36
Example
As Fig. 4-37: bar stock 82each tool infeed = 4 mm, each tool retraction= 2.5 mm, F= 60mm/min
PROGRAMMING
N0000
G00
X115
Z155
N0010 M3 S02
N0020 M8
N0030 G00 X83
N0040 G71 X0 I4 K2.5
F100 P0090
Q0160
80
50
Fig. 4-37
226
20
25
20
30
10
Chapter Four
U_ W_
U-9999.999mm9999.999mm
W Z offset value
W-9999.999mm9999.999mm.
P_
Q_
Or G710
F_ G710 finishing
The omission of the subsequent words indicates the
words are the same as those of roughing command
.
PROGRAMMING
G710
PROGRAMMING
Fig. 4-38
4.14.2
Using the command group can realize the compound cycle rough and finish cutting of one group of
slope command collection. The system firstly starts from the starting point to rough the blank along the
axial direction, and then cuts along the command group path, and finally returns to the starting point to
complete the roughing. When the roughing offset value (roughing allowance) is set in advance before
executing the roughing command, the system automatically offsets one offset value and then performs
roughing. The finishing tool can be used along with G720 to execute the finishing anytime after
executing the roughing command.
G72 command group includes 3 commands:
G72
U W
G72
Z(W) I
G720
Z(W)
P Q
P Q F
realize the compound cycle roughing of one group of slope command group. The system executes the
gradual roughing along the radial direction (called sidestep roughing), and then executes the cutting
228
Chapter Four
along the command group path (called contour roughing), and finally returns to the initial point to
complete the roughing. This section describes the execution process of G72 roughing command
(assuming the roughing offset value of command is: W0, U0).
Command format
G72
Z(W) _
I_
K_
F_
P_
Q_
Word
Z(W) Z coordinate value of the starting point of machining contour
I Each Z tool infeed, without sign; I cannot be 0.
K Each Z tool reaction, without sign.
P, Q Block line numbers describing initial and final path of machining contour.
F Roughing cutting feedrate.
Word range
Z, W-9999.999mm9999.999mm
K09999.999mm
P, Q19999
F0.001mm/min4000mm/min
Relative parameters
They are the same as those of G71 command
Explanation
1)
The reserved allowance between G72 command roughing point and contour: 0.05 in X
direction, 0.03 in Z direction; other explanations are the same as those of G71.
229
PROGRAMMING
I0.001mm9999.999mm
Fig. 4-39
Example
PROGRAMMING
Blank shape
Fig. 4-40
As Fig. 4-40 : bar 163, each tool infeed =5mm, each tool retraction =3 mm, F=80mm/m
N0000
G00
X180
N0010
N0020
N0030
N0040
M3 S02
M8
G00 X165 Z5
G72 Z-125 I5 K3 F80 P0100
Z50
Q0150
Chapter Four
allowance) in advance anytime before executing the roughing command , the coordinate axis firstly
offsets one offset value automatically and then executes the roughing path during the execution of
command , i.e. the roughing path creates the whole offset to leave the allowance for the next finishing.
When command is omitted, the roughing offset value is W0,U0. Anytime after the roughing, the user
can use a finishing tool to perform finishing by using command .
U_
W_
U range-9999.999mm9999.999mm;
W Z offset value;
W range-9999.999mm9999.999mm.
G720
Z(W) _
P_
Q_
Or G720
F_
G720 finishing
The omission of the subsequent words indicates they
are the same as those of roughing command
231
PROGRAMMING
Fig. 4-41
PROGRAMMING
advance before executing the roughing command, the system automatically offsets one offset value to
execute the roughing. The user can use a finishing tool along with G730 command to execute finishing
anytime after executing the roughing command.
G73 starting point is identical with the end point, and the command is applicable to the roughing of
formed blank. G73 is a one-shot command and its path is as Fig. 4-42.
G73
U W
G73
X(U) Z(W) I
G730
X(U) Z(W)
F P Q
P Q F
G730 finishing
can realize the compound cycle roughing of one group of closed-loop command group. The system
firstly cuts the blank (called step roughing) gradually from the starting point, and then cuts along the
command group path (called contour roughing) and finally returns to the initial point, completing the
roughing.
The section describes the execution process of G73 roughing command (assuming roughing offset
value of command is W=0,U=0) .
Command format
G73
XU)_
Z(W) _
I_
K_
L_
P_
Q_
F_
Word
XU X coordinate value of starting point B of roughing contour.
ZWZ coordinate value of starting point B of roughing contour.
232
Chapter Four
PROGRAMMING
even, i.e. the amount of each layer is I/L in X direction, and is K/L in Z direction. The tool gradually
PROGRAMMING
Command explanation
1) PQ blocks are different from those of G71/G72. It is unnecessary to ensure the dimension
data monotonous change in X and Z directions.
2) The tool retraction direction is determined by the signs of I, K.
3) The F, S commands in P~Q blocks are valid for both workblank roughing and finishing.
4) For other explanations, refer to G71, G72.
allowance) in advance anytime before executing the roughing command , the coordinate axis firstly
offsets one offset value automatically and then executes the roughing path during the execution of
command , i.e. the roughing path creates the whole offset to leave the allowance for the next finishing.
When command is omitted, the roughing offset value is W0,U0. Anytime after the roughing, the user
can use a finishing tool to perform finishing by using command .
Command format
G73
U_
W_
U X offset value
U range-9999.999mm9999.999mm
W Z offset value
W range-9999.999mm9999.999mm
Chapter Four
W Z offset value (roughing allowance), which means Z coordinate offset of the last roughing path
relative to the finishing path.
Command format and definition
G730
X(U) _
Z(W) _
P_
Q_
F_
Or G730
G730 finishing
The omission of the subsequent words indicates they are
the same as those of roughing command
U<0 K>0
W>0
2I>0
U>0 K>0
Z
C
A
A
W>0
B
B
B
C
C
B
B
B
3I<0
U<0K<0
W <0
A
A
C
C
A
B
W<0
A
A
B
B
B
B
Z
A
A
A
C
C
C
Fig. 4-43
235
PROGRAMMING
Example
14
14.5
PROGRAMMING
14.5
(200,30)
Fig. 4-44
Cutting figure is shown as the shape in fig. 4-44:
N0010
T11
N0020
G00
X200
N0022
M03
S500
N0030
G73
U0.5
N0040
G73
N0050
N0070
N0080
Z30
Chapter Four
G76
D_
I_ Q_
G76 XU_
P_
L_ R_
ZW_
PE_
I_ K_
R_ L _
H_ ; G76 threading
ZW_
PE_
I_
K_
R_
L _ H_
G76 threading
Z(W)
, which is expressed by
point C.
Thread starting point: Z absolute coordinate is same as that of A point, and the difference
between X absolute coordinate and that of C point is the thread
taper, expressed with E. When the defined thread angle is not 0 , the
tool cannot reach E point in cutting.
Tool retraction end point: Radial (X axis) retraction end point after threading in each thread
roughing cycle or finishing cycle, which is expressed by D point.
D_
I_
Q_
P_
L_
range:0.0019999.999mm
R_
PROGRAMMING
G76
range199
Omissiblecorresponding to P337
range:099.999mm
Omissiblecorresponding to P338
PROGRAMMING
When the system executes the command, it loads P, L, R, Q values to their corresponding
parameters, because these parameters are used when the system executes the command .
2)
When the system executes the command, D, I are memorized to the system internal and are
used in G76 .
3)
The system must firstly execute one G76 commandand then can execute one or more G76
commands. Otherwise, an alarm is issued because of lacking some necessary information.
4)
All P, L, R, Q can be omitted. When they are omitted, the system runs according to the setting
values of P336, P337, P338, P339 in executing G76; D, I , however, cannot be omitted.
Chapter Four
depth of each roughing is
n 1 ) I. The cutting amount cannot be less than the least cutting amount Q.
Thread cut-in point: The point from which the actual threading starts in each thread roughing
and finishing, which is expressed by Bn (n is the current roughing cycle times). B1 is the
cut-in point of the first thread roughing, Bf is the cut-in point of the last thread roughing,
and Be is the cut-in point of the thread finishing. The displacement formula of Bn relative
to X, Z of B is as follows:
tg
P Z axis displacement
=
2 X axis displacement
PThread angle
The tool rapidly traverse to B1 from the starting point, and the first thread cut depth is I. If
P=0, only X axis moves; if P0X and Z move simultaneously, and their movement
directions are the same as that of AC;
Threading to the intersection with CD in the direction parallel with EC (when there is
run-out, there is the thread run-out process) ;
X axis rapidly traverses to D;
Z axis rapidly traverses to Athen the single roughing cycle is completed;
The tool rapidly traverses again to Bn (n is the current roughing cycle times)and the cut
depth is ( n I)
or (the last cut depth +Q), whichever is greater. If the cut depth is less
than (D-R)the system shifts to ; if the cut depth is greater than or equal to (D-R)the tool
feeds the cut depth (D-R) to Bfand the system shifts to to execute the last thread
roughing;
Threading to the intersection with CD in the direction parallel with EC (when there is
run-out, there is the thread run-out process) ;
X axis rapidly traverses to D;
Z axis rapidly moves to Athen the thread roughing cycle ends and the thread finishing
starts;
The thread finishing is executed after the tool rapidly moves to Be (thread cut depth is D, the
cutting amount is R)and finally the tool returns to A, completing one thread finishing cycle;
If the finishing cycle times is less than L, the system shifts to execute the next finishing
cycle, and the thread cut depth is D, the cut amount is 0; if the finishing cycle times is L,
G76 compound thread machining cycle ends.
239
PROGRAMMING
Fig. 4-45
The cut-in method is shown in Fig. 4-46:
PROGRAMMING
Fig. 4-46
Command explanation
1)
Using G76 thread cycle cutting command group can complete the thread cutting with specified
tooth height (total cut depth) by multiple thread roughing and finishing; when the thread angle
defined by the command is not 0, the cut-in point of thread roughing gradually moves to
the thread tooth bottom from the thread tool top, so that the angle between two neighboring
teeth is the specified thread angle.
2)
G76 command group can machine the straight and taper thread with the thread run-out and
can realize the single-side tool edge threading, which protects the tool and improves the thread
precision.
240
Chapter Four
3)
G76 command group can also machine multiple thread and end face thread. When G76
machines the multiple thread, each time the cut depth is fed, each thread is cut the same cut
depth till the multiple thread is completed. Then the system executes the next cut depth.
4)
If the thread angle defined by G76 command is not 0, the difference between G76
command and G92 is: in the process of each thread cycle of G76 from the stating point
to cut-in point, X, Z move simultaneously at first, and the thread axis reaches the cut-in point,
and then the non-thread axis moves to the cut-in point independently; the other cut path is the
same as that of G92 . See Fig. 4-46.
Example
ExampleAs fig. 4-47the thread is M686.
6
PROGRAMMING
68
60.64
Fig. 4-47
Program
G50
X100
Z50
G00
X80 Z10
G76
D7.36
M3 S300
I3.6 Q0.3 P60 L2 R0.2 ; Thread tooth height 7.36the 1st thread cut depth 3.6;
; The least cut-in depth 0.3tool angle 60
; Repetitive finishing 2 times, finishing cutting amount 0.2.
G76
X60.64
G00
X100
Z-62
P6 I0.5 L3
Z50
M30
4.15
or the basically-formed workpiece, the user can employ local cycle command to simplify the
programming. The cycle body of the local cycle is programmed by the user, and the end point
241
L_
G80
Word
G22 defines the starting of cycle body;
L defines the cycle times, range 19999;
G80 defines the end of cycle body.
Explanation
Command execution process
PROGRAMMING
G22 defines the starting of cycle body and L defines the cycle times.
Execute the cycle body program.
When G80 cycle body ends, if L is not 0, it reduces by 1 and then the system executes the
cycle body program again; if L is 0, the cycle ends, and the system executes the following
program in order.
Note
1 Only when G22 and G80 are used together, can the cycle body be formed; there can be G22 and
G80 in the cycle body, i.e. they can be nested.
2 The subprogram can be called in the loop body, which can also include M96 and M97. For the
parts whose shapes have been determined and which need to be roughed, using G22 and G80
to program is very convenient and can improve the machining efficiency.
3 For the axis needing to create the cycle offset, the program in the cycle body uses the relative
programming. And by making an offset between the exit coordinates and entry coordinates of the
cycle body, the user can realize the purpose that each time the cycle program and machining
contour are the same, but the machining path is different.
4 G22, G80 can nest G90, G92, G94, G71, G72 and other cycle commands.
Example
10
30
20
10
20
25
N60
N50
N60
N50
End point
Fig. 4-48
242
Chapter Four
It is convenient to program using G22, G80 cycle when machining the workpiece whose shape is
shown in Fig. 4-48a. The program is as follows:
N0000
G50
X100
Z100
N0010
M3 S01
N0020
M8
; Cooling ON
N0030
G00
X10 Z30
N0040
G22
L3
N0050
G01
W-5 F50
N0060
U5
N0070
G80
N0080
G26
N0090
M5
N0100
M9
; Cooling OFF
N0110
M2
; End of program
W-5
X100
Z100
N0000
G00
X36 Z-5
N0010
G22
L3
N0020
G01
U-2
N0030
G02
W-14.28 R10
N0040
G01
W14.28 F500
N0050
G80
N0060
M30
F50
; X feeds 1mm
The above two examples are programmed according to the actual workpiece shape. The
programming method in Fig. 4-48a is applicable to the roughing like smithing and casting, which can
improve the machining efficiency, while the one in Fig. 4-48b is applicable to the bars.
4.16
Command format
G98
F.
G99
F.
Word
G98
F. F unitmm/min
F. F unitmm/r
PROGRAMMING
When machining the arc shown in fig. 4-48b, the programming using G22, G80 cycle is as follows:
04000.000 mm/min
04000.000 mm/r
Note
1)
The value format of G98/G99 must be matched with that of F word. Otherwise, the system
issuesMissing information.
2)
G98/G99 is the modal command and it keeps valid before being changed. The single F
command can be taken as the new feedrate.
3)
G98 is the initial state of the system and the system automatically sets to G98 during initialization
(mm/min).
4)
When F=0, the system suspends and prompts an alarm message when executing the machining
the program.
5)
In G99, when the spindle speed is 0, the feed automatically pauses and the system displays
Pause: the spindle speed is 0. It keeps the state till the spindle speed is not zero, then, by
PROGRAMMING
pressing CYCLE START key again, the system recovers the execution.
6)
In G99, generally, when the spindle is just started, the system should delay a proper period of
time to wait the spindle speed to become stable, and then executes the cutting. Otherwise, the
system fails to detect the spindle speed, displaying Pause: the spindle speed is 0.
Example
N0100
G98 F800
F50
; F feedrate: 50 mm/min;
G99 F2.1
N0160
N0200
N0250
F0.56
; F feedrate 0.56mm/r
4.17
The execution of G31 is almost the same as that of G01, and the difference is that G31 constantly
detects the state of the external input interface signal (G31I). If the signal meets the condition, the
coordinate axis stops the feed and then continues executing the next command; if the signal cannot
meet the condition, the coordinate axis feeds to the end point, then the system goes to the next
command.
Command format
244
G31
ZW)_
XU)_
G31
XU)_
F_
H_
F_
H_
Chapter Four
Word
X, Z, Y End point coordinates after the command ends.
U, W, V Incremental value counted by the theory end point.
F Feedrate. F is modal and can be omitted when it is not changed; it is controlled by the
feedrate override.
H Command bit parameter(H_d7 ~ H_d1reserved) ; the system defaults it to be 0 when it
defaults.
H_d0=0: G31I LOW meets the skip condition;
H_d0=1: G31I HIGH meets the skip condition;
Word range
X, Z, U, W
-9999.9999999.999mm
F0.001mm/min4000mm/min
H0000000011111111
Z=100;
F500;
The move distance is Z70, Z moves at the speed of 500 mm/min till it reaches Z30 if G31I signal
does not meet the skip condition; if Z68.37, G31I meets the skip condition and Z immediately stops
running and the system executes the next command.
245
PROGRAMMING
Explanation
Command format
G66
G67
W0
U0
Explanation
X, Z: If they are specified using absolute coordinates, it means the axes rapidly traverse to those
absolute coordinate points.
U, W: If the relative coordinates which are not 0 are used, it means the axes rapidly traverse to the
new coordinates of G66 position plus the increment.
Z/X/Y can select single-axis, two-axis rapid traverse. Absolute coordinates and relative coordinates
cannot be used at the same time. The axis that does not move can be omitted, but G67 must be
PROGRAMMING
N0010
T11
N0100
N0200
G66
N0200
T22
N0300
G67
X120
W10
N0200
4.19
M02
Code
G00
G01
G02
G03
246
Function
G00
XU ZW single or two-axis
Rapid traverse
G01
XU ZW F single or two-axis
Linear interpolation
G02
XU ZW R F
XU ZW I K F
CCW
interpolation
circular
XU ZW R F
XU ZW I K F
CW
interpolation
circular
G02
G03
G03
Group
Remarks
Initial G
Modal G
Chapter Four
G05
G32
G33
G26
G28
G30
G05 XU ZW I K F
IKan intermediate on the arc
Circular interpolation
G32 ZW PE H
G33 XU ZW PE I K Q H
G26 XU ZW single or two-axis
Return to the program reference point via the
intermediate point; rapid traverse by G00.
G28 XU or G28 ZW
G30 P2 XU ZW) single or two-axis
G30 P3 XU ZW
G50
G50
G51
G51
G31
G31
G66, G67
XU ZW I
K R E
G75
G75
XU ZW I
K E
G90
G90
XU ZW R F
G92
G92
XU ZW PE I
G94
G94 XU ZW R F
G22 L
G80
G71
G72
G73
rd
Return to 2 , 3
program reference point
G76
G76 D I Q
P L R
G76 XU ZW PE I
G96
G96
G97
G97
G98
G99
G98
G99
F
F
One-shot G
One-shot G
One-shot G
One-shot G
One-shot G
R L H
Outer/inner
grooving
cycle
Outer/inner
cylinder
face cycle
Thread cutting cycle
One-shot G
One-shot G
One-shot G
Delay
One-shot G
One-shot G
D
U W
XU I K F P Q
XU P Q F
U W
ZW I K F P Q
ZW P Q F
U W
XU ZW I K F P Q
XU ZW P Q F
Outer
roughing,
finishing
cycle
command group
End face roughing,
finishing
cycle
command group
L
R L H
Closed-loop
cutting
cycle command group
Multi threading
command group
cycle
Modal G
7
Initial G
8
Initial G
Modal G
Note: The system is in the G00G97G98 states upon power-on and reset.
247
PROGRAMMING
G74
G04
G71
G71
G710
G72
G72
G720
G73
G73
G730
nd
V0
G74
G04
One-shot G
G66
G22
G80
Memorizing current
coordinate point
G67 W0 U0
One-shot G
Workpiece coordinate
system setting
Workpiece coordinate
system recovery
single or two-axis
XU ZW F
Taping cycle
Constant thread cutting
Code
Function
G00
Rapid traverse
G01
Linear interpolation
G02
G03
CW circular interpolation
G05
Circular interpolation
G32
Taping cycle
G33
G26
G28
PROGRAMMING
G74
G75
G76
G50
G51
G90
G92
G94
G22
G80
G04
G71
G72
G73
G96
G97
G98
G99
G31
Skip function
G66
Memorizing
coordinates
G67
Return to coordinates
memorized by G66
248
rd
2 , 3 program reference
point return
Workpiece
coordinate
system setting
Workpiece
coordinate
system recovery
End face drilling cycle
G30
the
current
Remarks
CHAPTER FIVE
5.1
The command compiling must meet the rules in one block, so that the system can identify them
conveniently; it is suggested that the command character should be placed in front of the data words.
When the system executes the Programming Rule Check, only the program meeting the programming
rules can be compiled; if an error is detected, an alarm is issued. Please observe the following rules:
1) No repetitive command is allowed in one block; otherwise, the system issues E202: Repetitive
command;
Incorrect example: N0200
2 The command character must be followed by the valid digital command; otherwise, the system
G23
Z30
No such a command.
3) There must be no repetitive data word in one block, otherwise, the system issues E234: the
data word is repetitive ;
Incorrect example: N0200
4) There must be no conflicting data words; otherwise the system issues E210; the excessive
words;
Incorrect exampleN0200
5) The command character and word character must be followed by valid digits without a blank
space; otherwise the system issues E204: command format error;
Incorrect exampleN0200
N0200
6)
G00
Z 20
G 00
Z30
The required data in the block cannot be omitted, otherwise, the system issues E206: missing
message;
Incorrect exampleN0200
G90
X100
7) There must be no words, letters and digits unrelated to the command; otherwise, the system
issues E203: Illegal message;
Incorrect exampleN0200
8)
G00
X W 100
; Unnecessary character W
The values of the data word must be within the valid range; otherwise, the system issues E211:
Data exceeding the range
Incorrect exampleN0200
9)
G00
X100
Z99999
249
PROGRAMMING
1)
PROGRAMMING
2The system cannot make a judgment for some commands below have mutually-contradictory
operations or the same data. To avoid the above, M, G commands which cannot be in the same
block are divided into many groups and only the commands in the different group can be in the
same block as follows:
M commands which can be in the same block are divided into many groups as follows:
Group 1M03, M04, M05
Group 2M08, M09
Group 3M10, M11, M12
Group 4M78, M79, M80
Group 5M32, M33
Group 6M41, M42, M43, M44
M commands which can be in the same block are divided into many groups as follows:
Group 1G00, G01, G02, G03, G05(Thereinto, G02, G03, G05 cannot be in the
same block with T command)
Group 2G96, G97
Group 3G98, G99
250
5.3
Relative parameters
P401 bit parameter
P401_d3 Execution sequence of many commands in the same block: 0-substep 1-synchronism
Function
M32
M10
M78
M41, M42, M43, M44
Cooling ON
Chuck clamping
Tailstock advancing
Spindle gear shifting 1st, 2nd, 3rd,
4th gear
Spindle gear shifting or rotating
speed
Spindle ON
Cooling ON
S function
M03, M04
M08
G98/G99 F function
G96/G97 S function
T function
G40/G41/G42
G00/G01/G02/G03/G05
M05
M09
M33
M79
M11
M12
M80
Tool change
Motion command
Spindle OFF
Cooling OFF
Lubricating OFF
Tailstock retracting
Workpiece releasing
251
PROGRAMMING
Example
N1000
the same time with the motion command, and M command after the motion command cannot be
executed till the motion command is executed. The system executes the next block after all are
executed.
The commands which are not relative to each other are almost executed simultaneously. They
PROGRAMMING
are not executed orderly. The system automatically arranges the execution sequence for those M
codes with
Example
N1000
When the parameter is set to starting the spindle after clamping (P402_d5=0), the system
follows the interlock relationship and its execution process is as follows:
1) Simultaneously start executing T11/ G00 X50/M10/M08;
2) Execute M03 after M10 is executed;
3) Execute the next block after all are executed.
When the parameter is set to starting the spindle without firstly being clamped, the execution
process is as follows:
1) Simultaneously start executing T11/ G00/M10/M08/ M03;
2) Execute the next block after all are executed.
The total used time for executing the whole block is equal to the longest single execution time.
Synchronous execution for many commands in the same block and rapid block jump execution
allowed
P401_d3=1synchronism;
In the mode, the system rapidly skips to the next block after the axis motion commands of the
current block are executed (do not wait for the end of execution of other M, S, T).
Note
1) The system follows the rule: wait the others to be executed when other commands in the same
group are executed.
2) When the system meets The command only specified in an independent block , it waits to
execute it after the all the previous commands are executed; and it executes the next block
after The command only specified in an independent block is executed.
252
5.4
Programming Example
All the following programming examples use the tool as Fig. 5-1:
No. 2 tool
5.4.1
Example 1Workpiece in Fig. 5-2. Bar: 64105 mm. No. 1 tool is used for roughing, No. 2 for finishing.
(G90 inner/outer cylindrical surface turning cycle) .
Fig. 5-2
N0000
N0010
G50 X100
M3 S01
N0020
M8
Z150
;
;
;
PROGRAMMING
No. 1 tool
T11
PROGRAMMING
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
G00
X100
254
Fig. 5-3
;
;
;
;
F100
;
;
;
;
;
;
;
;
;
N0130
N0140
X18
X15.9
;
;
N0150
N0160
N0170
N0180
N0190
G01 X14 Z0
X16 W-1
G00 X50 Z50
T44
S2
;
;
;
;
;
N0200
N0220
N0230
N0240
N0250
N0260
N0270
N0280
G00 X19
G92 X15
X14.2
X13.8
X13.6
G00 X60
T33
G00 X26
Z2
Z-50
Z50
Z-78
P1.5 K2
;
;
;
;
;
;
;
;
PROGRAMMING
N0000
N0010
N0020
N0030
G01
G26
M9
M5
M2
X0 F50
;
;
;
;
;
Cut off
X, Z return to the starting point of machining
Cooling OFF
Spindle OFF
End of program
Example 3Cut the multiple threads with M98 subprogram call and M99 subprogram return commands.
Fig. 5-4a: metric multiple thread. Fig.5-4b: inch multiple thread with three threads. The program
is as follows:
PROGRAMMING
Fig. 5-4
N0060 X19
N0070 X18.5
N0080 X18.35
N0090 G00 X100
N0100 M05
N0110 M02
Z50
E4.667
R2
1 45
PROGRAMMING
M40 3
1 45
R2
Blank appearance
185
Reference point
Fig. 5-5
N0000 G50 X150 Z250
N0010 M3 S01
N0020 M8
N0030 T08
N0040 G00 X136 Z180
N0050 G71 X0 I4 K2.5 L10
N0060 G01 W-4
N0070 X16
N0080 W-23
N0090 X40
N0100 W-63
N0110 G02 X80 W-20 R20
N0120 G03 X120 W-20 R20
N0130 G01 W-20
N0140 G01 X130 W-5
N0150 G01 W-25
N0155 G00 X150
N0160 G26 X136
Z180
N0180 T22
N0190 S02
Machining example
PROGRAMMING
N0200
N0210
N0220
N0230
N0240
N0250
N0260
N0270
N0280
N0290
N0300
N0310
N0320
N0325
N0330
N0340
N0350
N0360
N0370
N0380
N0390
N0400
N0410
N0414
N0418
N0420
N0425
N0430
G00 X0 Z178
G01 Z176 F50
G01 X14
X16 W-1
W-22
X37
X40 W-1.5
W-61.5
G02 X80 W-20 I0 K-20
G03 X120 W-20 I40 K0
G01 W-20
X130 W-5
W-25
G00 X150
G26 X136
Z180
T33
G00 X42 Z120
G01 X30 F50
G01 X40
G01 Z121.5
X37 Z121.5
X41
G00 Z153
G01 X20 F200
X10 F50
G00 X100
G26 X136
Z180
T44 S01
N0440
N0460
N0470
N0480
N0485
N0490
N0500
N0510
N0520
N0530
Example 5Fig. 5-6. Bar: 50100. Machining with 3 toolsNo.1: outer turning tool; No.2: pointed tool;
No.3: grooving tool with 3mm width.
258
Fig. 5-6
Q0100
N0120 T22
N0130 G00 X51 Z-20
N0140 M98 P0160 L3
N0150 M97 P0200
PROGRAMMING
Machining example
259
PROGRAMMING
260
Chapter Six
CHAPTER SIX
Alarm Message
ALARM MESSAGE
All the alarm messages in this CNC system are prompted in the screen by Chinese characters.
Please performs corresponding handling according to the prompting content. Each alarm meaning is
shown in the following table. Workpiece program is also referred to as machining program in the
following table.
The alarm number starts with capital letter E followed by a three-digit number. The classification is
as follows:
E001~E009:
Alarm prompt
Alarm cause
Troubleshooting
E001
E002
USB
suddenly
E003
Removed
E007
No USB inserted
Fail to find valid
catalogue or file
USB
file
saving
failure
Not enough memory
in USB
Create content fail
E008
E009
E004
E005
E006
E010
E011
E012
E013
the
No dedicated file
Incorrect
operation
operation.
Forbid
this
261
PROGRAMMING
6.1
Alarm prompt
Alarm cause
E014
Invalid Para NO
E015
E016
E017
E018
E019
E020
E021
E022
PROGRAMMING
E023
E024
E025
E027
~
E029
E030
E031
Specify Para NO
before data
Error in Para data
Repeatedly
input
Para NO
Invalid characters in
the data
Wrong
Para
file
formula
S-upgrade code proof
error
Stop communication
Illegal I/O port set pin
NO out of range
Illegal I/O port set
input pin NO which
used
Illegal I/O port set
output pin NO which
used (33)
Software promoting
checking error
command
the
repeat
Failure
in
SRAM
saving
parameter, cant read
Illegal character in offset number
of
tool
compensation
transmission file
There is no tool compensation
number behind the T of tool
compensation transmission file,
or the offset number lack T sign
Illegal
exceed
data
262
OFT. NO
164
E038
E034
E037
E032
E036
the
Tool
compensation
NO not standard
E035
Troubleshooting
compensation
Save again
Delete the illegal character
Completing the number behind the T
sign in file, or add the sign of offset
number
Chapter Six
Alarm
No.
Alarm prompt
Alarm cause
E041
~
E043
Z/X/Y
compensation
out of range
E044
~
E046
E047
E048
E049
E051
E053
E054
pitch
value
tool
delete
pin
in
Only the
function
928TEa
provides
PROGRAMMING
E050
Troubleshooting
Fail
in
receiving
compensation file or
manual
E039
E040
Alarm Message
this
Alarm
No.
E100
E101
E102
E103
Alarm prompt
Alarm reason
Program to be deleted
doesnt exist
Block is too long in
received program
E111
Received program NO
is wrong
Received program is
void
RS232-fail to receive
program
E120
wrong operation
Modify the program to be sent
RS232-fail
program
E113
send
the
E110
E112
to
Troubleshooting
range
No content in program
Alarm prompt
Alarm reason
Troubleshooting
E121
USB is removed
device
The system is identifying the USB
equipment, the equipment is
moved suddenly
Dont insert the USB equipment
Manual
operation,
press
emergency or reset key
The USB is failed in saving
program
E122
E123
E124
E126
E128
The
program
in
specified
catalogue cant be opened
E129
E130
E131
No specified content
in USB: C928PRO
USB fails to transmit &
to send now
Stop receiving files
E127
PROGRAMMING
E132
E133
E134
Manual
operation,
press
emergency or reset key
The USB is failed in reading
program
Manual
operation,
exit
the
receiving
Check the USB device or create
this program
The
communication
program
capacity is too large
Cant open program, maybe its
destroyed
E136
E137
E142
Program error
E147
Not
support
file
system in USB, use
FAT32
E160
Program NO is wrong
E161
E162
E143
E144
E145
E163
264
specified
E164
Exceed
program
memory, fail to save
E165
No
deleting
all
Power-off
protection
program
storage area is full and cant
protect any more
The system parameter enactment
Chapter Six
Alarm
No.
Alarm Message
Alarm prompt
Alarm reason
Troubleshooting
programs
Renamed
exist
E167
E168
E169
Editing
program
exceeds memory
E166
E171
No command in help
E172
E173
E174
E175
program
The types of alarm relative to programs are divided to: Alarm in PROGRAM COMMAND, Alarm
in PROGRAM CHECK.
6.4.1
Alarm in program command means the alarm due to incorrect command in workpiece program. It
can be eliminated by inputting the correct command, and it has little relation to the setting of parameters.
Alarm List in programming command
Alarm
No.
E201
Alarm prompt
Alarm reason
Troubleshooting
Illegal command
E202
Command repeat
E203
Illegal information
E204
Command
format
wrong
Command
isnt
compatible
Lack of information
The
system
undefined
command
appears in block
The same command is input repeatedly in
the program
The system unidentified command
appears in block
The command format is wrong in the
block
Two or more commands incompatibility
appear in the same block
Delete
the
unwanted
command or line input
E205
E206
E207
E208
Brackets is miss
PROGRAMMING
Alarm prompt
Alarm reason
Troubleshooting
E209
Too
many
commands
&
characters
Surplus characters
source program
Modify source program, or line
input
E215
Data
exceeding
range
Errors in data
Single block is too
long
Use
command
independently
Lack of line number
E216
E217
E210
E211
E212
E213
E214
PROGRAMMING
E218
E219
E220
E221
E222
E224
E225
E226
E227
E228
E232
E233
266
E234
E235
E236
Using the
number
Power on again
in
program
to
variable
Write M60
harden it
program,
then
Chapter Six
Alarm
No.
E237
E238
E239
E240
E241
E243
E244
E246
E247
E248
E249
E250
E251
E252
E253
E254
E255
E256
E257
E258
E259
E260
Alarm reason
Troubleshooting
Modify data
No change in tip
radius
compensation
G00/G01
cancel
radius compensation
G00/G01 sets radius
compensation
No
replacing
variable
in
M
command
No
orbit
com
(command)
in
G71/G72 cycle
Forbidden
M3/M4
com in M47
Spindle allows to
use M47
Lack of module G
command
Delete
the
radius
compensation, then change
the tool
When
compound
command
is
consecutively cancelled, the G command
is not used
In the special situation, this kind of
variable is used in illegal
G command is added
G71/G72)
Chord is longer than
diameter
Dis (cen to 2 points)
not equal
(distances
from
center to 2 points
arent equal)
G05 data cannot
form arc
Too many program
nested calling layers
#254
not
use
traverse com
PROGRAMMING
E245
Alarm prompt
Alarm Message
after
Alarm prompt
Alarm reason
Troubleshooting
M48
E261
E262
No chamfering to full
circle
Use pointer variable
wrongly
Arc radius is too big
E263
E264
E265
E266
E267
E268
PROGRAMMING
E269
E270
E271
E272
E273
E275
E276
E278
No calling in monitor
macro
Pointer
variable
points invalid NO
no
compensate
(compensating) to
full circle C
Traverse is 0, retract
too big (traverse
amount is 0 or
retraction is too big)
Traverse amount but
no offset (amount)
Orbit
(amount)
bigger
than
(stipulated) value
Start & orbit points
not meet (the
requirements)
S value cant be 0 in
G50
Macro
value
is
negative
Center of cycle isnt
in coordinate
Roughing
blocks
exceed
specified
value
Forbidden command
in G73 canned cycle
E279
E280
No
relevant
command
in
executed program
E281
R must be 0 when
using
precession
function
6.4.2
The pointer
variable has special
explanation, it must be used carefully
Modify program
Modify program
The pointer
variable points to the
forbidden variable
Check the
modify it
Modify program
Modify program
Modify program
Modify program
Modify program
Modify program
Modify program
then
Modify program
Modify program
Re-select program; or modify
program
Modify program
Alarm in program comprehensive check alarm means the alarm due to the use of the command
268
Chapter Six
Alarm Message
which conflicts with the system parameters. When the workpiece program is checked independently,
there is no problem. Therefore, it is necessary to analyze the program from setting of the whole auxiliary
parameters and interface parameters, then to modify the program and parameter setting to eliminate the
alarm.
List of alarm in program comprehensive check
Alarm
No.
E601
Alarm prompt
Alarm reason
Troubleshooting
E603
E604
E605
E606
E607
E608
E609
E610
E611
E612
E613
E614
E615
E616
E617
PROGRAMMING
E602
269
PROGRAMMING
Alarm
No.
E618
Alarm prompt
Alarm reason
Troubleshooting
E619
E620
E621
E622
No traverse command
in M61 program
Modify
P409_d7
to
be
effective
, or change the
program command
Modify
P409_d7
to
be
effective
, or change the
program command
Modify P412_d1 to be effective,
or
change
the
variable
corresponding input chip pin or
change the program command
Modify P412_d1 to be effective,
or
change
the
variable
corresponding input chip pin or
change the program command,
or modify parameter P318=9
E623
E624
E625
E628
E629
Tool type is 9, T
command need single
block
Illegal use Y command
E630
E631
E632
6.5 Table of Alarm in JOG or AUTO Operation Mode (i.e. E300~ E499)
The Alarm in JOG and AUTO is divided into two kinds: Alarm in executing relative operation and
Relative Alarm in executing statement
Alarm
No.
E302
E303
E304
270
Alarm prompt
Z driver
alarm
X driver
alarm
unit
Y driver
alarm
unit
unit
Alarm reason
Troubleshooting
Chapter Six
Alarm
No.
E305
E306
E307
E308
E309
E310
E311
Positive
hardware limit
alarm
Negative
hardware limit
alarm
Z machine (+)
software
limit
alarm
X machine (+)
software
limit
alarm
Y machine (+)
software
limit
alarm
Z machine (-)
software
limit
alarm
X machine (-)
software
limit
alarm
Y machine (-)
software
limit
alarm
Alarm reason
Troubleshooting
E313
Z
nose
software
alarm
E314
X
nose
(+)software limit
alarm
E315
Y
nose
software
alarm
E316
E316: Z nose
(-)software limit
alarm
E317
X
nose
(-)software limit
alarm
E318
E318:Y
nose
(-) software limit
alarm
E319
Output
frequency
high
Z/X/Y pulse
exceeds the
range
E320
E321
(+)
limit
(+)
limit
too
Thread spindle
speed too high
Cant
execute
G32 in DRY
output frequency
system specified
PROGRAMMING
E312
Alarm prompt
Alarm Message
271
E330
E331
E332
Alarm prompt
Alarm reason
Troubleshooting
G34:
Screw
pitch is out of
range
E333
Tool-post gating
P529 not define
E334
Tool-post
locking
overtime
is
PROGRAMMING
E335
Tool-post
alarm
E336
No
tool
E337
E338
Chuck
clamp,
spindle
E339
Spindle doesnt
stop, no chuck
E340
Forbid function
of chuck
E341
Spindle doesnt
stop, no tail
E342
Forbid function
of tail stock
E343
E344
NO
changing
doesnt
no
M10 no respond
M11 no respond
E345
M78 no respond
E346
M79 no respond
E347
E348
272
The non-frequency
spindle
spindle,
the
operate
the
Chapter Six
Alarm
No.
E349
E350
E351
E352
E353
E354
Alarm Message
Alarm prompt
Alarm reason
Troubleshooting
Use return
machine zero
key
S exceed limit
Spindle
is
controlled by Y
axis
Spindle Y, levels
cant
be
changed
M47/M48
function doesnt
work
Spindle doesnt
stop,
no
M47/M48
Modify
parameter
P410_d4
P405_d1
and
E357
Feeding
override is 0.
E358
Spindle running
is abnormal.
E359
Alarm: pressure
is low.
E360
Alarm:
protecting door
isnt closed
Material convey
alarm
E361
E362
Lubricating
doesnt start
E363
E363Tool NO
exceeds limit
E364
Tool
post
release overtime
E365
Y axis is speed
control mode
E366
Clamp
in-position
signal abnormal
E367
Release
in-position
signal abnormal
E368
Tail stock FW
signal abnormal
PROGRAMMING
E355
273
Alarm prompt
Alarm reason
Troubleshooting
Tail stock BK
signal abnormal
E370
P319 (number of
tools) and P320
(tool
position
signal number)
are not equal
PROGRAMMING
E371
External
start
signal abnormal
E372
Chuck
foot
switch
signal
abnormal
E373
E374
G31
monitor
interface
undefined
The
parameter
P532
undefined(G31 input checking)
Spindle doesnt
stop
Used the
M60~M74
E375
E376
E377
Manual tapping
speed is too
high
Commands
have
been
undefined
E378
External
pause
signal abnormal
E379
E380
Spindle/feed hold
switch is not reset
E382
Tailstock
ready;
operation
forbidden
6.5.2
is not
spindle
is
undefined
is
command
Alarm in statement program means the alarm due to an incorrect statement command in the
workpiece program when using statement programming. The alarm can be resolved by inputting the
correct command.
274
Alarm
No.
E400
Alarm prompt
Alarm reason
Monitor variable
not described
E401
In macro, divisor
Troubleshooting
Modify workpiece program
Modify the divisor in macro command, let
it dont be zero
Chapter Six
Alarm
No.
Alarm prompt
Alarm Message
Alarm reason
Troubleshooting
Modify program
is 0
E402
not
support
monitor
calculation
E403
E404
E405
r4003 cant be
written
E407
r4007 cant be
written
E408
r4008 cant be
written
E409
Not assign a
value to r6xxx in
monitor
r711x
Invalid
data
E410
E411
r4002 cant be
written
E412
The
variable
doesnt
support
this
kind
of
operation
The
unknown
process
monitor
description
E413
E414
Unknown
variable
E415
E416
pointer
Modify program
Modify program
Modify program
Modify program
Modify program
Modify program
Modify program
The
system
non-supported
judgment condition is used in the
statement of process monitor
description
The pointer variable points to the
non-common variable or the
exceeded range pointer variable
is used
Making written operation to
reading variable r4004
Making written operation to
reading variable r4012
Modify program
PROGRAMMING
E406
Modify program
Modify program
Modify program
Modify program
Modify program
Modify program
275
CHAPTER SEVEN
This system has provided the programming method similar to the high level language, which
realizes the variable assignment, arithmetic operation, logic judgment and conditional transfer.
Programming using the statement and variable can realize the functions which cant be achieved by the
common G and M commands.
7.1
Variable
PROGRAMMING
can be omitted.
Such as:
r5:
276
Variable range
r001r299
r9000r9049
r1001r1032
r2001r2032
r5001r5004, r5008
r4001r4012, r6001r6006,
r6101r6164, r6201r6264
r7000r7009
r7010r7019
r7100r7103
r7110r7113
r7900
Remarks
Chapter Seven
Statement Programming
; when r003 equals 15000, its function is same as that of F15 command.
Zr010
; when r010 equals 2500, its function is same as that of Z-2.5 command.
K r 010 ; when r010 equals 2500, its function is same as that of K2.5 command.
S r 003 ; when r003 equals 2000000, its function is same as that of Sr003 command.
For example
PROGRAMMING
N0010 r001=-3700
N0020 r002=150000
N0030 G00 Z100 X80
N0040 G01 Ur001 Fr002
The system performs different initiation process according to the different sections of variable
number.
r001r040The variable parameter table offers the initial values for them (set by the user as
required)
r041r099This group of variables are assigned 0 in the initial state of program execution in
AUTO mode.
r100r199They are cleared upon power-on, and are not cleared afterwards.
2) In the AUTO operation mode, before executing the first program, by pressing the CYCLE START
key, the system will automatically load the contents of P600~P639 in the parameter table into
variable r001~r040 as the initial value; the variable r041~r099 is cleared.
3) After executing M20, in the recycle, r001r040 are assigned the initial value by the P600P639
in parameter table again; r041r099 and r100r199 are not cleared.
4)
The initial values of r100r199 are zero after power-on, later they are not cleared automatically.
However, their values can be changed in JOG or AUTO operation mode in real time. Their initial
PROGRAMMING
values can be set by the following method ( When using this group of variables for
programming, if the variables are not assigned the initial values before using, there is
uncertainty in the program, so the user should be careful). When the user is using these
variables and needs the initial values, the initial values of r100~r199 can be set in JOG
operation mode. In the JOG or AUTO operation mode, before the execution of the program,
press
to call the macro variable display window which displays all the macro variables
and
modified, press ENTER key to choose the variable and input the data, then press ENTER key
again. It is forbidden to modify the variable value during program execution.
Double-precision floating-point variable _ common variable r200~r299
The double-precision floating-point variable is the common variable; its range is between 200~299,
(100 variables in total).
As data overflow is easy to occur in the original command variables (r001r199), the use of
double-precision floating-point variable can solve this problem. The data range of double-precision
floating-point variable is: 64-digit number with sign.
Explanation
1Double-precision floating-point variable cannot be quoted by a code word; otherwise, an alarm
will occur.
2For the other explanations, refer to common variable (r001~r199).
Characteristics
In AUTO mode, the value of double-precision floating-point variable may vary with the program path.
The double-precision floating-point variable has following characteristics:
278
Chapter Seven
Statement Programming
1) In AUTO mode, in the initial state of program execution, this group of variables is assigned 0.
2After the execution of M20, the variable is not cleared when it is cycled.
to call macro variable display window which does not
3) In MANUAL or AUTO mode, press
display double-precision floating-point variables.
PROGRAMMING
N0010
r9000 -> 1
PROGRAMMING
N2020
N2030
N2040
N2050
N2060
;
;
;
; In the first calling, stores the Z coordinate of this position to r1
; In the first calling, the pointer +1 and points to r2
; In the first calling, stores the X coordinate of this position to r2
; In the first calling, the pointer +1 and points to r3
;
;
; In the first calling, the pointer -1 and points to r20
; In the first calling, takes out the X coordinate of the last but
two point from r20 and stores it to r190
; In the first calling, the pointer -1 points to r19
; In the first calling, takes out the Z coordinate of the last but two
point from r19 and stores it to r191
;
;
Chapter Seven
Statement Programming
if (r1009=0) then(P1600) ; if the UI09 pin read is the low level, then the system goes to P1600.
r1007= r8
PROGRAMMING
Example
R2002=0 ; Outputs 0 to UO02 pin, the outside can form the conductive loop.
R2016=1 ; Outputs 1 to UO16 pin, the interface is in the high resistance state, and the
outside cannot form the conductive loop .
r2007= r8 ; Determines the UO07 output state according to the content of r8 ( zero or non
zero)
if (r2016=1) then(P0100)
Explanation
1) The assignment output is only allowed for the variables of the output pins which are released
by the standard function definition due to the system limitation; otherwise, an alarm occurs; i.e.
the statement programming is only allowed for the pins with UO displayed on the Diagnosis
page. If programming is performed to the output signal pins which have been defined, an
alarm occurs.
2) In the system boot-strap and power-on beginning, the system will set r2001r2032 to be 1,
and the outside cannot form the conductive loop.
The different numerical values written to the register have different meanings; the system executes
the corresponding function command according to the written numerical value. Please refer to the
table below:
Table of r5001 executable keyboard scan commands: (the system forbids using this variable in the
process monitor description statement)
281
Meaning
Use
R5001 assignment is the operation mode for setting keyboard register, the key value obtained
after executing the command is stored in register r5001, and can be read or used for the
conditional judgment.
Example
PROGRAMMING
r5001=4; The system is waiting for the keyboard to input a character, it will not proceed to the
next until the key is released.
Explanation
1) If the keyboard scan command 3 or 5 is chosen, the scanned key will be displayed in the display
window when the window is open; if the display window is not opened, the key cannot be
displayed after this operation.
2) In waiting for key pressing, if the ESC key is pressed, the press key input is cancelled, and the
next statement is executed.
3) The acceptable key symbols are shown in below table, the other key input is ineffective. Note:
The key value is the corresponding ASCII value of this key symbol.
Correspondence table between r5001 acceptable key symbols and obtained key values:
key
symbol
Key
value
Key
symbol
Key
value
ENTER
ESC
48
49
50
51
52
53
54
55
56
57
45
46
13
01
71
77
88
90
83
84
85
87
70
73
75
68
82
Chapter Seven
Statement Programming
PROGRAMMING
Meaning (the user information can only be displayed on the display window
Close the display window;
Open an empty display window;
When the window is not opened,
2
call the display window which has opened last time;
10
Set the cursor position, the cursor points to the first line home;
11
Set the cursor position, the cursor points to the next line home;
Erase the content from the current cursor position to the line end; the cursor position
12
does not change;
13
Erase all the content in window, the cursor points to the first line home;
Send an ASCII character to the display window; (see ASCII code table)
32126
The cursor is positioned to the specified line, the range is from 1 to 9;
201209
The cursor is positioned to the specified line, the range is from 10 to 30;
210230
Send a group of character strings to the display window;
10001099
the mantissa 00~99 are character string numbers. Up to
100 groups of character strings can be displayed;
Send a alarm number to the display window: displaying alarm XXX, the range of XXX is
20002999
from 0 to 999;
110001110009 Set the line number of the display window (line 1 to 9); (the system default is 6)
110010110040 Set the displayed character number in each line ( 10 to 40); (the system default is 30)
Set the window grounding or character grounding, 0 to 255 can be chosen; ( the system
120000120255 default is white, and the value is 255). See correspondence table between colors and
code values
130000130255 Set the character color, 0 to 255 are available ( the system default is black, the value is 0)
140000
Set the size of the character: 16*16
140001
Set the size of the character:: 8*16 (system default)
Note: when the assignment exceeds the range, it is ineffective.
Use
r5002 assignment is to set the command for displaying window register; the data is uncertain
when reading the register, so it cannot be used as the conditional judgment.
Example
r5002=1
r5002=49
r5002=49+r3
; Sends the character which deviates r3 position from 1 to the display window
r5002=2001
Explanation
1) Set the size and color of the window before opening the display window; otherwise, they are
the system defaults;
2) When the current window is opened, if the parameters such as the window size is re-set, the
window content will be cleared automatically, and then the new setting takes effect;
3) For the selection of grounding and font color, refers to the attached table in this chapter: the
corresponding table between usually-used colors and command values;
4) In the single block mode in AUTO operation, if there is a window displaying characters
currently, , the window is closed by pressing ENTER key is pressed, then the program exits
the execution.
283
N5010
PROGRAMMING
Explanation
1) The serial number must be a two-digit number, the range is from 00 to 99 (100 groups of
character strings in total), and the lowered two digit of the command word must correspond
to the serial number, then the contents of this character string can be displayed;
2) The contents behind the S blank is regarded as the contents of the character string by the
system; No comment can be added behind the character string;
3) Each group of character strings cannot exceed 40 characters (20 Chinese characters)
4) The character string can be written before or behind the program; Generally, it is written in
the end, which will not affect the program execution speed.
Program Example
It mainly demonstrates the use of keyboard scan register and display window register in the
following program. Suppose there are three working procedures, and each of them moves to different
position from start point, then goes back to start point. However, the three working procedures are
chosen by pressing keys according to the pop-up window prompt rather than being executed by turn.
%101
N0000 G00 Z0 X0
N0010 G00 Z100 X100
N0020 r5002 = 110003
; Sets the number of lines for the display window
N0030 r5002 = 110016
; Sets the number of displayed characters of each line
N0200 r5002 = 1
; Opens an empty display window
N0210 r5002 = 140001
; Set the character size: 8*16
N0220 r5002 = 130000
; Sets the character color: Black
N0230 r5002 = 1004
; Displays the 004 character string
N0240 r5002 = 11
; Sets the cursor position, the cursor points to the home of next
line
N0250 r5002 = 140000
; Sets the character size: 16*16
N0260 r5002 = 1006
; Displays the 006 character string
N0270 r5002 = 11
; Changes line
284
Chapter Seven
N0280 r5002 = 130006
N0290 r5002 = 1005
N0300 r5002 = 130168
N0500 r5001 = 4
Statement Programming
PROGRAMMING
r5003=r03+r01
Clears the contents of the display area, i.e. the machining graph path
Note: In the cycle machining, the last machining graph is not cleared; in order to observe the new
machining path and graph conveniently, execute this command to display the next machining
path and graph again at the end of the machining program,
PROGRAMMING
286
Meaning
Pause: movement stops (equals to key CYCLE PAUSE); press CYCLE START to resume;
Switch between SINGLE/CONTINOUS mode (equals to key SINGLE); press CYCLE START to resume;
(usually used for program description during monitoring. If it is used in common program, M00 command
is advised. )
Stop after cycle (movement stop after M20); press CYCLE START to resume;
Cycle starts (equals to key CYCLE START); usually used for description of process monitoring;
Set to SINGLE mode; press CYCLE START to resume;
Set to CONTINUOUS mode
Foot switch is allowed for chuck operation afterwards; M10/M11 switching;
If spindle and chuck are interlocked, it is valid only under M05 command;
Foot switch is allowed for chuck operation afterwards; M10/M11 switching;
If spindle and chuck are interlocked, it is valid only under M05 command and the actual speed is 0;
Foot switch is not allowed for chuck operation afterwards (except for SINGLE PAUSE); if the chuck
operation is not finished yet, the next program cannot be executed;
Foot switch is allowed for chuck operation afterwards; M78/M79 switching;
If spindle and chuck are interlocked, it is valid only under M05 command;
Foot switch is allowed for chuck operation afterwards; M78/M79 switching;
If spindle and chuck are interlocked, it is valid only under M05 command and the actual speed is 0;
Foot switch is not allowed for chuck operation afterwards (except for SINGLE PAUSE); if the chuck
operation is not finished yet, the next program cannot be executed;
Goes to next program if M10 is not finished; does not take up time;
Goes to next program if M11 is not finished; does not take up time;
Goes to next program if M12 is not finished; does not take up time;
Goes to next program if M78 is not finished; does not take up time;
Goes to next program if M79 is not finished; does not take up time;
Goes to next program if M80 is not finished; does not take up time;
Goes to next program if M3 is not finished; does not take up time;
Goes to next program if M4 is not finished; does not take up time;
Goes to next program if M5 is not finished; does not take up time;
Does not go to next program till all M commands are finished;
Chapter Seven
Statement Programming
Explanation
1) During program execution, the operation of chuck and tailstock controlled by foot switch equals
to inserting a work during the execution of machining program, which does not take up time. If
the command in the same group is executed, it is invalid; it is valid by pedaling the foot switch
again after the execution.
2) In statement or whole process monitor, the operation of chuck and tailstock controlled by r5008
equals to inserting a work during the execution of machining program, which does not take up
time;
3) The operation of chuck and tailstock controlled by r5008 may be invalid; for instance, when M11
is being executed, and the chuck is clamped using r5008, the operation is invalid;
4) If the spindle is not interlocked with the chuck and tailstock, the operation of chuck and tailstock
controlled by r5008 is valid regardless the spindle state and spindle speed in the above table 2.
5) In program end, reset or emergency stop state, the current command is cancelled automatically.
Use
Assignment to r5008 means choosing program pause and start mode; usually it is used together
with monitoring description; see the example of monitor description;
r5008=1
r5008=3
PROGRAMMING
Example
; Program pauses immediately; press CYCLE START key to resume;
; Pause after cycle ends; press CYCLE START key to resume;
meaning
Z machine coordinate
X machine coordinate
Y machine coordinate
Z tool nose coordinate
X tool nose coordinate
Y tool nose coordinate
Z tool offset 0164
X tool offset 0164
Use
For the writtable variables, the assignment is a command to modify the parameter, at the same
time the variables save the assignments and can be used as the reading or conditional judgment.
Usually, the system inner special variables should not be used, and the use must be careful when
using them.
Example
r6001=150000
when (r6005>3000) then P1500
PROGRAMMING
r4009
r4010
r4011
r4012
Meaning
Workpiece counter: the workpiece count displayed on screen
In the program execution, the counter will add 1 automatically when it meets a M02
or M30 or M20.
Time counter: workpiece processing time; unit: ms
Spindle real-time speed recorder : the real-time speed detected by the system; unit:
r/min
Spindle program rotate speed recorder : in executing the S command, the system
will automatically program the speed to this variable first.
Target tool number recorder: the system will input the tool position number to this
variable automatically in executing T command;
The target tool offset number recorder: the system will input the tool offset number
to this variable automatically in executing T command;
0tool offset number64
The current tool number recorder: after the tool changing finished every time, the
system will input the tool position number to this variable automatically.
The current tool offset number recorder: after the tool changing finished every time,
the system will input the tool position number to this variable automatically.
0tool offset number64;
Instantaneous interference recorder:
In the AUTO operation mode, when the system has checked the recently press key
G or M, it will input the corresponding ASCII value 71/77 to r4009; and display
the character on the top left corner of the screen. Write random number except the
71/77, or press X key, or enter the AUTO operation mode, the variable value will be
cleared to zero. Using r4009, two kinds of program branch transfer function can be
added, which are used for the specific manual interference temporally during
machining.
Timer
In the AUTO operation mode, when the variable value is not zero, it will
automatically reduce by 1 per ms till it is zero; it can be the timer used for
conditional judge ;
Timer
In the AUTO operation mode, when the variable value is not zero, it will
automatically reduce by 1 per ms till it is zero;
Spindle coder
When reading the spindle coder, the value range read is : among 0~ (four times of
actual coder LINEs); when the coder LINEs (parameter P209) are set to 1200, the
value range read will be 0~4800.
Property
Read/
write
Read only
Read only
Read only
Read/
write
Read/write
Read only
Read only
Read/
write
Read/
write
Read/write
Read only
Use
For the writtable variables, the assignment is a command to modify the parameter, at the same
time the variables save their assignments, and can be used as reading or condition judgment.
Example
if (r4008=1) then P0060
Explanation
1) The workpiece recorder can be read and written.
2) When the program has used r4009 instantaneous interference function, on the upper left
corner of display screen is displayed G or M character or blank, indicating which program
branch transfer function is used at present; G indicates r4009=71, M indicates r4009=77,
the blank indicates r4009=0. Here, the G or M is not related to command M, and is only
the sign of instantaneous interference function key. Assigning 71 or 77 to r4009 is
equivalent to inputting G or M by keys, the branch transfer is effective as well.
288
Chapter Seven
Statement Programming
3) The r4010 and r4011 cannot be assigned a negative value, and they are meaningless if
assigned 0. Assignment range: 0~9999999 (i.e. 9999.999s). They can be used for read or
conditional judgment. I.e. r1=r4010 or if(r4010>1000) then P0020.
4) In general, the r4005~r4008 is used for tool changing distinguishing. I.e. using (parameter
P318=9) in M60 user-defined tool changing program
7.2
Statement
This system has assignment operation statement and conditional judgment statement, which are
described as follows.
7.2.1
Assignment Statement
This system provides assignment operation statement that can realize the operation between two
variables or values. For details about expression and operational symbols, see the table below.
Assignment operation statement table 9-1
rN=rA
rN=rA
rN=rA
rN=rA
rN=rA
rN=rA
rN=rA
rN=rA
Function
Assignment
+ rB
- rB
* rB
/ rB
or rB
and rB
xor rB
Definition
Assigning the value of rA to
rN variable
PROGRAMMING
Command format
rN=sqr (rA)
rN=abs(rA)
rN=rA % rB
Decimal remainder
rN = rA*rB/rC
rN=rA*sin(rB)
rN=rA*cos(rB)
rN=rA*tan(rB)
rN=rA*atan(rB/ rC)
Sine
Cosine
Tangent
Arc tangent
rN =
rA 2 + rB 2
In the above table: rN indicates the variable name which the operation result is stored to; rA, rB, rC indicate the
variables for running the operation, or constants.
Explanation
1) None of the value, variable value and operation result contains decimal point, the unit is 0.001;
For example: the assignment of Angle 45 should be rB=45000.
2) In the angle assignment operation statement, the rA cannot be omitted; otherwise, an alarm
occurs; it can be written to rN=1*sine(rB).
3) In the PROGRAM EDIT operation mode, all the special expressions can be obtained by
pressing the hp6 key on the panel.
4) Each assignment statement can only have one operator (except the operation of multiplication
and then division)
289
r002 + r003
r001 =
r001 r004
Example
r3=r2*r41
r2=sqr (100)
r1=0
r51=1000*sin(r1)
r1=r1+1000
PROGRAMMING
Its meaning is: if the expression is established, execute the statement 1 behind the then,
otherwise execute the statement 2 behind the else.
Explanation
1 In the relation expression, the relation operators are <, >, = ; (less than, more than, equal
to); e.g. rA< rB, rA> rB, rA= rB;
2) The statement 1 and statement 2 can be one of transfer statement P, calling statement H,
and assignment statement;
3) Behind the transfer symbol P and calling symbol H is the block line number;
4) The operator in assignment statement can be only +, - (addition, subtraction); e.g. rN=rC + rD,
rN=rC rD.
The basic format and meaning of if statement:
if (rA= rB)
then
P1
else
P2
if (rA = rB)
then
P1
else
rN=rC + rD
if (rA = rB)
then
rN=rC + rD else
P2
Thereinto:
rNVariable name;
rA, rB, rC, rDVariable name, or constant;
P1, P2 Transferred block line number ;
H1, H2 The called block line number(in the above format, the place transferred by P can also
use call).
7.2.3
Program example 1
290
Chapter Seven
Statement Programming
In the following program, it mainly demonstrates the method of automatically modifying tool
compensation in the program. In the batch machining, suppose each time 20 pieces are machined, the
tool T11 will fray one thread in the X direction regularly; when the workpiece recorder is the integer
multiple of 20, the program will modify the tool compensation automatically.
N1000 r1=r4001 % 20
N1010 if(r1=0) then P1030
M20
N1030 r6201=r6201-10
N1040 M20
Program Example 2
In the following program, it mainly demonstrates the method of temporary press key interference
PROGRAMMING
and call in the program. Suppose a receiver is controlled by the pins of UO31 and UO32. In the
batch cycle machining, if the operator needs to randomly sample the workpieces for test, press G
key, then the
%104
N0010 G00 Z200 X100
;
N0020 G00 Z180 X80
;
N0030 G01 Z100 F200
; Cuts outer circle
N1000 if (r4009=71) thenH2000; If G key is pressed before, then calls program P2000 to
N1010 G01 X0 F200
N1020 r2031=1
N1030 r2032=1
N1040 M20
N2000 r2031=0
N2010 r2032=0
N2010 r4009=0
N2020 M99
execute
; Cut off
; Receiver returns to the original position
;
; Receiver goes forward
;
; Clears G state
Program example 3
In the following program, it mainly demonstrates the function operation. According to the elliptic
parameter equation, figure out that the point on the ellipse and use the short line approaching method
to move along the path of the ellipse.
The parameter equation of ellipse is X=50*sin(a) Z=100*cos(a); because X is diameter
programming, X=100*sin(a).
%103
N0010 G00 Z0 X0
291
;
;
;
;
;
PROGRAMMING
The common part program is executed according to the pre-designed path one by one, so quick
response can not be performed in real time if some events occur during the command execution
In the system, there are ten monitors which are numbered from 0# to 9#, called 0# monitor, 1#
monitor 9# monitor. Their work process is called process monitor; in the same time of executing the
common part program, they specially track the events which occur in real time in the part program
execution process. However, the user must describe the task for the monitors, and tell them which event
is to be tracked and how to deal with it after the event happens. The monitor without task is in sleep
state.
Each monitor has a monitor register and a monitor management register, the corresponding
sequence number is as follows:
Monitor number:
7.3.1
To use the process monitor, first describe the process monitor according to the rules. The process
monitor description includes an assignment statement and a if condition statement, neither of which can
be omitted; the assignment statement specifies the monitor object, the if condition statement makes the
judgment according to the obtained information by monitor, and decides whether to execute some
branch block or not.
292
Chapter Seven
Statement Programming
Explanation
1) The system specifies: all assignment statements that aim at r7000~r7009, are the
description of monitor 0#~9#; according to the program execution path, the latest
description is effective.
2) The operator of assignment description statement only can be one of +, -, or, and;
otherwise, an alarm occurs.
3) It is allowed to perform the assignment description using the conditional judgment
statement, such as if (r5004=3) then r7000= r1001 + r1002is a legal statement.
4) system specifies: if r7000r7009 appears on the left of relational expression of if conditional
statement, it is regarded as the conditional description to 0#9# monitor. The call cannot be
used in then, else, only the assignment or transfer can be used.
5) The assignment description and if conditional description must appear in pair; if there is no
assignment description, or the variable which cannot be monitored is assigned, then r7000=0;
if there is no if conditional description, its allowed but the monitor function cannot be provided.
6) In the if condition description, the system does not execute the description statement
immediately, but waits for monitor function of corresponding serial number to be enabled, then
starts monitoring.
7) If the assignment meets the condition, its not the conditional transfer behind, but the common
variable assignment, such as if (r7000=100) then r3=r3+1the monitor will not close.
7.3.2
After describing the process monitor according to the rules, assign the monitor management
register (r7010~r7019), then the monitor can be turned on or off. There are several working modes for
turning on the monitor.
293
PROGRAMMING
2) Condition description
The so-called condition description is to specify how to make judgment according to the
monitored information using an if statement;
The format of the condition description statement is the same as the basic format of common if
statement, and the program rules are also basically the same.
if (relation expression) then statement 1 else statement 2;
Thereinto: In the condition description statement, the left item of if () relation expression is the
monitor register name;
In the condition description statement, the call cannot be used in then, else, only the
assignment or transfer can be used.
E.g. if (r7000=1) then P1500 ; if the input signal satisfies the condition, then turns p1500
if (r7001>6000) then r3=r3+1
; if the condition is satisfied, r3 adds 1
Note: In execution, when meeting the M20/M02, turn off all the monitors, clear the task description;
Special assignment is to assign values to the program control register r5008, system special
variable group1 and group 2.
PROGRAMMING
Example
r7010= 0
r7016= 1
r7012= 2
; If the system writes zero to r7010, then cancels the r7010 monitor;
; Turns on r7016 monitor; if the condition is satisfied, stops the current motion
command immediately, executes the assignment or transfer;
; Turns on r7012 monitor; if the condition is satisfied, executes the assignment
or transfer after executing the current motion command;
Explanation
1) Once the monitor is turned on, while executing the common part program, actually there are
two description statements alternating and cycling in the system; until the monitor is turned off.
2) The if statement is allowed to turn on or off the process monitor; such as if (r1=0) then
r7010=1.
3) Its allowed that one monitor turns on another one without turning off itself; such as if (r7001=0)
then r7010=1, 0# monitor is turned off after 1# monitor meets the condition. A this time 1#
monitor is still ON.
4) In programming, before turning on the monitor, the user must describe the monitor; if a monitor
which is not described (without task) is turned on, the system prompts E400: process
monitoring variable undescribed.
5) After turning on a monitor, if its monitor description is changed without satisfying the condition
or stopping the monitor, the old monitor description is replaced by the new one, and the
monitor is still ON, so the restart is unnecessary. However, it is very dangerous in this state.
The user should turn off the monitor first, and then change its monitor description, finally turn it
on again.
6) After satisfying the monitor condition, if the command executed in monitor condition is jump
command (Pxxxx), the monitor is turned off automatically; if the executed command is
assignment or calculation command, the monitor is not turned off.
294
Chapter Seven
Statement Programming
7) Monitor management register cannot be used as condition judgment; otherwise, the system
alarm occurs; for example, if (r7010 > 1) then (r002 = 2), system issues machining abnormal!
E413: unknown process monitoring description.
8) If a monitor is turned on, under the PAUSE/Block stop/Cycle stop state, the monitor is still
effective; its assignment or calculation command are executed after meeting the condition, the
skip command is executed by pressing CYCLE START key.
9) Once the monitor is turned on, inside the system, because its two description statements are
alternating and cycling, its execution speed is faster than the common program; for the
calculation statement which executes assignment after meeting the condition, it may have
been executed many times, so the result of this variable is uncertain (using it in this way is not
recommended). Please note that in the common part program, this variable must be used
carefully.
For example, if (r7000=100)
then
time, note that the value of r3 is very uncertain (the accumulation frequency is very high); if the
call of subprogram or transfer in the program uses r3, it will cause the uncertainty of the
PROGRAMMING
program execution. Therefore, in such a case, it is not suggested to use such uncertain
variables like r3 as the actual function of each kind of command
10) In the common program, read the monitor register, monitor management register, its value
is zero or uncertain; such as r5= r7000, the value of r5 is uncertain.
11) If only one monitor is turned on, the signal change of more than 3ms width can be detected;
if ten monitors are turned on, the signal change of 30ms width can be detected.
7.3.3
Program example 1
The following program introduces the use of process monitor.
In the batch machining, if the lengths of rough bars are not the same, its hard to determine the
machining start point. If a sensor is installed on the tool, then the system can use the sensor to
determine the machining start point.
In the following program, if the system detection signal is connected to the corresponding pin of
UI05; when the tool is far away from the workpiece, UI05=1; when the tool is near the workpiece,
UI05=0; when the tool approaches the workpiece from a far-away position, it is stopped at the
position of UI05=0, and the system determines this point to be the machining start point.
%105
N0010 r7000=r1005
; 0# monitor detects the state of input signal r1005, and it forms the
monitor description together with the judgment statement below
N0020 if(r7000=0) then P1000 ; If the signal r1005 is monitored to be Zero, then turns to
P1000 program running
N0030 G00 Z300 X200 ; First positioning to the initial point
N0040 G00 X180
;
N0050 r7010=1
; Turns on 0# monitor by mode 1, if the condition is satisfied, stops the
295
Program Example 2
The following program introduces the use of process monitor.
The system has the external cycle start/pause function, so the operator can realize the start/pause
PROGRAMMING
function with the external buttons from a position which is far away from the system. However, in the
position which is far away the system, it is hard to realize the single block stop. In the following program,
this function is realized through the process monitor.
In the program, it is supposed that the button switch signal is connected to the pin corresponding to
UI05; when pressing the switch, UI05=0, when releasing the switch, UI05=1. After turning on the
monitor, this press-button can switch between single block mode and continuous execution mode.
%106
N0030
N0040
r7000 =r1005
if(r7000 =0) then r5008=2
N0030
N0040
r7001 =r1005
if(r7001 =1) then r7010=2
N0070
N0070
N0010
N0020
N0050
N0060
N0080
N0080
N0080
N0090
N0160
r7011=2
r7010=2
G0 X100 Z200
G00 X50 Z190
G1 X50 Z160 F300
G2 W-80 R100
G1 U10 W-20
G1 W-20
G1 U10 W-20
G0 X100 Z200
M02
Program Example 3
The following program introduces the use of process monitor.
In the following program, it is supposed that the detection signal is connected to the corresponding
pins of UI05and UI06, and the output signal is UO05; in the machining process, when both UI05 and
UI06 are 0, the system is required to output 0 from UO05 pin, and output 1 in other instances.
296
Chapter Seven
Statement Programming
%107
N0010 r7000=r1005 or r1006
N0020 if(r7000=0) then r2005=0
N0030 r7010=1
N1000 G00 Z300 X200
N1010 G00 X180
N1020 G01 Z90 F500
N1030 G01 X0
N1050 G00 Z300 X200
N1060 M97 P1000
N1070 M02
7.3.4
In this system, there are another four pulse monitor variables numbered with 0#3#. They are
PROGRAMMING
specially used for the input signal pulse count. Each pulse monitor variable has a monitoring register
and a management register. The corresponding sequence numbers are as following:
Pulse monitoring variable number: 0#3# sequence number;
Pulse monitoring register number: r7100 r7103 correspond to the monitor variable
sequence numbers;
Pulse monitoring management register number: r7110r7113 correspond to the monitor
variable sequence numbers
The so-called pulse monitor belongs to process monitor too, and its description method, ON/OFF
method and the rules are the same as those of process monitor.
In the machining process, if there are monitors enabled, on the right of the program status bar is
displayed P-n. The user can also view the state of pulse monitor currently being used in the system on
the macro variable window. For example, P-1, indicates one pulse monitoring is enabled.
The use of pulse monitor:
1) First describe the pulse monitoring variable; (all assignment statements for r7100 are
description)
Example: r7100 = r1001;
then P1500
3) And then start the monitor through the assignment of pulse monitoring manager;
Through the assignment of pulse monitoring management register(r7110r7113) , the
monitor can be turned on or off.
297
PROGRAMMING
repeatedly, when the last operation result compares with the operation result of this time, it
matches the following skip, the inner counter increases by 1.
If set to 6, when the last operation result is 0, and this operation result is non- zero, the inner
counter increases by 1.
If set to 7, when the last operation result is non-zero, and this operation result is zero, the
inner counter increases by 1.
2) In the initialization when the pulse monitoring is turned on, the counter is automatically
cleared.
3) If only one pulse monitor is turned on, the system can check the signal change of more than
3ms width; if four pulse monitors are turned on, the system can check the signal change with
more than 12ms width.
298
Chapter Seven
N0050 r7110=2
N1000 G00 Z300 X200
N1010 G00 X180
N1020 G01 Z90 F500
N1030 G01 X0
N1050 G00 Z300 X200
N1060 M97 P1000
N2000 M02
7.3.6
;
;
;
;
;
;
;
;
Statement Programming
Variable transfer register: r7900; (the system forbid using this variable in the process monitor
description statement)
Use example
r7900= 1
Writing any number to this register means all the common variables in monitor backup area are
PROGRAMMING
copied to common variable storage area. The following will explain this register function.
In general, in order to avoid the collision, if a certain common variable is used in the monitor, the
user should avoided using this variable in the common block. Because the system has a common
variable storage area, and a monitor variable backup area, the variable value change in these two
sections may not be synchronous.
The change of common variable r3 is explained as follows:
1) If assignment statement of r3 is executed in a common program, r3 is modified, then the r3 in
the monitor will be modified immediately as well;
2) If the r3 assignment statement is executed in the monitor, it only modifies the r3 in the monitor
backup area; and the r3 in the common program is not modified.
3) After the variable transfer statement (i.e.r7900=1) is executed, the system will copy all common
variables in the monitor backup area to the common variable storage area; at this moment, the r3
in the common program is the same as that in the monitor.
Program Example
In the following program, it is supposed that the detection signal is connected to the pin
corresponding to U105; in the machining, when the times of UI05 changing from 0 to 1 is greater than
10, the program ends after the cycle execution is finished.
%109
N0010 r7100 = r1005
N0020 if(r7100>10) then
N0030 r1=0
N0040 r7110=6
N0050 r7110=2
ASCII List
character
PROGRAMMING
Space
"
#
$
%
&
(
)
*
+
.
/
7.4.2
300
ASCII
code
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
character
0
1
2
3
4
5
6
7
8
9
;
<
=
>
?
ASCII
code
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
character
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
ASCII
code
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
character
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
-
ASCII
code
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
character
a
b
c
d
e
f
g
h
i
j
K
l
m
n
o
ASCII
code
character
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
p
q
r
s
t
u
v
w
x
y
z
{
|
}
~
ASCII
code
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
Name
Black
Code
0
Blue
Green
35
Name
Cyan
Light
blue
Green
yellow
Code
41
54
80
Name
Purple
Light
green
Code
85
Name
Red
Code
168
Name
Yellow
Code
245
Name
Grey
Code
251
105
Pink
172
Golden
248
Hoar
253
Brown
126
Orange
231
Silver
white
250
White
255
Chapter Eight
Customized Command
The system has a group of customized commands except the standard M commands. The machine
manufacturer can set some commands to realize the control of additional equipment, and the operator
can conveniently operate the additional equipment by inputting this command.
The system provides 15 customized commands from M60 to M74, and the number of the
commands is edited by the machine manufacturer. The customized commands must be edited in %254
program. First debug %245 program successfully with single block in AUTO operation mode, then
solidify the program in EDIT operation mode; after the program is solidified successfully, the solidified
customized command can be used in JOG mode or other programs (%000%253); otherwise, the
system issues an alarm prompting no customized command.
PROGRAMMING
Explanation
1) If G command is required to add in the customized command, set the position bit parameter
P404_d2 to 1, i.e. G motion command is allowed in M61 command; otherwise, the system
issues an alarm
8.2
the user-defined command library: P254 mainly includes the M60~M74 commands which are formed
by statements and blocks, and the system will perform special compiling to P254 during compiling.
301
N1000 -M60
N1100 M99
N2000
N2100
;
;
;
;
;
;
PROGRAMMING
N3000
N3100
-M61
M99
-M62
M99
5 ;
the machine manufacturer determines whether the solidified program can be modified and then
be solidified again, i.e. set the position parameter P404_d0=1.
4) After the system prompts that the compiling and solidification of P254 succeeds, press ESC
key.
Explanation
After the compiling and solidification of No.%254 program succeeds, the user can also check
whether P254 is correct by inputting and then executing the customized command in P254 in JOG
operation mode.
Chapter Eight
N0040 G04 D3
N0050 M02
Explanation
1) The M60~M74 can be directly used in JOG operation mode or other programs only after the
No.% 254 program has been solidified to FLASH; otherwise, the system issues an alarm; if
the corresponding customized command is not written in No. % 254 program, but this
command is used in JOG operation mode or other programs, the system also issues an alarm.
2) For the operation of how to solidify the No.%254 program to FLASH, please refer to the
explanation of the No.%254 program. For details, refer to Section 4.3 Edit Operation Mode in
PartOperation
3) After the No. %254 program is modified, it must be solidified to FLASH again; otherwise, the
M60~M74 command called in JOG operation mode or other programs are not the latest
customized command after modification.
PROGRAMMING
Note
1) When the customized command is executed in AUTO mode, by pressing CYCLE PAUSE
key, the system will not stop the blocks in the customized command as the normal pause
function, but it will continue the execution after a short pause.
2) When the customized command is executed in AUTO mode, if SINGLE BLOCK is valid,
SINGLE BLOCK function is valid only for the whole customized command rather than
the
8.3.
M10/M11, M79/M78, you can use M61/M62. For example, program M61 as feeding-in, and M62 as
feeding-back, then set the corresponding I/O name of the input pin of the foot switch in parameter P533,
and connect them correctly. Then, M61/M62 can be executed alternately by pedaling the switch.
All of M61/62, M63/64, M65/66 can realize the pedal control function. You can set the corresponding
I/O name of the input pin of the foot switch in parameter P533P535 respectively, and set the valule to
the sequence number of the common signal name. Note that the corresponding M61M66 must be
solidified.
PROGRAMMING
304
Connection
CONNECTION
305
CONNECTION
306
Connection
CONNECTION
CHAPTER ONE
INTERFACE OVERVIEW
AC 220V
X1Input/output, 44-pin D-type female socket, interface through which CNC receives
machine signals or CNC signals are output to the machine
X2Tool pose, 15-pin D-type male socket, which is the input/output interface
X3Motor, 5-pin D-type female socket, which is the interface of X/Z drive unit
X4Spindle, 26-pin D-type female socket, which is the interface for spindle coder, spindle
frequency converter and Y drive unit
X6Input power supply, green 4-pin female socket. The connection between the power box
and the system X6 interface has been performed, the user only needs to connect 220V
power supply.
Power supply box: adopts GSK-PB or GSK-PC2 power supply (Note that their connecting
terminals are different); Fig. 1-1 shows GSK-PB power supply, which provides GND, +5V,
+24V power.
307
CONNECTION
Explanation
Power
supply
U disc
USB
interface
MPG
Front cover
Rear cover
To
machine
tool
X drive unit
Z drive unit
To tool post
To
converter
To encoder
CONNECTION
Fig. 1-2
Note
GSK928TD has no Y axis function, so it is unnecessary to connect the interfaces relative to Y
axis.
308
Chapter Two
CHAPTER TWO
2.1
Interface Table
INTERFACE TABLE
Interface Table
F ro n t c o v e r R S 2 3 2 c o m m unication(m ale)
D a ta re c e iving(R X D )
RTS
d a ta s e n din g(T X D )
CTS
GND
X 5 M P G (fem ale)
+5V
0V
M P G A p u lse(M A )+
M P G B p u lse(M B )+
M P G A p u lse(M A )-
M P G B p u lse(M B )-
X 2 to o l p o s t (m ale)
T o o l p o s t C C W signal(TL-)
T o o l p o s t 24V G N D
N o . 2 to ol(T2)
T o o l p o s t C W signal(TL+)
T o o l p o s t +24V
N o . 1 to o l (T1)
N o . 3 to o l (T3)
N o . 4 (T4)
X z ero(P C X )
CONNECTION
Z z e ro (P C Z)
T o o l p o s t lo c k in -p osition signal T C P
N o . 5 to o l (T5)
N o . 6 to o l (T6)
N o . 7 to o l (T7)
N o . 8 to o l (T8)
X 3 m o to r(m ale)
Z e n a blin g (ZE N )
Z n e g a tiv e term inal
X n e g a tiv e te rm inal(X D -)
Z p u ls e n e g a tiv e term inal(ZP -)
X p u ls e n e g a tiv e term inal(X P -)
X /Z d riv e +24V G N D 0V
Z d riv e u n it alarm (ZA LM )
X /Z d rive + 5V
X e n a b lin g (X E N )
Z p o s itiv e te rm inal(ZD +)
X p o s itiv e te rm inal(X D +)
Z p u ls e p o s itive term inal (ZP+)
X p u ls e p o s itiv e term inal(X P + )
X /Z d riv e +24V
X d riv e u n it alarm (X A LM )
309
Interface Table
X 1 in p u t / ou tpu t
f e m a le
S p i n d l e a n a l o g v oltage+(SV C)
S p i n d l e a n a l o g v o l t a g e ground(AGND )
C h u c k c l am p(M 10)
C o o l i n g ON (M 8)
N o t b e d e f i n e d b y s t andard2(U02)
C oo li ng O F F (M 9)
C h u c k r e l e a se(M 11)
S p i n d l e b r a k e signal(M S P)
S p i n d l e CW (M 3)
I / O 2 4 V ( +24V)
S p i n d l e g e a r o u tput3(S03)
S p i n d l e CC W(M 4)
T a i l s t o c k b a ck ward(M 79)
S p i n d l e g e a r o u tput2(S02)
S p i n d l e stop(M 5)
T a i l s t o c k f orward(M 78)
S p i n d l e g e a r o u tput1(S01)
I / O 2 4 V (+24V)
I / O 2 4 V ( +24V)
I / O 2 4 V ( +24V)
I / O 2 4 V ( +24V )
I / O 2 4 V g r o u n d (24VGN D)
I / O 2 4 g r o u n d (24VG ND)
I / O 2 4 g r o u n d (24VGN D)
F e e d h o l d s ignal(M X Z 1)
T CP
E x t e r n a l p ause(SP)
Y d e c e l e r a t i o n signal(DecY)
I / O 2 4 g r o u n d (24VG ND)
X d e c e l e r a t i o n signal(DecX)
Z /X /Y p os it iv e li m i t(LT +)
Z d e c e l e r a t i o n signal(DecZ )
E xt er na l cy cl e st ar t( S T )
Z /X /Y pnegative
os it iv e li m it(LT -)
E m e r g e n c y stop(ESP )
I / O 2 4 g r o u n d (24VG ND)
X 4 s p ind le (f e m a le)
S p i n d l e a n a l o g v o ltage (+)(SV C)
CONNECTION
U n u s ed
S p i n d l e a n a l o g v o l t a g e ground(A GND)
E n c o d e r 5 V g r o u n d (5VG ND)
D r i v e u n i t 5 V g r ound (5V GND )
S p e e d / p o s i t i o n s t a t e output c heck(API)
E n c o d e r 5 V (SE5V)
Y z ero P CY
E n c o d e r CZ p u ls e (PC -)
Y a la rm Y A LM
E n c o d e r CZ p u ls e(PC +)
Y p o s i t i v e d i rection (Ydir+)
(YD+)
Y d r i v e u n it 5V(P 5V)
U n u s ed
U n u s ed
S p e e d / p o s i t i o n s w i tc h control(A PO)
Y e n a b l i ng(YE N)
(Ydir-)
Y n e g a t i v e d i rection(YD-)
E n c o d e r B p uls e (PB -)
Y p u l s e (--)(Y P-)
E n c o d e r B p uls e (PB +)
Y p u l s e (++)(YP+)
(YP+)
E n c o d e r A p uls e (PA -)
2 4 V g r o u n d (0V)
( 24VGN D)
E n c o d e r A p uls e(PA +)
P o w e r s u p p l y 24V(+24V)
310
CHAPTER THREE
3.1.1
USB Interface
USB interface is used to connect the CNC system and U disk. The system not only sends the data
to the U disk, but also receives the data from the U disk via the USB interface. Directly insert the U disk
into the USB interface on the system panel, and the system automatically identifies and opens the
content of the U disk when the U disk creates the file and file name in the root directory according to the
system file requirements.
Note
3.2
X1, X2 Interface
The CNC system X1, X2 interfaces have 23-channel digital input and 18-channel digital output, all of
3.2.1
Important explain:
1)
The 23-channel digital input signal and 18-channel digital output signal correspond to 23 input
pins and 18 output pins. Each pin has a pin number and two signal names , i.e. special
signal name and common signal name. Input common signal names are numbered with
UI01~UI32, output common signal names are numbered with UO01~UO32; thereinto,
UI17~UI25, UO19~UO32 are not led out (unusable; displayed in grey in DIAGNOSIS mode). If
a signal is not specified, it is displayed in white UI** or UO**, representing it can be used
311
CONNECTION
1) The system USB interface must be covered if not used. Do not expose it in the atmosphere for
long time; otherwise, the surface metal will be oxidized and interface sensitivity may be reduced.
2) Do not leave the U disk unused in the system USB interface for a long time; otherwise, the
system interface will be aged, thus damaging the U disc.
3) After using the U disc, be sure to turn off the U disc by pressing ESC key before unplugging it.
When the USB icon displayed on the screen disappears, you can pull the U disc out from the
system USB interface. Otherwise, the system hardware and U disc may be damaged.
This system has already set control and detection pin for most of the devices. These pins are
called special signal name, for example, spindle, chuck, tailstock, tool post etc. As the table
below, set parameters correctly before using these functions. In DIAGNOSIS mode, the special
signal names are displayed in yellow, representing it cannot be used otherwise.
3)
During system parameter initialization, some commands (such as M91, M21, G31) have been
set pins i.e. the
interface parameters P500 (M210, P501, (M230), P517 (M91I), P518 (M93I),
P532 (G31I) have been defined; their signal names are displayed in green in DIAGNOSIS
mode; the machine tool builder can perform connection according to these interface
parameters, and the system will detect the corresponding signals on pins.
4)
For some other devices (see Section 4.4.9 Other Option Functions in PartOperation, like
safety door detection, triple-color indicator, etc.), there is no pin set for their functions. They can
be set to any pin by the machine tool builder with this method:Fill the sequence number of
unused commonl signal name in the interface parameter in PARAMETER mode. The newly
added signals in interface parameters are displayed in green in DIAGNOSIS mode. For
example: Inputting signal UI05 is invalid for a 4-position tool post. Set parameter P511 to 5,
then it turns to be the detection signal of safety door (SAGT). The system detects UI05 signal
(pin 14 on X2 interface) during safety door detection.
5)
Both Pin 15 on X1 interface and pin 9 on X4 interface are spindle analog voltage + signal
(SVC). Their functions are the same.
6)
Both Pin 30 on X1 interface and pin 18 on X4 interface are spindle analog voltage ground
signal (AGND). Their functions are the same.
7)
Both Pin 33 on X1 interface and pin 6 on X2 interface are tool post clamping in-position
CONNECTION
312
Common
signal name
Special signal
name
ESP
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
DecZ
DecX
DecY
MXZ2
MXZ1
0V (24VGND)
+24V
S01
S02
S03
S04
M11
M10
SVC
0V (24VGND)
-LT
+LT
0V (24VGND)
UI28
UI29
UI30
UI15
UI16
r1028
r1029
r1030
r1015
r1016
UO01
UO02
UO03
UO04
UO13
UO14
r2001
r2002
r2003
r2004
r2013
r2014
UI31
UI32
r1031
r1032
Pin No.
Variable
RM10
RM11
0V (24VGND)
+24V
+24V
M78
M79
+24V
M21O
UI14
UI13
r1014
r1013
29
UO15
UO16
r2015
r2016
UO17
r2017
M23O
UO18
r2018
30
31
32
33
34
35
AGND
ST
SP
TCP
PRES
SHL
UI26
UI27
UI09
UI10
UI11
r1026
r1027
r1009
r1010
r1011
36
37
38
39
40
TPS
0V (24VGND)
+24V
M5
M4
UI12
r1012
UO05
UO06
r2005
r2006
41
M3
UO07
r2007
Spindle CW
42
43
MSP
M9
UO08
UO09
r2008
r2009
44
M8
UO10
r2010
Cooling ON
Table 3-2
Interface
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Special signal
name
TL+
+24V
T1
T3
PCX
TCP
T6
T8
TL0V24VGND
T2
T4
PCZ
T5
T7
Common
signal name
UO12
Variable
name
r2012
UI01
UI03
r1001
r1003
UI09
UI06
UI08
UO11
r1009
r1006
r1008
r2011
UI02
UI04
r1002
r1004
UI05
UI07
r1005
r1007
CONNECTION
X2
interface
Pin No.
313
CONNECTION
The input signal can use the normally-open contact input of the machine contact, or use the
electronic proximity switch input without the contact (low level is output in approaching). The
314
24VGN
CNC side
+24V
3.3K
Input signal
Machine side
24VGND
CNC side
The contact of the input signal at the machine side should meet the following conditions:
Leakage current between the contacts in open circuit: below 1mA.
Voltage drop between contacts in close-circuit: below 1V (current 8.5mA, including the voltage
drop of the cable).
2) The input signal UI26, UI27 (SP, ST are special signals) use the normally-open contact of the
machine contact switch; ESP signal uses the normally-closed contact of the machine contact switch
with self-lock.
Circuit diagram
+24V
3.3K
Machine side
24VGND
CNC side
Connection example:
315
CONNECTION
0V
ST
SP
ESP
CNC input interface
3)
CONNECTION
MXZ1:
Feed hold signal. When it is valid (i.e. switch contact ON), the feed is locked (i.e. X, Z stop).
MXZ2:
External feed/spindle hold signal. When it is valid (i.e. switch contact ON), the spindle, X, Z
are locked at the same time (i.e. spindle, X, Z stop). Note: For the control of MXZ1, MXZ2,
3.2.3
The output signal (UO01UO18) is used to control the relative operations of the machine; signal
direction: CNC to machine. The signal can drive the relay and the indicator at the machine side. When
the output signal is connected with 24VGND, the output function is valid; when it is disconnected with
316
Output signal
Relay
24VGND
CNC side
Machine side
Driving LED:
Use LUN2803 output to drive LED with a serial resistor to limit the current (about 10mA) through
the LED.
CNC side
Machine side
+24V
ULN2803 Output
Machine side
ULN2803
output
2)
The output special signal are driven by ULN2803 transistor array, and the max. load instantaneous
current is 200mA. When the signal is valid, the transistor is connected and common terminal is
317
CONNECTION
When the machine side is connected with the relay or other inductive load, the spark suppressor
which should be placed near the load (within 20cm) must be used. And the serial current-limiting
resistance must be used when the machine side is connected with the capacitance load.
The output special signal M8, M9, M3, M4, M5, M10, M11, M78, M79 can be set to the level control
mode or pulse control mode by the bit parameter, and whether M4, MSP special signals are
output is set by the parameter; For the time sequence of the signal output, refer to JOG Operation
Mode in PartOperation.
For the gear shifting execution process and signal output time sequence of output special signal
S01, S02, S03, S04, M41, M42, M43, M44, see JOG operation mode in PartOperation.
Output special signal TL+ and TL- are tool post CW/CCW signal respectively.
When the transistor of the electronic switch is connected, the output voltage should be within 1V;
when the transistor is turned off, the output voltage should be more than 23V.
2)
When the input function is valid, the input signal is connected with 24VGND; when it is invalid,
the signal is disconnected with 0V.
3)
When the output function is valid, the signal is connected with 24VGND; when it is invalid, the
CONNECTION
DECZ
Z deceleration signal
Pin 3
DECX
X deceleration signal
Pin 4
DECY
Y deceleration signal
Pin 5
PCX
X zero signal
Pin 13
PCZ
Z zero signal
2) X2 interface
318
3) X4 interface
Pin 24
PCY
Y zero signal
Note
1) 928TD has no Y axis function, so it is unnecessary to connect Y deceleration signal and Y
zero signal.
Explanation
z
Bit parameter P406_d7, P406_d6, P406_d5, P406_d4, P406_d3, P406_d2 set the machine
zero return mode.
Setting bit parameter to 0 means there is no deceleration signal or zero signal; setting bit
parameter to 1 means there is the deceleration signal or zero signal.
There are four zero return methods. For the parameter setting methods, see Parameter
Operation Mode in PartOperation; for the description of the zero return execution process,
see JOG Operation Mode in PartOperation.
Connection example
1) The two figurs below show two kinds of connection examples of deceleration signal: travel
switch, NPN proximity switch; it is suggested that the user should use the travel switch; the
connection example is as follows:
CONNECTION
Travel switch
Dog installed on the machine slider
to +24V GND
to deceleration signal
Fig. 3-1
319
To deceleration signal
To 24VGND
Fig. 3-2
2)
When the bit parameter P407_d7, P407_d6, P407_d5, P407_d4, P407_d3, P407_d2 are all
set to 0, the machine zero return direction is positive, and the deceleration signal low level is
valid. The figures below are the connection example of the deceleration signal and zero signal
respectively; the one-turn signal of servo motor is taken as the zero signal when the system is
connected to the servo motor.
24VGND
Machine side
Deceleration signal
DecX
DecZ
DecY
CONNECTION
CNC side
Fig. 3-3
24VGND
Normally-open contact
Servo
Coder motor
Zero signal
PCX
PCZ
PCY
CNC side
Normally open
contact
One-turn signal
of servo motor
320
Remarks
Pin 15
UI07
T07
Pin 7
UI06
T06
Pin 14
UI05
T05
Pin 12
UI04
T04
Pin 4
UI03
Pin 11
UI02
T02
Pin 3
UI01
T01
TZD
TFD
Applicable
to
SWD120,AK31,SBWD-80 tool post
Appicable to AK31,SBWD-80 tool
post
Can be used as common output
interface UO12
Can be used as commonl output
interface UO11
Applicable to AK31,SBWD-80 tool
post
Applicable to AK31,SBWD-80 tool
post
Applicable to AK31,SBWD-80 tool
post
Common input interface UI09
Pin 1
UO12
Pin 9
UO11
Pin 6
T03
TL+
TLTFDC
TXT
TGR
UI09
TCP
clamping
Note: For the explanation of AK31, SBWD-80 tool post, refer to the user manuals of Yantai AK31 series
tool post and Changzhou SBWD-80 series tool post .
3.4.2
Signal Connection
3.4.3
Function Description
The tool change mode of this system is set by P318. The tool change mode and the control time
sequence are as follows:
321
CONNECTION
Tool
post
worktable
pre-indexing output
Tool post (CW) output signal
P318=0: tool change mode 0which is applicable to the line-up tool post.
3.4.3.2
P318=1: tool post type 1, tool change mode 1, which is applicable to the common 4-satation electric
rotating tool post, tool changing (CW) and tool clamping (CCW). (if P318=5, 6, 7, 8, the
system also changes the tool by tool change mode 1).
Execution steps are as follows:
1The system calculates the new tool nose coordinates according to tool offset number, and
displays them;
2) If the current tool is the target tool, and the detected tool number signal is correct, the tool
change output control is not performed; otherwise, the system goes to next step.
3) The system outputs the tool post (CW) signal TL+ and checks the tool number signal of the
target tool, and then turns off TL+ output after it checks the signal; if the tool number signal is not
detected within the period time set by P325 (tool change time limit), it turns off TL+ output and
issues Check tool number signal overtime
4) The system outputs tool post (CCW) signal TL- after delaying the time set by data parameter
P321 (t1);
5) Different processings are performed based on whether P408_d6 has the tool post clamping
in-position signal TCP:
The system delays the time set by P324 (tool post (CCW) clamping time) if the tool post
clamping in-positioni signal TCP( P408_d6= 0) is not checked; the next step is executed after
the time is up.
CONNECTION
The system checks TCP within the time set by P324 if the tool post clamping in-position
signal TCP (P408_d6=1) needs to be checked; the system turns off TL- output and issues
Tool post clamping overtime if it has not received TCP; the system delays the time set by
P322 (t2) if it receives the TCP signal, and then proceeds to the next step.
6)
The system turns off the tool post (CCW) output signal (TL-), and the tool change is completed.
7)
Finally the sytem confirms the signal, i.e. checks whether the current tool number input signal is
consistent with the current tool number; if so, the tool change is completed; if not, it issues an
alarm.
3.4.3.3
P318=2: tool post type 2, tool change mode 2, which is applicable to the common
4-station
electric rotating tool post, tool changing (CW) and tool clamping (CCW).
The execution steps are as follows:
1) The system calculates the new tool nose coordinates according to tool offset number, and
displays them;
2) If the current tool number is the target tool number, the following tool change operation is not
performed (e.g. if the current tool is T11, and T11 is executed again, the tool change operation is
not performed), the tool change is completed.
3) The system outputs the tool post (CW) signal TL+ and checks the tool number signal of the
target tool, and then turns off TL+ output after it detects the signal; if the tool number signal is not
detected within the period of time set by P325 (tool change time limit), it turns off TL+ output and
issues Check tool number signal overtime
4) The system outputs tool post (CCW) signal TL- after delaying the time set by data parameter
P321 (t1);
5) Different processings are performed based on whether P408_d6 has the tool post clamping
in-position signal TCP:
The system delays the time set by P324 (tool post (CCW) clamping time) if the tool post
clamping in-positioni signal TCP( P408_d6= 0) is not checked; the next step is executed
after the time is up.
The system checks TCP within the time set by P324 if the tool post clamping in-position
Tool post clamping overtime if it does not receive TCP; the system delays the time set
by P322 (t2) if it receives the TCP signal, and then proceeds to the next step.
6)
The system turns off the tool post (CCW) output signal (TL-), and the tool change is completed.
3.4.3.4
P318=3: tool post type 3, tool change mode 3, which is applicable to Taiwan Hengyang
323
CONNECTION
signal TCP (P408_d6=1) needs to be checked; the system turns off TL- output and issues
CNC signal
Signal explanation
SensorA
T1
SensorB
T2
SensorC
T3
SensorD
SensorE
T4
TXT (P529)
SensorF
TCP
Sol A1
TZD (P507)
Sol A2
TFD (P508)
Sol B
Sol C
TL+
TL-
It senses once each time the tool position is changed, and it is the starting signal of
the tool post clamping;
CONNECTION
3) Sensor F: Releaseing/clamping confirmation signal. High level for clamping, low level for
releasing;
Releasing means the tool post is released and the the tool post can start to rotate;
Clamping means the oil pressure motor stops rotating;
4) Sol A1Sol A2: Two-head electromagnetic valve. When Sol A1 is turned on and Sol A2 is turned
off, the tool post is released; when Sol A1 is turned off and Sol A2 is turned on,
the tool post is clamped;
5) Sol BSol C:
4) When the serson F is invalid, the tool post is released. If the system cannot detect that the
sensor F is invalid within the time set by P325, it issues Tool post releasing overtime;
5) Control the tool post to rotate (CW/CCW) to execute the tool change nearby by judging the tool
change direction according to the current tool number and the target tool number;
6) After the SensorE falling edge which has checked the tool post rotating to the tool signal before
the target tool number appears, the system executes the next step;
7) After the SensorE drising edge which has checks the tool post rotating to the tool signal before
the target tool number appear, SolA1 is turned off, SolA2 is turned on, the tool post is clamped
(at the moment, Sol B still keeps ON, and the motor normally rotates); when the system has not
detected the tool number signal before the target tool number or the tool number signal of the
target tool within the time set by P325 tool change time limit, the system alarms: Check tool
signal overtime;
8) When the system checks the SensorF is valid, Sol B is turned off, the motor stops rotating, and
the tool change is completed; the system alarms Tool post clamping overtime when it has
not checked SensorF is valid in the t time set by P324.
Example
Example: the 8-station turret executes the tool change from No.1 to No.4 tool.
1) Sol A1 is turned on, Sol A2 is turned off, and the tool post is released;
2) The system waits the Sensor F is invalid, judges the nearby tool change direction, Sol B is
turned on and motor rotates;
3) The system starts to check the tool signal (Note: SensorE generates the valid signal when it is in
the No. 1, No. 2, No.3 tool, but the clamping operation is not performed if the 4th tool is not
the tool post is rotate to No. 4 tool; Once SolA1 is valid, SolA1 is turned off and SolA2 is turned
on immediately and the tool post is clamlped (at the moment, So1 B still keeps ON and the
motor normally rotates).
4) When the system has checked Sensor F is valid, So1 B is turned off, the motor stops rotating
and the tool chang is performed.
3.4.3.5
P318=4: tool post type 4, tool change mode 4. It is applied to the tool post type which executes the
nearby tool change (CW/CCW).
Table 3-5
CNC signal
Signal explanation
T1~T8
TCP
TFD (P508)
TL+
CONNECTION
reached); when it checks No. 3 tool signal, it sets SensorE preparatory operation to make that
CONNECTION
and issues Tool post clamping overtime if it does not receive TCP; the system delays the
time set by P322 (t2) if it receives the TCP signal, and then proceeds to the next step.
6)
The system turns off the tool post rotation output signal (TL+ or TL-) and tool post clampoing
control signal (TFD);
7) Finally the system confirms the signal, i.e. checks whether the current tool number input signal is
consistent with the current tool number; if so, the too change is completed; if not, the CNC issues
an alarm.
3.4.4
The tool signal check is controlled by P408_d7. When P408_d7=0, the tool signal check is the
default mode; when P408_d7=1, the tool signal check is the table checking mode. Note: line-up tool
(P318=0) is not influenced by P408_d7.
3.4.4.1
In the default mode, P319 must be equal to P320. Otherwise, the system prompts P319 is not
326
No.1 tool
No.2 tool
No.3 tool
No.4 tool
T04
T03
T02
T01
1
1
1
0
1
1
0
1
1
0
1
1
0
1
1
1
Note: 1 in the table stands for the high level, 0 for the low level
Parameter setting is as follows:
3.4.4.2
Parameter
Parameter
setting value
P318
P319
P320
1
4
4
P408_d7
Remarks
Tool change mode 1
4-station tool post
4 tool number signals
Bit parameter is set to the
default mode
In the table checking mode, P319 can be unequal to P320. The tool number signal is defined by
P541~P556.
P541~P556 correspond to tool signal codes of No. 1~16 tool, and the tool code in the parameter is
expressed by the decimal. The encoding method is as follows: all used tool signals constitute binary
codes (TP320T1) from the high to the low, and then the binary code corresponding to each tool
number is converted to the decimal number to fill in the position corresponding to P541~P556. The
binary code of the tool signal can also be seen in DIAGNOSIS mode.
Example: Genyuan CLT-63~CLT300 turning machine turret serial 8-station tool post uses 4 tool
number signals, and the corresponding tool codes are as follows:
327
CONNECTION
Tool Number
Corresponding
Tool code(T04T01)
Decimal
No. 1 tool
0010
P541
No. 2 tool
1000
P542
No. 3 tool
0001
P543
No. 4 tool
0100
P544
No. 5 tool
0111
P545
No. 6 tool
1101
13
P546
No. 7 tool
1011
11
P547
No. 8 tool
1110
14
P548
parameter
Remarks
P318
P319
P320
4 lines
P408_d7
13
11
14
Parameter
CONNECTION
3.5
X3 Motor Interface
The system can be matched with the drive units of the reaction stepper motor, the compound
stepper motor and AC servo motor via the motor drive unit interface X3.
328
Pin
Special
signal name
Signal direction
Xalm
+24V
XP-
ZP-
Xdir+
X positive terminal
Zdir+
Z positive terminal
Xen
X axis enabled
+5V
Zalm
10
0V
11
Xpu+
12
Zpu+
13
Xdir-
X negative terminal
14
Zdir-
Z negative terminal
15
Zen
Z axis enabled
3.5.3.1
3.3k
or
TLP181
0V
Drive unit side
0V
CNC side
329
CONNECTION
When the CNC is working normally, the enable signal output is valid (the enable signal is connected
with 0V). The schematic circuit diagram is shown as follows:
+24V
TLP181
TLP181
0V
Drive unit side
CNC side
3.5.3.3
Xpu+, Xpu-, Zpu+, Zpu- are pulse signals, Xdir+, Xdir-, Zdir+, Zdir- are direction signals. The
signals in the two groups are differential output, and it is suggeste that the external should use
26LS32 to receive. The schematic circuit diagram is as follows:
26LS31
300
26LS32
CONNECTION
CNC side
3.5.4
Connection between CNC System and Drive Unit of Compound Stepper Motor
330
15
DY3
Xpu+
Xpu-
11
3
5
Xdir+
Xdir-
13
8
7
1
10
CP+
CPDir+
Dir-
+5V
Xen
EN+
EN-
Xalm
OV
RDY1
RDY2
L
N
1
9
2
AC220V
PE
U
V
W
P
D
10
3
11
6
14
R
T
DY3
12
14
8
15
9
10
Zdir+
Zdir-
CP+
CPDir+
Dir-
+5V
Zen
Zalm
EN+
ENRDY1
OV
RDY2
1
9
2
10
3
11
6
14
L
N
PE
U
V
W
P
D
R
T
CONNECTION
4
6
Zpu+
Zpu-
AC220V
331
GSK928TD(X)
11
Xpu +
Xpu-
Xdir+
13
8
Xdir+5V
CP +
CP-
Dir+
10
Dir-
EN+
Xen
X enabling
11
EN-
Xalm
X alarm
RDY1
10
0V
14
RDY2
Metal shell
Metal shell
GSK928TD(Z)
12
Zpu +
Zpu-
Zdir+
14
8
Zdir-
Z pulse +
Z pulseZ direction +
Z direction +5V
CP +
CP-
Dir+
10
Dir-
EN+
Zen
Z enabling
11
EN-
Zalm
Z alarm
DRY1
10
0V
15
+5V
CONNECTION
Metal shell
14
DRY2
Metal shell
When other type of stepper drive unit is connected with the CNC system, the corresponding control
switching value can be used. See the user manual of the corresponding drive device for the connection
method.
Note
When the stepper motor is used, the user should adjust the bit parameter P405(d 7d 0), X-motion
parameter(P100P116) according to the actual conditions. See Parameter Operation Mode in this
manual for details.
The shield cable must be used to connect the stepper drive unit and CNC system. Otherwise the
stepper motor may step out due to the external interference.
The CNC system, stepper drive unit and stepper motor must be earthed reliably to prevent the
motor stepping out because of the external interference.
332
DF3
11
3
5
13
8
7
1
10
Xpu+
CP
/CP
XpuXdir+
Xdir+5V
Xen
Xalm
1
2
3
DIR
/DIR
/FREE
Alm
OV
AC220V
PE
U
V
W
P
D
4
8
5
FREE
COM
L
N
R
T
DF3
14
8
15
9
10
ZpuZdir+
Zdir+5V
Zen
Zalm
OV
CP
/CP
DIR
/DIR
FREE
/FREE
Alm
COM
1
2
3
4
8
5
7
9
L
N
PE
U
V
W
P
D
R
T
CONNECTION
12
4
6
Zpu+
AC220V
333
GSK928TD (X)
11
Xpu +
Xpu-
Xdir+
13
Xdir-
+5V
Xen
Xalm
10
0V
CP
/CP
DIR
/DIR
FREE
/FREE
Alm
COM
Metal shell
Metal shell
GSK928TD (Z)
12
Zpu +
Zpu-
Zdir+
14
Zdir-
+5V
15
Zen
Zalm
10
0V
CONNECTION
Metal shell
CP
/CP
DIR
/DIR
FREE
/FREE
Alm
COM
Metal shell
Note
When the stepper motor is used, the user should adjust the bit parameter P405(d 7d 0), X-motion
parameter(P100P116) according to the actual conditions. See Parameter Operation Mode in this
manual for details.
The shield cable must be used to connect the stepper drive unit and CNC system. Otherwise the
stepper motor may step out due to the external interference.
The CNC system, stepper drive unit and stepper motor must be earthed reliably to prevent the
motor stepping out because of the external interference.
334
GSKDA98
11
3
5
13
7
2
1
Xpu+
Xpu-
PULS
18
6
Xdir+
/PULS
SIGN
Xdir-
/SIGN
Xen
+24V
SON
COM+
Xalm
AlM
COM
10
OV
COM
RSTP
DG
DG
FSTP
R
S
T
19
7
21
8
15
3
5
AC220V
PE
U
V
W
P
D
r
t
10
4
17
22
X2
Zero
PCX
15
shielded cable
12
4
6
14
15
2
9
10
GSKDA98
Zpu+
PULS
ZpuZdir+
Zdir-
/PULS
SIGN
18
6
19
/SIGN
SON
COM+
7
21
Zen
+24V
Zalm
AlM
COM
OV
COM
RSTP
DG
DG
FSTP
8
15
3
5
R
S
T
PE
U
V
W
P
D
r
t
AC220V
10
4
17
22
X2
13
PCZ
Zero
335
CONNECTION
11
Xpu +
Xpu-
Xdir+
13
Xdir-
Xen
+24V
Xalm
10
0V
Metal shell
5
X0
18
PULS
/PULS
19
SIGN
/SIGN
21
SON
COM+
15
Alm
COM
COM
Zero
10
RSTP
DG
17
DG
22
FSTP
Metal shell
GSK928TD(Z)
CONNECTION
12
Zpu +
Zpu-
Zdir+
14
Zdir-
15
Zen
+24V
Zalm
10
0V
Metal shell
13
Z0
18
PULS
/PULS
19
SIGN
/SIGN
21
SON
COM+
15
Alm
COM
COM
Zero
10
RSTP
DG
17
DG
22
FSTP
Metal shell
Note
When the servo motor is used, the user should adjust the bit parameter P405(d 7d 0), X-motion
parameter(P100P116) according to the actual conditions. See Parameter Operation Mode in this
manual for details.
The shield cable must be used to connect the servo driver unit and CNC system. Otherwise the
motor may step out due to the external interference.
336
1 5
MIN AS V
11
3
5
13
7
2
1
10
Xp u+
P ULS 1
Xp u-
P ULS Z
Xd ir+
SIG N1
Xd ir-
SI GN2
Xe n
+24 V
S RV- ON
COM +
Xa lm
OV
AI M
CCW L
CWL
IN H
CO M-
FG
FG
3
4
5
6
29
7
37
2
1
33
41
25
50
X2
OZ-
P CX
OZ+
24
2 3 C WL
CONNECTION
MINAS V
12
Zpu+
PULS1
PULS2
Zpu-
Zdir+
14
Zdir-
15
2
Zen
+24V
Zalm
AlM
10
OV
CCWL
SIGN1
SIGN2
SRV-ON
COM+
CWL
INH
COM-
FG
FG
X2
13
PCZ
OZOZ+
3
4
5
6
29
7
37
2
1
33
41
25
50
24
23CWL
337
1 5 cable
Xpu+
PULS+
Xpu-
PULS-
Xdir+
SIGN+
13
Xdir-
SIGN-
7
2
Xen
+24V
Xalm
AlM+
OV
P-OT
N-OT
ALM-
11
3
10
11
12
40
47
31
42
43
32
41
P-CON
PCX
/S-ON
+24V
Metal
shell
X2
*PCO
PCO
Metal
shell
20
19
CONNECTION
12
4
Zpu+
PULS+
Zpu-
PULS-
Zdir+
14
Zdir-
SIGN-
15
2
Zen
+24V
S-ON
+24V
Zalm
ALM+
10
OV
shell
Metal
X2
338
SIGN+
13
PCZ
7
8
11
12
40
47
31
P-OT
42
N-OT
ALM-
32
P-CON
41
*PCO
PCO
43
Metal
shell
20
19
Unused
Unused
Unused
Special
signal name
1
2
3
4
5
6
7
8
9
10
11
PA+
PAPB+
PBPC+
PCSE5V
0V (5VGND)
SVC
+24V
0V (24VGND)
12
Ypu+
13
14
15
16
YpuYdir+
YdirP5V
17
0V (5VGND)
18
19
AGND
Yen
20
APO
21
22
Unused
Unused
23
Yalm
24
PCY
25
API
26
Unused
Pin function
Encoder A pulse +
Encoder A pulse Encoder B pulse +
Encoder B pulse Encoder C pulse + (PZ+)
Encoder C pulse - (PZ-)
Encoder 5V
Encoder 5V earthing
Spindle analog voltage+
24V
24V earthing
Y pulse + (Y function not
supported)
Y pulse (not supported)
Y + direction (not supported)
Y- direction (not supported)
Y drive unit 5V (not supported)
Y drive unit 5V earthing (not
supported)
Spindle analog voltage ground
Y enabling (not supported)
Speed/position switch control
(not supported)
Unused
Unused
Y axis drive unit alarm (not
supported)
Y axis zero point (not
supported)
Speed/position state check (not
supported)
Unused
CONNECTION
Pin
name
SVC
18
AGND
0V
Converter
CNC side
Control voltage
input interface
+
_
Machine side
The connection cable between the system and the converter should be the shield cable.
CONNECTION
340
3.7.1
Signal Definition
Pin
1+5V
2MA+
3MA-
1
2
3
4
5
6
7
8
9
60V
7MB+
8MB-
Special signal
name
+5V
MA+
MAEmpty
Empty
0V
MB+
MBEmpty
Pin function
MPG 5V
MPG A pulse+
MPG A pulse -
MPG 5V ground
MPG B pulse +
MPG B pulse -
CONNECTION
CNC side
X5
CHAPTER FOUR
Ambient temperature
Relative humidity
045
90%RH(no dewing)
4.2 Earthing
The correct earthing in the electricity device is important and its aims are as follows:
1)
Protect the operator from being injured because of the abnormal conditions;
2)
Protect the electric devices from interference caused by the machine and other electric devices
nearby. (the interference may cause abnormality of the control device).
3)
The machine and system must be grounded firmly, and the neutral wiring in the electric wire net
must not be used as the earthing line. Otherwise, it may cause injury to the operator or damage
to the device.
CONNECTION
The system can normally run in the following AC input power supply:
Voltage fluctuation: AC0.851.1220V
Frequency fluctuation: 50Hz 2%
The requirements for power supply of machine tool is described in machine tool installation manual.
4.4
Protection
The protection grade is not less than IP20
4.5
and then check the wiring and the earthing of the CNC system device, finially keep it power-on for a
period of time to ensure that the system runs without any failure.
342
Appendix
APPENDIX
APPENDIX
343
Appendix
Appendix 1
Symbol
Relay
Graph
Name
Symbol
Stroke switch
Motor
Hall proximity
switch
Semiconductor
diode
Indicator
Capacitor
Resistor
Normally-open
contact
Push-button
switch with lock
Normally-closed
contact
Push-button
switch without lock
LED
Graph
Shield layer
Protective earthing
APPENDIX
Exchange.
Wiring terminal
345
APPENDIX
346
Appendix 2
System signal
interface
Appendix
Appendix 3
VDD5V
O116
IO24V
VDD5V
ST
R116
SP
R117
O117
ID26
ID25
T1
R100
O100
ID0
DecZ
R118
O118
ID27
T2
R101
O101
ID1
DecX
R119
O119
ID28
T3
R102
O102
ID2
DecY
R120
O120
ID29
T4
R103
O103
ID3
-LT
R121
O121
O122
ID30
T5
R104
O104
ID4
+LT
R122
P181
T6
R105
O105
ID5
ESP
ID31
O123
R123
PGNMI
P181
T7
R106
O106
ID6
T8
R107
O107
ID7
TCP
R108
O108
ID8
PRES
R109
O109
ID9
SHL
R110
O110
ID10
TPS
R111
O111
ID11
RM11
R112
O112
ID12
RM10
R113
O113
ID13
MXZ2
R114
MXZ1
R115
O114
O115
ID14
ID15
X2
1
9
2
10
3
11
4
12
5
13
6
14
7
15
8
TL+
TLIO24V
24VGND
T1
T2
T3
T4
PCX
PCZ
TCP
T5
T6
T7
T8
TOOL
X1
16
1
17
2
18
3
19
4
20
5
21
6
22
7
23
8
24
9
25
10
26
11
27
12
28
13
29
14
30
15
31
ST
32
SP
33
TCP
34
PRES
35
SHL
36
TPS
37
24VGND
38
IO24V
39
M5
40
M4
41
M3
42
MSP
43
M9
44
M8
APPENDIX
24VGND
ESP
-LT
DecZ
+LT
DecX
24VGND
DecY
RM10
MXZ2
RM11
MXZ1
24VGND
24VGND
IO24V
IO24V
IO24V
S01
M78
S02
M79
S03
IO24V
S04
UO1
M11
UO2
M10
AGND
SVC
347
IO24V
ULN2803
18
17
16
15
14
13
OD8
O208
OD9
O209
OD10
OUT11
R217
12
TL+
OUT10
R216 10K
11
TL-
10
IO24V
10K
R237
2K2
OUT10
O211
OUT11
OD12
R236
2K2
O213
U200
OUT13
ULN2803
OUT4
R200 10K
18
M5
OUT14
R201 10K
17
M78
OUT5
R202 10K
16
M4
OUT15
R203 10K
15
M79
OUT6
R204 10K
14
M3
OUT7
R205 10K
13
MSP
OUT8
R206 10K
12
M9
OUT9
R207 10K
11
M8
10 IO24V
OD14
O214
OD15
O215
OD16
O216
OD17
O217
O200
R227
2K2
O201
OUT16
OUT17
OUT0
OUT1
OD2
ULN2803
18
M10
R209 10K
17
UO2
OUT12
R210 10K
16
M11
OUT16
R211 10K
15
UO1
OUT3
R212 10K
14
S04
OUT2
R213 10K
13
S03
OUT1
R214 10K
12
S02
OUT0
R215 10K
11
S01
10
APPENDIX
R228
R235
2K2
2K2
IOGND
348
OUT15
OD1
U201
OUT17
OUT14
OD0
IOGND
R208 10K
OUT12
OD13
IOGND
OUT13
OUT9
O210
OD11
O212
R223
2K2
J1
OUT8
O202
OD3
O203
OD4
O204
OD5
O205
OUT3
OUT4
OUT5
OD6
O206
IO24V
OUT2
OUT6
ID0
5VGND
ID2
5VGND
ID4
5VGND
ID6
5VGND
ID8
5VGND
ID10
5VGND
ID12
5VGND
ID14
5VGND
OD0
5VGND
OD2
5VGND
OD4
5VGND
OD6
5VGND
OD8
5VGND
OD10
5VGND
OD12
5VGND
OD14
5VGND
ID16
5VGND
ID18
5VGND
ID20
5VGND
ID22
5VGND
ID24
5VGND
ID26
5VGND
ID28
5VGND
ID30
5VGND
OD16
5VGND
OD18
5VGND
OD20
5VGND
OD22
5VGND
OD24
5VGND
OD26
5VGND
OD28
5VGND
OD30
5VGND
A1
C1
A2
C2
A3
C3
A4
C4
A5
C5
A6
C6
A7
C7
A8
C8
A9
C9
A10
C10
A11
C11
A12
C12
A13
C13
A14
C14
A15
C15
A16
C16
A17
C17
A18
C18
A19
C19
A20
C20
A21
C21
A22
C22
A23
C23
A24
C24
A25
C25
A26
C26
A27
C27
A28
C28
A29
C29
A30
C30
A31
C31
A32
C32
A1
C1
A2
C2
A3
C3
A4
C4
A5
C5
A6
C6
A7
C7
A8
C8
A9
C9
A10
C10
A11
C11
A12
C12
A13
C13
A14
C14
A15
C15
A16
C16
A17
C17
A18
C18
A19
C19
A20
C20
A21
C21
A22
C22
A23
C23
A24
C24
A25
C25
A26
C26
A27
C27
A28
C28
A29
C29
A30
C30
A31
C31
A32
C32
JE
OD7
O207
5VGND
OUT7
B1
B2
B3
B4
B5
B6
B7
B8
B9
B10
B11
B12
B13
B14
B15
B16
B17
B18
B19
B20
B21
B22
B23
B24
B25
B26
B27
B28
B29
B30
B31
B32
B1
ID1
B2
ID3
B3
ID5
B4
ID7
B5
ID9
B6
ID11
B7
ID13
B8
ID15
B9
OD1
B10
OD3
B11
OD5
B12
OD7
B13
OD9
B14
OD11
B15
OD13
B16
OD15
B17
ID17
B18
ID19
B19
ID21
B20
ID23
B21
ID25
B22
ID27
B23
ID29
B24
ID31
B25
OD17
B26
OD19
B27
OD21
B28
OD23
B29
OD25
B30
OD27
B31
OD29
B32
OD31
Appendix
Interface schematic circuit 3
PG5V
PIO5V
R300
C303
X5
5VGND
MA+
R319
5VGND
PIO5V
R400
PA+
R415
5VGND
PIO5V
R401
PB+
R416
5VGND
5VGND
PIO5V
R301
MB+
R320
5VGND
PIO5V
R402
PC+
R417
PIO5V
R302
MA-
R304
5VGND
PIO5V
R403
PA-
R406
5VGND
PIO5V
R303
MB-
R305
5VGND
PIO5V
R404
PB-
R407
5VGND
PIO5V
R405
PC-
R408
5VGND
PA+
PAPB+
PB-
R409
R410
R411
R412
SEA+
SEASEB+
SEB-
C401
C402
C403
C404
PC+
PC-
R413
R414
SEZ+
SEZ-
C405
C406
MA+
MB+
MAMB-
R306
R307
R308
R309
PGA+
PGB+
PGAPGB-
C304
C305 5VGND
C306
C307
PGA
13
PGB
VCC
GND
OUTD
OUTC
OUTB
OUTA
12
4
9
10
7
6
15
14
1
2
EN
EN
INDIND+
INCINC+
INBINB+
INAINA+
1
6
2
7
3
8
4
9
5
PG
X3
U300
PIO5V 16
5VGND 8
C300
11
PG5V
5VGND
MA+
MB+
MAMB-
5VGND
PIO5V
5VGND
PIO5V
PGAPGA+
5VGND
PIO5V
PGBPGB+
1
9
2
10
3
11
4
12
5
13
6
14
7
15
8
Xalm
Zalm
IO24V
24VGND
Xpu+
XpuZpu+
ZpuXdir+
XdirZdir+
ZdirXen
Zen
P5V
5VGND
MOTO
U500
ZP
1
ZD 15
XP
7
XD
9
PIO5V 16
4
C500 12
5VGND 8
1A
4A
2A
3A
VCC
G1
G2
GND
1Y
1Z
4Y
4Z
2Y
2Z
3Y
3Z
2
3
14
13
6
5
10
11
R500
R501
R502
R503
R504
R505
R506
R507
Zpu+
ZpuZdir+
ZdirXpu+
XpuXdir+
Xdir-
X4
IO24V
PA+
24VGND
PAYpu+
PB+
YpuPBYdir+
PC+
YdirPCP5V
SE5V
5VGND
5VGND
AGND
SVC
U501
AD
YP
AP
YD
1
15
7
9
16
PIO5V 4
C501 12
5VGND 8
1A
4A
2A
3A
VCC
G1
G2
GND
1Y
1Z
4Y
4Z
2Y
2Z
3Y
3Z
2
3
14
13
6
5
10
11
R512
R513
R514
R515
R508
R509
R510
R511
Ypu+
YpuYdir+
Ydir-
10
1
11
2
12
3
13
4
14
5
15
6
16
7
17
8
18
9
19
YEN
20
APO
21
Y02
22
Y03
23
YALM
24
PCY
25
API
26
Y-AXIS
IO24V
XSON
O500
Xen
D500
1N4148
24VGND
ZSON
VDD5V
X_ALM
R516
O504
Xalm
X_ORG
R517
O505
PCX
Y_ALM
R518
O506
YALM
Y_ORG
R519
O507
PCY
Z_ALM
R520
O508
Zalm
Z_ORG
R521
O509
PCZ
YI_1
R522
O510
API
YI_2
R523
O511
D501
O501
Zen
1N4148
24VGND
YSON
D502
O502
YEN
1N4148
24VGND
ASON
O503
APO
D503
1N4148
XO1
D504
Y02
1N4148
24VGND
YO1
APPENDIX
24VGND
O512
D505
O513
Y03
1N4148
5VGND
24VGND
349
350
X4
U V W PE
COM
REV
FWD
0
10V
0V
PE
X2
X5
X1
USB
Appendix 4
APPENDIX
X3
CNC
Appendix
GSK928TD CNC System Appearance Installation Dimension
Appendix 5
APPENDIX
351
User opening
installation dimension
Appendix 6
APPENDIX
352
Supplementary Explanation
Supplementary Explanation
for GSK928TD and GSK928TD-L (V3.21 software version)
(Modification and addition based on edition 1 of USER MANUAL)
1.
1.1
Interface parameter P538, P539, P540Z/X/Y move limit: (range: 0-32, password level: device
administrator)
The setting of this parameter is the same as that of other interface parameters. When this
parameter is set to be valid, its corresponding axis can move only when the signal is in the low level;
otherwise, its corresponding feed axis is in the unmovable state.
In JOG or AUTO operation mode, if the system detects that the signal is OFF (i.e. 1), it issues
P538 Z axis move limit, and the axis cannot move.
1.2
Machining
Interface parameter P531 Alarm of Lubrication Check before Machining: (range: 0-32, password level:
device administrator)
In AUTO operation mode, if the system detects the signal is ON (i.e. 0) before executing the first
command, it issues Lubrication alarm detected, and the machining
1.3
cannot be performed.
new G76 command has four cut-in modes, which are specified by H_d3d2 in programming.
When H is:
Hxxxxx00xx: Cuts in from the left, (the same as the previous G76; Z offsets in the end point
direction);
Hxxxxx01xx: Cuts in from the rightZ offsets in the direction opposite to the end point
353
User Manual
1.5
execution page. E.g. press the RIGHT direction key to enter the search state, then input T11 and press
ENTER, then press direction key UP and DOWN to search T11, finally press ENTER to confirm that the
execution starts from this block.
2.
2.1
Supplementary Explanation
If P347 (exiting automatic call) is set to 53, when there is no alarm occurring, the system will call and
execute M53 each time the control is switched to the other pages from the AUTO page.
Note
1)
If the parameter is set with no corresponding customized command solidified in No. 254
program, this function is skipped.
2)
After this function is used, the machining efficiency may be affected because of the additional
call.
I8.0
If input U108 pin is the low level, the next is executed; otherwise, the system
keeps waiting.
M84
I8.1
If the input U108 pin is the high level, the next is executed; otherwise, the
system keeps waiting.
M84
I8.0
D3
The system constantly checks the signal within D3, if U108=0, the next is
executed; otherwise, the system keeps checking the signal. If the time is up and
the signal has not been checked, the system issues E*** M84 check I8.0 signal
overtime and terminates the program.
3.
ZW_
PE_
H_
Z taping
G38
YV_
PE_
H_
Word
Thereinto: ZWYVCommand-specified position which the taping is performed to;
Z/Y is the absolute coordinate of Z axis/X axis respectively, and W/V is the relative coordinate
of Z axis/Y axis respectively; the user can employ any one of relative coordinate and absolute
coordinate; the relative coordinate is the displacement relative to the current position.
355
User Manual
If the spindle is rotating, the system executes M05 to exactly stop the spindle.
After entering G38 mode, Z axis always rotates along with the spindle.
After starting the spindle, the speed increases gradually, and Z axis moves towards to the
target position.
After Z axis reaches to the target position, the spindle speed decreases gradually till it stops.
Then the Z axis retraction is completed by the subsequent command.
Then the system executes the subsequent command, and the spindle rotates in the reverse
direction and the speed increases gradually, and Z axis moves in the reverse direction with
the spindle.
After Z axis reaches the target position, the spindle speed decreases gradually till it stops
Repeat the above steps until the subsequent command ends, then exit G38 command.
Note
1) For this command, the spindle has a period of deceleration time after it is turned off. At this
moment, Z axis/X axis still rotates with the spindle till the spindle completely stops. Therefore,
the hole bottom of the thread in the actual machining is deeper than the desired one, and the
length depends on the spindle speed and speed change amount during taping.
2) After executing G38 and the subsequent command, the position of the axes is not completely
certain.
3) The subsequent command of G38 can only be an independent Z(W) word or independent S,
M00 command; the next command of the subsequent command can also be the subsequent
356
Supplementary Explanation
command; if the next command following the subsequent command is other command, the
system exits G38 mode.
4) The system forbids executing G38 command in Dry Run.
Example
Fig. 4-15
Taping
G00
N0010
S300
N0020
G01
X0
Z20
Z2
F1000
N0030
G38
N0040
S500
N0050
Z2
Z axis retracts
N0060
S300
N0070
Z-30
N0080
S500
N0090
Z2
Z axis retracts
N0100
M02
End of program
3.2
Z-30
P1.5
H0
Command format
G20
G21
G20/G21 command can only check the input unit of the current system and provide alarms rather than
switching the input unit. If E285/E286 alarm occurs, please modify P413_d3.
357
User Manual
3.3.1
Relative parameter
Interface language__bit parameter P413password level3machine operator
d3__ Least input increment
0: Metric
// The system input increment is the metric input, and the system initialization setting is
0.
1: Inch
Function explanation
If you need to operate the system using the inch, set parameter P413_d3 to 1, then the system
automatically completes the conversion between metric and inch data.
1) After the system is switched to inch mode, there is in displaying on the upper left of the screen,
indicating the current mode is inch. There is no such display for the metric mode.
2) System reference conversion formula: 1 inch = 25.4 mm; 1 foot = 12 inches
3) The system performs the below conversion at the moment of the metric conversion:
The system parameters relative to the coordinate position are converted to the inch system, and
the unit is inch; e.g. program reference point, soft limit, zero coordinate, backlash, pitch error.
The system parameters relative to the traverse speed are converted to the inch system, and the
unit is inch/min; e.g. max. traverse rate;
The current coordinates and speed F are converted to the inch system;
The tool offset and tool nose radius compensation in tool offset mode are converted into the inch
system;
If the Y axis is the rotation axis, the position coordinate of Y axis is not switched (When P27 is not
0, the system identifies Y axis as the rotation axis.)
None of the system parameters relative to the rotation axis is converted.
4) In manual traverse or command feed, the actual traverse speed of the rotation axis is Fx10. In F20,
the actual traverse speed is 200 degrees/min.
5) It is suggested that G20 be added in the first line of the program in the inch system, and G21 be
added in the first line of the program in the metric system. If the program is different from the current
system state, alarm E285 occurs. To execute the program, you need to modify the relative
parameter. If there in no G20/G21 in the program, the current mode is taken as the default.
6) Alarm messageE285/E286: Inch/Metric program, please modify bit d3 of P413. This alarm
message indicates the least input increment in the program is inconsistent with that set by the
system, and thus you need to modify parameter P413_d3.
358
Supplementary Explanation
7) System metric/inch comparison
Metric unit and range
Coordinate position
0-9999.999
0-999.9999 inch
Traverse speed
0-99999.999 mm/min
F in G99
0-99999.999 mm/rev
S in G96
0-9999
0-9999
Pitch
error
mm
m/min
foot /min
1 means 0.001 mm
mm/tooth
inch /tooth
compensation
(without decimal)
P in thread
commands such as
G92, G33
Position of rotation
Unitdegree
Unitdegree
axis
Speed of rotation axis
F1 indicates 1 degree/min
F1 indicates 10 degrees/min
Note
1) A position precision loss of 0.002mm may be generated in each metric/inch conversion. It is
suggested that the conversion is performed when the coordinate position of the machine is the
integer multiple of 2.54mm. When the system is in the inch mode, it is unavailable to switch the
system sofware version.
2) In JOG mode, the step width of the rotation axis is 10 times as large as the displayed value.
3) If the parameters, tool offset data and program files sent to the PC or USB in the inch state need
to be sent back to the system, the system should also receive them in the inch state. I.e. The
data should be sent and received in the same mode state.
4) After the data are converted to the inch system, the coordinate and speed can be input with four
decimals.
Program example
The comparative program example of metric/inch system: supposing Y axis is the rotation axis.
/Metric;
/Inch
%051
G21
N0000 G0 X100 Z100
N0010 T22 M3 S1500 M8
N0020 G0 X45 Z3
N0030 G01 Z-5 100
N0040 G1 Z1 F300
N0050 G01 Y90 F200
N0060 G1 Z-5 Y180 F100
%052
G20
N0000 G0 X3.937 Z3.937
N0010 T22 M3 S1500 M8
N0020 G0 X1.7717 Z0.1181
N0030 G01 Z-0.1969 F3.9370
N0040 G1 Z0.0394 F11.8110
N0050 G01 Y90 F20
N0060 G1 Z-0.1969 Y180 F3.9370
359
User Manual
360