Manual 1000MDB - TRADUZIR
Manual 1000MDB - TRADUZIR
SZGH-CNC1000MDb
Milling Control System
V4.0
Warning
Warning notices are used in this publication to emphasize that hazardous voltages, currents,
temperatures, or other conditions that could cause personal injury exist in this equipment or may be
associated with its use.
In situations where inattention could cause either personal injury or damage to equipment, a
Warning notice is used.
Caution
Caution notices are used where equipment might be damaged if care is not taken.
Note
Notes merely call attention to information that is especially significant to understanding and
operating the equipment.
This document is based on information available at the time of its publication. While efforts
have been made to be accurate, the information contained herein does not purport to cover all
details or variations in hardware or software, nor to provide for every possible contingency in
connection with installation, operation, or maintenance. Features may be described herein which
are not present in all hardware and software systems. Shenzhen Guanhong Automation assumes no
obligation of notice to holders of this document with respect to changes subsequently made.
Shenzhen Guanhong Automation makes no representation or warranty, expressed, implied, or
statutory with respect to, and assumes no responsibility for the accuracy, completeness, sufficiency,
or usefulness of the information contained herein. No warranties of merchantability or fitness for
purpose shall apply.
SAFETY PRECAUTIONS
This section describes the safety precautions related to the use of CNC units. It is essential that
these precautions be observed by users to ensure the safe operation of machines equipped with a
CNC unit (all descriptions in this section assume this configuration). Note that some precautions
are related only to specific functions, and thus may not be applicable to certain CNC units.
Users must also observe the safety precautions related to the machine, as described in the
relevant manual supplied by the machine tool builder. Before attempting to operate the machine or
create a program to control the operation of the machine, the operator must become fully familiar
with the contents of this manual and relevant manual supplied by the machine tool builder.
WARNING
Applied when there is a danger of the user being injured or when there is a danger of both the user
being injured and the equipment being damaged if the approved procedure is not observed.
CAUTION
Applied when there is a danger of the equipment being damaged, if the approved procedure is not
observed.
NOTE
The Note is used to indicate supplementary information other than Warning and Caution.
I
2 GENERAL WARNINGS AND CAUTIONS
Warning
1. Never attempt to machine a workpiece without first checking the operation of the machine.
Before starting a production run, ensure that the machine is operating correctly by performing a trial run using, for
example, the single block, feedrate override, or machine lock function or by operating the machine with neither a
tool nor workpiece mounted. Failure to confirm the correct operation of the machine may result in the machine
behaving unexpectedly, possibly causing damage to the workpiece and/or machine itself, or injury to the user.
2. Before operating the machine, thoroughly check the entered data. Operating the machine with incorrectly
specified data may result in the machine behaving unexpectedly, possibly causing damage to the workpiece and/or
machine itself, or injury to the user.
3. Ensure that the specified feedrate is appropriate for the intended operation. Generally, for each machine, there is
a maximum allowable feedrate. The appropriate feedrate varies with the intended operation. Refer to the manual
provided with the machine to determine the maximum allowable feedrate. If a machine is run at other than the
correct speed, it may behave unexpectedly, possibly causing damage to the workpiece and/or machine itself, or
injury to the user.
4. When using a tool compensation function, thoroughly check the direction and amount of
Compensation. Operating the machine with incorrectly specified data may result in the machine behaving
unexpectedly, possibly causing damage to the workpiece and/or machine itself, or injury to the user.
5. The parameters for the CNC and PMC are factory-set. Usually, there is not need to change them. When,
however, there is not alternative other than to change a parameter, ensure that you fully understand the function of
the parameter before making any change. Failure to set a parameter correctly may result in the machine behaving
unexpectedly, possibly causing damage to the workpiece and/or machine itself, or injury to the user.
6. Immediately after switching on the power, do not touch any of the keys on the MDI panel until the position
display or alarm screen appears on the CNC unit. Some of the keys on the MDI panel are dedicated to
maintenance or other special operations. Pressing any of these keys may place the CNC unit in other than its
normal state. Starting the machine in this state may cause it to behave unexpectedly.
7. The operator’s manual and programming manual supplied with a CNC unit provide an overall description of the
machine’s functions, including any optional functions. Note that the optional functions will vary from one
machine model to another. Therefore, some functions described in the manuals may not actually be available for a
particular model. Check the specification of the machine if in doubt.
8. Some functions may have been implemented at the request of the machine–tool builder. When using such
functions, refer to the manual supplied by the machine–tool builder for details of their use and any related
cautions.
NOTE: Programs,parameters, and macro variables are stored in nonvolatile memory in the CNC unit.
Usually, they are retained even if the power is turned off. Such data may be deleted inadvertently, however, or it
may prove necessary to delete all data from nonvolatile memory as part of error recovery.To guard against the
occurrence of the above, and assure quick restoration of deleted data, backup all vital data, and keep the
backup copy in a safe place.
II
3 WARNINGS AND CAUTIONS RELATED TO PROGRAMMING
This section covers the major safety precautions related to programming. Before attempting to perform
programming, read the supplied operator’s manual and programming manual carefully such that you are fully
familiar with their contents.
Warning
1. Coordinate system setting
If a coordinate system is established incorrectly, the machine may behave unexpectedly as a result of the program
issuing an otherwise valid move command.
Such an unexpected operation may damage the tool, the machine itself, the workpiece, or cause injury to the user.
2. Positioning by nonlinear interpolation
When performing positioning by nonlinear interpolation (positioning by nonlinear movement between the start
and end points), the tool path must be carefully confirmed before performing programming. Positioning involves
rapid traverse. If the tool collides with the workpiece, it may damage the tool, the machine itself, the workpiece,
or cause injury to the user.
3. Function involving a rotation axis
When programming polar coordinate interpolation or normal–direction (perpendicular) control, pay careful
attention to the speed of the rotation axis. Incorrect programming may result in the rotation axis speed becoming
excessively high, such that centrifugal force causes the chuck to lose its grip on the workpiece if the latter is not
mounted securely. Such mishap is likely to damage the tool, the machine itself, the workpiece, or cause injury to
the user.
4. Inch/metric conversion
Switching between inch and metric inputs does not convert the measurement units of data such as the workpiece
origin offset, parameter, and current position. Before starting the machine, therefore, determine which
measurement units are being used. Attempting to perform an operation with invalid data specified may damage
the tool, the machine itself, the workpiece, or cause injury to the user.
5. Constant surface speed control
When an axis subject to constant surface speed control approaches the origin of the workpiece coordinate system,
the spindle speed may become excessively high. Therefore, it is necessary to specify a maximum allowable speed.
Specifying the maximum allowable speed incorrectly may damage the tool, the machine itself, the workpiece, or
cause injury to the user.
6. Stroke check
After switching on the power, perform a manual reference position return as required. Stroke check is not possible
before manual reference position return is performed. Note that when stroke check is disabled, an alarm is not
issued even if a stroke limit is exceeded, possibly damaging the tool, the machine itself, the workpiece, or causing
injury to the user.
7. Absolute/incremental mode
If a program created with absolute values is run in incremental mode, or vice verse, the machine may behave
unexpectedly.
8. Plane selection
If an incorrect plane is specified for circular interpolation, helical interpolation, or a canned cycle, the machine
may behave unexpectedly. Refer to the descriptions of the respective functions for details.
III
9. Compensation function
If a command based on the machine coordinate system or a reference position return command is issued in
compensation function mode, compensation is temporarily canceled, resulting in the unexpected behavior of the
machine. Before issuing any of the above commands, therefore, always cancel compensation function mode.
Warning
1. Manual operation
When operating the machine manually, determine the current position of the tool and workpiece, and ensure that
the movement axis, direction, and feedrate have been specified correctly. Incorrect operation of the machine may
damage the tool, the machine itself, the workpiece, or cause injury to the operator.
2. Manual reference position return
After switching on the power, perform manual reference position return as required. If the machine is operated
without first performing manual reference position return, it may behave unexpectedly. Stroke check is not
possible before manual reference position return is performed.
An unexpected operation of the machine may damage the tool, the machine itself, the workpiece,or cause injury to
the user.
3. Manual handle feed
In manual handle feed, rotating the handle with a large scale factor, such as 100, applied causes the tool and table
to move rapidly. Careless handling may damage the tool and/or machine, or cause injury to the user.
4. Disabled override
If override is disabled (according to the specification in a macro variable) during threading or other tapping, the
speed cannot be predicted, possibly damaging the tool, the machine itself, the workpiece, or causing injury to the
operator.
5. Origin/preset operation
Basically, never attempt an origin/preset operation when the machine is operating under the control of a program.
Otherwise, the machine may behave unexpectedly, possibly damaging the tool, the machine itself, the tool, or
causing injury to the user.
6. Workpiece coordinate system shift
Manual intervention, machine lock, or mirror imaging may shift the workpiece coordinate system. Before
attempting to operate the machine under the control of a program, confirm the coordinate system carefully. If the
machine is operated under the control of a program without making allowances for any shift in the workpiece
coordinate system, the machine may behave unexpectedly, possibly damaging the tool, the machine itself, the
workpiece, or causing injury to the operator.
7. Software operator’s panel and menu switches
Using the software operator’s panel and menu switches, in combination with the MDI panel, it is possible to
specify operations not supported by the machine operator’s panel, such as mode change, override value change,
and jog feed commands.
Note, however, that if the MDI panel keys are operated inadvertently, the machine may behave unexpectedly,
possibly damaging the tool, the machine itself, the workpiece, or causing injury to the user.
IV
8. Manual intervention
If manual intervention is performed during programmed operation of the machine, the tool path may vary when
the machine is restarted. Before restarting the machine after manual intervention, therefore, confirm the settings of
the manual absolute switches, parameters, and absolute/incremental command mode.
9. Feed hold, override, and single block
The feed hold, feedrate override, and single block functions can be disabled using custom macro system variable
#3004. Be careful when operating the machine in this case.
10. Dry run
Usually, a dry run is used to confirm the operation of the machine. During a dry run, the machine operates at dry
run speed, which differs from the corresponding programmed feedrate. Note that the dry run speed may
sometimes be higher than the programmed feed rate.
11. Cutter and tool nose radius compensation in MDI mode
Pay careful attention to a tool path specified by a command in MDI mode, because tool nose radius compensation
is not applied. When a command is entered from the MDI to interrupt in automatic operation in tool nose radius
compensation mode, pay particular attention to the tool path when automatic operation is subsequently resumed.
Refer to the descriptions of the corresponding functions for details.
12. Program editing
If the machine is stopped, after which the machining program is edited (modification, insertion, or deletion), the
machine may behave unexpectedly if machining is resumed under the control of that program. Basically, do not
modify, insert, or delete commands from a machining program while it is in use.
WARNING
1. Memory backup battery replacement
When replacing the memory backup batteries, keep the power to the machine (CNC) turned on, and apply an
emergency stop to the machine. Because this work is performed with the power on and the cabinet open, only
those personnel who have received approved safety and maintenance training may perform this work.
When replacing the batteries, be careful not to touch the high–voltage circuits (marked and fitted with an
insulating cover).Touching the uncovered high–voltage circuits presents an extremely dangerous electric shock
hazard.
NOTE:The CNC uses batteries to preserve the contents of its memory, because it must retain data such as
programs, offsets, and parameters even while external power is not applied. If the battery voltage drops, a low
battery voltage alarm is displayed on the machine operator’s panel or screen. When a low battery voltage alarm
is displayed, replace the batteries within a week. Otherwise, the contents of the CNC memory will be lost. Refer
to the maintenance section of the operator’s manual for details of the battery replacement procedure.
V
cover). Touching the uncovered high–voltage circuits presents an extremely dangerous electric shock hazard.
NOTE:The absolute pulse coder uses batteries to preserve its absolute position. If the battery voltage drops, a
low battery voltage alarm is displayed on the machine operator’s panel or screen. When a low battery voltage
alarm is displayed, replace the batteries within a week. Otherwise, the absolute position data held by the pulse
coder will be lost.
3. Fuse replacement
For some units, the chapter covering daily maintenance in the operator’s manual or programming manual
describes the fuse replacement procedure.
Before replacing a blown fuse, however, it is necessary to locate and remove the cause of the blown fuse. For this
reason, only those personnel who have received approved safety and maintenance training may perform this work.
When replacing a fuse with the cabinet open, be careful not to touch the high–voltage circuits (marked and fitted
with an insulating cover).
Touching an uncovered high–voltage circuit presents an extremely dangerous electric shock hazard.
Special Attention:
1. All the functions of A axis & B axis on system are effective when configure with fourth axis & fifth axis.
2. When use this system for the first time, please read carefully all the details of each chapter so as to make it
work more efficiency and safer.
3. The “Run” button on the panel of system can be used when debugging (P9 in Other parameter to set
“Valid” or “Invalid”), must plus an external “Run” button when fitting system, otherwise may cause accident
because of the life of button!!!So the system prohibits using the “Run” button of panel for long times,
otherwise the consequences has nothing to do with my company.
4. Don’t plug & insert connectors when system is on power.
5. We will use some short name to stands for parameter number. For example: P -- Parameter , P1 stands for
the No.1 parameter .Example: P9-D6,also No.9 parameter, No.7 bit from right to left side.
6. There are some bit parameters on CNC system, different bit parameters have different means, some bit
parameters are for inner system,don’t change these bits parameter we don’t explain,keep same as ex-factory
set.
VI
CONTENTS
Chapter 1 Preface ........................................................................................................................................... . - 1 -
1.1 Characteristics ............................................................................................................................................- 2 -
1.2 Technical Specifications ............................................................................................................................ - 2 -
1.3 System operation condition ....................................................................................................................... - 3 -
1.4 G Code List ................................................................................................................................................- 4 -
Chapter 2 Programming .................................................................................................................................... - 6 -
2.1 Basic Concepts of Programming ............................................................................................................... - 6 -
2.1.1 Tool Movement Along Workpiece Parts Figure Interpolation ....................................................... - 7 -
2.1.2 Feed Function ................................................................................................................................. - 8 -
2.1.3 Part Drawing And Tool Movement................................................................................................ - 8 -
3.1 INTRODUCTION ................................................................................................................................... - 20 -
3.2 G Code List ............................................................................................................................. .................- 20 -
3.3 Positioning (Rapid Traverse) (G00) ........................................................................................................ - 24 -
3.4 Linear Interpolation (G01) ...................................................................................................................... - 25 -
3.5 Circular Interpolation (G02/G03) ............................................................................................................- 27 -
3.6 Helical Interpolation (G02/G03) ............................................................................................................. - 30 -
3.7 3D Space Arc Interpolation G06 ............................................................................................................. - 31 -
3.8 Dwell (G04) ............................................................................................................................. ................ - 32 -
3.9 Skip Function(G31,G311)....................................................................................................................... - 33 -
3.10 Reference Position ................................................................................................................................. - 34 -
3.11 Return to Starting Point (G26,G261~G264) ......................................................................................... - 35 -
3.12 Save Current Position (G25) ................................................................................................................. - 35 -
3.13 Return to Specified Position (G61,G611~G614).................................................................................. - 35 -
3.14 Coordinate System .................................................................................................................................- 36 -
3.14.1 Machine Coordinate System (G53) ............................................................................................- 36 -
3.14.2 Workpiece Coordinate system(G54/G55/G56/G57/G58/G59)..................................................- 37 -
VII
3.14.3 Local Coordinate System (G52)................................................................................................- 39 -
3.15 Plane Selection(G17/G18/G19) .............................................................................................................- 41 -
3.16 Absolute and Incremental Programming (G90/G91) ............................................................................ - 41 -
3.17 Pole coordinate instruction(G15/G16) .................................................................................................. - 42 -
3.18 Inch/Metric Conversion (G20/G21) ...................................................................................................... - 44 -
3.19 Feed Mode ............................................................................................................................................. - 45 -
3.20 Processing Mode (G60/G64) .................................................................................................................- 46 -
3.21 Scaling (G36/G37) .................................................................................................................................- 47 -
3.22 Programmable mirror image (G11/G12) ............................................................................................... - 48 -
3.23 Rotate Coordinate Instruction (G68/G69) .............................................................................................- 49 -
3.24 Tool Length Offset (G43/G44/G49) ...................................................................................................... - 51 -
3.25 Tool Offset(45/G46/G47/G48) .............................................................................................................. - 54 -
3.26 Tool Radius Compensation C (G40/G41/G42) ..................................................................................... - 57 -
3.27 Details of Tool Compensation C ........................................................................................................... - 61 -
3.27.1 Inside and outside ....................................................................................................................... - 61 -
3.27.2 Tool movement when start-up ....................................................................................................- 61 -
3.28 Canned Cycle (G73-G89) ......................................................................................................................- 67 -
3.28.1 High-speed Peck Drilling Cycle(G73)....................................................................................... - 70 -
3.28.2 Left-handed Peck Rigid Tapping Cycle (G74) .......................................................................... - 72 -
3.28.3 Fine Boring Cycle (G76) ............................................................................................................ - 74 -
3.28.4 Canned Cycle Cancel (G80) .......................................................................................................- 75 -
3.28.5 Drilling cycle, Spot Drilling (G81) ............................................................................................ - 76 -
3.28.6 Drilling Cycle Counter Boring Cycle (G82) ..............................................................................- 77 -
3.28.7 Peck Drilling Cycle (G83) ..........................................................................................................- 78 -
3.28.8 Right-handed Peck Rigid Tapping Cycle (G84) ........................................................................ - 79 -
3.28.9 Boring Cycle (G85) .................................................................................................................... - 81 -
3.28.10 Boring Cycle (G86) .................................................................................................................. - 82 -
3.28.11 Back Boring Cycle (G87) .........................................................................................................- 83 -
3.28.12 Boring Cycle (G89) .................................................................................................................. - 85 -
3.28.13 Example of Canned Cycle ........................................................................................................- 86 -
3.29 Block Cycle (G22,G800) .......................................................................................................................- 88 -
3.30 Macro program instruction(G65/G66/G67) .......................................................................................... - 89 -
3.30.1 Non-Mode Macro Command G65 ............................................................................................. - 89 -
3.30.2 Mode Macro Command G66/G67 ..............................................................................................- 89 -
3.30.3 Macro Program Instruction ........................................................................................................ - 90 -
3.30.4 Operators’ meaning................................................................................................................. ... - 92 -
3.30.5 Arithmetic & Logic Operation ................................................................................................... - 92 -
3.30.6 Local Variable.............................................................................................................................- 92 -
3.30.7 Global Variable..................................................................................................................... ...... - 93 -
3.30.8 System Variable .......................................................................................................................... - 93 -
3.30.9 System Parameter Variable.........................................................................................................- 93 -
VIII
3.30.10 I/O variable ............................................................................................................................. - 93 -
3.30.11 Message Hint Dialog Box........................................................................................................ - 93 -
3.30.12 Build Processing Program Automatically ................................................................................ - 94 -
3.31 User-defined Macro Instruction (G110-G170) ..................................................................................... - 95 -
3.31.1 Bolt Hole Circle Drilling Cycle ................................................................................................. - 95 -
3.31.2 Inner Circle Groove Roughing Cycle (G110/G111).................................................................. - 96 -
3.31.3 Inner Circle Groove Fine Cycle (G112/G113) ...........................................................................- 98 -
3.31.4 Outer Circle Fine Milling Cycle (G114/G115)........................................................................ - 100 -
3.31.5 Outer Circle Rough Milling Cycle (G116/G117) .................................................................... - 101 -
3.31.6 Outer Rectangle Rough Milling Cycle (G132/G133) ..............................................................- 103 -
3.31.7 Inner Rectangle Groove Roughing Cycle (G134/G135) ......................................................... - 106 -
3.31.8 Inner Rectangle Groove Fine Milling Cycle (G136/G137)..................................................... - 108 -
3.31.9 Outer Rectangle Fine Milling Cycle (G138/G139)................................................................. - 109 -
Chapter 4 M INSTRCUTIONS ........................................................................................................................ - 111 -
4.1 M Function (Auxiliary Function) .......................................................................................................... - 111 -
4.1.1 Program Stop(M00) .................................................................................................................... - 111 -
4.1.2 Optional Stop (M01) ...................................................................................................................- 111 -
4.1.3 End of Program (M02,M30) ....................................................................................................... - 111 -
4.1.4 Cycle of Program (M20) .............................................................................................................- 111 -
4.1.5 Account of Workpiece(M87) ...................................................................................................... - 111 -
4.1.6 Unconditional Jump (M97) ........................................................................................................ - 111 -
4.2 Subprogram Configuration .................................................................................................................... - 112 -
4.2.1 Calling of Subprogram (M98) .................................................................................................... - 112 -
4.2.2 End of Subprogram (M99) ......................................................................................................... - 112 -
4.3 Standard PLC M Command List ........................................................................................................... - 113 -
4.3.1 M Output Command List ............................................................................................................- 113 -
4.3.1.1 Spindle Control (M03/M04/M05) ................................................................................... - 114 -
4.3.1.2 Spindle Gear Shifting(M41/M42/M43/M44) ..................................................................- 115 -
4.3.1.3 Coolant(M08/M09) ..........................................................................................................- 116 -
4.3.1.4 Lubricate(M32/M33) ....................................................................................................... - 116 -
4.3.1.5 Chuck(M10/M11)............................................................................................................ - 116 -
4.3.1.6 Huff(M59/M58) ...............................................................................................................- 117 -
4.3.1.7 Condition Output of Machine Tool(M65/M67/M69)..................................................... - 117 -
4.3.2 M Input Command List .............................................................................................................. - 117 -
4.4 Analog Speed of Spindle(S , SS) ........................................................................................................... - 118 -
4.5 Comprehensive examples for programming ......................................................................................... - 118 -
Chapter 5 Special Application ....................................................................................................................... - 119 -
5.1 Linear/Rack Tool Magazine (G120) ......................................................................................................- 119 -
5.2 Umbrella/Hat Tool Magazine (G121/G122)......................................................................................... - 121 -
5.3 Usage for automatic tool setting gauge ................................................................................................. - 124 -
5.4 Usage for automatic dividing center ..................................................................................................... - 125 -
IX
Chapter 6 Operation .................................................................................................................................... .- 126 -
6.1 Operational Panel.................................................................................................................................. - 126 -
6.2 Function Menu .......................................................................................................................................- 126 -
6.3 Editing Keyboard ...................................................................................................................................- 127 -
6.4 Machine Control Panel........................................................................................................................ .. - 127 -
6.5 Manual Operation .................................................................................................................................. - 130 -
6.5.1 Manual Continuous.................................................................................................................... - 130 -
6.5.2 Manual Increment.......................................................................................................................- 131 -
6.5.3 Manual pulse generator(Handwheel)......................................................................................... - 131 -
6.5.4 Manual Reference Position Return ............................................................................................ - 132 -
6.6 Auto Operation ...................................................................................................................................... - 134 -
6.6.1 Automatic Processing Mode .......................................................................................................- 134 -
6.6.2 Processing at arbitrary program line or with arbitrary tool ........................................................- 135 -
6.6.2.1 Start from “nth” line(block) ............................................................................................ - 135 -
6.6.2.2 Start from “N**” line ...................................................................................................... - 135 -
6.6.3 Start Program ..............................................................................................................................- 135 -
6.6.4 Halt Program ...............................................................................................................................- 135 -
6.6.5 Emergency Stop ..........................................................................................................................- 135 -
6.6.6 Alarm .......................................................................................................................................... - 136 -
6.6.7 Indicator Light Output................................................................................................................- 137 -
6.6.8 DNC function ............................................................................................................................. - 137 -
6.6.8.1 RS232-DNC .................................................................................................................... - 137 -
6.6.8.2 USB-DNC ........................................................................................................................ - 137 -
6.7 External Electrical Connection..............................................................................................................- 137 -
6.7.1 Limitation ................................................................................................................................... - 137 -
6.7.1.1 Software limitation .......................................................................................................... - 138 -
6.7.1.2 External Switch for limitation ......................................................................................... - 138 -
6.7.1.3 Suggestion Usage ............................................................................................................ - 138 -
6.7.2 External Switch for Power ON/OFF .......................................................................................... - 139 -
6.8 Diagnosis ............................................................................................................................................... - 139 -
6.9 Programming Operation ........................................................................................................................ - 142 -
6.9.1 Editing ........................................................................................................................................ - 142 -
6.9.2 Copy............................................................................................................................................- 144 -
6.9.3 Delete ..........................................................................................................................................- 144 -
6.9.4 Rename ....................................................................................................................................... - 144 -
6.9.5 Information................................................................................................................................. - 144 -
6.9.6 Compile ................................................................................................................................ ...... - 145 -
6.9.7 Folder management.................................................................................................................... - 145 -
6.9.8 Execute Program ........................................................................................................................ - 145 -
6.9.9 Communication .......................................................................................................................... - 145 -
6.9.10 U-disk management..................................................................................................................- 145 -
X
6.9.10.1 Function Keys of USB-disk ....................................................................................... . - 146 -
6.9.10.2 Management of Processing Program ............................................................................ - 146 -
6.9.10.3 Management of Parameters & Software ....................................................................... - 147 -
Chapter 7 Parameter List .............................................................................................................................. - 148 -
7.1 User Parameter ...................................................................................................................................... - 149 -
7.2 Speed parameter .................................................................................................................................... - 154 -
7.3 Axis parameter ....................................................................................................................................... - 164 -
7.4 Tool parameter ....................................................................................................................................... - 173 -
7.5 Other Parameter ..................................................................................................................................... - 174 -
7.6 Workpiece Coordinate Parameter ..........................................................................................................- 182 -
7.6.1 How to set up the workpiece coordinate system? ...................................................................... - 183 -
7.6.2 How to adjust the offset value after set well? ............................................................................ - 184 -
7.7 Password ................................................................................................................................................ - 184 -
7.8 Redeem.................................................................................................................................................. - 185 -
7.8.1 Radius Compensation.................................................................................................................- 185 -
7.8.2 Length of redeem........................................................................................................................- 186 -
7.8.3 Tool Sets List ............................................................................................................................. . - 187 -
7.8.4 Set quantity................................................................................................................................. - 187 -
7.9 Screw Compensation............................................................................................................................. - 188 -
Chapter 8 Installation & Connection .............................................................................................................. - 191 -
8.1 System Installation ................................................................................................................................ - 191 -
8.2 System installation dimension ...............................................................................................................- 191 -
8.3 System Rear View ............................................................................................................................. .....- 192 -
8.4 Interface Connection Graph.................................................................................................................. - 193 -
8.4.1 Communication Socket (Female/DB9) ...................................................................................... - 193 -
8.4.2 CN4 Turret Socket (Female/DB15) ............................................................................................- 194 -
8.4.3 CN9 Spindle Encoder Socket (Female/DB9) .............................................................................- 195 -
8.4.4 CN3 IO1 Control Socket (Female/DB25) ..................................................................................- 196 -
8.4.5 CN10 IO2 Socket (Female/DB25) ............................................................................................. - 197 -
8.4.6 CN16 IO3 Socket (Female/DB26) ............................................................................................. - 198 -
8.4.7 CN5 XYZ Drive Socket (Male/DB25) ...................................................................................... - 199 -
8.4.8 CN6 AB Drive Socket (Male/DB15) ......................................................................................... - 200 -
8.4.9 CN11 MPG/Handheld Box Socket (Male/DB15) ......................................................................- 201 -
8.6 Daily Maintenance and Repair .............................................................................................................. - 205 -
8.6.1 Maintain ............................................................................................................................. .........- 205 -
8.6.2 Ordinary Problem ....................................................................................................................... - 206 -
Appendix I: Wiring Diagram of CN3 Plug ..................................................................................................... - 207 -
Appendix II: Wiring Diagram of CN10 Plug ..................................................................................................- 208 -
Appendix III: Wiring Diagram of CN4 Plug .................................................................................................. - 209 -
Appendix IV Operational Panel .......................................................................................................................- 210 -
XI
Chapter 1 Preface
CNC machine tool is an electron-mechanical integrated product, composed of Numerical
Control Systems of Machine Tools, machines, electric control components, hydraulic components,
pneumatic components, lubricant, coolant and other subsystems (components), and CNC systems of
machine tools are control cores of CNC machine tools. CNC systems of machine tools are made up
of computerized numerical control(CNC), servo (stepper) motor drive devices, servo (or stepper)
motor and etc.
SZGH-CNC1000MDb series CNC controller is the newest universal CNC system for milling
machine, drilling machine, boring machine , which is developed by our company. The control circuit
is using the latest industrial high-speed ARM 11 processor, large-scale field and programmable FPGA
technology, multi-layer PCB, the machine adopts the high integrated chip and surface mount
components, the structure is more compact and reasonable so that make sure the reliability and
stability of the system.
SZGH-CNC1000MDb series CNC controller can control four feeding axes, two analog spindles,
2ms interpolation in real-time control with high speed (5MHz Pulse Output Frequency) and 0.1um
precision,which obviously improve the efficiency, precision and surface quality of processing parts.
Adopt 800x600 dot matrix TFT LCD adaptive brightness LCD displayer, LED backlight brightness
uniformity and long service life, and overcomes the display brightness by environmental temperature
changes the shortcoming. Full screen English menu display, operation issimple and convenient.
This manual introduce the programming and using method of milling system in details.
-1-
1.1 Characteristics
⚫ 1) 800*600 8.4 inch real color LCD Display
⚫ 2) Support ATC function, Macro function and PLC function
⚫ 3) Support Linear tool magazine,umbrella tool magazine,arm type tool magazine
⚫ 4) 128MB Memory, 100Mb user store room
⚫ 5) 2MHz Pulse Output Frequency, Default Pulse equivalent is 1um.
⚫ 6) PLC On-line Display,Monitor & Design
⚫ 7) High anti-jamming switch power(220VAC -> 24VDC & 5VDC)
⚫ 8) With USB interface, for upgrade & copy programs
⚫ 9) Fully English Display & keys,easy to operate
⚫ 10) Analog voltage output of 0~10V in two channels, support double spindles
⚫ 11) Adapted servo spindle can realize position,rigid tapping,threading of spindle
⚫ 12) Basic I/Os : 56*32
⚫ 13) Built-in screw compensation,Reverse backlash compensation
⚫ 14) English menu, program and interface, full screen edition
⚫ 15) Support macro variable dialog box & Running program by input points
-2-
• I/Os : 56*32 I/Os
• Support On-line display,monitor & alter ladder
Man-machine interface
• 8.4'' large screen real-color LCD , the resolution is 480 000
• Display in Chinese or English
• Display in 3D tool path
• Real-time clock
• Operation management
• Operate mode:Auto, Manual, MDI, mechanical zero return, MPG/single step。
• Operation authority of multiple-level management
• Alarm record
Edit program
• Program capacity: 128M
• Editing function: program/block/characters research ,rewriting and deleting
• Program format: ISO code,support Macro command programming, programming of relative
coordinate ,absolute coordinate and hybrid coordinate
• Calling program: Support macro program ,subprogram
Safety function
• Emergency stop
• Hardware travel limit
• Software travel limit
• Data restoring and recovering
• User-defined alarm hint
-3-
1.4 G Code List
CODE Description CODE Description
G15 Polar coordinate command cancel G302 Y-axis Return to zero point of coordinate
G16 Polar coordinate command G303 Z-axis Return to zero point of coordinate
G12 Programmable mirror image Cancel G263 Z-axis Return to starting point of program
G11 Programmable mirror image G264 A-axis Return to starting point of program
G60 Exact stop & position G265 B-axis Return to starting point of program
G66 Macro command mode calling G611 X-axis return to position of G25
G67 Macro program mode calling calling G612 Y-axis return to position of G25
G68 Constant surface speed control G613 Z-axis return to position of G25
G69 Constant surface speed control cancel G614 A-axis return to position of G25
G73 High Speed Peck Drilling Cycle G615 B-axis return to position of G25
G80 Canned cycle for drilling cancel G28 Return to home of machine
-4-
G82 Boring Stage hole cycle G282 Y-axis return to home of machine
G83 Deep hole drilling cycle G283 Z-axis return to home of machine
G112 Finishing in CCW full circle G40 Tool nose radius compensation cancel
G113 Finishing in CW full circle G41 Tool nose radius left compensation
G132 CCW rectangle outer roughing G45 Polar coordinate command cancel
G136 CCW rectangle groove finishing G120 Tool changing for linear tool magazine
G137 CW rectangle groove finishing G121 Tool changing for umbrella tool magazine
G138 CCW rectangle outer finishing G122 Tool changing for Servo tool magazine
-5-
Chapter 2 Programming
CNC milling System is highly effective automation equipment according to programmed
program to process workpiece. Programming is using the CNC system control language according
to the requirement and drawing of the workpiece to describe the processing trajectory and the
assistant action. Ideal system not only could promise process qualified workpiece, but also make the
functions of milling reasonable application and fully use, so it is very important to programming,
this chapter will introduce many kinds of instructions and usage of CNC program, please read
carefully.
+Z
+Z +Y
+Y
+X +X
-7-
b)Tool movement along an arc
-8-
Symbols of the programmed commands G01, G02, ... are called the preparatory function and
specify the type of interpolation conducted in the control unit.
Fig2.1.3 Interpolation
Note: Some machine move tables instead of tools but this manual assumes that tools are moved against
workpieces.
- 10
-
Fig2.1.6 Coordinate System
The following two coordinate systems are specified at different locations:(See chapter 3.14).
(1) Coordinate system on part drawing
The coordinate system is written on the part drawing. As the program data, the coordinate
- 11
-
values on this coordinate system are used.
(2) Coordinate system specified by the CNC
The coordinate system is prepared on the actual machine tool table. This can be achieved
by programming the distance from the current position of the tool to the zero point of the coordinate
system to be set.
The tool moves on the coordinate system specified by the CNC in accordance with the command
program generated with respect to the coordinate system on the part drawing,and cuts aworkpiece
into a shape on the drawing.
Therefore, in order to correctly cut the workpiece as specified on the drawing, the two
coordinate systems must be set at the same position.
To set the two coordinate systems at the same position, simple methods shall be used according
to workpiece shape, the number of machining.
- 12
-
(1) Using a standard plane and point of the workpiece
- 13
-
(2) Mounting a workpiece directly against the jig
(3) Mounting a workpiece on a pallet,then mounting the workpiece and pallet on the jig
2.1.5 Indicated
Command for moving the tool can be indicated by absolute command or incremental
command.(See chapter 3.16)
(a) Absolute Command: the tool moves to a point at “the distance from zero point of the
- 14 -
coordinate system” that is to the position of the coordinate values.
- 15 -
(b) Incremental Command: Specify the distance from the previous tool position to the next
tool position.
- 17 -
2.2 Configuration of Program
A group of commands given to the CNC for operating the machine is called the program. User
needs to compile part programs according to instruction formats of CNC system.By specifying the
commands, the tool is moved along a straight line or an arc, or the spindle motor is turned on and off.
In the program, specify the commands in the sequence of actual tool movements.
- 18 -
See the general structure of program as follows:
Program Name Explanation of program
Program Name: consist of alphabet & number (Eg.: O0001). There are countless programs
stored in the system.To identify it, each program has only one program name(there is no the same
program name).
Note: It doesn’t allow exist blank on program name.
A group of commands at each step of the sequence is called the block. The program consists of
a group of blocks for a series of machining. The number for discriminating each block is called the
sequence number, and the number for discriminating each program is called the program number.
Block: a group of commands at each step of the sequence.
The program consists of a group of blocks for a series of machining. The number for
discriminating each block is called the sequence number, and the number for discriminating each
program is called the program number.
The block and the program have the following configurations.
- 20 -
the same block. The last G instruction is valid when there are more G instructions which are in the
same group in one block.
Word is the basic instruction unit to command CNC system to complete the control
function,composed of an English letter (called instruction address) and the following number
(operation instruction with/without sign). The instruction address describes the meaning of its
following operation instruction and there may be different meaning in the same instruction address
when the different words are combined together. Table 2-1 is Word List of SZGH-CNC1000MDb
system.
Attention 1:“-”means this data can be use.
Attention 2:In front of the numeral is 0, indicated this data only write the effective data.
Attention 3:The digital presentation is a figure, when is two, top digit expression integer figure biggest
figure, after low position expresses decimal point most imperial throne.
Address
Functions meaning Data range
symbol
Name of file Name of machining workpiece 0-9, A-Z
Program
N No. of program segment 0000-9999
segment No.
Preparation Content and mode of designated
G 00-99
function instruction operation
Auxiliary
M Auxiliary operation instruction 00-99
function
Tool chosen THD No. /compensation of Tool 01-99
- 21 -
2.3 Main Program & Subprogram
When machining of the same pattern appears at many portions of a program, a program for the
pattern is created. This is called the subprogram. On the other hand, the original program is called
the main program. When a subprogram execution command appears during execution of the main
program, commands of the subprogram are executed. When execution of the subprogram is finished,
the sequence returns to the main program.
- 22 -
2.5 Tool Figure And Tool Motion By Program
Machining using the end of cutter--tool length compensation function.(See Chapter 3.24)
Usually, several tools are used for machining one workpiece. The tools have different tool
length. It is very troublesome to change the program in accordance with the tools.
Therefore, the length of each tool used should be measured in advance. By setting the
difference between the length of the standard tool and the length of each tool in the CNC (data
display and setting: See chapter 3.24), machining can be performed without altering the program
even when the tool is changed. This function is called tool length compensation.
- 23 -
2.6 Tool Movement Range-Stroke
Limit switches are installed at the ends of each axis on the machine to prevent tools from
moving beyond the ends. The range in which tools can move is called the stroke.
Fig2.6.1 Stroke
Besides strokes defined with limit switches, the operator can define an area which the tool
cannot enter using a program or data in memory. This function is called stroke check. Please check
Chapter 6.7.1.
- 24 -
Chapter 3 G INSTRCUTIONS
3.1 INTRODUCTION
G instruction consists of instruction address G and its following 1 ~ 3 bits instruction value,
used for defining the motion mode of tool relative to the workpiece, defining the coordinates and so
on. Refer to G instructions as Table 3.
G
Instruction value(00~999,the leading zero can be omitted)
Instruction address G
A number of following address G determines the meaning of the command for the concerned
block.
G codes are divided into the following two types
Type Meaning
One-shot G code The G code is effective only in the block in which it is specified
Modal G code The G code is effective until another G code of the same group
is specified.
Eg.: G01 and G00 are modal G codes.
- 25 -
Table 1 Standard G Code List
- 27 -
G97 Constant surface speed control cancel
G98 Return to initial point in canned cycle
10
G99 Return to R point in canned cycle
- 28 -
3.3 Positioning (Rapid Traverse) (G00)
G00 command moves a tool to the position in the workpiece system specified with an absolute or
an incremental command at a rapid traverse rate.
In the absolute command, coordinate value of the end point is programmed.
In the incremental command the distance the tool moves is programmed.
Format: G00 X(U)_ Z(W)_ Y/C(V)_ A_ ;
Either of the following tool paths can be selected according to P9_D6 (Bit 6 of No.9 parameter)
in Other parameter.
Nonlinear interpolation positioning
The tool is positioned with the rapid traverse rate for each axis separately. The tool path is
normally straight.
Linear interpolation positioning
The tool path is the same as in linear interpolation (G01). The tool is positioned within the
shortest possible time at a speed that is not more than the rapid traverse rate for each axis. However,
the tool path is not the same as in linear interpolation (G01).
- 29 -
3.4 Linear Interpolation (G01)
A tools move along a line to the specified position at the feedrate specified in F.
Format: G01 X/U_ Z/W_ Y(C)/V_ A_ F_ ;
X,Z,Y(C), A means motion axis.For an absolute command, the coordinates of an end point ,
and for an incremental command, the distance the tool moves.
F: Speed of tool feed(Feedrate)
The feedrate specified in F is effective until a new value is specified. It need not be specified
for each block.
The feedrate commanded by the F code is measured along the tool path.
If the F code is not commanded, the feedrate is regarded as zero.
For feed–per–minute mode under 2–axis simultaneous control, the feedrate for a movement
along each axis as follows :
The feedrate of the rotary axis is command in the unit of deg/min (the unit is decimal point
position)
When the straight line axis α (such as X, Y, or Z) and the rotating axis β (such as A, B, or C)
are linearly interpolated, the feed rate is that in which the tangential feed rate in the α & β Cartesian
coordinate system is commanded by F (mm/min).
β-axis feedrate is obtained; at first, the time required for distribution is calculated by using the
above formula, then the β-axis feedrate unit is changed to deg/min.
A calculation example is as follow.
G91 G01 X20.0 A40.0 F300.0
This changes the unit of the A axis from 40.0 deg to 40mm with metric input. The time required
for distribution is calculated as follow:
202 + 402
0.14907(min)
300
40
The feedrate for the C axis is 268.3deg/ min
0.14907
- 30 -
In simultaneous 3 axes control, the feedrate is calculated the same way as in 2 axes control.
Example1: (G91) G01 X200.0 Y100.0 F200.0 ;
- 31 -
3.5 Circular Interpolation (G02/G03)
These commands will move a tool along a circular arc.
Format: Arc in the XpYp plane
Code Description
G17 Specification of arc on XpYp plane
G18 Specification of arc on ZpXp plane(Default)
G19 Specification of arc on YpZp plane
G02 Circular Interpolation Clockwise direction (CW)
G03 Circular Interpolation Counterclockwise direction (CCW)
X/Z/Y Position of end point in workpiece coordinate
U/W/V Distance from start point to end point
I X axis distance from start point to center of an arc with sign(radius value)
K Z axis distance from start point to center of an arc with sign(radius value)
J Y axis distance from start point to center of an arc with sign(radius value)
R Arc radius with sign (always with radius value)
F Feedrate along the arc
Direction of circular interpolation: “Clockwise”(G02) and “Counter clockwise”(G03) on the
XpYp plane(ZpXp plane or YpZp plane) are defined when the XpYp plane is viewed in the positive
to negative direction of the Zp axis (Yp axis or Xp axis respectively) in the Cartesian coordinate
system, See the figure below.
If the distance is from the end point to the center of arc , which exceeds by the value in a
parameter of P41 in Speed parameter(Original value+4).
Full–circle programming: When Xp , Yp and Zp are omitted (the end point is the same as the
start point) and the center is specified with I, J and K, a 360° arc (circle) is specified.
Arc radius: The distance between an arc and the center of a circle that contains the arc can be
specified using the radius, R, of the circle instead of I, J and K. In this case, one arc is less than 180°,
and the other is more than 180° are considered. When an arc exceeds 180° is commanded, the radius
must be specified with a negative value. If Xp, Yp and Zp are all omitted, if the end point is located
at the same position as the start point and when R is used, an arc of 0° is programmed.
G02R ; (The cutter does not move.)
Feedrate: The feedrate in circular interpolation is equal to the feed rate specified by the F code,
- 33 -
.-
and the feedrate along the arc(the tangential feedrate of the arc) is controlled to be the specified
feedrate.
The error between the specified feedrate and the actual tool feedrate is ±2% or less. However,
this feed rate is measured along the arc after the cutter compensation is applied.
Note: 1.When I = 0 , J = 0 or K = 0, they can be omitted; one of I, K or R must be input, otherwise the
system alarms.
2. If I,J,K, and R addresses are specified simultaneously, the arc specified by address R takes precedence
and the other are ignored.
3. Processing arc workpiece usually use ball tool(arc tool) in the actual process, it must use function of
tool radius compensation in programming, that's G41 G42 instruction.
4. Arc path can be more than and less than 180° when R is commanded, the arc is more than180° when R
is negative, and it is less than or equal to 180°when R is positive.
5. If an axis not comprising the specified plane is commanded, an alarm is displayed.
6. When an arc having a center angle approaching 180º is specified, the calculated center coordinates may
contain an error. In such a case,specify the center of the arc with I,J,and K.
Example:
- 34 -
.-
- 35 -
.-
- 36 -
3.7 3D Space Arc Interpolation G06
When user don’t know position of circle center & radius, but know coordinate position of 3
points on arc, now user can use G06 code to processing arc, and direction is decided by middle point
between starting point & end point.
Format: G06 X_ Y_ Z_ I_ J_ K_ F_
G06: Modal command
I: Increment Coordinate Value of Middle point relative to starting point in X direction
Radius Designation, with direction;
J: Increment Coordinate Value of Middle point relative to starting point in Y direction
With direction
K: Increment Coordinate Value of Middle point relative to starting point in Z direction
With direction
F: Cutting speed
Note:
1. Middle point is any position point except starting point & end point.
2. System will alarm when three points are at one line.
3. When I,J,K are omitted, default value is I=0, J=0, K=0. But they cannot be omitted all at same
time,otherwise system will alarm.
4. The meanings of I,J,K are similar to I,J,K of G02/G03.
5. G06 cannot be used for processing total round.
6. Compute of G06 command is very large, it only can work smoothly on modbus system, at normal
system, it would work not smoothly.
Example:
G0 X10 Y28 Z10
G06 X30 Y98 Z10 I5 J-6 K-5 F100
X130 Y198 Z120 I55 J-86 K-65
G0 X0 Z0
M02
- 37 -
3.8 Dwell (G04)
By specifying a dwell, the execution of the next block is delayed by the specified time.
Format: G04 P_ ; or G04 X_; or G04 U_;
P_: Specify a time (decimal point not permitted) , unit: ms (millisecond)
X_: Specify a time (decimal point permitted) , unit: s (second)
U_: Specify a time (decimal point permitted) , unit: s (second)
Example 1:
G04 X1; delay 1s.
G04 P1000; delay 1s.
G04 U1; delay 1s.
Special application: G04 can be as an accurate stop instruction, such as processing corner kinds
of workpiece, it appears over cutting sometimes, if use G04 instruction around the corner, it will clear
the over cutting.
Example 2:
- 38 -
.-
- 39 -
.-
- 41 -
3.14 Coordinate System
By teaching the CNC a desired tool position, the tool can be moved to the position. Such a tool
position is represented by coordinates in a Coordinate system. Coordinates are specified using
program axes.
When three programming axes, X-axis, Y-axis and Z-axis are used, coordinates are specified as
follows: X_Y_Z_
This command is referred to as a dimension word.
- 42 -
system is set so that the reference position is at the coordinate values of (α, β) set by P46,P47,P48 &
P49 in Axis parameter .
- 43 -
Warning: When a coordinate system is set with G50 after an external workpiece zero point offset value is
set, the coordinate system is not affected by the external workpiece zero point offset value. When G50 X100Z80;
is specified, for example, the Coordinate system having its current tool reference position at X=100 & Z=80 is
set.
Example:
Example1: Setting the coordinate system by the G92 X25.2 Z23.0; command
(The tool tip is the start point for the program)
- 44 -
Workpiece coordinate system 1 to 6 are established after reference position return after the power
is turned on. When the power is turned on, G54 workpiece Coordinate system is selected.
- 46 -
3.15 Plane Selection(G17/G18/G19)
Select the planes for circular interpolation, cutter compensation, and drilling by G-code.
Format: G17 (Mode,Original) ;XY Plane selection
G18 (Mode) ;ZX Plane selection
G19 (Mode) ;YZ Plane selection
The following table lists G-codes and the planes selected by them.
G code Selected Plane Xp Yp Zp
G17 Xp Yp Plane X-axis or an axis Y-axis or an axis Z-axis or an axis
G18 Zp Xp Plane parallel to it parallel to it parallel to it
G19 Yp Zp plane
Used to ensure circular interpolation plane.this instruction does not produce motion.
- 47 -
3.17 Pole coordinate instruction(G15/G16)
The end point coordinate value can be input in polar Coordinate (Radius & Angle).
The plus direction of the angle is counterclockwise of the selected plane first axis + direction ,
and the minus direction is clockwise.
Both radius & angle can be commanded in either absolute or incremental command(G90,G91).
Format: G G G16; Starting the polar Coordinate command(Polar Mode)
G IP_; Polar coordinate command
...
G15 Cancel Pole coordinate command;
G16 ; Polar Coordinate command
G15 ; Polar coordinate command cancel
G ; Plane selection of the polar Coordinate command(G17,G18 or G19)
G ; G90 specifies the zero point of the work coordinate system as the origin of the
polar Coordinate system, from which a radius is measured. G91 specifies the current position as the
origin of the polar coordinate system,from which a radius is measured.
IP_ ; Specifying the addresses of axes constituting the plane selected for the polar
coordinate system, and their values.
First axis: Radius of pole coordinate.
Second axis: Angle of pole coordinate.
Setting the zero point of workpiece coordinate system as origin of pole coordinate system:
Specify the radius(the distance between the zero point and the point) to be programmed with an
absolute command. The zero point of the work Coordinate system is set as the origin of the polar
coordinate system.When a local coordinate system(G52) is used, the origin of local coordinate system
becomes the center of polar coordinate. As the follow shown:
Setting the current position as the origin of polar coordinate system: Specify the radius (the
distance between the current position and the point) to be programmed with an incremental
command. The current position is set as the origin of the polar Coordinate system.
- 48 -
Example: Bolt hole circle
- 49 -
3.18 Inch/Metric Conversion (G20/G21)
Either inch or metric input can be selected by G code.
Format: G20 ; Inch input
G21 ; mm input
This G code must be specified in an independent block before setting the coordinate system at
the beginning of the program. After the G code for inch/metric conversion is specified, the unit of
input data is switched to the least inch or metric input increment of increment system IS–B or IS–
C. The unit of data input for degrees remains unchanged.
The unit systems for the following values are changed after inch/metric conversion:
➢ Feedrate commanded by F code
➢ Positional command
➢ Work zero point offset value
➢ Tool compensation value
➢ Unit of scale for manual pulse generator
➢ Movement distance in incremental feed
Unit explanations for G20/G21
1. Min unit: 0.0001inch(G20/INCH); 0.001mm(G21/Metric)
2.Command unit of G20/INCH for Position command is inch.
3.Command unit of G20/INCH for Feeding Speed (F) command is inch/min.
4.Unit of G20/INCH for Tool Offset(Redeem)/G54-G59 offset value is inch.
5. Unit of G20/INCH for distance type parameter(like max travel,compensation value,...) will be
to 0.1inch from mm(G21/Metric) ; & change um(G21/Metric) to 0.0001inch(G20/INCH)
6. Unit of G20/INCH for speed type parameters will be to 0.1inch/min from mm/min(Metric).
7.INCH Unit for accelerate type parameters will be 0.1inch/min/s from mm/min/s(Metric)
8.Handwheel Increment(Rate) will be 0.0001inch(*1), 0.001inch(*10), 0.01inch(*100).
9. Pulse equivalent will be changed when G20/INCH,system will adjust automatically.Electric
Ratio is figured out with G21/Metric.
10. Coordinate display of G20/INCH is with 4bits data after dot.
11. Degree unit of G20/INCH is display with 0.1, also 1degree display with 0.1inch.
12.Shift mode between INCH/Metric: run G20/G21 on MDI,reboot CNC.
13. It needs to posit tool again after shift INCH/Metric mode.
When the power is turned on, the G code is the same as that held before the power was turned
off.
Note: 1. G20 and G21 must not be switched during a program.
2. Movement from the intermediate point is the same as that for manual reference position return.The direction
in which the tool moves from the intermediate point is the same as the reference position return direction.
3. When the least input increment and the least command increment systems are different, the maximum
error is half of the least command increment. This error is not accumulated.
4. The inch and metric input can also be switched using setting of data setting.
5. User can ask SZGH or agent/distributor for parameter display unit on CNC with INCH mode before
order.
6. Suggestion that keep one processing mode(Metric/INCH) on one CNC control system.
- 50 -
3.19 Feed Mode
Feedrate of linear interpolation(G01),circular interpolation(G02/G03),etc. are commanded with
numbers after the F code.In cutting feed, the next block is executed so that the feedrate change from
the previous block is minimized.
Format: Feed per minute: G94 ; G code (group 5) for feed per minute
F_ ; Feedrate command (mm/min or inch/min)
Feed per revolution G95 ; G code (group 5) for feed per revolution
F_ ; Feedrate command (mm/rev or inch/rev)
Tangential speed constant control: Cutting feed is controlled so that the tangential feedrate is
always set at a specified feedrate.
- 51 -
a modal code. Once a G95 is specified, it is valid until G94 (feed per minute) is specified.
An override from 0% to 150% can be applied to feed per minute with the switch on the machine
operator’s panel. For detailed information, see the appropriate manual of the machine tool builder.
Fig3.15.3 Feed per revolution
Note: When the speed of spindle is low, feedrate fluctuation may occur. The slower the spindle rotates, the
more frequently feedrate fluctuation occurs.
- 52 -
3.21 Scaling (G36/G37)
A programmed figure can be magnified or reduced.(scaling)
The dimensions specified with X_, Y_, and Z_ can each be scaled up or down with the same or
different rates of magnification. The magnification rate can be specified in the program.
Unless specified in the program, the magnification rate specified in the parameter is applied.
- 53 -
3.22 Programmable mirror image (G11/G12)
A mirror image of a programmed command can be produced with respect to a programmed axis
of symmetry.(See Fig3.16.1)
Format: G11 X_ Y_ (Z_ X_) (Y_ Z_) (mode) ;according to XYZ symmetry axis
G12 (mode,original) ;Cancel Mirror.
Programmable mirror image finish processing of symmetric point in this axis by change the
feeding direction of axis,which is specified by current interpolation plane G17(X_Y_) /G18(Z_X_)
/G19(Y_Z_). The value behind of X_Y_Z_ is the Coordinate value of current coordinate system.
Example of mirror image program
- 55 -
3.23 Rotate Coordinate Instruction (G68/G69)
A programming shape can be rotated, by using this function it becomes possible, for example, to
modify a program using a rotating command when a workpiece has been played with some angle
rotated from the programmed position on the machine. Further, when there is a patter comprising
some identical shapes in the position rotated from a shape, the time required for programming and
the length of the program can be reduced by preparing a subprogram of the shape and calling it after
rotation. In short: By designating a rotation angle with G68 in the program, actual machining will
be performed on the rotated coordinate.
- 56 -
Fig3.17.2 coordinate system rotation
Note: When a decimal fraction is used to specify angular displacement (R_), the 1st digit corresponds to
degree units.
G code for selecting a plane: G17/G18/G19: The G code for selecting a plane(G17 G18 or G19)
can be specified before the block containing the G code for coordinate system rotation(G68). G17,
G18 or G19 must not be designated in the mode of coordinate system rotation.
Incremental command in coordinate system rotation mode:The center of rotation for an
incremental command programmed after G68 but before an absolute command is the tool position
when G68 was programmed.(See Fig3.17.3).
Center of rotation: When α_β_ is not programmed, the tool position when G68 was programmedis
assumed as the center of rotation.
Coordinate system rotation cancel command: The G code used to cancel coordinate system
rotation (G69) may be specified in a block in which another command is specified.
Tool compensation: Cutter compensation, tool length compensation, tool offset, and other
compensation operations are executed after the Coordinate system is rotated.
Limitations:
Commands related to reference position return and the coordinate system: In coordinate system
rotation mode, G codes related to reference position return (G28,G26,G61,G30, etc.) and these for
changing the coordinate system(G52-G59, etc.)must not be specified. If any of these G codes is
necessary, specify it only after canceling coordinate system rotation mode.
Incremental command: The first move command after the coordinate system rotation cancel
command (G69) must be specified with absolute values. If an incremental move command is
specified, correct movement will not be performed.
Example1: Absolute/Incremental Position commands:
N1 G01 X-500 Y-500 F2000 G17;
N2 G68 X700 Y300 R60;
N3 G90 G01 X0 Y0 F2000;
(G91 X500.0 Y500.0)
N4 G91 X1000
N5 G02 Y1000 R1000
N6 G03 X-1000 I-500 J-500;
N7 G01 Y-1000
N8 G69
- 57 -
N9 G90 X-500 Y-500
N10 M02;
- 51 -
3.24 Tool Length Offset (G43/G44/G49)
This function can be used for setting the difference between tool length assumed during
programming and the actual tool length of the tool used into the offset memory. It is possible to
compensate the difference without changing the program.
Specify the direction of offset with G43 or G44. Select a tool length offset value from the
offset memory by entering the corresponding address and number(H code).
- 52 -
G43 and G44 are modal G codes.They are valid until another G code belonging to the same
group is used.
Warning: When the tool length offset value is changed due to a change of offset number, the offset value
changes to the new tool length offset value, the new tool length offset value is not added to the old tool length
offset value.
To cancel tool length offset, specify G49 or H0. After G49 or H0 is specified,the system
immediately cancels the offset mode.
Note: The tool length offset value corresponding to offset No.0, that is, H0 always means 0.It is impossible
to set any other tool length offset value to H0.
Example1: H1: tool length offset value is 20.0 (Tool Length Offset A)
H2: tool length offset value is 30.0
G90 G43 Z100.0 H1; Z will move to 120.0
G90 G43 Z100.0 H2; Z will move to 130.0
Example2: Offset in X and Y axes.(Tool Length Offset B)
G19 G43 H_ ; Offset in X-axis
G18 G43 H_; Offset in Y-axis
Example3: H1=-4.0(Tool length offset value)
N1 G91 G00 X120.0 Y80.0; N5 G0 Z21.0 ; N9 X50.0 Y30.0 ; N13 X-200.0 Y-60.0 ;
N2 G43 Z-32.0 H1; N6 X30.0 Y-50.0 ; N10 G01 Z-25.0 ; N14 M2 ;
N3 G01 Z-21.0 F1000 ; N7 G01 Z-41.0 ; N11 G04 P2000 ;
N4 G04 P2000 ; N8 G00 Z41.0 ; N12 G00 Z57.0 H0 ;
- 53 -
3.25 Tool Offset(45/G46/G47/G48)
The programmed travel distance of the tool can be increased or decreased by a specified tool
offset value.The tool offset function can also be applied to an additional axis.
G46
G47
G48
- 54 -
Tool offset value
Actual movement position
In the absolute mode, the travel distance is increased or decreased as the tool is moved from the
end position of the previous block to the position specified by the block containing G45 to G48.
If a move command with a travel distance of zero is specified in the incremental command (G91)
mode, the tool is moved by the distance corresponding to the specified tool offset value.
If a move command with a travel distance of zero is specified in the absolute command (G90)
mode, the tool is not moved.
Once selected by D code, the tool offset value remains unchanged until another tool offset value
is selected. D0 always indicates a tool offset value of zero.
Warning: 1. When G45-G48 is specified to n axes (n=1-4) simultaneously in a motion block, offset is applied
to all n axes. When the cutter is offset only for cutter radius or diameter in taper cutting, over-cutting or
undercutting occurs.Therefore, use cutter compensation (G40/G41/G42) shown in chapter 3.26.
2. Tool offset can be applied to circular interpolation(G02,G03) with the G45 to G48 commands only for
1/4 and 3/4 circles using addresses I, J and K by the parameter setting, providing that the coordinate rotation
be not specified at the same time. This function is provided for compatibility with the conventional CNC tape
without any cutter compensation. The function should not be used when a new CNC program is prepared.
- 55 -
Program
N1 G46 G00 X_ Y_
N2 G45 G01 Y_ F_
N3 G45 G03 X_ Y_ I_ ;
N4 G01 X_
Program
N1 G91 G46 G00 X80.0 Y50.0 D01 N2 G47 G01 X50.0 F120.0 N3 Y40.0
N4 G48 X40.0 N5 Y-40.0; N6 G45 X30.0
N7 G45 G03 X30.0 Y30.0 J30.0 N8 G45 G01 Y20.0 N9 G46 X0
N10 G46 G02 X-30.0 Y30.0 J30.0 N11 G45 G01 Y0 ; N12 G47 X-120.0
N13 G47 Y-80.0 N14 G46 G00 X-80.0 Y-50.0
N9: Decrease toward the positive direction for movement amount “0”. The tool moves in the -X
direction by the offset value. N11:Decrease toward the positive direction for movement amount “0”.
The tool moves in the +Y direction by the offset value
- 56 -
3.26 Tool Radius Compensation C (G40/G41/G42)
When the tool is moved, the tool path can be shifted by radius of the tool.
To make an offset as large as the radius of the tool, CNC firstly establish offset vector with a
length equal to the radius of the tool(start-up). The offset vector is perpendicular to tool path. The
tail of vector is on the workpiece side and the head position to the center of the tool.
If a linear interpolation or circular interpolation command is specified after start-up, the tool
path can be shifted by the length of the offset vector during machining.
To return the tool to the start position at end of machining, cancel the tool compensation mode.
Start
- 57 -
interpolation (G01), or circular interpolation (G02, G03). If two or more blocks that do not movethe
tool (miscellaneous function, dwell, etc.) are processed in the offset mode, the tool will make either
an excessive or insufficient cut. If the offset plane is switched in the offset mode, cnc system will
alarm and the tool is stopped.
Offset mode cancel: In the offset mode, when a block which satisfies any one of thefollowing
conditions is executed, the CNC enters the offset cancel mode, and the action of this block is called
the offset cancel.
1. G40 has been commanded.
2. 0 has been commanded as the offset number for tool compensation.
When performing offset cancel, circular arc commands (G02 and G03) are not available. If a
circular arc is commanded, cnc system will alarm & stops tool.
In the offset cancel, the control executes the instructions in that block and the block in the
cutter compensation buffer. In the meantime, in the case of a single block mode, after reading one
block, the control executes it and stops. By pushing the cycle start button once more, one block is
executed without reading the next block. Then the control is in the cancel mode, and normally, the
block to be executed next will be stored in the buffer register and the next block is not read into the
buffer for tool compensation.
Fig3.20.4 Tool center paths when positive and negative tool compensation values are specified.
Note: 1. The tool compensation value corresponding to offset No.0, that is, D0 always means 0. It is
impossible to set D0 to any other offset amount.
2. Tool compensation C can be specified by D code.
3. Setup & Cancel of tool radius offset C are set by P1 & P2 on tool parameter.
The offset vector is the two dimensional vector that is equal to the tool compensation value
assigned by D code. It is calculated inside the control unit, and its direction is updated in accordance
with the progress of the tool in each block. The offset vector is deleted by reset.
Specify a tool compensation value with a number assigned to it. The number consists of 01 to
99 after address D (D code). The D code is valid until another D code is specified. The D code is used
to specify the tool offset value as well as the cutter compensation value.
Offset calculation is carried out in the plane determined by G17, G18 and G19, (G codes for
plane selection). This plane is called the offset plane. Compensation is not executed for the
Coordinate of a position which is not in the specified plane. The programmed values are used as they
are. In simultaneous 3 axes control, the tool path projected on the offset plane is compensated.
The offset plane is changed during the offset cancel mode. If it is performed during the offset
mode, CNC system will alarm and stop moving.
Example:
G54 X0 Y0 Z0 ; ........................................ Specifies a workpiece coordinates system.
The tool is positioned at the start position (X0, Y0, Z0).
N1 G90 G17 G00 G41 D03 X250.0 Y550.0; Starts tool compensation(start-up). Tool is shifted to the
left of the programmed path by the distance specified in D03.
In other words the tool path is shifted by the radius of the tool
(offset mode)Because D03 is set to 15 beforehand(the radius of
the tool is 15mm).
N2 G01 Y900.0 F150 ; ................................... Specifies machining from P1 to P2.
N3 X450.0 ; .................................................... Specifies machining from P2 to P3.
N4 G03 X500.0 Y1150.0 R650.0 ; ................. Specifies machining from P3 to P4.
N5 G02 X900.0 R-250.0 ; .............................. Specifies machining from P4 to P5.
N6 G03 X950.0 Y900.0 R650.0 ;.................. Specifies machining from P5 to P6.
- 59 -
N7 G01 X1150.0 ; .......................................... Specifies machining from P6 to P7.
N8 Y550.0 ; ........................................ Specifies machining from P7 to P8.
N9 X700.0 Y650.0 .............................. Specifies machining from P8 to P9.
N10 X250.0 Y550.0 ............................ Specifies machining from P9 to P1.
N11 G00 G40 X0 Y0 ........................... Cancel the offset mode.
The tool is returned to the start position (X0, Y0, Z0).
- 60 -
3.27 Details of Tool Compensation C
This section provides a detailed explanation of the movement of the tool for tool compensation
C outlined in Section 3.20.
3.27.1 Inside and outside
When an angle of intersection created by tool paths specified with move commands for two
blocks is over 180º, it is referred to as “Inside”. When the angle is between 0º and 180º, it is referred
to as “Outside”.
Inside Outside
(b) Tool movement around the outside of a corner at obtuse angle (90≤α<
- 61 -
Linear Circular (A type) Linear Circular (B type)
d)Tool movement around outside linear to linear at an acute angle less than 1 degree ( α<1º)
G91 G40... ;
...
N6 X100.0 Y100.0 ;
N7 G41 X0 ;
N8 Y-100.0 ;
N9 Y-100.0 X100.0 ;
(b) Tool movement around the inside (α<1º) with an abnormally long vector, linear→linear.
(d) Tool movement around the outside corner at an acute angle (α<90º)
- 64 -
4) Tool Movement in Offset Mode Cancel
Tool path has two types, A and B; and they are selected by P2 in Tool parameter.
(a) Tool movement around an inside corner (180º≤α)
Linear Linear Linear Circular
- 65 -
Circular Linear(A type) Circular Linear(B type)
(d) Tool movement around outside linear to linear at an acute angle less than 1 degree(α<1º)
- 66 -
3.28 Canned Cycle (G73-G89)
Canned cycles make it easier for the programmer to create programs. With a canned cycle, a
frequently-used machining operation can be specified in a single block with a G function; without
canned cycles,normally more than one block is required. In addition, the use of canned cycles can
shorten the program to save memory.
Table3.22 Canned Cycles
G Feed mode Operation at the Retraction Application
code (-Z direction) bottom of hole (+Z direction)
G73 Intermittent feed - Rapid traverse High-speed peck drilling cycle
G74 Feed Dwell SP CW Feed Left-hand tapping cycle
G76 Feed Oriented SP Stop Rapid traverse Fine boring Cycle
G80 - - - Cancel
G81 Feed - Rapid traverse Drilling cycle,spot drilling cycle
G82 Feed Dwell Rapid traverse Drilling cycle, spot drilling cycle
G83 Intermittent feed - Rapid traverse Peck drilling cycle
G84 Feed Dwell SP CCW Feed Tapping cycle
G85 Feed - Feed Boring cycle
G86 Feed Spindle Stop Rapid traverse Boring cycle
G87 Feed Spindle CW Rapid traverse Back boring cycle
G89 Feed Dwell Feed Boring cycle
A canned cycle consists of a sequence of six operations(Fig3.22.1)
Operation 1 Position of X and Y axis(including also another axis)
Operation 2 Rapid traverse up to point R level
Operation 3 Hole Machining
Operation 4 Operation at the bottom of a hole
Operation 5 Retraction to point R level
Operation 6 Rapid traverse up to the initial point
- 67 -
The positioning plane is determined by plane selection code G17,G18 or G19.The positioning
axis is an axis other than the drilling axis.P47 in Speed parameter + 2 is set for this function.
Although canned cycles include tapping and boring cycles as well as drilling cycles, in this
chapter, only the term drilling will be used to refer to operations implemented with canned cycles.
The drilling axis is a basic axis(X,Y, or Z) not used to define the positioning plane, or any
axis parallel to that basic axis.The axis(basic axis or parallel axis) is used as the drilling axis is
determined according to the axis address for the drilling axis specified in the same block as G codes
G73 to G89.If no axis address is specified for the drilling axis, the basic axis is assumed tobe the
drilling axis.
G code Positioning Plane Drilling axis
G17 Xp-Yp plane Zp
G18 Zp-Xp plane Yp
G19 Yp-Zp plane Xp
Xp: X axis or an axis parallel to the X axis
Yp: Y axis or an axis parallel to the Y axis
ZP: Z axis or an axis parallel to the Z axis
Travel distance along the drilling axis varies for G90 and G91 as follows:
G90(Absolute command) G91(Incremental Command)
Drilling Mode: G73, G74 and G81 to G89 are modal G codes and remain in effect until canceled. When
in effect, the current state is the drilling mode. Once drilling data is specified in the drilling mode, the
data is retained until modified or canceled.
Specify all necessary drilling data at the beginning of canned cycles; when canned cycles are
being performed, specify data modifications only.
Return point level G98/G99: When the tool reaches the bottom of a hole, the tool may be
returned to point R or to the initial level. These operations are specified with G98 and G99. The
following illustrates how he tool moves when G98 or G99 is specified. Generally, G99 is used for
the first drilling operation and G98 is used for the last drilling operation.
- 68 -
The initial level doesn’t change even when drilling is performed in the G99 mode.
G98 (Return to initial level) G99(Return to point R level)
Repeat: To repeat drilling for equally-spaced holes, specify the number of repeats in L_.
K is effect only within the block where it is specified. The max value of L is 9999. Default=1.
To cancel a canned cycle, use G80 or a group 01 G code.
Group 01 G codes
G00: Positioning (Rapid traverse)
G01: Linear interpolation
G02: Circular interpolation or helical interpolation (CW)
G03: Counter-Circular interpolation or helical interpolation (CCW)
Symbol in figures: Subsequent sections explain the individual canned cycles. Figures in these
explanations use the following symbols:
- 69 -
3.28.1 High-speed Peck Drilling Cycle(G73)
This cycle performs high-speed peck drilling. It performs intermittent cutting feed to the
bottom of a hole while removing chips from the hole.
Format: G73 X_Y_Z_R_Q_F_L_ ;
X_Y_: hole position data
Z_: The distance from point R to bottom of the hole
R_: The distance from the initial level to point R level
Q_: Depth every time
F_: Cutting feedrate
L_: Number of repeats
- 70 -
The high-speed peck drilling cycle performs intermittent feeding along the Z-axis. When this
cycle is used,chips can be removed from the hole easily,and a smaller value can be set for retraction.
This allows drilling to be performed effectively.
P1 in User parameter sets the value of clearance(d).
The tool is retracted in rapid traverse.
Before specifying G73, rotate the spindle using a miscellaneous function (M code).When the
G73 code and an M code are specified in the same block, the M code is executed at the time of the
first positioning operation. The system then proceeds to the next drilling operation.
When a tool length offset(G43 G44 or G49) is specified in the canned cycle, the offset is applied
at the time of positioning to point R.
Note: 1. In a block that doesn't contain R,Q , drilling isn't performed.Specify R and Q in blocs that perform
drilling. If they are specified in a block that doesn't perform drilling, they cannot be stored as modal data.
2. Do not specify a G code of the 01 group(G00-G03) and G73 in a single block.Otherwise, G73 will be
canceled.
3. In the canned cycle mode, tool offsets are ignored.
4. Before the drilling axis can be changed, the canned cycle must be canceled.
Example:
M3 S2000 ; Cause the spindle to start rotating
G90 G99 G73 X300. Y-250. Z-150. R-100. Q15. F120. ;
Position, Drill 1st hole, then return to point R.
Y-550. ; Position, Drill 2nd hole, then return to point R.
Y-750. ; Position, Drill 3rd hole, then return to point R.
X1000. ; Position, Drill 4th hole, then return to point R.
Y-550. ; Position, Drill 5th hole, then return to point R.
G98 Y-750. ; Position, Drill 6th hole, then return to the initial level.
G80 G28 G91 X0 Y0 Z0; Return to the reference position.
M05 ; Cause the spindle to stop rotating
- 71 -
3.28.2 Left-handed Peck Rigid Tapping Cycle (G74)
This cycle performs left-handed tapping. In the left-handed tapping cycle, when the bottom of
the hole has been reached, the spindle rotates clockwise.
Tapping a deep hole in rigid tapping mode may be difficult due to chips sticking to the tool or
increased cutting resistance. In such cases, the peck rigid tapping cycle is useful.
This cycle may be performed in standard mode or rigid tapping mode.
In standard mode, the spindle is rotated and stopped along with a movement along the tapping
axis using miscellaneous functions M03 (Rotating the spindle clockwise), M04 (rotating the spindle
counterclockwise), and M05 (Stopping the spindle) to perform tapping following with SP-Encoder.
In Rigid tapping mode, tapping is performed by controlling the spindle motor as if it were a
servo motor and by interpolation between the tapping axis and spindle. When tapping is performed
in rigid mode, the spindle rotates one turn every time a certain feed(thread lead) which takes place
along the tapping axis. This operation doe not vary even during acceleration or deceleration.
Format: G74 X_ Y_ Z_ R_ P_ K_ Q_ L_ S_ ;
X_ Y_ : Hole position data
Z_ : The distance from point R to the bottom of the hole
R_ : The distance from initial level to point R level
P_ : Dwell time unit:s
K_ : Pitch
Q_ : Depth of cut for each cutting feed
L_ : Number of repeats (if required)
S_ : Spindle feedrate
G74(G98) G74(G99)
Tapping is performed by turning the spindle counterclockwise. When the bottom of the hole has
been reached, the spindle is rotated clockwise for retraction. This creates a reverse thread.
- 72 -
Feedrate overrides are ignored during left-handed tapping. A feed hold doesn't stop the machine
until the return operation is completed.
Before specifying G74, use a miscellaneous function(M code) to rotate the spindle
counterclockwise.
When the G74 command and an M code are specified in the same block, the M code is executed
at the time of the first position operation. The system then proceeds to the next drilling operation.
When a tool length offset (G43, G44, or G49) is specified in the canned cycle, the offset is
applied at the time of positioning to point R.
Note: 1. Before the drilling axis can be changed, the canned cycle must be canceled.
2. In a block that does not contain R, K , drilling is not performed.
3. Specify P in blocs that perform drilling. If they are specified in a block that doesn't perform drilling,
they cannot be stored as modal data.
4. Do not specify a G code of the 01 group(G00-G03) and G73 in a single block.Otherwise, G73 will be
canceled.
5. In the canned cycle mode, tool offsets are ignored.
6. During rigid tapping, Spindle-feedrate override and Feed-feedrate override don’t work.
Parameters Sets for Rigid Tapping:
1, Standard tapping, following Spindle_Encoder mode, P411=2 in Axis parameter, CNC
system must be configured with SP-encoder
Special Note: When the transmission ratio between Spindle and Encoder is not 1:1, it must be configured
with SZGH Transfer Board & modify P412 & P413 in Axis parameter;
412, Number of spindle teeth
413, Number of encoder teeth
2, Rigid tapping, interpolation between Spindle & Drilling axis, P405=5, P410=94, P411=3 in
Axis parameter..
M75: Shift control mode of spindle to Position Control Mode(Pulse+Direction). After rigid
tapping, M74, cancel position control mode of spindle.
Rigid mode eliminates the need to use a floating tap required in the standard tapping mode,
thus allowing faster and more precise tapping.
Example:
N1 M4 S100 ; Cause the spindle to start rotating CCW.
N2 G90 G99 G74 X300. Y-250. Z-150. R-100. K5 ;
Position, tapping hole 1, then return to point R.
N3 Y-550. ; Position, tapping hole 2, then return to point R.
N4 Y-750. ; Position, tapping hole 3, then return to point R.
N5 X1000. ; Position, tapping hole 4, then return to point R.
N6 Y-750. ; Position, tapping hole 5, then return to point R.
N7 G98 Y-550. K5; Position, tapping hole 6, then return to the initial level
N8 G80 G28 G91 X0 Y0 Z0; Return to the reference position.
N9 M05; Cause the spindle to stop rotating.
- 73 -
3.28.3 Fine Boring Cycle (G76)
The fine boring cycle bores a hole precisely. When the bottom of the hole has been reached, the
spindle stops, and the tool is moved always from the machined surface of the workpiece and retracted
with the direction that set by P3 in User parameter.
Format: G76 X_ Y_ Z_ R_ Q_ P_ F_ L_ ;
X_Y_ : Hole position data.
Z_ : The distance from point R to the bottom of the hole.
R_ : The distance from the initial level to point R level.
Q_ : Shift amount at the bottom of a hole.
P_ : Dwell time at the bottom of a hole. Unit:s.
F_ : Cutting feedrate.
L_ : Number of repeats (if required) .
G76(G98) G76(G99)
Warning: Q(shift at the bottom of a hole) is a modal value retained within canned cycles. It must be specified
carefully because it is also used as the depth of cut for G73 and G83.
Direction of shift after oriented spindle stop is set by P3 in User parameter.
- 75 -
3.28.5 Drilling cycle, Spot Drilling (G81)
This cycle is used for normal drilling, Cutting feed is performed to bottom of the hole. Then
the tool retracted from the bottom of the hole in rapid traverse.
Format: G81 X_ Y_ Z_ R_ F_ L_ ;
X_Y_ : Hole position data
Z_ : The distance from point R to bottom of the hole
R_ : The distance from initial level to point R level
F_ : Cutting feedrate
L_ : Number of repeats (if required)
G81 (G98) G81 (G99)
After positioning along the X axis and Y axis, rapid traverse is performed to point R. Drillingis
performed from point R to point Z. Then the tool is retracted in rapid traverse.
Before specifying G81, use miscellaneous function (M code) to rotate the spindle. When the
G81 command and an M code are specified in the same block, the M code is executed at the time of
the first positioning operation. The system then proceeds to the next drilling operation.
When a tool length offset (G43, G44 or G49) is specified in the canned cycle, the offset is
applied at the time of position to point R.
Note: In the canned cycle mode, tool offsets are ignored.
Example:
M3 S2000 ; Cause the spindle to start rotating
G90 G99 G81 X300 Y-250 Z-150 R-100 F120 ;
Position, drill hole 1, then return to point R.
Y-550 ; Position, drill hole 2, then return to point R.
Y-750 ; Position, drill hole 3, then return to point R.
X1000 ; Position, drill hole 4, then return to point R.
G98 Y-750 ; Position, drill hole 5, then return to the initial level.
G80 G28 G91 X0 Y0 Z0 ; Return to the reference position
M5 ; Cause the spindle to stop rotating
- 76 -
3.28.6 Drilling Cycle Counter Boring Cycle (G82)
This cycle is used for normal drilling.Cutting feed is performed to the bottom of the hole. At the
bottom, a dwell is performed, then the tool is retracted in rapid traverse. This cycle is used to drill
holes more accurately with respect to depth.
Format: G82 X_ Y_ Z_ R_ P_ F_ L_ ;
X_ Y_ : Hole position data
Z_ : The distance from R point to bottom of the hole
R_ : The distance from initial level to point R level
P_ : Dwell time at the bottom of a hole. Unit: s.
F_ : Cutting feed rate
L_ : Number of repeats (if required)
G82(G98) G82(G99)
After positioning along the X and Y axis, rapid traverse is performed to point R. Then drilling is performed
from point R to point Z, When the bottom of the hole has been reached, a dwell is performed. Then the
tool is retracted in rapid traverse.
Before specifying G82, use miscellaneous function (M code) to rotate the spindle. When the G82
command and an M code are specified in the same block, the M code is executed at the time of the
first positioning operation. The system then proceeds to the next drilling operation.
When a tool length offset (G43, G44 or G49) is specified in the canned cycle, the offset is
applied at the time of position to point R. In the canned cycle mode, tool offsets are ignored.
Example: M3 S2000 ; Cause the spindle to start rotating
G90 G99 G82 X300. Y-250. Z-150. R-100. P1 F120. ;
Position, drill hole 1, and dwell for 1s at the bottom of the hole, then return to point R.
Y-550. ; Position, drill hole 2, then return to point R.
G98 Y-750. ; Position, drilling hole 3, then return to initial level.
G0 X0 Y0 Z0 ; Return to the zero point.
M05 ; Cause the spindle to stop rotating.
- 77 -
3.28.7 Peck Drilling Cycle (G83)
This cycle performs peck drilling. It performs intermittent cutting feed to the bottom of a
hole while removing shavings from the hole.
Format: G83 X_ Y_ Z_ R_ Q_ F_ L_ ;
X_ Y_ : Hole position data
Z_ : The distance from point R to the bottom of the hole
R_ : The distance from initial level to point R level
Q_ : Depth of cut for each cutting feed
F_ : Cutting speed
L_ : Number of repeats
G83 (G98) G83 (G99)
Q represents the depth of each cutting feed. It must be specified in an incremental value. In the second
and subsequent cutting feed, rapid traverse is performed up to a d point just before where thelast drilling
ended, and cutting feed is performed again. d is set by P2 in User parameter.
Be sure to specify a positive value in Q. Negative values are ignored.
Before specifying G83, use miscellaneous function (M code) to rotate the spindle. When the
G83 command and an M code are specified in the same block, the M code is executed at the time of
the first positioning operation. The system then proceeds to the next drilling operation.
When a tool length offset (G43, G44 or G49) is specified in the canned cycle, the offset is
applied at the time of position to point R. In the canned cycle mode, tool offsets are ignored.
Example: M3 S2000 ; Cause the spindle to start rotating.
G90 G99 G83 X300. Y-250. Z-150. R-100. Q15. F120. ;
Position, drill hole 1, then return to point R.
Y-550.; Position, drill hole 1, then return to point R.
G98 Y-750.; Position, drill hole 1, then return to the initial level.
G80; Cancel canned cycle
M05; Cause the spindle to stop rotating.
- 78 -
3.28.8 Right-handed Peck Rigid Tapping Cycle (G84)
Tapping a deep hole in rigid tapping mode may be difficult due to chips sticking to the tool or
increased cutting resistance. In such cases, the peck rigid tapping cycle is useful.
This cycle may be performed in standard mode or rigid tapping mode.
In standard mode, the spindle is rotated and stopped along with a movement along the tapping
axis using miscellaneous functions M03 (Rotating the spindle clockwise), M04 (rotating the spindle
counterclockwise), and M05 (Stopping the spindle) to perform tapping following with SP-Encoder.
In Rigid tapping mode, tapping is performed by controlling the spindle motor as if it were a
servo motor and by interpolation between the tapping axis and spindle. When tapping is performed
in rigid mode, the spindle rotates one turn every time a certain feed(thread lead) which takes place
along the tapping axis. This operation doe not vary even during acceleration or deceleration.
In this cycle, cutting is performed several times until the bottom of the hole is reached.
Format: G84 X_ Y_ Z_ R_ P_ Q_ K_ L_ S_ ;
X_ Y_ : Hole position data
Z_ : The distance from point R to the bottom of the hole
R_ : The distance from the initial level to point R level
P_ : Dwell time at the bottom of the hole and at point R. Unit s.
Q_ : Depth of cut for each cutting feed
K_ : Pitch of Screw
S_ : Speed of Spindle
L_ : Number of repeats
G84(G98) G84(G99)
After positioning along X and Y axis,rapid traverse is performed to point R. From point R,
cutting is performed with depth Q (depth of each cutting feed), then the tool is retracted by distance
- 79 -
d. When point Z has been reached, after dwell time P, the spindle is stopped, then rotated in the
counter-clockwise direction(CCW) for retraction.
Set the retraction distance, d, P7 in User parameter
Set the retraction mode, P6 in User parameter. 0: Retract with d in rapid traverse, 1: Retract to
point R level.
During rigid tapping,Speed of feeding axes is set by SP_Speed(S) & threading pitch .
Note: 1. Do not specify a G code of the 01 group(G00-G03) and G84 in a single block. Otherwise, G84 will be
canceled and alarm.
2. In a block that does not contain K , rigid tapping is not performed and cannot pass compile.
3. In the canned cycle mode, tool offsets are ignored.
4. Before the drilling axis can be changed, the canned cycle must be canceled. If the drilling axis is
changed in rigid mode, cnc system will alarm.
5. During rigid tapping, Spindle-feedrate override and Feed-feedrate override don’t work.
Parameters Sets for Rigid Tapping:
1, Standard tapping, following Spindle_Encoder mode, P411=2 in Axis parameter, CNC
system must be configured with SP-encoder
Special Note: When the transmission ratio between Spindle and Encoder is not 1:1, it must be configured
with SZGH Transfer Board & modify P412 & P413 in Axis parameter;
412, Number of spindle teeth
413, Number of encoder teeth
2, Rigid tapping, interpolation between Spindle & Drilling axis, P405=5, P410=94, P411=3 in
Axis parameter..
M75: Shift control mode of spindle to Position Control Mode(Pulse+Direction). After rigid
tapping, M74, cancel position control mode of spindle.
Rigid mode eliminates the need to use a floating tap required in the standard tapping mode,
thus allowing faster and more precise tapping.
Example:
M3 S100 ; Cause the spindle to start rotating
G90 G99 G84 X300 Y-250 Z-150 R-120 P300 K5 S100 ;
Position, tapping hole 1, then return to point R
Y-550. K5; Position, tapping hole 2, then return to point R
G98 Y-750. K5; Position, tapping hole 1, then return to the initial level
G80 ; Cancel rigid tapping cycle
M30; End of program
- 80 -
3.28.9 Boring Cycle (G85)
This cycle is used to bore a hole.
Format: G85 X_ Y_ Z_ R_ F_ L_ ;
X_ Y_: Hole position data
Z_ : The distance from point R to the bottom of the hole
R_ : The distance from the initial level to point R level
F_ : Cutting feedrate
L_ : Number of repeats
After positioning along the X and Y axis, rapid traverse is performed to point R. Drilling is performed
from point R to point Z. When point Z has been reached, cutting feed is performed to return to point R.
Before specifying G85, use miscellaneous function (M code) to rotate the spindle. When the
G85 command and an M code are specified in the same block, the M code is executed at the time of
the first positioning operation. The system then proceeds to the next boring operation.
When a tool length offset (G43, G44 or G49) is specified in the canned cycle, the offset is
applied at the time of position to point R. In the canned cycle mode, tool offsets are ignored.
Note: 1. Before the drilling axis can be changed, the canned cycle must be canceled.
2. Do not specify a G code of the 01 group(G00-G03) and G85 in a single block.Otherwise, G85 will be
canceled and alarm.
Example: M3 S100 ; Cause the spindle to start rotating
G90 G99 G85 X300. Y-250. Z-150. R-120. F120.
Position, drill hole 1, then return to point R
Y-550 ; Position, drill hole 2, then return to point R
Y-750; Position, drill hole 3, then return to point R
X1000 ; Position, drill hole 4, then return to point R
G98 Y-750 ; Position, drill hole 5, then return to initial level
G80 ; Cancel canned cycle
M05 ; Cause the spindle to stop rotating.
- 81 -
3.28.10 Boring Cycle (G86)
This cycle is used to bore a hole.
Format: G86 X_ Y_ Z_ R_ F_ L_ ;
X_ Y_: Hole position data
Z_ : The distance from point R to the bottom of the hole
R_ : The distance from the initial level to point R level
F_ : Cutting feedrate
L_ : Number of repeats
G86 (G98) G86 (G99)
After positioning along the X and Y axis, rapid traverse is performed to point R. Drilling is performed
from point R to point Z. When the spindle is stopped at the bottom of the hole, the tool is retracted in
rapid traverse.
Before specifying G86, use miscellaneous function (M code) to rotate the spindle. When the
G86 command and an M code are specified in the same block, the M code is executed at the time of
the first positioning operation. The system then proceeds to the next boring operation.
When a tool length offset (G43, G44 or G49) is specified in the canned cycle, the offset is
applied at the time of position to point R. In the canned cycle mode, tool offsets are ignored.
Note: 1. Before the drilling axis can be changed, the canned cycle must be canceled.
2. Do not specify a G code of the 01 group(G00-G03) and G86 in a single block.Otherwise, G86 will be
canceled and alarm.
Example: M3 S2000 ; Cause the spindle to start rotating
G90 G99 G85 X300. Y-250. Z-150. R-120. F120. Position, drill hole 1, then return to point R
Y-550 ; Position, drill hole 2, then return to point R
G98 Y-750 ; Position, drill hole 3, then return to initial level
G80 ; Cancel canned cycle
M05 ; Cause the spindle to stop rotating.
- 82 -
3.28.11 Back Boring Cycle (G87)
This cycle performs accurate boring.When the bottom of the hole has been reached, the spindle
stops, and the tool is moved always from the machined surface of the workpiece and retracted with
the direction that set by P4 in User parameter.
Format: G87 X_ Y_ Z_ R_ Q_ P_ F_ L_ ;
X_ Y_: Hole position data
Z_ : The distance from point R to the bottom of the hole
R_ : The distance from the initial level to point R(the bottom of the hole) level
Q_ : Tool shift amount
P_ : Dwell time
F_ : Cutting feedrate
L_ : Number of repeats
G86
Warning: Q(shift at the bottom of a hole) is a modal value retained within canned cycles. It must be
specified carefully because it is also used as the depth of cut for G73 and G83.
After positioning along the X and Y axis,the spindle is stopped at the fixed rotation position
(Spindle orientation). The tool is moved in the direction(this direction is set by P4 & P5 in User
parameter), opposite to the tool tip, positioning (rapid traverse) is performed to the bottom of the hole
(point R). Then the tool is shifted in the direction of the tool tip and the spindle is rotated clockwise.
Boring is performed in the positive direction along the Z-axis until point Z is reached. Atpoint Z, the
spindle is stopped at the fixed rotation position again(Spindle orientation), the tool is shifted in the
direction opposite to the tool tip, then the tool is returned to the initial level. Then the tool is shifted
in the direction of the tool tip and the spindle is rotated clockwise to proceed to the next block
operation.
Before specifying G87, use miscellaneous function (M code) to rotate the spindle. When the
G87 command and an M code are specified in the same block, the M code is executed at the time of
the first positioning operation. The system then proceeds to the next boring operation.
When a tool length offset (G43, G44 or G49) is specified in the canned cycle, the offset is
applied at the time of position to point R.
- 83 -
Note: 1. Before the drilling axis can be changed, the canned cycle must be canceled.
2. In a block that does not contain R, Q , boring is not performed.
3. Be sure to specify a positive value in Q. If Q is specified with a negative value, the sign is ignored. Set
the direction of shift is set by P4 & P5 of User parameter. Specify P & Q in a block that perform as boring. If
they are specified in a block that doesn't perform boring, they cannot be stored as modal data.
4. Do not specify a G code of the 01 group(G00-G03) and G87 in a single block. Otherwise, G87 will be
canceled and alarm.
5. In the canned cycle mode, tool offsets are ignored.
Warning: The spindle system must support orientation function when use G87. SZGH cnc system output
M61(Pin19_CN10 plug) for orientation, M22(Pin5_CN10 plug) detects orientation end.
Example:
N10 M3 S500 ; Cause the spindle to start rotating.
N20 G90 G87 X300 Y-250 Z-150 R-100 Q5 P1 F120;
Position, bore hole 1. Orient at the initial level, then shift by 5mm.Stop at point Z for 1s.
N30 Y-350 ; Position, drill hole 2.
N40 Y-550 ; Position, drill hole 3.
N50 X1000 ; Position, drill hole 4.
N60 Y-550 ; Position, drill hole 5.
N70 G98 Y-750 ; Position, drill hole 6.
N80 G80 G28 G91 X0 Y0 Z0 ; Return to the reference position
N90 M5 ; Cause the spindle to stop rotating.
- 84 -
3.28.12 Boring Cycle (G89)
This cycle is used to bore a hole.
Format: G89 X_ Y_ Z_ R_ P_ F_ L_ ;
X_ Y_: Hole position data
Z_ : The distance from point R to the bottom of the hole
R_ : The distance from the initial level to point R level
P_ : Dwell time at the bottom of a hole
F_ : Cutting feedrate
L_ : Number of repeats
G86 (G98) G86 (G99)
This cycle is almost same to G85. The difference is that this cycle performs a dwell at thebottom of the
hole.
Before specifying G89, use miscellaneous function (M code) to rotate the spindle. When the
G89 command and an M code are specified in the same block, the M code is executed at the time of
the first positioning operation. The system then proceeds to the next boring operation.
When a tool length offset (G43, G44 or G49) is specified in the canned cycle, the offset is
applied at the time of position to point R. In the canned cycle mode, tool offsets are ignored.
Note: 1. Before the drilling axis can be changed, the canned cycle must be canceled.
2. Do not specify a G code of the 01 group(G00-G03) and G86 in a single block.Otherwise, G86 will be
canceled and alarm.
Example: M3 S100 ; Cause the spindle to start rotating
G90 G99 G89 X300. Y-250. Z-150. R-120. P1 F120. ;
Position, drill hole 1, then return to point R
Then stop at the bottom of the hole for 1s.
Y-550 ; Position, drill hole 2, then return to point R
X1000 ; Position, drill hole 3, then return to point R.
G98 Y-750 ; Position, drill hole 5, then return to initial level.
G80 G28 G91 X0 Y0 Z0 ; Return to the reference position
M05 ; Cause the spindle to stop rotating.
- 85 -
3.28.13 Example of Canned Cycle
- 86 -
Parameter Set: In Redeem, Length offset value: +200.0 is set in No.11 ; +190 is set in No.15 ; and
+150 is set in No.31.
Program Example:
N1 G54 X0 Y0 Z0 ; Coordinate setting at reference position
N2 G90 G00 Z250.0 T11; Tool change
N3 G43 Z0 H11 ; Initial level, tool length offset
N4 S30 M3 ; Start spindle CW
N5 G99 G81 X400.0 Y-350.0 Z-153.0 R-97.0 F120 ;
Positioning, then drilling hole #1
N6 Y-550.0 ; Positioning, then drilling hole #2, return to point R level
N7 G98 Y-750.0 ; Positioning, then drilling hole #3, return to initial level
N8 G99 X1200.0 ; Positioning, then drilling hole #4, return to point R level
N9 Y-550.0 ; Positioning, then drilling hole #5, return to point R level
N10 G98 Y-350.0 ; Positioning, then drilling hole #6, return to initial level
N11 G00 X0 Y0 M5 ; Positioning, then drilling hole #7, return to point R level
N12 G49 Z250.0 T15 ; Tool length offset cancel, tool change
N13 G43 Z0 H15 ; Initial level, tool length offset
N14 S20 M3 ; Start spindle CW
N15 G99 G82 X550.0 Y-450.0 Z-130.0 R-97.0 P1 F50 ;
Positioning, then drilling hole #7, return to point R level
N16 G98 Y-650.0 ; Positioning, then drilling hole #8, return to initial level
N17 G99 X1050.0 ; Positioning, then drilling hole #9, return to point R level
N18 G98 Y-450.0 ; Positioning, then drilling hole #10, return to initial level
N19 G00 X0 Y0 M5 ; Return to reference position & Stop spindle
N20 G49 Z250.0 T31 ; Tool length offset cancel, tool change
N21 G43 Z0 H31 ; Initial level, tool length offset
N22 S10 M3 ; Start spindle CW
N23 G85 G99 X800.0 Y-350.0 Z-153.0 R47.0 F150 ;
Positioning, then drilling hole #11, return to point R
level
N24 G91 Y-200.0 ; Positioning, then drilling hole #12, return to point R level
N25 Y-200.0 ; Positioning, then drilling hole #13, return to point R level
N26 G90 G28 X0 Y0 M5 ; Return to reference position & Stop spindle
N27 G49 Z0 G80 ; Tool length offset cancel
N28 M02 ; Program Stop
- 87 -
3.29 Block Cycle (G22,G800)
G22 is a program loop instruction, G800 is the end of the cycle instruction. Both must be paired
for parts machining process requires repeated occasions. L is the number of cycles, ranging from 1-
99999. Cycle instructions can be nested.
Format:
G22 L_
.
. Block Cycle
.
G800 ;End
For example
Program as follows:
N0000 G17 G90 X0 Y0 F250 M03 ;
N0001 G91 G01 Z-10
N0010 G22 L4 ;
N0020 G01 X20 ;
N0030 G03 X10 I5 J0 Y0 ;
N0040 G800 ;
N0050 G01 X20 ;D-E line
N0060 Y-30 ;E-F line
N0070 G11 X140 Y-30 ;set mirror
N0080 G22 L4 ;circulation begin
N0090 G01 X20 ;F-G line
N0100 G03 X10 I5 ;G-H arc
N0110 G800 ;circulation end
N0120 G01 X20 ;I-J line
N0130 G01 Y-30 ;cancel mirror
N0140 G12 ;J-A line
N0150 G26 ;go back to program begin point
N0160 M02 ;over
- 88 -
3.30 Macro program instruction(G65/G66/G67)
- 89 -
A8 B1
A9 B10
G67
M30
Macro Program: 6000
N1 #2=#0+#1
N2 IF (#2 EQ 10) GOTO 4
N3 G00 X#2
N4 G00 Z#1
N5 M99 ; Return
3.30.3 Macro Program Instruction
3.30.3.1 Input Instruction: WAT
Waiting for the input port X valid or invalid instruction
Format: WAT+ (-) X(Y/M)**+(-)X**+(-)X**+(-)X**+(-)X**
Attention: "+" to means wait for the input is effective;
"-" means wait for the input is invalid;
CNC only can detect only one Y or M , X is without limit.
"X" means the input port X00-X55; see the I/O diagnosis;
3.30.3.2 Output Instruction: OUT
Set the output port Y is valid or invalid instruction
Format: OUT +(-)Y
Attention: "+" means the output is effective;
"-" means the output is invalid;
"Y" means the output port Y00-Y31; see the I/O diagnosis;
3.30.3.3 Assignment Instruction: =
Explanation: used for assignment of a variable
Eg.: #251=890.34 #450=#123
And also it could be mathematical expression , example.: #440=#234+#470
3.30.3.4 Unconditional Jump: GOTO n
“GOTO n” is the command that for jump to the program line that is specified by sequence
number (N**) unconditionally. n is the sequence number.
E.g.: GOTO 5 ; // Jump to N5 program line.
Note: when specified program line , n , is beyond sequence number of N1-N99999, cnc system will hint
error.
n , program line,could be macro variable (#**)
E.g.: GOTO #100
3.30.3.5 Conditional Jump
1) IF (Conditional express) GOTO n
If condition is met, execute GOTO n ,jump to N** program line; if the condition isn't met,
execute the next segment.
Example: N1 IF(#200 EQ 1) GOTO 20
N10 G00 X0
N20 G00 Z0
Explanation: If #200 is equal to 1, system will execute GOTO 20 , jump to N20 , and execute
- 90 -
“G00 Z0”, if #200 isn’t equal to 1, system don’t execute operation of “GOTO 20” ,and will
execute next segments , “G00 X0”,and then execute “G00 Z0”.
2) IF (Conditional express) THEN <A Expression>
<B operational segment>
If condition is met, system execute A expression , and then execute B operational segment ; if
condition is not meet, execute the next segment , B operation.
Example: #101=0
N1 IF(#100 EQ 1) THEN #101=1
N2 IF(#101 EQ 1) GOTO 4
N3 G00 X100
N4 G00 Z100
Explanation: If #100 is equal to 1, system will execute “#100=1”, and then judge #101 is equal to
1 , jump to N4 & “execute G00 Z100” ; if #100 isn’t equal to 1, system will judge #101 also isn’t
equal to 1 directly , and execute “G00 X100” & “G00 Z100”.
NOTE: 1.<A expression> normally is assignment statement.
2. <A expression> after THEN must exist, otherwise system will hint grammatical errors.
Prolongation:
3) IF(conditional express)
<A operational command>
ELSE
<B operational command>
ENDIF
4) IF(conditional express)
<A operational command>
ELIF
<B operational command>
ENDIF
3.30.3.6 Loop Command
Format: (Conditions Initialization)
WHILE (conditional expression) DO n
<A operational segments>
[Alter condition of loop]
END n
<B operational segments>
When conditions are met during WHILE cycle command, execute the operational segments
between DO n and END n . Otherwise,when condition isn't met, jump to the program line after
END n ,also execute B operational segments.
We can nest for loops by placing one loop within another.
Note: 1.There must have operational codes that are for change condition at operational segments ,which is
between Do n & END n. Otherwise system will enter endless loop.
2.Nesting of macro program loop statements of SZGH CNC system is 3 pcs of loops at most . Also n
only could be 1 , 2 , 3 .
3.n of “DO n” & “END n” must keep same.
- 91 -
Example: #100=2 #150=5 #200=25
WHILE (#100 LT 3)DO 1
G00 X100
WHILE (#150 EQ 5)DO 2
G00 Y100
WHILE (#200 GE 20)DO 3
G00 Z100
#200=#200-2
END 3
#150=#150-1
END 2
#100=#100-1
END 1
3.30.4 Operators’ meaning
Operator Sign Ex. Operator Sign Ex. Operator Sign Ex.
EQ = equal GT > greater LT < Less
NE ≠ unequal GE ≥ G&E LE ≤ L&E
3.30.5 Arithmetic & Logic Operation
Table:
Function Format Attention
Definition #i = #j
Addition #i = #j + #k ;
Subtraction #i = #j - #k ;
Multiplication #i = #j * #k ;
Division #i = #j / #k ;
Sin #i = SIN(#j) ;
Asin #i = ASIN(#j);
Cos #i = COS(#j) ; 90.5 degrees means 90
Acos #i = ACOS(#j); degrees & 30 points
Tan #i = TAN(#j);
Atan #i = ATAN(#j);
Square root #i = SQRT(#j);
Absolute value #i = ABS(#j) ;
Rounding off #i= ROUND(#j);
Round down #i = FIX(#j);
Round up #i = FUP(#j);
Natural logarithm #i = LN(#j);
Exponential function #i = EXP(#j);
Or #i = #j OR #k ;
Executing with binary
Exclusive or #i = #j XOR #k ;
system
And #i = #j AND #k ;
3.30.6 Local Variable
#0--#20 : local variables only can be used to store data in macro program, such as a result of
operation, when power is off, the local variables are initialized to the empty. The argument
- 92 -
assignment to the local variable when calling the macro program.
3.30.7 Global Variable
#21--#600 : Their meanings are the same in different macro program.
When power is off, the variable #21--#100 is initialized to zero, the variable #101--#600 data is
saved not to loss even if the power is off.
3.30.8 System Variable
#1000-- : the system variables are used to change various data when reading the running CNC.
For example, the current position and the compensation of tool.
Special Attention: macro variables #100--#155 and #190--#202 have been used by the system, users can not
use.
3.30.9 System Parameter Variable
#1001--#1099 : Value of X-axis length compensation for T1--T99(Unit: um)
#1101--#1199 : Value of D1 radius compensation for T1--T99(Unit: um)
#1201--#1299 : Value of Y(C)-axis length compensation for T1--T99(Unit: um)
#1301--#1399 : Value of D2 radius compensation for T1--T99(Unit: um)
#1401--#1499 : Value of Z-axis length compensation for T1--T99(Unit: um)
#1501--#1599 : Value of D3 radius compensation for T1--T99(Unit: um)
#1601--#1699 : Value of A-axis length compensation for T1--T99(Unit: um)
#1701--#1799 : Value of D4 radius compensation for T1--T99(Unit: um)
3.30.10 I/O variable
#1800: X00-X07 (D0-D7) ; input resistor
#1801: X08-X15 (D0-D7) ; input resistor
#1802: X16-X23 (D0-D7) ; input resistor
#1802: X16-X23 (D0-D7) ; input resistor
#1803: X24-X31 (D0-D70 ; input resistor
#1804: X32-X39 (D0-D7) ; input resistor
#1805: X40-X47 (D0-D7) ; input resistor
#1806: X60-X67 (D0-D7) ; input resistor
#1807: X74-X81 (D0-D7) ; Alarm of driver/Spindle
#1808: Y00-Y15 (D0-D15) ; output resistor
#1809: Y16-Y31 (D0-D15) ; output resistor
#1810: Y32-Y47 (D0-D15) ; output resistor
Warning:
1. Macro variables #100-#155¾-#201 was occupied by system, user cannot use.
2. User cannot use G70,G71,G72,G73,G92,G76 etc loop command on Macro program.
Note: the address G, L, N, Q, P can’t be used as user-defined variables.
3.30.11 Message Hint Dialog Box
Format: MSG(hint words) or MSG[hint words] ;
Hint words is that user want to hint message on cnc system.
Note: 1. This code can be used on normal NC programs.
2. After hint message, cnc system will pause program automatically.
Format: STAF(hint words) or STAF[hint words];
Hints words is that user want to hint message on cnc system. And CNC system don’t pause
program automatically.
- 93 -
3.30.12 Build Processing Program Automatically
3.30.12.1 New/Open a program
Format: FILEON(Program) or FILEON[Program]
Example: FILEON(AABBCC) or FILEON[AABBCC]
It means that new or open a program “AABBCC”
3.30.12.2 Close program
Format: FILECE
It means that close current opening program, if without this code, system will close current
program after program is finished.
3.30.12.3 Write codes into program
Format: FILEWD(Blocks) or FILEWD[Blocks]
Example: FILEWD(G54G0X0Z0) or FILEWD[G54G0X0Z0]
It means that write a blocks of “G54G0X0Z0” into current opening program.
3.30.12.4 Write current absolute Coordinate into program
Format: FILEWC
It means that write current absolute Coordinate value into program.
Example:
G0X0Z0
After finished this program, system will new a
FILEON[AABBCC]
program of “AABBCC” under directory of
FILEWD [G54G0X0Z0]
program, its blocks is :
G1X45Z89
G54G0X0Z0
FILEWC
X45Z89
G1X99Z76
X99Z76
FILEWC
FILECE
- 94 -
3.31 User-defined Macro Instruction (G110-G170)
Every user-defined G code is corresponding to a macro program ProgramGxxx, user cannot
programme the macro program in NC system, must edit the macro code in the computer, and then
copy into the system.
3.31.1 Bolt Hole Circle Drilling Cycle
Defines the G152 function: the arc model porous drilling cycle. (must copy the macro program
ProgramG152 into system).
Format: G110/G111 X_ Y_ Z_ R_ I_ W_ Q_ K_ V_ E_ D_ F_
X_Y_: The starting point in XY plane
- 96 -
Z_ : The distance from point R to the bottom of the hole
R_ : The distance from the initial level to point R level
I_ : Radius of Groove Round
W_ : Depth of 1st cutting feed, distance from point R level
Q_ : Depth of each cutting feed
K_ : Incremental Width
V_ : Height between unprocessed surface and cutter
E_ : Allowance for fine groove
D_ : Tool radius offset number
F_ : Cutting Feedrate
Note: 1. Radius of groove round, I, should be greater than radius of current tool.
2. Depth of 1st cutting feed, W, should be greater than 0. If depth of 1st cutting feed exceeds the groove
bottom, then the machining is performed at the groove bottom;
3. Allowance for fine milling isn't less than 0, otherwise absolute value of negative number.
4. Range of Tool radius offset number , D, is 0~32. default is 0.
- 97 -
Fig3.31.3 Example of G110
G90 G00 X50 Y50 Z50 ; G00 Rapid traverse
G99 G110 X25 Y25 Z-50 R5 I50 W20 Q10 K10 E0 V10 F800 D1 ; Groove rough milling
G80 X50 Y50 Z50 ; Canned cycle cancel and return from point R level
M30 ;
3.31.3 Inner Circle Groove Fine Cycle (G112/G113)
The tool fine mills a full circle within a circle by the specified radius I and the specified
direction, and it returns after finishing the fine milling.
G112: CCW Inner Circle Groove Fine Cycle ; C113: CW Inner Circle Groove Fine Cycle .
Format: G112/G113 X_ Y_ Z_ R_ I_ J_ D_ F_
X_Y_: The starting point in XY plane
Z_ : The distance from point R to the bottom of the hole
R_ : The distance from the initial level to point R level
I_ : Radius of Fine Milling Circle
J_ : Distance from fine milling start point to circle center
D_ : Tool radius offset number
F_ : Cutting Feedrate
Note: 1. Radius of fine milling circle, I, Its absolute value is used if it is negative.
2. Distance from fine milling starting point to circle center, J, Its absolute value is used if it is negative.
3. Allowance for fine milling isn't less than 0, otherwise absolute value of negative number.
4. Range of Tool radius offset number , D, is 0~32. default is 0.
Process of Cycle:
1) Rapid positioning to the position in XY plane;
2) Rapid down to point R level ;
3) Feed to the machining start point at the bottom of hole ;
4) Arc Interpolation by the transition arc 1 from the starting point;
5) Circle Interpolation for the whole circle by inner arc path of finish-milling ;
6) Circle Interpolation by transition arc 4 and return to the starting point ;
7) Return to the initial level or point R level according to G98/G99.
- 98 -
Command Path:
G112:CCW Inner Circle Groove Fine Cycle G113:CW Inner Circle Groove Fine Cycle
Note: Q, P, L is invalid when using G112/G113, but value of Q & P will be remained as canned cycle.
Example: Fine milling a circular groove that has been rough milled as follows by canned cycle
code G112. (D1=5).
Note: 1. Q, P, L is invalid when using G112/G113, but value of Q & P will be remained as canned cycle.
2. When use G112/G113 is used, G codes in 01 group cannot be used, otherwise G114/G115 is replaced by
other codes in group 1.
3. Tool radius compensation: in the fixed cycle command, the tool radius compensation is ignored, the
system calls the tool radius compensation specified by the program during the tool infeed.
- 99 -
3.31.4 Outer Circle Fine Milling Cycle (G114/G115)
Format: G114/G115 X_ Y_ Z_ R_ I_ J_ D_ F_ ;
X_Y_: The starting point in XY plane
Z_ : The distance from point R to the bottom of the hole
R_ : The distance from the initial level to point R level
I_ : Radius of Fine Milling Circle
J_ : Distance from fine milling start point to circle center
D_ : Tool radius offset number
F_ : Cutting Feedrate
Note: 1. Radius of fine milling circle, I, Its absolute value is used if it is negative.
2. Distance from fine milling starting point to circle center, J, Its absolute value is used if it is negative.
3. Allowance for fine milling isn't less than 0, otherwise absolute value of negative number.
4. Range of Tool radius offset number , D, is 0~32. default is 0.
Command Path:
G114: CCW Outer Circle Fine Milling Cycle G115: CW Outer Circle Fine Milling Cycle
Command Path:
(1) Rapid positioning to a location within XY plane ;
(2) Rapid down to R level ;
(3) Feed to the bottom of hole
(4) Circular interpolation by the transition arc 1 from the starting point ;
(5) Circular interpolation for the whole circle by the path of arc 2 and arc 3 ;
(6) Circular interpolation by transition arc 4 and return to the starting point ;
(7) Return to the initial level(G98) or point R level (G99) .
In outer circle fine milling cycle, the interpolation directions of the transition arc and fine
milling arc are different. The interpolation direction in the code means the one of the fine milling.
Note: 1. Q, P, L is invalid when using G114/G115, but value of Q & P will be remained as canned cycle.
2. When use G114/G115 is used, G codes in 01 group cannot be used, otherwise G114/G115 is replaced by
other codes in group 1.
3. Tool radius compensation: in the fixed cycle command, the tool radius compensation is ignored, the
system calls the tool radius compensation specified by the program during the tool infeed.
- 100 -
Example: Fine milling a circular groove that has been rough milled as follows by the canned cycle
code G114.
- 101 -
7. Value of first cutting feed in X-axis direction, C, should not be less than radius of cutter+2.0, When
positive number,feed in positive direction of X-axis;when negative number, feed in negative direction of X-axis.
8. Range of Tool radius offset number , D, is 0~32. default is 0.
Command Path:
Command Process:
(1) Rapid positioning to a location within XY plane ;
(2) Rapid down to point R level , and then rapid down to point W level;
(3) First cutting feed(c) in X-axis direction, Line 1 is feed with linear interpolation ;
(4) Whole Circle interpolation with arc 2 ;
(5) Cutting feed with increment width (K) from starting point to center until radius of round
workpiece is (I+E);
(6) Cutter rapid return to point R level in Z-axis and then rapid traverse to starting point ;
(7) Cutter rapid down to depth of unprocessed end surface & each cutting feed (W+nQ);
(8) Loop run (4)~(7) until finish outer circle rough milling surface with depth of Z point;
(9) Return to point R level ;
(10) Return to starting point in XY plane.
- 102 -
In outer circle fine milling cycle, the interpolation directions of the transition arc and fine
milling arc are different. The interpolation direction in the code means the one of the fine milling.
Note: 1. P, L is invalid when using G116/G117, but value of P will be remained as canned cycle.
2. When use G116/G117 is used, G codes in 01 group cannot be used, otherwise G116/G117 is replaced by
other codes in group 1.
3. Tool radius compensation: in the fixed cycle command, the tool radius compensation is ignored, the
system calls the tool radius compensation specified by the program during the tool infeed.
Example: Fine milling a circular pad that has been rough milled as follows by the canned cycle
code G117. (D1=5mm)
- 103 -
.-
G132:CCW Outer Rectangle Roughing Cycle G133: CW Outer Rectangle Roughing Cycle
Command Process:
(1) Rapid positioning to a location within XY plane ;
(2) Rapid down to point R level , and then rapid down to point W level at first time;
- 104 -
.-
(3) First cutting feed(C) in X-axis direction, Line 1 is feed with linear interpolation ;
(4) Whole linear interpolation with line 2 ;
(5) Cutting feed with increment width (K) from starting point to center until Length of
rectangle pad is (I+2E), Width of rectangle pad is (J+2E);
(6) Milling corner of rectangle
(7) Cutter rapid return to point R level in Z-axis and then rapid traverse to starting point ;
(8) Cutter rapid down to depth of unprocessed end surface & each cutting feed (W+nQ);
(9) Loop run (4)~(7) until finish outer circle rough milling surface with depth of Z point;
(10) Return to point R level ;
(11) Return to starting point in XY plane.
In outer circle fine milling cycle, the interpolation directions of the transition arc and fine
milling arc are different. The interpolation direction in the code means the one of the fine milling.
Note: 1. P, L is invalid when using G116/G117, but value of P will be remained as canned cycle.
2. When use G116/G117 is used, G codes in 01 group cannot be used, otherwise G116/G117 is replaced by
other codes in group 1.
3. Tool radius compensation: in the fixed cycle command, the tool radius compensation is ignored, the
system calls the tool radius compensation specified by the program during the tool infeed.
- 105 -
3.31.7 Inner Rectangle Groove Roughing Cycle (G134/G135)
This cycle starts from rectangle center, linear interpolation cycle until milling rectangle groove.
Format: G134/G135 X_ Y_ Z_ R_ I_ J_ K_ W_ Q_ V_ E_ D_ F_
X_Y_: The starting point in XY plane
Z_ : The distance from point R to the bottom of the holeR_
: The distance from the initial level to point R level
I_ : Width of rough milling inner rectangle in X-axis (>0)J_
: Width of rough milling inner rectangle in Y-axis (>0)K_ :
Incremental Width in XY Plane
W_ : Depth of 1st cutting feed, distance from point R level Q_
: Depth of each cutting feed
V_ : Height between unprocessed surface and cutter (>0)E_
: Allowance for fine groove
D_ : Tool radius offset numberF_
: Cutting Feedrate
Note: 1. Length & Width of groove rectangle, I & J, should be greater than radius of current tool.
2. Depth of 1st cutting feed, W, should be greater than 0. If depth of 1st cutting feed exceeds the groove
bottom, then the machining is performed at the groove bottom;
3. Allowance for rough milling isn't less than 0, otherwise absolute value of negative number.
4. Range of Tool radius offset number , D, is 0~32. default is 0.
G134: CCW Inner Rectangle Groove Rough cycle G135: CW Inner Rectangle Groove Rough Cycle
- 106 -
Process of Cycle:
(1) Rapid positioning to the position in XY plane
(2) Rapid down to point R level
(3) Cut a depth (W) downward at the cutting speed by helical mode,
(4) Mill the rectangle surface hectically, outward from the center, with a incremental width (K)
each time;
(5) Cutter return to point R level along Z axis;
(6) Axis X and Y rapidly position to the center of rectangle;
(7) Rapid traverse to V , the distance to the unprocessed end surface;
(8) Cut a depth(Q+V) downward along Z axis;
(9) Repeats the operation (4)~(8) until the total depth of rectangle surface is finished;
(10) Return to point R level (G99);or return to initial level(G98).
Note: 1. P, L is invalid when using G134/G135, but value of P will be remained as canned cycle.
2. When use G134/G135 is used, G codes in 01 group cannot be used, otherwise G134/G135 is replaced by
other codes in group 1.
3. Tool radius compensation: in the fixed cycle command, the tool radius compensation is ignored, the
system calls the tool radius compensation specified by the program during the tool infeed.
Example: Rough milling an inner rectangle groove using the canned cycle code G134, as shown in
the figure below: (D1=5, Length of rectangle =70 , Width of rectangle =50mm).
- 107 -
3.31.8 Inner Rectangle Groove Fine Milling Cycle (G136/G137)
The tool fine milling within a rectangle by the specified width & direction, and it returns after
finishing the fine milling.
G136:CCW Inner Rectangle Groove Fine Milling Cycle ; C137:CW Inner Rectangle Groove
Fine Milling Cycle .
Format: G136/G137 X_ Y_ Z_ R_ I_ J_ D_ K_ U_ F_ ;
X_Y_: The starting point in XY plane
Z_ : The distance from point R to the bottom of the hole
R_ : The distance from the initial level to point R level
I_ : Width of rectangle in X-axis
J_ : Width of rectangle in Y-axis
K_ : Distance from fine milling start point to rectangle side in X-axis
U_ : Corner arc radius
D_ : Tool radius offset number
F_ : Cutting Feedrate
Note: 1. Width of rectangle in X-axis, I, Range is -99999999~99999999 (*min unit). Its absolute value is used if
it is negative.
2. Width of rectangle in Y-axis, J,Range is -99999999~99999999 (*min unit). Its absolute value is used if
it is negative.Value of J must be not less than diameter , otherwise alarm.
3. Distance from fine milling starting point to rectangle side in X-axis,K,is greater than radius of tool. Its
absolute value is used if it is negative.
4. No corner transition if corner arc radius, U, is omitted. System will alarm when U is omitted or 0 &
tool radius is less than 0.
5. Range of Tool radius offset number , D, is 0~32. default is 0.
Command Path:
G136:CCW Inner Rectangle Groove Fine Cycle C137:CW Inner Rectangle Groove Fine Cycle
Process of Cycle:
1) Rapid positioning to the position in XY plane;
2) Rapid down to point R level ;
3) Cutting Feed to the machining start point at the bottom of hole ;
4) Perform arc interpolation by the transition arc 1 from the starting point;
5) Perform linear & circle interpolation by the path 2-3-4-5-6 ;
6) Perform circle interpolation by transition arc 7 and return to the starting point ;
7) Return to the initial level or point R level according to G98/G99.
- 108 -
Note: Q, P, L is invalid when using G112/G113, but value of Q & P will be remained as canned cycle.
Example: Fine milling a rectangle groove that has been rough milled as follows by canned cycle
code G136. (D1=5).
- 109 -
-
Command Path:
G138:CCW Outer Rectangle Fine Milling Cycle G139: CW Outer Rectangle Fine Milling Cycle
Command Path:
(1) Rapid positioning to a location within XY plane ;
(2) Rapid down to R level ;
(3) Cutting Feed to the bottom of hole
(4) Performs circular interpolation by the transition arc 1 from the starting point ;
(5) Performs linear & circular interpolation by the path 2-3-4-5-6 ;
(6) Performs circular interpolation by transition arc 7 and return to the starting point ;
(7) Return to the initial level(G98) or point R level (G99) .
In outer rectangle fine milling cycle, the interpolation directions of the transition arc and fine
milling arc are different. The interpolation direction in the code means the one of the fine milling.
Note: 1. Q, P, L is invalid when using G114/G115, but value of Q & P will be remained as canned cycle.
2. When use G114/G115 is used, G codes in 01 group cannot be used, otherwise G114/G115 is replaced by
other codes in group 1.
3. Tool radius compensation: in the fixed cycle command, the tool radius compensation is ignored, the
system calls the tool radius compensation specified by the program during the tool infeed.
Example: Fine milling a outer rectangle pad that has been rough milled as follows by the canned
cycle code G138. (D1=5mm)
- 110 -
-
Chapter 4 M INSTRCUTIONS
- 111 -
4.2 Subprogram Configuration
There are two program types, main program and subprogram. Normally, the CNC operates
according to the main program. However, when a command calling a subprogram is encountered in
the main program, control is passed to the subprogram. When a command specifying a return to the
main program is encountered in a subprogram, control is returned to the main program.
- 112 -
3) M99 in subprogram return to next block of M98;
4) M99 with P in the subroutine return to specified block in main program.
When the main program calls a subprogram, it is regarded as a one–level subprogram call.
Thus, subprogram calls can be nested up to four levels as shown below.
Eg.:Execution sequence of subprograms called from a main program.A subprogram can call
another subprogram in the same way as a main program calls a subprogram.
- 114 -
P11 : Set the braking time of spindle, also the hold time of output M05, Unit:10ms. The time
less , the braking faster.
P12 : Set the braking signal is long signal 1 or short signal 0.
P56: To set system whether checking spindle feedback signal of spindle position, also the
feedback signal is spindle encoder signal. To set the parameter value 1 means check; 0 means not to
check.
P57: To set feedback pulse numbers of spindle encoder turn a round, the value: Line number of
encoder * 4.
P50: Whether turn on the spindle or not when shifting [1 means on, 0 means off]
P51: The speed of motor when spindle shifting (unit: 1/100rpm)
P52: The direction when spindle shifting (0 means positive, 1means negative)
P53: The stopping time when spindle shifting (unit: 10ms)
P54: Turning time of low speed when spindle shifting (unit:10ms)
P55: Stopping delay time of spindle (Unit:10ms)
In Speed parameter:
P8: To set the speed of spindle at manual condition. Unit: rpm.
P42: To set the max speed of spindle with 1st gear(M41), also the speed of corresponding 10V.
Attention: when spindle system is with gears,this is the speed of first gear.
P43: To set max speed of spindle(second gear/M42), Unit: rpm.
P44: To set max speed of spindle (Third gear/M43), Unit: rpm.
P45: To set the max speed of spindle (Fourth gear/M44), Unit: rpm.
P46: To set max speed of spindle on 2nd analog output , also speed of corresponding 10V.
In Other parameter:
P13: To set whether spindle and chuck is interlocking or not: 0 means they are separately; 1
means the spindle only start turning when chuck is closed.
Setting parameter is related with the configuration of lathe and user’s service condition, but
consider for safe, suggest setting 1,also interlocking.
4.3.1.2 Spindle Gear Shifting(M41/M42/M43/M44)
Remark PIN Function Command
S01 PIN10_CN3 Plug Output 1st gear of spindle M41
S02 PIN23_CN3 Plug Output 2nd gear of spindle M42
S03 PIN11_CN3 Plug Output 3rd gear of spindle M43
S04 PIN24_CN3 Plug Output 4th gear of spindle M44
M41/M42/M43/M44 output S01/S02/S03/S04 for shifting gear of spindle , and adjust analog
voltage to adjust speed of spindle.
Note:Functions interlocked and states reserved
There are two gears control ways for 1st spindle as following,
(1) Four gears spindle speed electrical control, output four bits code of step speed change, M41-
M44 control instructions are corresponding to output S01-S04 code, with fixed speed.
P50/P51/P52/P53/P54 in Axis parameter are set for mode of shifting.
(2) Four gears+Variable speed, M41-M44 instruction control, correspond the output S01-S04
code. P42/P43/P44/P45 in Speed parameter are set for maximum speed of corresponding gear,
P50/P51/P52/P53/P54 in Axis parameter are set for mode of shifting.
- 115 -
4.3.1.3 Coolant(M08/M09)
M08:Turn on coolant
M09: Turn off coolant
Remark PIN Function
M08 PIN8_CN3 Plug Turn On/Off coolant
4.3.1.4 Lubricate(M32/M33)
M32: Turn on lubrication
M33: Turn off lubrication
Remark PIN Function
M32 PIN9_CN3 Plug Turn On/Off Lubrication
In Other parameter,
P4 controls the function of lubricate automatically.
P6 is set the interval time of lubrication (Unit: s);
P5 set the time of lubrication ,also holding time of output M32(Unit: 10ms).
4.3.1.5 Chuck(M10/M11)
M10/M11 are for control clamping/unclamping of chuck.
Remark PIN Function
M10 PIN21_CN3 Plug Control Chuck clamping
M71 PIN9_CN10 Plug Control chuck unclamping(Spare)
M12 PIN11_CN10 Plug Detect position of clamping_chuck(spare)
M14 PIN24_CN10 Plug Detect position of unclamping_chuck(Loose)(spare)
M16 PIN12_CN10 Plug Input point for switch to control chuck(spare)
Chuck of this system control is related with parameter as follows:
In Other parameter:
P2: Type of chuck, (Inner: Chuck to center when M10; Outer: Chuck opening outward when
M10). 1 means outer, 0 means inner.
P13: Interlock between Chuck & Rotation_Spindle.0: No interlock, 1: yes.
M12: input point for detecting position of clamping of chuck;
M14: input point for detecting position of unclamping of chuck.
P20: Type of controlling signal for chuck,0: one output controlling signal for chuck; 1: two
output controlling signals for chuck.
M10:output point for controlling clamping of chuck , controlling code is M10;
M71:output point for controlling unclamping of chuck,controlling code is M11.
P22: External Switch(Foot switch) for chuck, reciprocating mode, price one time clamping
chuck; press twice time, unclamping chuck. 0: without switch ; 1: with external switch for control
chuck; input signal is M16.
P24: Holding time of output M10/M71 of chuck, unit: s. 0: mode type*.
In Axis parameter:
P40_D1: Detect position of clamping/unclamping of chuck,0:No detect, 1: yes.
Note: 1. When user-defined signals M71/M70 , M73/M72 are used for output signal of spindle chuck and
Tailstock, it can’t be used for other functions.
2. M12,M14,M1,M18,M28 are multi-function codes, only one function when using.
3. *mode type means that once valid,always valid until canceling/resetting code.
- 116 -
4.3.1.6 Huff(M59/M58)
M59: Turn on huff M58: Turn off huff
Remark PIN Function
M59 PIN6_CN10 Plug Turn on/off huff, also blower
4.3.1.7 Condition Output of Machine Tool(M65/M67/M69)
M65/M67/M69 be used for output condition of machine tool, set by parameters
Remark PIN Function
M65 PIN20_CN3 Plug Output Alarm condition of machine tool
M67 PIN8_CN3 Plug Output Running condition of machine tool
M69 PIN21_CN3 Plug Output Pausing condition of machine tool
Parameter sets for condition output of machine tool. In Other parameter:
P28: M65/M69 are as outputs for run/halt condition of machine tool,0:no,1:yes.
P29: M67 is as output for alarm condition of machine tool, 0: no, 1:yes.
Note:1.When M65,M67,M69 are used for output condition of machine tool, and then they can’t be used for
other functions.
2.Valid level of all output points is 0V. When fixed with inductance load, must connected with the reverse
diode to protect inner circuit of cnc system.
4.3.2 M Input Command List
No. Code Function Introduction Statement
M12 Check M12 is valid
1
M13 Check M12 is invalid
M14 Check M14 is valid
2
M15 Check M14 is invalid
M16 Check M16 is valid
3
M17 Check M16 is invalid
M18 Check M18 is valid These codes can be used for
4
M19 Check M18 is invalid conditional wait or conditional jump.
M28 Check M28 is valid
5
M29 Check M28 is invalid
M22 Check M22 is valid
6
M23 Check M22 is invalid
M24 Check M24 is valid
7
M25 Check M24 is invalid
B
E
40
From the center to begin, the center coordinate is G54 X0 Y0 Z50
The tool radius in the D01 of the T01 parameter
N0 G54 G00 X0 Y0 Z50 Starting point for processing
N1 M03 S1000 Turn on spindle
N2 G00 Y-40 X-40 G90 Move outside of square
N3 Z10
N4 G01 Z-10 F200 Start cutting from Z axis
N5 G01 G41 T01 D01 X-20 Y-20 F400 Move to B point
N6 Y20 Tool cuts BC line at the left of the workpiece
N7 X20 Closed angle transition in C point, cut CD line
N8 Y-20 Closed angle transition in D point, cut DE line
N9 X-25 Closed angle transition in E point,cut CB line is for
smooth,move 5mm more
N10 G00 X-40 Y-40 G40 Move outside of circle
N11 G01 G41 X-20 Y-20 F500 Lengthen T01 value along A-B
N12 Z-20 F100 Start cutting from Z axis
N13 G91 G02 I20 J20 Y0 X0 Circle of contact
N14 G00 Z50 End cutting
N15 G40 G00 X0 Y0 Cancel tool compensation
N16 M05 Turn off spindle
N17 M02 Program is over
- 118 -
Chapter 5 Special Application
Fig5.1.2 1st Dialog Box of Parameter Set for Linear Tool Magazine
- 119 -
Fig5.1.3 2nd Dialog Box of Parameter Set for Linear Tool Magazine
Note:This coordinate value is position at machine Coordinate system(G53).
In Other parameter: P13=1 ; set interlock between chuck and rotation of spindle
P20= 0 or 1 ; set mode of chuck loose/tighten tool
In Axis parameter: P40_D1=1 ; set for detect position of chuck loose/tighten tool
b) IO ports
Signal PIN Function
M10 PIN21_CN3 Plug Output for tighten tool
M71 PIN9_CN10 plug Output for loose tool (when P20=1 in Other parameter)
M14 PIN24_CN10 plug Detect position of tighten tool
M12 PIN11_CN10 plug Detect position of loose tool
M61 PIN19_CN10 plug Output for Spindle orientation
M22 PIN5_CN10 plug Detect end of spindle orientation
M59 PIN6_CN10 plug Output for huff/blower, to clear dust of tools
c) Steps of tool change
1) Z-axis go home(zero point of G53) 2) Spindle Orientation(it can be omitted)
3) Z-axis go to safe position(prepare to put tool) 4) XY-axis move to position of put tool
5) Z-axis down to position of put tool 6) Chuck loose tool & Huff
7) Z-axis up to safe position (prepare to take tool) 8) XY-axis move to position of take tool
9) Z-axis down to position of take tool 10) Chuck tighten tool
10) Z-axis go to safe position Tool change is finished.
Note: 1. all coordinate value are absolute position at machine coordinate system
2. #301-#400 are taken up at control program for linear tool magazine, cannot be used to the other.
3. If your linear tool magazine is different to this process,please contact with us.
- 120 -
5.2 Umbrella/Hat Tool Magazine (G121/G122)
Fig5.2.2 1st Dialog Box of Parameter Set for Umbrella/Hat type Tool Magazine
- 121 -
Fig5.2.3 2nd Dialog Box of Parameter Set for Umbrella/Hat type Tool Magazine
Note:This coordinate value is position at machine Coordinate system(G53).
1. Current Tool No.: It sets current tool number in spindle, if without tool in spindle, set to 0.
2. Current Tool POT: It sets current tool seat in tool magazine.
3. Total Tools: It sets total numbers, Range: don’t over 20 tools.
Suggestion: When tools are over 20, please use our SZGH-CNC1000MDcb series CNC system.
4. If Z go to change position: It sets whether Z-axis go to tool change position, 1:Yes, 0:No.
5.Z_Change Position Coor: It sets Machine Coordinate value of tool change position in Z-axis.
6.If XY got to change position: It sets whether XY-axis go to tool change position, 1:Yes, 0:No.
7.X_Change Position Coor: It sets Machine Coordinate value of tool change position in X-axis.
8.Y_Change Position Coor: It sets Machine Coordinate value of tool change position in Y-axis.
9.If A go to change position: It sets whether A-axis go to tool change position, 1:Yes, 0:No.
10. A_Change Position Coor: It sets Machine Coordinate value of tool change position in A-axis.
11. Position Speed of XYZA: It sets the speed of XYZ that move to tool change position.
12. If Z go to safe position: It sets whether Z-axis go to safe position, 1:Yes, 0:No.
13.Z-axis Safe Position: It sets value of safe height in Z-axis(increment).
14. If A_Servo tool magazine: It sets if rotation magazine is controlled by A-axis, 1:Yes, 0:No
15. Distance between each tool: It sets distance between each tool.
16. If A go to zero point: It sets if A-axis go to zero point, 1: Yes, 0: No .
17. If Z go to zero point: It sets if Z-axis go to zero point , 1: Yes, 0: No .
18. If spindle Orientation: It sets if spindle do orientation, 1: Yes, 0: No .
19. Rotating Speed of A_Axis: It sets speed of rotating for magazine.
In Other parameter: P13=1 ; set interlock between chuck and rotation of spindle
P20= 0 or 1 ; set mode of chuck loose/tighten tool
In Axis parameter: P40_D1=1 ; set for detect position of chuck loose/tighten tool
- 122 -
b) IO ports
Signal PIN Function
X00 PIN1_CN4 plug Detection tool magazine at UP position
X01 PIN2_CN4 plug Detection tool magazine at Down position
X02 PIN3_CN4 plug Detection of Tool seat(POT) in position for tool change
X04 PIN5_CN4 plug Detection of position of safe height in Z-axis
X05 PIN6_CN4 plug Detection of position of forwarder of tool magazine
X06 PIN7_CN4 plug Detection of position of backward of tool magazine
X07 PIN8_CN4 plug Counting of tools
M14 PIN24_CN10 plug Detect position of tighten tool
M12 PIN11_CN10 plug Detect position of loose tool
M22 PIN5_CN10 plug Detect end of spindle orientation
+T PIN12_CN4 plug CW Rotation of Tool Magazine
-T PIN13_CN4 plug CCW Rotation of Tool Magazine
M10 PIN21_CN3 plug Output for Tighten tool
M79 PIN22_CN3 plug Output for Forward tool magazine
M71 PIN9_CN10 plug Output for Loose tool (when P20=1 in Other parameter)
M73 PIN22_CN10 plug Output for Backward tool magazine
M61 PIN19_CN10 plug Output for Spindle orientation
M59 PIN6_CN10 plug Output for huff/blower, to clear dust of tools
- 123 -
5.3 Usage for automatic tool setting gauge
1. Note for parameter:
Define macro variables of the automatic tool setting gauge function are as follows (corresponding
to the other parameters P380 - P390):
P380: X_Machine coordinate value at initial position(ATS);(Unit:mm)
P381: Y_Machine coordinate value at initial position(ATS);(Unit:mm)
P382: Z_Machine coordinate value at initial position(ATS);(Unit:mm)
P383: Speed in Negative direction(ATS);(mm/min)
P384: Speed in positive speed(ATS);(mm/min)
P385: Z_Workpiece coordinate value at surface of workpiece after ATS;(mm)
P386: Positioning Speed (ATS);(mm/min)
P387: Mode of Automatic tool setting (1: fixed point, 0: floating point).
P388: Z_minimal machine coordinate value (mm);
P389: The gap value of Z axis [The height which is the gauge surface relative to the workpiece
surface(mm)];
P390: Total number of tests for automatic tool set (1--5)
Fixed point gauge means putting the gauge in a fixed position, every time the X Y Z axis are
automatic running to the fixed point first in tool setting; But the floating point gauge search the tool
setting gauge signal along negative of the Z axis.
The input point X25 is default to be the checking point of automatic tool setting gauge to input.
2.The instruction: M880 (corresponding to ProgramUser0) automatic tool setting instruction; M882
(corresponding to ProgramUser2), M883 (corresponding to ProgramUser3) set the gap of Z axis.
3. Automatic tool setting steps:
a) Set the P380--P388 parameter in other parameter;
b) Set the P389 parameter in other parameter to set the gap of Z axis: this operation needs to be
set only once.
A. Run M882 instruction in MDI to set the gap of Z axis;
B. Manual run Z axis to move the tool nose to the workpiece surface;
C. Run M883 instruction in MDI to automatic set the gap of Z axis P389 parameter in other
parameter;
c) MDI choose the workpiece coordinate system G54/G59;
d) Automatic tool setting: MDI running the M880 instruction, automatic set the Z
axis offset of the current workpiece coordinate system.
- 124 -
5.4 Usage for automatic dividing center
1. The X axis is divided center: M884(Corresponding to ProgramUser4)
1) Choose the current coordinate system such as G54;
2) Manually moving the X to the negative terminal of workpiece; MDI running the M884
instruction;
3) Manually moving the Y to the positive terminal of workpiece; MDI running the M885
instruction, automatically divide the center of Y axis and set the middle point of workpiece as current
coordinate system of Y axis origin, that's automatically setting the current coordinate system, such as
the coordinate offset value of Y axis in G54.
2. The Y axis is divided center (Corresponding to ProgramUser5): M885
1) Choose the coordinate system such as G54;
2) Manually moving the Y to the negative terminal of workpiece; MDI running the M885
instruction;
3) Manually moving the Y to the positive terminal of workpiece; MDI running the M885
instruction, automatically divide the center of Y axis and set the center point of workpiece as the
current coordinate system of Y axis origin,that's automatically setting the current coordinate system,
such as the offset value of Y axis in G54.
- 125 -
Chapter 6 Operation
When using CNC Milling system, just master the parameter of system, edit program, manual
operation, auto operation. Then you can operate the system easily. There are some details to instruct
hereinafter.
6.1 Operational Panel
This system panel is total controller ,which includes 8.4 inches LCD display area , function
menu , editing keyboard area & machine control panel.(take E panel as example)
Exit key
Enter key
- 126 -
6.3 Editing Keyboard
Key Name Description
s
Reset key CNC reset, stop of the feeding and moving, etc.
Digital
Key&Sy Digit input & Symbol Input
mbol key
Curso
r Move the cursor in different directions.
Mov
e
Keys
Page up/ Page up/down
Note: Exchange of coordinate
down ondisplay
key
- 127 -
Chuck switch Tighten/Loosen Tool Control code: M10/M11
of Spindle Output Point:PIN21 of CN3 plug
Tailstock switch Tailstock Control code: M79/M78
Forward/Backward Output Point: PIN22 of CN3 plug
Huff switch Huff ON/OFF Control code: M59/M58
Output Point: PIN6 of CN10 plug
Single block key To enter single block
mode
Per Step mode key To enter single step Switching cycle from “manual
mode continuous” to “manual increment”
Graphic mode key To enter graphic mode(Only Work on AUTO condition)
Simulate switch/dry
run switch
Handwheel/*1/*10/ Enter controlling condition of handwheel, press again, it will
*100 shift handwheel rate of *1/*10/*100
Diagnosis key Enter the interfaces of diagnosis
Cycle start key Press this key and the Auto mode, MDI mode, DNC mode
system mode
automatically runs
Return Home of To enter mode of return
Machine key home of machine
- 128 -
Rotation of tool in Tool magazine rotate CW/CCW, stop until detect T08
JOG (count of tool),which only works on MDcb series
Rapid mode Holding Rapid key+ Manual Feeding Key, for feeding
with rapid speed manually. When P38=8 in Other
parameter,the key is set to switch of Rapid/Normal.
Manual Feeding Key
Cycle Start Button, for run processing program on Auto, or run MDI
Emergency stop Driver and motor stop immediately, turns off the spindle,
coolant, waits for the rise of button, and initializes values
Interface Switch
Left side: Normal Mode
Middle: F-Halt , stop feeding
Right side: FS-Halt, stop feeding & rotation of spindle
Note: 1.“Manual speed controlled”: Press “1” “2” “3” “4” “5” “6” “7” “8” “9” to set feed override “F30”
“F60” “F120” “F250” “F500” “F1000” “F1500” “F2000” “F2500” “F3000”.
2. “Incremental coordinate”: Press “Setup” to set or set to 0 after enter “relative” coordinate mode.
3. Machine coordinate clear: Press “E” in parameter and then press “Enter”.
4. “F”: Taking mm/min as the unit to set the manual feed speed, the input range is from 1 to
30000mm/min. And the input method according to data input method in parameter.
5. “S”: Set the speed of the first spindle. The range is from 0 to 99999, the max depends on the No.36
parameter in speed parameter.
6. “I”: Modify the increment per step in manual increment mode
7. "T": Choosing the position cutting tool.
- 129 -
The system adjusts one-level menu operation, intuitive, convenient, shortcut, prompt
comprehensive information.Powering on system is to enter the main screen.
Fig6.2 Displayer
Press “Program” key enter program management area.it could edit,alter, diagnosis, delete,and
copy etc.
Press “Parameter” key enter parameter management area.it could refer,alter to every
parameters.
In manual condition,the system could process workpiece.
- 131 -
6.4.4 Manual Reference Position Return
The CNC machine tool has a position used to determine the machine position. This position is
called the reference position, where the tool is replaced or the coordinate are set. Ordinarily, after
the power is turned on or alarm/release emergency stop, the tool is moved to the reference position.
Manual reference position return is to move the tool to the reference position using switches
and push buttons located on the operator’s panel.
In axis parameter, P38 is set for the grade of homing; there are 4 grades for homing. 0: Just hint;
1:No use; 8: Compulsion; 9: Super Compulsion;
Suggestion: In order to ensure processing accuracy, it needs homing after reboot.
There are two ways that return to reference position manually, one is that floating zero point,
the other is that switch for homing, details as follows:
(1) Floating Zero Point Set
When user don’t fix switches for Homing , user can use floating zero point as home, also
reference position, also original point of machine coordinate system.
Parameters set: In Axis parameter,
P33: Bit parameter, D3:X ; D4:Y ; D5:Z ; D6:A ; D7:B ; 1 means float zero point;
P34: Distance between reference position & current position in X direction;
P35: Distance between reference position & current position in Y direction;
P36: Distance between reference position & current position in Z direction;
P37: Distance between reference position & current position in A direction;
P318 in Axis parameter:Distance between reference position & current position in B direction;
Steps of setting floating zero point(home):
1. Enabled function of float zero point of all axes(XZCAB): P23= 11111001;
2. Moving each axes to designated position in order to set floating point easily.
3.Set distance between reference & designated position: P34/P35/P36/P37/P318
(2) Switch For Homing Set
User can fixed switches for homing,some parameters & wiring needs to done.
A. Parameters set: in Axis Parameter,
P33: Bit parameter, D3:X ; D4:Y ; D5:Z ; D6:A ; D7:B ; 0 means switch for homing;
P38: Grade of Homing,0: Just hint; 1:No use; 8: Compulsion; 9: Super Compulsion;
P39: Mode of Homing, 0 & 2: Detect Z0 signal; 1 & the others, no detect ;
P40: Bit Parameter, Direction & Sequence of Homing;
P41: Bit parameter, Type of switch for homing ;
P42: Range of detecting Z0 signal in X-axis ;
P43: Range of detecting Z0 signal in Y-axis ;
P44: Range of detecting Z0 signal in Z-axis ;
P45: Range of detecting Z0 signal in A-axis ;
P46: Offset after homing in X-axis
P47: Offset after homing in Y-axis
P48: Offset after homing in Z-axis
P49: Offset after homing in A-axis
In Speed Parameter,
P34: X-axis homing speed
- 132 -
P36: Y-axis homing speed
P38: Z-axis homing speed
P40: A-axis homing speed
P35: Speed during detecting Z0 signal of X-axis
P37: Speed during detecting Z0 signal of Y-axis
P39: Speed during detecting Z0 signal of Z-axis
P41: Speed during detecting Z0 signal of A-axis
In Axis parameter, about all parameters for B axis
P314: Range of detecting Z0 signal in B-axis ; P315: Offset after homing in B-axis
P312: B-axis homing speed P313: Speed during detecting Z0 signal of B-axis
Note: Details about parameters set,please check part of Parameters List(see chapter 6)
B. Input points for homing in the table
Input Point PIN Function
X0 PIN3 of CN3 Plug X axis homing
Y0 PIN2 of CN3 Plug Y axis homing
Z0 PIN17 of CN3 Plug Z axis homing
M34/A0 PIN4 of CN3 Plug A axis homing
M24/B0 PIN3 of CN10 Plug B axis homing
Note: 1.when system hasn’t A axis & B axis, the input point is as function of M34/M24.
2. Valid level of all input points is 0V, also common port is 0V or NPN type .
3. Wiring for homing, please see Appendix I Wiring Diagram of CN3 Plug.
C. Operation of Return Reference Position
Press “Return” key in Manual mode,system will hint “Input axis name:(X; Y; Z ; A; B;
0(ZXYAB))” , user can select one axis for homing alone, and also input “0” & Enter key , all axes go
homing sequentially.
Note: 1. If user want to stop during homing, press “Emergency Stop” or “Reset” to stop.
2. After homing successfully, circle before coordinate will change to green, otherwise homing is failure.
The tool can be moved to the reference position also with program commands.
This operation is called automatic reference position return(See Chapter3.15_Book1).
Special Attention: Every time to power up the system must back to zero point to make sure the accuracy of
machine processing. The system power off unusually or in an accident, it must return to reference point ,also
homing, otherwise could cause trouble.
- 133 -
6.5 Auto Operation
Auto refers to processing the editing program of workpiece. This system can start at arbitrary
point, and also can start at arbitrary line or with arbitrary tool. Starting arbitrary line or with arbitrary
tool must use absolute coordinate to edit the program. Press “Auto” to enter Auto mode in Manual
mode. User can’t move coordinate manually in Auto mode.
Select running program: Press “Program” key to enter program interface, press “↑ ↓” to move
cursor to a program which is going to run , press “F7” key to select the program as processing program
and switch to main screen automatically.
Switch display of coordinate: Press “PgUp”/ “PgDn” to switch the display which correspond to
“Relative” “Absolute” “All”. & “Graphic”.
Relative Coordinate Absolute Coordinate All Coordinate Graphic
- 134 -
6.5.2 Processing at arbitrary program line or with arbitrary tool
6.6.2.1 Start from “nth” line(block)
At the condition of automatic processing, press “—” to popup a dialog box, import a number
of line, press “Enter” to confirm, system will start program from this line,and display at processing
program. No.1 line of program is 1th line , input number is nth line , as one block is one line.
Note: 1. The line is the actual line in the program, not the “N” stand for the line.
2. Firstly of all, system will move the starting point of “nth” block with speed which is set by P7 in Speed
parameter, then run the program normally.
3. If user don’t input line number, cnc system will jump to the line that program stop last time, to facilitate
user’s operations.
4. Press “Reset” to return back to the beginning of program after use “N” to search line number in
coordinate screen.
6.6.2.2 Start from “N**” line
The system support that program can start from “N**” line(N** is 4 digit marked line) . At
automatic process condition, press “N” to popup a dialog box to import the marking line, press
“Enter” to confirm. Press “Start” to run program at the “N**” line you import(mark).
Note: 1. “N**” line is not “nth” line/block, is the “N**” stand for the line.
2. Firstly of all, system will move the starting point of “nth” block with speed which is set by P7 in Speed
parameter, then run the program normally.
- 135 -
6.5.6 Alarm
The screen hints alarm message when machine tool alarm, CNC system will stop processing.
Only after clear alarm,and then CNC system can processing.
There are some fixed alarm,cannot be changed ,as following
Alarm Hinting Message Input Point
X-axis driver has happened hardware limit -L(PIN15_CN3 Plug)
Y-axis driver has happened hardware limit +L(PIN16 _CN3 Plug)
Z-axis driver has happened hardware limit
A-axis driver has happened hardware limit
B-axis driver has happened hardware limit
X-axis,Y-axis,Z-axis,A-axis,B-axis driver is alarming ALM(PIN12_CN5 Plug)
Spindle driver is alarming ALM1(PIN5_CN3 Plug)
Emergency Stop Stop(PIN5_CN11 Plug)
There are also some user-defined alarm as following
Alarm Hinting Message Auxiliary Relay in PLC
No.0 Alarm M80
No.1 Alarm M81
No.2 Alarm M82
No.3 Alarm M83
No.4 Alarm M84
Protect Door Is Open M85
No.6 Alarm M86
No.7 Alarm M87
Loss of Lubricate Oil M88
No.9 Alarm M89
No.10 Alarm M90
No.11 Alarm M91
+5V Undervoltage M92
+24V Undervoltage M93
No.14 Alarm M94
No.15 Alarm M95
Note: these alarm hinting message & input point can be edited as user’s asks on PLC.
Input point for protect door: M12, PIN11 of CN10 Plug
In Other parameter:
P7: Detect switching signal of protective door, 0:no detect,1: yes
P8: Type of switch for protective door, 0: NO type, 1: NC type.
P17: Type of alarm for servo driver, 0: NO type, 1: NC type.
P18: Type of alarm for spindle, 0: NO type, 1: NC type.
P19: Type of alarm for machine tool, 0: NO type, 1: NC type.
P26: Type of switch for emergency stop in panel, 0: NO type, 1: NC type.
P27: Type of switch for emergency stop in CN11, 0: NO type, 1: NC type.
Note: Emergency STOP: Press “Emergency STOP” button when appearing emergent accident, machine
tool will stop all actions and the screen of system shows “Emergency STOP”. Wait for releasing the button.
- 136 -
6.5.7 Indicator Light Output
Output Signal Output Point Parameter Set
Program Running M69(PIN21_CN10 Plug) P28=1 In Other parameter
Program Halt M65(PIN20_CN10 Plug)
Alarm M67(PIN8_CN10 Plug) P29=1 In Other parameter
Note: more details about indicator light output, please check Chapter 4.3.1.7.
6.6.8.2 USB-DNC
USB-DNC is realized by U-disk, switch on U-disk and system, select program to execute in U-
disk.
Press “B” to open U-disk in program interface, select corresponding program to press “C” to
execute program, press “Auto” to get into automatic mode and press “Start”/ “Run” button to process
the program.
Note 1. Don’t unplug U-disk in the process of USB-DNC, otherwise failure.
2. Back to the system program interface from U-disk interface after finish USB-DNC.
3. After selecting the program, it is best to press “P” to compile once to make sure the program is right before
executing program of USB-DNC.
- 137 -
6.7.1.1 Software limitation
Software limitation is finished by setting working range of machine tool , also set related
parameters in CNC system.
In Axis Parameter: P13: bit parameter, software-limitation of each axis is set alone.
Bit_P11 D7 D6 D5 D4 D3 D2 D1 D0
Axis B A Z Y X
Default set 0 0 0 0 0 0 0 1
1: it is invalid of software-limitation,0: valid of software-limitation.
P3: Max Range in X-Negative Direction
P4: Max Range in X-Positive Direction
P5: Max Range in Y-Negative Direction
P6: Max Range in Y-Positive Direction
P7: Max Range in Z-Negative Direction
P8: Max Range in Z-Positive Direction
P9: Max Range in A-Negative Direction
P10: Max Range in A-Positive Direction
Warning: when shift Metric/Inch, unit is changed(mm/inch), data for limitation don’t change.
6.7.1.2 External Switch for limitation
Input Point of Limitation
Mark Port Explanation
-L PIN15_CN3 Plug Limitation in negative direction
+L PIN16 _CN3 Plug Limitation in positive direction
Type of Limitation Switch
In Axis parameter:
P21, Type of switch in Positive direction [0: NO type, 1: NC Type]
P22, Type of switch in Negative direction [0: NO type, 1: NC Type]
Wiring of Limitation
NPN Type Proximity Switch General Switch
6.7 Diagnosis
- 141 -
6.8 Programming Operation
Press “Program” to enter into status of Program as following.
Management of program adopt mode of file/folder management, storage room of SZGH CNCsystem is
128Mb, there is no limitation about quantity of programs.
At program list,press “PgDn/PgUp”or “ , ” to select program/file.and then press “Enter” to
enter current program.
Name Function
New/Sek Press “F1” key to New/Search a program
COPY Press “F2”key to Copy selecting program(System USB-disk)
RENAM Press “F3” key to Rename current selecting program
INFOR Press “F4” key to hints size of program& remain space of system
LAST Press “F5” key to return to last level
USB-disk Press “F6” key to open USB-disk
EXEC Press “F7” key to execute current program
CANCEL Press “F8” key to cancel or return
Compile-P Press “P” key to compile current program
Receive-R Press “R”key” to receive file from PC with RS232-DNC
Transmit-T Send file to PC with RS232-DNC
DNC-L Open function of RS232-DNC between PC & CNC
6.8.1 Editing
Press “F1”key and popup a dialog box to input the name of program, if the name is existing,
the existing program is called up; If the name isn’t existing, the system will build a new program.
The name of program could be number, letter or mix, the length is 100 bits.
Build a new program or select a program and press “Enter” to entering the editing
interface.Press “F7” button to shift to function interface.
- 142 -
Fig6.9.2 (1)Editing interface of Program
- 143 -
Press "PgDn" key to the next page.
(2) Character Modification: Delete the character at the position of the cursor, then enter the new
character.
(3) Character Insertion: Enter a new direct character at the cursor position. When the input is the
letter,the letter in front of automatically generating space. If you want to enter a space, first enter a
letter, and then delete this letter.
(4) Character Deletion: Press "Del" directly at the cursor position
(5) Inset a line: Press "Enter" directly, inset a line in front of the current line if the cursor is at the
first line, otherwise insert a line after the current line.
(6) "Rapid" key Overlay operation:
First Function Keys
Function
F1 Compile current program
F2 Cursor jump to first line or last line
F3 Teaching function, enter status of Handwheel;Press X/Z/Y/C/A key to shift selecting
axis, and press “Rapid”+ “Q” to read & set value of current coordinate system.
F4 Cursor jump to the specified line
F5 Null
F6 Delete current block.
F7 Shift first function keys & second function keys
F8 Cancel
Second Function Keys
F1 Delete specified blocks from current line to input line
F2 Copy specified blocks from input begin line to input last line
F3 Array all blocks of current program
F4 Search specified characters from cursor line to end line
F5 Replace 1st specified characters from cursor line to end line
F6 Replace all specified characters from cursor line to end line
F7 Shift first function keys & second function keys
F8 Cancel
6.8.2 Copy
Press “↑ ↓” in main interface of Program, to select the program which need to copy and
press “F2” to popup a dialog box to import a new name of program, to copy which is the same
content but different name , in order to modify, rename and spare.
6.8.3 Delete
Press “↑ ↓” in main interface of Program, to select program which need to delete and press
“Del” key to delete the program.
Note: The operation of delete need to be careful, it can’t be recovery once deleted.
6.8.4 Rename
Press “↑ ↓” in main interface of Program, to select program which need to rename and press
“F3” to popup a dialog box to import a new name.
6.8.5 Information
Press “↑ ↓” in main interface of Program, to select program which need to check and press
“4” to popup a dialog box to check the size of current program and remain space of the system.
- 144 -
6.8.6 Compile
Press “↑ ↓” in main interface of Program, to select program and press “P”,or Press “F1” key
on editing interface of program, the system will check the format and grammar of program.
Prompting when finding mistake automatically.
Note: Before run program, it should compile successfully.
6.8.7 Folder management
User can build a folder in this system, Press “F1” in main interface of Program to import a name
of folder ,add “.” , and press “Enter”to build a folder and it will prompt a “[夹]” after the name.
Note: the name of folder must be different to name of other file/folder,otherwise failure.
Move the cursor to the folder and press “Enter” to open folder , user also can build a new file
or folder in this folder.
Press “A” go to the last folder.
Move the cursor to the folder and press “Del” to delete the folder.
6.8.8 Execute Program
Press “↑ ↓” in main interface of Program to select a program and press “C” to select the
processing program and switch into main interface of cnc system.
6.8.9 Communication
The system could deliver files with RS232 serial protocol .
There are two communication port for RS232 at front & rear of panel.
Remark PIN Function
RXD PIN2 of Front DB9 Port Receive Date
TXD PIN3 of Front DB9 Port Send Date
0V PIN5 of Front DB9 Port Ground
Delivery (Transmit)
Deliver the selected program in this system to another system or to PC for save. Press “↑ ↓”
in main interface of Program to select the program and press “T” to deliver, press “Reset” to
interrupt delivery.
Reception
Receive the selected program in another system or PC (Must be text file form). Press “R” to
import a name of received program into the dialog box in main interface of Program , press “Reset”
to interrupt reception.
Note: 1. Using the exclusive communication software to deliver program in User’s PC.
2. The rate of deliver of both PC&CNC must be the same,otherwise failure easily.P37 in Other
parameter is set the rate of CNC system.
3. The length of RS232 can’t over 10 meters.
4. The number of serial port must be the same as the system setting.
5. Editing program of PC must be text file form.
6.8.10 U-disk management
To exchange files of parameter or programs with other system or PC by U-disk. It also can
upgrade or back-up the software or parameter in system.
Note: The name of folder can’t have blank symbols.
Suggestion: Please prepare special USB-disk for manage files for CNC system.
Press “F6”-USB-disk to enter the U-disk in main interface after U-disk is connected to USB
port in the front of panel. Press “F6”-SYSTM again to back interface of system.
- 145 -
Fig6.9.4 Main Interface of USB-disk
6.9.10.1 Function Keys of USB-disk
Name Function
F1-Backup Press “F1” key to backup files of system to current directory of U-disk
F2-Restore Press “F2”key to restore files at current directory of U-disk into system
F3-Export Press “F3” key to export/copy file of system to U-disk
F4-Import Press “F4” key to import/copy current file of U-disk to system
F5-LAST Press “F5” key to return to last level
F6-SYSTM Press “F6” key to return back to system,also exit USB-disk
F7-EXEC Press “F7” key to execute current program at U-disk
F8-CANCEL Press “F8” key to cancel or return
Compile-P Press “P” key to compile current program
Input-R Press “R” key to copy all files of U-disk to system
Output-T Press “T” key to copy all files of system to U-disk
DNC-L Open function of RS232-DNC between PC & CNC
6.9.10.2 Management of Processing Program
Copy the files or folder of U-disk into system
After connecting U-disk, press “F6” key to enter the U-disk directory in main interface of
Program. Press “↑ ↓” to move cursor to select file or folder to copy and press “F4” key to popup
a dialog box to import name, press “Enter” to confirm. If there is the same name of program in the
system, it will popup a dialog box to ask if cover the file or folder or not.
Press “R” to copy all the program in U-disk into system.
Copy the files or folder of system into U-disk
Press “↑ ↓” to move cursor to select file or folder that needs to copy to U-disk, and then press
“F6” key, press “F3” key to popup a dialog box to import name in U-disk interface and press
“Enter” to confirm. If there is the same name of program in the system, it will popup a dialog box to
ask if cover the file/folder or not.
- 146 -
Press “T” key to copy all the program in system to USB.
Note: 1. It must return to program directory of system, also exit U-disk by press “F6” key before
unplugging U-disk, otherwise the date which is copied just now will be lost.
2. The name of folder can’t have blank symbol when using U-disk.
6.9.10.3 Management of Parameters & Software
User can use U-disk to deliver parameters files , system software , for upgrade and renew,
back-up files and parameters of CNC system
A) Backup inner files & PLC files of system to U-disk
Note: Prepare a special empty U-disk for manage parameter files & PLC files of system better as
Parameter files is lots of about several dozens, Or setup a folder in U-disk on your computer firstly, open the
folder of U-disk on system before backup parameter files & PLC files into the folder of U-disk.
Selecting folder(SZGH-CNC990TDB-2)
and “Enter” to enter the folder, Press “F2”
key to restore, input password & Enter
- 149 -
501 G81 equal to ProgramG No.[101-170(101-150Modeless,151-170Mode)] 0
502 G82 equal to ProgramG No.[101-170(101-150Modeless,151-170Mode)] 0
503 G83 equal to ProgramG No.[101-170(101-150Modeless,151-170Mode)] 0
504 G84 equal to ProgramG No.[101-170(101-150Modeless,151-170Mode)] 0
551 Machine structure of 5 Axes CNC machine tool(10-99) 1
552 Reverse direction of compensation with RTCP function(BX+4;BZ+8;AY+16;AZ+32) 1
553 Y-Axis machine coordinate value on A-axis rotary center(um) 1
554 Z-Axis machine coordinate value on A-axis rotary center(um) 1
555 Length of tool when measure rotary center of A-axis(um) 1
556 X-Axis machine coordinate value on C-axis rotary center(P551=12) 0
557 AC Axis offset of tool return Transformation of AC Axis (um) 0
600 Internal multiplier of non-G00 instruction[>=20 valid] 105
Explanation about User Parameter(processing parameter)
1,(d)Escaping Amount of G73 (mm)
It sets every escaping amount in G73 code, unit:mm.
17,Interlock between Running Program & SP-Rotating [1 mean Yes,0 mean No]
It is for interlock between run program and run spindle,when set as 1 means that running
program with running spindle;when set as 0 means that running program without check spindle
running.
18,Times of auto-cycle running(M20)
It is for times of run M20 code in the program,negative number mean run countless times.
- 150 -
21,Dwell between G01/G02/G03 blocks(ms)[>100]
It is for set delay time between G01/G02/G03,it is for solve the over-cutting in the corner.
- 151 -
CNC system support run processing program by input points , related input points is
X16-X23 & X26-X31.D2-D7:X26-X31; D8-D15:X16-X23.
D2 bit=1,also +4 , means X26 input is valid, execute program of "X26"/"HIDEFILEX26"
D3 bit=1,also +8, means X27 input is valid, execute program of "X27"/"HIDEFILEX27"
D4 bit=1,also +16, means X28 input is valid, execute program of "X28"/"HIDEFILEX28"
D5 bit=1,also +32, means X29 input is valid, execute program of "X29"/"HIDEFILEX29"
D6 bit=1,also +64, means X30 input is valid, execute program of "X30"/"HIDEFILEX30"
D7 bit=1,also +128, means X31 input is valid, execute program of "X31"/"HIDEFILEX31"
D8 bit=1,also +256 , means X16 input is valid, run program of "X16"/"HIDEFILEX16"
D9 bit=1,also +512, means X17 input is valid, run program of "X17"/"HIDEFILEX17"
D10 bit=1,also +1024 , means X18 input is valid, run program of "X18"/"HIDEFILEX18"
D11 bit=1,also +2048,means X19 input is valid, run program of "X19"/"HIDEFILEX19"
D12 bit=1,also +4096,means X20 input is valid, run program of "X20"/"HIDEFILEX20"
D13 bit=1,also +8192,means X21 input is valid, run program of "X21"/"HIDEFILEX21"
D14 bit=1,also +16384,means X22 input is valid, run program of "X22"/"HIDEFILEX22"
D15 bit=1,also +32768, means X23 input is valid, run program of "X23"/"HIDEFILEX23"
Example: When P230=+4+8=12, inputs of X26 or X27 is valid, CNC system will running
program of "X26"/"HIDEFILEX26" or "X27"/ "HIDEFILEX27".
- 152 -
237,Mode of Generate G code in Teach_In[0:Normal,1:G01]
It sets mode of generate G code in Teach-in function, 0:Normal, 1: Generate G01 in each one
linear movement.
- 153 -
7.2 Speed parameter
P Parameter EX-Value
1 G00 Speed of X-axis (mm/min) 4000.000
2 G00 Speed of Y-axis (mm/min) 4000.000
3 G00 Speed of Z-axis (mm/min) 4000.000
4 G00 Speed of A-axis (mm/min) 4000.000
5 Manual Max Feeding Speed(mm/min) 10000.000
5-1 X_Manual Max Feeding Speed(mm/min)[>=50] 0
5-2 Y_Manual Max Feeding Speed(mm/min)[>=50] 0
5-3 Z_Manual Max Feeding Speed(mm/min)[>=50] 0
5-4 A_Manual Max Feeding Speed(mm/min)[>=50] 0
5-5 B_Manual Max Feeding Speed(mm/min)[>=50] 0
6 Auto Max Feeding Speed(mm/min) 15000.000
7 Default Speed of G01/G02/G03 (mm/min) 2000.000
8 Running Speed at Simulation Mode (mm/min) 10000.000
9 Manual Feeding Speed(mm/min) 1000.00
10 Manual Spindle Speed (rpm) 0.000
11 Take-off speed(mm/min) 500
12 Maximum mutation speed(mm/min) 500
13 Limit G01/G02/G03 Speed of each axis [1:Yes, 0:No] 0
14 Max Speed of X_G1/G2/G3 (mm/min) 2000
15 Max Speed of Y_G1/G2/G3 (mm/min) 2000
16 Max Speed of Z_G1/G2/G3 (mm/min) 2000
17 Max Speed of A_G1/G2/G3 (mm/min) 2000
18 X_Acceleration/Deceleration Constant [1~99999] 50000
19 Y_Acceleration/Deceleration Constant [1~99999] 50000
20 Z_Acceleration/Deceleration Constant [1~99999] 50000
21 A_Acceleration/Deceleration Constant [1~99999] 50000
22 Acceleration/Deceleration Constant When Auto Run 2
23 Handwheel_Acceleration/Deceleration Constant [500--30000] 6000
24 Handwheel_Acceleration/Deceleration Constant when dry [>500] 50000
25 G00 Speed when dry (mm/min) [>10] 1500
25-1 Run program Handwheel G00 start speed(mm/min)[>5] 100
26 X_Max Speed with Handwheel (mm/min) 4000
27 Y_Max Speed with Handwheel (mm/min) 4000
28 Z_Max Speed with Handwheel (mm/min) 4000
29 A_Max Speed with Handwheel (mm/min) 4000
30 Type of Acceleration/Deceleration [0 mean line,8 mean curve] 0
31 Initial Acceleration/Deceleration Constant when curve [>=10] 100
32 Quadratic Acceleration/Deceleration Constant when curve [>=10] 500
33 Max Acceleration/Deceleration Constant when curve [>=500] 1
34 X_Homing Speed (mm/min) 3000.000
- 154 -
35 X_Speed for detect Z0 signal (mm/min) 250.000
36 Y_Homing Speed (mm/min) 3000.000
37 Y_Speed for detect Z0 signal (mm/min) 250.000
38 Z_Homing Speed (mm/min) 3000.000
39 Z_Speed for detect Z0 signal (mm/min) 250.000
40 A_Homing Speed (mm/min) 3000.000
41 A_Speed for detect Z0 signal (mm/min) 250.000
42 Max Speed of 1st Spindle (rpm) 3000
43 Max Speed of Spindle at 2nd gear (rpm) 3000
44 Max Speed of Spindle at 3rd gear (rpm) 3000
45 Max Speed of Spindle at 4th gear (rpm) 3000
46 Max Speed of 2nd Spindle (rpm) 3000
47 Compensation Mode of Arc Backlash (0: A, 8: B) 8
48 Compensation Speed in B Mode (mm/min) 3000
48-1 Beginning Compensation Speed in B Mode (mm/min) 500
48-2 Acceleration/Deceleration Constant in B mode (mm/min/s) 60000
49 Activate Speed Processing Function[1:Yes, 0:No] 1
49-1 End speed when reverse&decrease speed during running(mm/min) 200
50 Handwheel_Stopping Speed (mm/min)[>100] 100
51 SP_Speed when exit at following tapping mode(rpm)[>1] 1
52 SP_Reverse Backlash Compensation when tapping(Pulse) 1
53 Advance Retired Value before reverse rotation of following tapping(um)[10-5000] 1
54 Retired Speed when tapping (mm/min)[>=60] 1
58 Beginning Speed when hardware limitation (mm/min) 1.000
60 Activate Smooth Processing Function(+4:Manual,+8:MPG,+16:Program) 28
61 Time constant of smooth running on Manual[2-500] 50
62 Time constant of smooth running on MPG[2-500] 50
63 Time constant of smooth running on Program[2-500] 50
65 Manual enhancement smoothing processing time constant [2-50] 0
66 Handwheel enhancement smoothing processing time constant [2-50] 0
67 Program enhancement smoothing processing time constant [2-50] 0
68 Grade of smoothing process [1-9](Bigger, higher smooth) 0
101 X_Beginning Speed (mm/min)[>1] 500
102 Y_Beginning Speed (mm/min)[>1] 500
103 Z_Beginning Speed (mm/min)[>1] 500
104 A_Beginning Speed (mm/min)[>1] 500
105 B_Beginning Speed (mm/min)[>1] 500
111 X_Max Speed Increment (mm/min)[>1] 500
112 Y_Max Speed Increment (mm/min)[>1] 500
113 Z_Max Speed Increment (mm/min)[>1] 500
114 A_Max Speed Increment (mm/min)[>1] 500
115 B_Max Speed Increment (mm/min)[>1] 500
200 Coherent movement is valid for G00[1:No,16:Yes] 1
- 155 -
210 Wait SP_Speed smooth when threading 1
211 SP_Starting Speed_Tapping-Feed(rpm) 1
212 SP_Starting Speed_Tapping-Extract(rpm) 1
213 Acceleration-Feed-Rigid Tapping(rpm/S)[>1] 1
214 Acceleration-Retreat-Rigid Tapping(rpm/S)[>1] 1
215 Reserve-Feed-Rigid Tapping(1/1000Rev)[>2] 1
216 Trailing-Feed-Rigid Tapping(1/1000Rev)[>2] 1
217 Reserve-Retreat-Rigid Tapping(1/1000rev)[>2] 1
218 Trailing-Retreat-Rigid Tapping(1/1000rev)[>2] 1
219 Time Constant of Smooth processing for rigid tapping[20002-20500] 1
230 G00 Speed of SP-axis (mm/min) 1000
231 Mode for SP-axis[+4:F,+8:G90/G91,+16:Pulse] 10
232 Orientation Direction of SP-axis[0:Pos,1:Neg,2:near] 2
233 Control Mode of SP_homing 2
234 Offset Degrees when SP_Orientation(0.1Deg)[Neg:Non-Orientation] 0
235 SP_Homing Speed(0.1 rpm) 800
- 156 -
9,Manual Feeding Speed(mm/min)
It is the speed of feeding axis in Manual.Range:< max feeding speed
Attention:in Manual mode, press “F” key ,can set the parameter directly.
11,Take-off speed(mm/min)
It is beginning speed of feeding axis when acceleration/deceleration.when it is smaller than
acceleration/deceleration, accelerate/decelerate of speed start from the beginning feed speed. when
it is bigger than acceleration/deceleration, the speed reached at setting speed directly. Unit: mm/min.
Attention:Generally,stepper system<=100,servo system<=500.
- 157 -
500-32000.when the value is less than 500,it is invalid.
26,X_Max Speed with Handwheel (mm/min) 27,Y_Max Speed with Handwheel (mm/min)
28,Z_Max Speed with Handwheel (mm/min) 29,A_Max Speed with Handwheel (mm/min)
It is for limit max speed of each one feeding-axis alone when use handwheel in manual.
Attention:it is valid when >100,otherwise invalid.And suggest don’t over 4000.
- 158 -
38,Z_Homing Speed (mm/min)
It is homing speed of Z-axis.Unit:mm/min. the range is less than Z_G00 speed.
- 159 -
original value of P41 plus 4(Eg.: P41=0 +4= 4) means that the IJK of G02/G03 is the coordinate value
from end point to center, otherwise IJK of G02/G03 is the coordinate value from starting point to
center.
- 160 -
60,Activate Smooth Processing Function(+4:Manual,+8:MPG,+16:Program)
It is set for if activate the function of smooth running on status of Manual/MPG/Program at
processing program. +64: Low Speed; +512:Fully-new mode; Set to 28 means activate smooth
processing on Manual/MPG & program processing, 1 means no.
- 161 -
Example:when it is 300,the speed of X axis(multi-axial track-interpolation)up from F800 to
F1600,800(=1600-800)>300,so the process is up from F800 to F1100,and then F1600.
211,SP_Starting Speed_Tapping-Feed(rpm)
It is starting speed of spindle axis for feeding when tapping.
212,SP_Starting Speed_Tapping-Extract(rpm)
It is starting speed of spindle axis for extract when tapping
213,Acceleration-Feed-Rigid Tapping(rpm/S)[>1]
It is acceleration/deceleration for spindle feeding when rigid tapping,unit:rpm/s.
214,Acceleration-Retreat-Rigid Tapping(rpm/S)[>1]
It is acceleration/deceleration for spindle retreat when rigid tapping,unit:rpm/s.
215,Reserve-Feed-Rigid Tapping(1/1000Rev)[>2]
It is reserve for spindle feed during rigid tapping. Unit:1/1000r, Range:>2
216,Trailing-Feed-Rigid Tapping(1/1000Rev)[>2]
It is trailing for spindle feed during rigid tapping. Unit:1/1000r, Range:>2
217,Reserve-Retreat-Rigid Tapping(1/1000rev)[>2]
It is reserve for spindle retreat during rigid tapping. Unit:1/1000r, Range:>2
218,Trailing-Retreat-Rigid Tapping(1/1000rev)[>2]
It is trailing for spindle retreat during rigid tapping. Unit:1/1000r, Range:>2
- 162 -
+16384: run M05 & turn off analog voltage output.
- 163 -
7.3 Axis parameter
P Axis Parameter Ex-Value
1 Switch Type for Feed-Rate [0: Key, 1: Band Switch] 1
2 Switch Type for SP-Rate [0: Key, 1: Band Switch] 1
3 Max Travel in X_Negative direction (mm) -9999.000
4 Max Travel in X_Positive direction (mm) 9999.000
5 Max Travel in Y_Negative direction (mm) -9999.000
6 Max Travel in Y_Positive direction (mm) 9999.000
7 Max Travel in Z_Negative direction (mm) -9999.000
8 Max Travel in Z_Positive direction (mm) 9999.000
9 Max Travel in A_Negative direction (mm) -9999.000
10 Max Travel in A_Positive direction (mm) 9999.000
11 SP_Braking Time (10ms) 150
12 SP_Braking is Long Signal [0: No,1: Yes] 0
13 Soft-Limitation is valid [0:Yes, 1: No][D2X;D3C(Y);D4Z;D5A;D6B] 0000000100000001
14 X_Reverse Backlash Compensation (um) 0
15 Y_Reverse Backlash Compensation (um) 0
16 Z_Reverse Backlash Compensation (um) 0
17 A_Reverse Backlash Compensation (um) 0
18 X_Direction [1:normal, 0: Reverse] 0
19 Y_Direction [1:normal, 0: Reverse] 0
20 Z_Direction [1:normal, 0: Reverse] 0
21 A_Direction [1:normal, 0: Reverse] 0
22 Using Electron Gear Ratio for Feeding Axes [0:Yes, 1:No] 0
23 Numerator of X_Electron Gear 1
24 Denominator of X_Electron Gear 1
25 Numerator of Y_Electron Gear 1
26 Denominator of Y_Electron Gear 1
27 Numerator of Z_Electron Gear 1
28 Denominator of Z_Electron Gear 1
29 Numerator of A_Electron Gear 1
30 Denominator of A_Electron Gear 1
31 Type of Limit Switch in Positive Direction[0:NO type, 1:NC type] 0
32 Type of Limit Switch in Negative Direction[0:NO type, 1:NC type] 0
33 Type of Home [D3X;D4(C)Y;D5Z;D6A;0:Switch;1:float Zero] 11111011
34 X_Machine Coordinate of float zero point
35 Y_Machine Coordinate of float zero point
36 Z_Machine Coordinate of float zero point
37 A_Machine Coordinate of float zero point
38 Grade of Homing[1:No,0:Prompt,8:Compulsion,9:Super compulsion] 1
39 Mode of Homing 1
40 Direction of Homing[D2:X,D3:C(Y),D4:Z,D5:A,D6:B] 0000000000000001
41 Type of Switches for Homing 00000000
42 Range of Detect Z0 in X axis 100
43 Range of Detect Z0 in Y axis 100
44 Range of Detect Z0 in Z axis 100
45 Range of Detect Z0 in A axis 100
46 Offset after homing in X axis 0
47 Offset after homing in Y axis 0
48 Offset after homing in Z axis 0
- 164 -
49 Offset after homing in A axis 0
50 Spindle is rotating when shift gear[1:Yes, 0:No] 0
51 Rotating Speed of Spindle when shift gear(1/100rpm) 1000
52 Rotating Direction of Spindle when shift gear[0:CW, 1:CCW] 1
53 Pause Time of Spindle when shift gear (10ms) 10
54 Braking Time of Spindle when shift gear (10ms) 10
55 Delay time between reset M03/M04 & set M05 (10ms) 0
56 Detect SP_Position Feedback [0: No,1: Yes] 1
57 Pulses Per Revolution of Spindle 4096
57-1 Alarm Range for spindle resolution on Spindle encoder check 0
57-2 Quadruple Pulses Per Revolution of Spindle[1/1:0,Other:>99] 0
66 Gear Shift Control on Spindle Axis[1:Yes, 0:No] 1
68 Delay time when feeding axes shift direction 0
69 Homing Mode of Manual return to home with keys(1:All, 0:Select) 0
80 X/Z axis is Rotating Axis 00000001
81 Mode of Y(C) Axis [0:Rotating Axis, 1: Linear Axis] 1
82 Workpiece coordinate when Y is rotating axis 1
83 Machine Coordinate when Y is rotating axis 1
100 System Inner Parameter 1
101 Mode of A Axis [0:Rotating Axis, 1: Linear Axis] 1
102 Base when A axis is rotating axis 0
103 Automatically Output(Y/M) for unclamp when 4th Axis is running 0
104 Detection in position of unclamp[10000+:X,20000+M,30000+wait time] 0
300 System Inner Parameter 0
301 Mode of B Axis [0:Rotating Axis, 1: Linear Axis] 1
302 Base when B axis is rotating axis 0
303 Name of 5th Axis [0:B, 1:C ] 0
304 B_Direction [1:normal, 0: Reverse] 0
305 Numerator of B_Electronic Gear 1
306 Denominator of B_Electronic Gear 1
307 B_Reverse Backlash Compensation (um) 0
308 G00 Speed of B Axis 4000.000
309 Max Speed of B_G1G2G3 2000
310 B_Acceleration/Deceleration Constant 50000
311 B_Max Speed with Handwheel (mm/min) 2000
312 Homing Speed in B Positive Direction (mm/min) 2500.000
313 Homing Speed in B Negative Direction (mm/min) 250
314 Range of detect Z0 in B axis 100
315 Offset after homing in B axis 0
316 Max Travel in B-Negative Direction -9999.000
317 Max Travel in B-Positive Direction 9999.000
318 B_Machine Coordinate of float zero point
323 Nearest way for rotary axis(+4:X, +8:Y, +16:Z, +32:A, +64:B) 0
404 SP_Direction when position control mode 0
405 Using Electronic Gear Ratio for Spindle [0:Yes, 1:No] 0
406 Numerator of SP_Electronic Gear Ratio in Low Gear 4096
407 Denominator of SP_Electronic Gear Ratio in Low Gear 360000
408 Numerator of SP_Electronic Gear Ratio in High Gear 4096
409 Denominator of SP_Electronic Gear Ratio in High Gear 360000
410 Coordinate Axis when spindle do tapping 94
411 Control Mode of Tapping [2:Following, 3: Interpolation] 3
- 165 -
412 Teeth of SP_Motor (<P413) 1
413 Teeth of SP_Encoder (>P412) 1
414 Follow-Up of A Axis[7:X, 8:Y, 9:Z] 1
Note: System inner parameters cannot be changed.
Explanation about Axis Parameter:
1,Switch Type for Feed-Rate [0: Key, 1: Band Switch]
It is set switch type of Feed-Rate, Rate of Feeding axes.
0: Keys of “Feed Rate+” & “Feed Rate-” in Panel for adjust rate of feeding speed;
1: External Band switch for Feed-Rate. Port for external band switch is at CN11 plug, Pins are
VDK0,VDK1,VDK2,VDK3. Total are 16 gears
3,Max Travel in X_Negative direction (mm) 4,Max Travel in X_Positive direction (mm)
5,Max Travel in Y_Negative direction (mm) 6,Max Travel in Y_Positive direction (mm)
7,Max Travel in Z_Negative direction (mm) 8,Max Travel in Z_Positive direction (mm)
9,Max Travel in A_Negative direction (mm) 10,Max Travel in A_Positive direction (mm)
These parameters are set for max travel in negative direction/in positive direction of feeding
axes when soft-limitation is valid, which is based on machine coordinate system.unit: mm.
- 168 -
Example:Only Home of X-axis is float zero point, P23=00001001.
34,X_Machine Coordinate of float zero point 35,Y_Machine Coordinate of float zero point
36,Z_Machine Coordinate of float zero point 37,A_Machine Coordinate of float zero point
It is set the machine coordinate value of each one feeding-axis based on float zero point. The
value is distance between current position of machine tool & float zero point.
39,Mode of Homing
It set mode of homing. There are 4 kinds of mode about homing.
0 : Homing after hit homing switch, move in reverse direction until homing switch is off, then
detect Z0 signal of Encoder of servo motor.
1 : Homing after hit homing switch, move in reverse direction until homing switch is off.
2 : Homing after hit homing switch, move forward until homing switch is off, then detect Z0
signal of encoder of servo motor.
Other: Homing after hit homing switch,move forward until homing switch is off.
- 170 -
80,Mode of X&Z axis
It is bit parameter, Each bit have its related function. 1: Valid, 0: Invalid.
D2:Z axis based on Workpiece coordinate system;D3:X axis based on Workpiece coordinate
system; D4:Z axis based on Machine coordinate system; D5:X axis based on Machine coordinate
system. D6:Z axis is rotation axis; D7:X axis is rotation axis.
Bit D7 D6 D5 D4 D3 D2 D1 D0
Value 0 0 0 0 0 0 0 1
XR ZR XM ZM XW ZW - -
- 171 -
304,B_Direction [1:normal, 0: Reverse]
It is for set the direction of B-axis. 1: Direction of B-axis is same to direction of code; 0:
Direction of B-axis is opposite to direction of code.
310,B_Acceleration/Deceleration Constant
It is time constant of B-axis acceleration/deceleration,the bigger it is ,the faster the
ace/dec-eleration is.
Attention:This value depends on the machine structure,the heavier the load is ,the smaller the value
is.With stepper system,the value should less than 15000.
- 172 -
318,B_Machine Coordinate of float zero point
It is set the machine coordinate value of B-axis based on float zero point. The value is distance
between current position of machine tool & float zero point.
Special Cautions:
1. Only when CNC controller is configured with related feeding axis, and there are related parameters sets
for related feeding axis, such as C axis & A-axis.
2. About bit parameters, if some bits are don’t specified functions for feeding axis, please keep same to ex-
factory set, which should be important for inner system, otherwise it will affect normal operations of CNC system.
- 173 -
7.4 Tool parameter
P Tool Parameter Ex-Value
1 Mode of Setup Radius C Compensation 0
2 Mode of Cancel Radius C Compensation 0
8 Management of Tool(0:M06,1:T code,+32768:Tool life management) 1
32 Filtering for Position signal or WAT Signal 1287
- 174 -
7.5 Other Parameter
P Other Parameter Ex-Factory
1 Type of Handwheel(0:Panel, 1:Handheld) 0
3 Using Interface Switch on Panel(0: No, 88:Yes) 88
4 Lubricate Automatically (0:Yes, 1:No) 1
5 Time of Lubrication (10ms) 300
6 Interval of Lubricate Automatically(s) 1800
7 Detection for Door Switch(0:No, 1:Yes) 0
8 Type of Door Switch(0:NO type, 1:NC type) 0
9 Special Bit Parameter 0000010001000100
10 Counting Workpieces Automatically(0:No, 1:Yes) 1
11 Increment of shift block 1
12 System Inner Parameter 7
13 Interlock between Rotation_SP & Chuck(0:No, 1:Yes) 0
14 Coolant key is valid on Auto(0:No, 1:Yes) 1
17 Type of Driver Alarm(ALM)(0:NO type, 1:NC type) 0
18 Type of Spindle Alarm(ALM1)(0:NO type, 1:NC type) 0
19 Type of Machine Alarm(ALM2)(0:NO type, 1:NC type) 0
20 Control Mode of Chuck(0:Single, 1:Double) 0
22 External Switch for Chuck(0:No, 1:Yes) 0
24 Time of Chuck(s) 0.00
26 Type of Emergency Stop1(0:NO type, 1:NC type) 0
27 Type of Emergency Stop2(0:NO type, 1:NC type) 0
28 Run/Pause Output(0:No, 1:Yes) 0
29 Alarm Output(0:No, 1:Yes) 0
30 Language(1:Chinese, 0:English) 0
31 Use Inner PMC(0:No, 1:Yes) 1
32 Use High-Speed Inner PMC(0:No, 18:Yes) 18
35 Soft-Limit is Valid when no homing(0:No, 1:Yes) 1
36 Time of CNC system(Year-Month-Day-Hour-Minute)
37 Rate of RS232 6
37-1 OPC Function_Modbus_Station
38 Latched for Rapid Key(8:Yes) 1
39 System Inner Parameter ***
40 System Inner Parameter -88
41 Backup Current Parameters
42 Recovery Backup Parameters
50 Run from middle Program ask going last line point[8:Yes,0:No] 8
51 Return Safe Point firstly when starting from break point(+4:Z,+8:X) 1
52 Machine Coordinate_Safe Point 1
120 Direction of Manual Feeding Key 1
140 M77:Machine Coordinate VS Reference point 1 0
- 175 -
141 M78:Machine Coordinate VS Reference point 2 1
150 X_Reference Point_1(mm) 0.000
151 Y_Reference Point_1(mm) 0.000
152 Z_Reference Point_1(mm) 0.000
153 A_Reference Point_1(mm) 0.000
160 X_Reference Point_2(mm) 0.000
161 Y_Reference Point_2(mm) 0.000
162 Z_Reference Point_2(mm) 0.000
163 A_Reference Point_2(mm) 0.000
380 X_Machine Coordinate Value at initial point(ATS)(mm) 0.00
381 Y_Machine Coordinate Value at initial point(ATS)(mm) 0.00
382 Z_Machine Coordinate Value at initial point(ATS)(mm) 0.00
383 Speed in Negative Direction(ATS)(mm/min) 0.00
384 Speed in Positive Direction(ATS)(mm/min) 0.00
385 Z_Workpiece coordinate Value at surface workpiece after ATS(mm) 0.00
386 Positioning Speed(ATS)(mm/min) 0.00
387 Mode of ATS(1:Fixed point,0: Float Point) 0.00
388 Z_Min Machine Coordinate Value(mm) 0.00
389 The Gap value of Z(mm) 0.00
390 Total times of tests for automatic tool(1--5) 1
400 Axis name display configuration [xxxxx2] 1
401 Pulse output ports Configuration for Feed Axes[xxxxxxxx0] 1
501 Shift Color Display of Screen(1:No, 8:Yes) 1
601 Define Parameters for Step
602 Define Parameters for Servo Servo
800 System inner parameter,can’t be altered. 1
900 Display User-define Dialog Box[1:No, 4:Yes] 8192
901 Homing Sequence of Axis(5bits) 1
902 System inner parameter,can’t be altered. 0
904 System inner parameter, can’t be altered. 0
910 High-Speed Input of M18/M22/M24/M28 for G31/G311 0
911 Using M18_Teach-in, M28_Record(0:No, 1:Yes) 0
912 “Reset”key reset Outputs(0:No, 1:Yes) 1
Note:P12&P39&P40 are System Inner Parameter, cannot be altered.
Explanation about Axis Parameter:
1,Type of Handwheel(0:Panel, 1:Handheld)
It sets the type of handwheel,0:Handwheel in operational panel, 1:Handwheel in handheld box.
Note: when the parameter is 1 (P1=1), CN11 is connected to handheld box; & can’t use rate of
spindle&feeding axis,only off/X/Y/Z/A &*1/*10/*100(also P1&P2=0 in Axis parameter).
3,Using Interface Switch on Panel(0: No, 1:Yes,)
It sets whether system use interface switch on operational panel. 0:No, don’t use interface
switch; 1:Yes,use interface switch.
- 176 -
4,Lubricate Automatically (0:Yes, 1:No)
It sets whether system use lubricate automatically. 0:Yes, lubricate automatically is valid, 1:No
use lubricate automatically.
Attention:Lubricate automatically according to time of running program.
24,Time of Chuck(s)
It sets holding time of output M10/M11 for chuck. Unit:second. 0 means M10/M11 are long
signal, also always output M10/M11 is valid.
- 178 -
26,Type of Emergency Stop1(0:NO type, 1:NC type)
It set thee type of switch for 1st Emergency Stop, which is at panel. 0: NO type switch; 1:NC
type switch for 1st emergency stop.
30,Language(1:Chinese, 0:English)
It sets the language of system. 1: Set language to Chinese ; 0: set to English.
36,Time(Year-Month-Day-Hour-Minute)
It sets time and date of system. After set well,system will take this setting time as
basic,according to inner timer count time and shows in displayer.
Example:13:33, 16th, March, 2017; set P36=2017-03-16-13-33, & Enter.
- 179 -
37,Rate of RS232
It sets rate of communication with RS232. Different value corresponding to different
rate:[0=7200;1=9600;2=14400;3=19200;4=38400;5=57600; 6=115200].
Attention:The Rate of both CNC & PC must keep same.
37-1,OPC Function_Modbus_Station
It sets Station number of Series port with OPC modbus function, Odd parity: 10000+station
number; Even parity: 20000+Station number; No parity:30000+station number; +100000:Series Port
1 as OPC.
51,Return Safe Point firstly when starting from break point(+4:Z,+8:X,+16:Feed Hold)
It sets whether CNC go to safe point firstly when P50=8.+4:Z-axis go to safe point; +8:X-axis;
+16: feed hold.
- 180 -
example: P140=1001, if machine coordinate value is less than P150(X_reference point_1),X-axis
value of 1st reference point , M77 is valid.
- 181 -
602,Define Parameters for Servo
It sets current parameters to ex-factory set for servo system when machine tool is configured
with servo motor&driver.The operation is done before debugging.
- 182 -
7.6 Workpiece Coordinate Parameter
CNC system supports multiple coordinate system function, also 6 workpiece coordinate
system(G54-G59), plus 10 workpiece coordinate system(G54.1-G54.10) and a machine coordinate
system G53. A machining program can set a workpiece coordinate system can also be set up multiple
workpiece coordinate system, the workpiece coordinate system can be changed to move its origin.
That is the value of the parameter in the coordinates of its own coordinate origin (zero) coordinate
value in the machine coordinate system.
In Milling System,normally user only need one coordinate system(G53 coordinate system),
also Machine Coordinate System.
G54 to G59 can be set with 6 workpiece coordinate systems, the coordinate system settings
interface can be modified 6 origin of the workpiece coordinate system coordinate value in the
machine coordinate system.
- 184 -
7.6.2 How to adjust the offset value after set well?
If set up workpiece coordinate system well,when it needs to adjust the offset value,it could be
set by enter the workpiece coordinate parameter,steps is as follow:
In the coordinate parameter screen,selected the parameter,press “Enter”,and pop up
dialog,input the offset value(also Increments,example:offset 10mm in negative direction,also input
-10),press “Enter”.It is okay.
Explanation:1.when the parameter is altered well,the coordinate main screen will refresh the
corresponding coordinate value soon.
2.brackets in these parameters,it means the sum ,which is offset or adjust every time.It is suitable to
look for the offset every time.
7.7 Password
The password is order to avoid modified accidentally and ensure the system work in normal
condition.The system adopt three permissions, “CNC Factory”, “Machine Factory” and “User”.
The original condition is “CNC factory” is set, “Machine factory” and “User” isn’t set.
After set new password(set new password ,it need original password),please remember the new
password ,and the original password wasn’t work.
Attention:the password must be 6 bit data,the data could be number and letter.
password setting include:
1,Is enable CNC Co.’s password ?
It is for inner parameter,it couldn’t be operated.
2,Is enable Machine Co.’s password ?
Display and set the parameter that is related to machine’s configuration.
3,Is enable User’s password ?
It is for whether display and set the parameter that is related to processing.
4,Modify CNC Co.’s password:
5,Modify Machine Co.’s password:
6,Modify User’s password:
7,curry word time: (days)
Version of Operational Software.
Ex-factory Time
- 185 -
7.8 Redeem
Press “Redeem” key to enter interface of redeem in any condition.
Remark Function
F1-Radius Press “F1” key to enter Radius Compensation Interface
F2-Length Press “F2” key to enter Length Compensation Interface
F3-ACLEA Press “F3” key to clear all compensation value.
F4-CLEAR Press “F4” key to clear current compensation value.
F5-SetTool Press “F5” key to set tool {same to Setup key on panel}
F6-ToolPoit Press “F6” key to enter list of Tool Posit
F7-Set Press “F7” key to set total tool number
F8-CANCEL Press “F8” key to return back main interface
- 186 -
7.8.2 Length of redeem
Press “F2” to enter Tool Length offset interface on Redeem.
- 187 -
7.8.3 Tool Sets List
Press “F6” to enter posit tool interface in redeem. The parameter is used to set type of tool
sets when adopting radius compensation of tool.
- 188 -
7.9 Screw Compensation
Press “Parameter” key twice to enter screw compensation interface.
- 189 -
compensation.
Basic parameter of every axis’ error compensation of screw pitch includes as follows:
1. Reserve.
2. Backward checking points.
It is set for points number of compensation in negative direction.
3. Forward checking points.
It is set for points number of compensation in positive direction.
4. Multiple.
It is set for rate of compensation, also actual value=set value * multiple .
5. Distance (um).
It is set for the distance between two compensate points.
Note: Number of compensation points can be set freely, max points of each axis is 300.
- 190 -
Note: Zero point is reference point,don’t account into checking point.
Example 2: Rotary axis: when movement per revolution is 360°,interval of points 45°,Basic
parameters set as follows:
1) Backward checking points: 0
2) Forward checking points: 8
3) Multiple: 1
4) Distance(um): 45000
Note: 1. In the system, when axis is rotary axis, the coordinate value is 0~360. 0 and 360 are at same position:
Example: When input A0 & A360 , both will rotate to zero position.
2.Zero point is reference point,don’t account into checking point.
- 191 -
Chapter 8 Installation & Connection
8.1 System Installation
At first, users should check whether the hardware is complete, unwound and compatible.
The installation of cnc system must be fastened tightly, with some spaces around to ensure the
ventilation of air. Panel should be put in a place where it is not only convenient to operate and but
also able to avoid hurt of heating by scrap iron.
Intense current, week current must be put separately, cnc system and driver should be possibly
away from the machine intense current. In order to reduce interference, all signal cables should be
kept away from AC contactor. Photoelectric encoder, limit, basic point signal are advisably not to be
connected directly to cnc system through intense current box. All power cords must be earthing.
- 192 -
Fig8.3 Dimension of C type & E type Operational Panel
Attention: switching power supply L, N must be connected to AC 220V, current 0.5A through isolation
transformer.
- 193 -
8.4 Interface Connection Graph
8.4.1 Communication Socket (Female/DB9)
When PC programming, the files should be text files,which could be edit by Notepad or
Word-pad.
SZGHCNCCS software
- 194 -
8.4.2 CN4 Turret Socket (Female/DB15)
- 195 -
8.4.3 CN9 Spindle Encoder Socket (Female/DB9)
Pay attention:
When machine is configured with inverter+ac motor and customer want to do some special processing,like
G84, it needs to fix an encoder to spindle motor.
P412: number of spindle teeth
413, number of encoder teeth
When transmission ratio of spindle and encoder not as 1:1, please modify P412&P413 in Axis parameter
when teeth of spindle isn’t more than teeth of encoder;
If teeth of spindle is more than teeth of encoder, it needs to select adapter plate of SZGH;
Note: it must be integer multiple relationship about teeth between spindle & encoder.
- 196 -
8.4.4 CN3 IO1 Control Socket (Female/DB25)
- 197 -
8.4.5 CN10 IO2 Socket (Female/DB25)
- 198 -
8.4.7 CN16 IO3 Socket (Female/DB26)
- 199 -
8.4.8 CN5 XYZ Drive Socket (Male/DB25)
- 200 -
8.4.9 CN6 AB Drive Socket (Male/DB15)
- 201 -
8.4.10 CN11 MPG/Handheld Box Socket (Male/DB15)
- 202 -
When user connect our handheld box to CN11 Plug, P1 in Other parameter needs to set 1,
and cannot use band switch to adjust SP_Rate, Feed_Rate & External Run/Pause, and P1&P2 in
Axis parameter only could be “0”. X Y Z A X1 X10 X100 inputs are for axis-selection & rate,
P33&P34 in Other parameter only could set to 0.
PA+ PB- PA+ PA- are corresponding input signal of handwheel pulse A B.
The input signal of handwheel:
Attention:
1. The output signal of handwheel adopts line output, the power supply is +5V.
2. Just connect PA+ PB+ if adopt voltage output.
3. Manual pulse generator needn’t switch button for Enter ON/OFF handwheel, if there is a switch for
Enter, it is okay that use short connection of switch.
8.4.9.2 Using for Band Switch
When P1 & P2 in Axis parameter is set to “1”, VDK0/VDK1/VDK2/VDK3 &
VDS0/VDS1/VDS2/VDS3 are working, which can’t as inputs for external Run/Halt button, P1 in
Other parameter is 0;
VDS0(A) VDS1(Z) VDS2(Y) VDS3(X) are the input signal of adjust rate of spindle, total 16
gears. VDK0(OFF) VDK1(X100) VDK2(X10) VDK3(X1) are inputs signal of adjust Rate of
Feeding speed, total 16 gears.
8.4.9.3 Using for External Emergency Stop
STOP signal is the input signal of external emergency button, P27 in Other parameter is set for
type of switch of emergency stop button. 0: NO type, 1: NC type.
Suggestion: Configured with SZGH Handheld box(MPG), which is better to operate SZGH CNC system.
- 203 -
8.5 SZGH-CNC-IO-12 IO Relay Board
SZGH-CNC-IO-12 is newest version I/O Relay board with 12pcs of relays,size is about
280mm*100mm, which is used for connecting all inputs & outputs on CN3/CN4/CN10 plugs of CNC
controller to external switches & loads easily.
- 204 -
NPN INPUT PNP INPUT
When short-circuit cap is at side of NPN, also COM is connected to +24V, valid level of T01-T08
& Tok inputs are 0V (also NPN),also input 0V to these inputs,which will activate valid of input
points.
When short-circuit cap is at side of PNP, also COM is connected to 0V, valid level of T01-T08 &
Tok inputs are +24V (also PNP),also input +24V to input these points,which will activate valid of
inputs.
Update Point 2:
INPUT
OUTPUT
There are more reasonable layout,which can let user to make wiring more easily.
Ports on upper side of SZGH-CNC-IO-12 IO relay board are includes all IOs (includes
HALT/RUN/TOK/M05) of CN3 &CN4 &CN10 plugs,except output pins for relays. And there are
more common ports, such as +24V, 0V, PE. And also it is more easily to expand connections of
external relays.
Strong and Weak electricity are separated, avoid wrong connections,which will damage
CNC controller easily. Weak electricity are at upper side of SZGH IO relay board , Strong
electricity are at output ports of relays,which is for ON/OFF loads directly.
Update Point 3:
There are 12 pieces of relays output with Omron brand relays.All outputs of relays are with
NC output/NO output & COM port.
Default control signals for 12pcs of relays as following table:
- 205 -
No. 1 2 3 4 5 6 7 8 9 A B C
Output BRK M8 M10 M32 M79 M65 M67 M69 M71 M73 +T -T
1/BRK relay is for control brake on servo motor.Brake control input port is at BRK on upper
side.If we don’t need to control brake,we want to use this relay for M3, connect M3 to BRK,also
make short circuit between BRK & M3.
There are short-circuit caps/LED indicator/reverse diode on control side of relays. Short circuit
cap: we can renew define function of relays by short-circuit cap. Example: We don’t need to use
3/M10 for spindle chuck,and want to use it for M4 relay control output, remove short-circuit,there
are two pins, pin in the left side is control pin of relay, pin in the right side is M10 output of CNC,
so we connect M4 to pin in the left side of 3/M10 relay.
We can define M65/M67/M69 outputs for Yellow/Red/Green indicators by P28 & P29 to 1 on
Other parameter.
Note:Outputs ports of relays can suffer 10A, 250VAC/30VDC
Note:
1. HAL, also HALT, Pin6_CN3 plug , AL1 ,also ALM1, Pin5_CN3 plug,AL2,also ALM2, Pin2_CN10
plug.
2. When output points is with relay, user can use them to control loads directly; when output points is
output from CNC controller directly without relay, it cannot control external devices directly, otherwise it will
damage CNC controller.
3. When power of controlling devices is over 250VAC/10A, please add
contactors. 4.Valid level of all inputs & outputs of SZGH CNC controller is 0V.
5. When without Y-axis/C-axis, Y0 is input point of M36 command.
6. M79 is for tailstock on Lathe system, user-defined output on Milling system.
7. Above output ports(M3/M4/M5/M75/M41/M42/M43/M44/M59/M61/M63) are output from ports
of CNC directly,without controls relays,which output drive current of these outputs are about 50mA, cannot
control loads directly,otherwise it will damage these output points & CNC controller.
8. NC, also Normal Close ; NO,also Normal Open; CM,also Common port.
- 206 -
8.6.2 Ordinary Problem
8.6.2.1 System can’t boot
1) check if input power is normal.
2) check if power switch is turn on.
3) check insurance.
8.6.2.2 No display as boot
1) Boot again or reset.
2) Check if switch power’s +5V、+12V、-12V、-24V are normal.
3) Check if transformer is bad.
4) Check if LCD’s bright adjust and connection are normal.5
) Check if main board is normal.
8.6.2.3 System’s control disorganize
1) Wrong operations.
2) Anti-jamming ability of power supply is descend.
3) Working circumstance of CNC system is too bad.
8.6.2.4 Lose of user program
The DC battery on system main board can insure user’s program and parameter don’t lose.When
system isn’t used for half year or system has been used for over two years,the battery maybe
invalidate,therefore, should exchange battery.
8.6.2.5 Machining precision is bad
1) CNC Machine needs to revise backlash after using some time.
2) Best to revise base point before machining in order to insure the start point’s precision.
3) Machining speed and cutting depth is improper.
4) Machine connector’s prick melt falls off.
5) Tool isn’t tightened.
6) Piece clamp isn’t good.
7) Tool’s giving up isn’t equality because piece’s dimension isn’t uniformity.
8) Problems of machine Tool
Attention: Because of many kinds of reasons this Manual book may have some mistakes. We will appreciate
that you feedback to us or our agents , to provide services and technical support for every customer.
- 207 -
Appendix I: Wiring Diagram of CN3 Plug
- 208 -
Appendix II: Wiring Diagram of CN10 Plug
- 209 -
- 210 -
Appendix III: Wiring Diagram of CN4 Plug
- 211 -
Appendix IV Operational Panel
A Type Operational Panel
- 212 -
- 213 -