SZGH SZGH-CNC1000MDb Series User manual

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
Warnings and Notes as Used in this Publication
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.
©Copyright 2021 Shenzhen Guanhong Automation Co.,Ltd.
All Rights Reserved.

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
I
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.
1 Definition of Warning , Caution, and Note
This manual includes safety precautions for protecting the user and preventing damage to the
machine. Precautions are classified into Warning and Caution according to their bearing on safety.
Also, supplementary information is described as a Note. Read the Warning, Caution, and Note
thoroughly before attempting to use the machine.
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.
Read this manual carefully, and store it in a safe place!

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
II
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.

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
III
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.

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
IV
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.
4 WARNINGS AND CAUTIONS RELATED TO HANDLING
This section presents safety precautions related to the handling of machine tools. Before attempting to
operate your machine, read the supplied operator’s manual and programming manual carefully, such that you are
fully familiar with their contents.
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.

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
V
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.
5 WARNINGS RELATED TO DAILY MAINTENANCE
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.
2. Absolute pulse coder 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

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
VI
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.

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
VII
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 -
2.1.4 Coordinate System.......................................................................................................................... - 9 -
2.1.5 Indicated Command Dimensions for Moving the Tool................................................................ - 11 -
2.1.6 Cutting Speed-Spindle Speed Function........................................................................................- 12 -
2.1.7 Tool Function................................................................................................................................ - 13 -
2.1.8 Command For Machine Operations..............................................................................................- 13 -
2.2 Configuration of Program........................................................................................................................ - 14 -
2.3 Main Program & Subprogram................................................................................................................. - 17 -
2.4 Program Run............................................................................................................................................ - 17 -
2.5 Tool Figure And Tool Motion By Program..............................................................................................- 18 -
2.6 Tool Movement Range-Stroke................................................................................................................. - 19 -
Chapter 3 G INSTRCUTIONS........................................................................................................................- 20 -
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 -

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
VIII
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 -

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
IX
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 -

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
X
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 -

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
XI
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 -

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
- 1 -
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 is
simple and convenient.
This manual introduce the programming and using method of milling system in details.
Fig1.1 Host Controller of SZGH-CNC1000MDb
Note: 1.This picture of SZGH-CNC1000MDb series CNC controller just for reference . We would make
upgrade in the future!
2. Total set includes host controller, operational panel & related cables.

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
- 2 -
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
1.2 Technical Specifications
Max Number of control axes
• Number of control axes: 5 axes (X Y Z A B/C)
• Number of linkage axes: 5 axes
• Number of PLC control axes: 5 axes
Feeding axes function
• Minimum command unit: 0.001mm
• Position command range: +/- 99999.999
• Max speed: 300m/min ; Feeding speed:0.001-15m/min
• G00 rapid override: Total 8 levels: 0~150%,real-time adjusting
• Feeding override: Total 16 levels: 0~150%,real-time adjusting
• Spindle override: Total 16 levels: 5%~150%,real-time adjusting
• Interpolation mode: Interpolation of linear ,arc ,thread and rigid tapping
• Auto chamfering
Spindle function
• Analog voltage 0~10V output in two channels ,support two-spindle control
• Spindle encoder feedback in one channel,resolution of spindle encoder can be set
• Spindle speed: It is set by speed parameter,max spindle speed also corresponding to 10V
• Spindle override: Total 16 levels: 5%~150%,real-time adjusting
• Spindle constant surface speed control
Precision compensation
• Backlash compensation/Pitch error compensation in memory type
• Built-in Thread Compensation
PLC function
• Refresh cycle: 8ms
• PLC program can be altered on PC , download by USB interface

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
- 3 -
• 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
1.3 System operation condition
1) Power supplying
AC 220V(+10%/-15%), Frequency 50Hz±2%. Power:≤ 200W.
Note: it should use isolation transform to supply power first input:380V-220VAC or add noise filter.
2) Climate condition
Item
Working Conditions
Storage&Delivery Conditions
Ambient Temperature
5℃~45℃
0℃~+55℃
Ambient Humidity
40~80%
≤90%(40℃)
Atmosphere Pressure
86kPa~106kPa
86kPa~106kPa
Altitude
≤1000m
≤1000m
3) operation environment :
No excessive flour dust, no acid, no alkali gas and explosive gas, no strong electromagnetic
interference.

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
- 4 -
1.4 G Code List
CODE
Description
CODE
Description
G00
Rapid Positioning
G17
XY plane selection
G01
Linear Interpolation
G18
ZX plane selection
G02
Circular Interpolation CW
G19
YZ plane selection
G03
Circular Interpolation CCW
G90
Absolute value programming
G31
Jumping function
G91
Incremental value programming
G311
Jumping function
G30
Return to zero point of coordinate
G04
Dwell
G301
X-axis Return to zero point of coordinate
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
G20
Inch input
G304
A-axis Return to zero point of coordinate
G21
Millimeter input
G26
Return to starting point of program
G37
Scaling Cancel
G261
X-axis Return to starting point of program
G36
Scaling
G262
Y-axis Return to starting point of program
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
G64
Continuous track processing
G25
Save current coordinate value
G65
Macro command non-mode calling
G61
Return to position of G25
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
G81
Dot Drilling cycle
G281
X-axis return to home of machine

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
- 5 -
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
G85
Boring Cycle
G284
A-axis return to home of machine
G86
Boring Cycle
G285
B-axis return to home of machine
G89
Boring Cycle
G52
Local Coordinate System Setup
G74
Reverse Tapping Cycle
G53
Machine coordinate system
G84
Tapping Cycle
G54
Workpiece coordinate system 1
G94
Feed per minute
G55
Workpiece coordinate system 2
G95
Feed per revolution
G56
Workpiece coordinate system 3
G98
Return to initial level
G57
Workpiece coordinate system 4
G99
Return to R point level
G58
Workpiece coordinate system 5
G110
CCW round groove roughing
G22
Program Cycle
G111
CW round groove roughing
G800
Program Cycle Cancel
G112
Finishing in CCW full circle
G40
Tool nose radius compensation cancel
G113
Finishing in CW full circle
G41
Tool nose radius left compensation
G114
CCW outer circle finishing
G42
Canned Tapping Cycle
G115
CW outer circle finishing
G43
Radial Cutting Cycle
G116
CCW outer circle groove roughing
G44
Program Cycle
G117
CW outer circle groove roughing
G49
Program Cycle Cancel
G132
CCW rectangle outer roughing
G45
Polar coordinate command cancel
G133
CW rectangle outer roughing
G46
Polar coordinate command
G134
CCW rectangle groove roughing
G47
Absolute value programming
G135
CW rectangle groove roughing
G48
Incremental value programming
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
G139
CW rectangle outer finishing
G06
3D Space Arc Interpolation

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
- 6 -
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.
2.1 Basic Concepts of Programming
Item
SZGH-CNC1000MDb
No. of Basic Controllable Axes
3 (X, Y, Z)
Expansion of controlled axis(total)
Up to 5(X, Y, Z, A,B/C)
Table 2-1-1
Program Segment:a complete command line consisted of instruction and data .
Program: is a congregation of program segment by machining logic structure in order to
complete the machining of workpiece.
Machine Coordinate System: The establishment of coordinate is based on machine’s zero
point.The milling machine coordinate axis and its direction should follow to "ISO841" standard.
The method as follow: Through right hand rule we can make the program coordinate, The Z axis
is parallel as spindle, The X axis is horizontal, The Y axis is determined by right hand rule. The A,
B, C are rotated axis or assistant axis which parallel as X,Y,Z axis. Furthermore, The coordinate
axis direction is the increasing workpiece dimension direction.
When without set work coordinate, take machine coordinate as work coordinate.
Working Coordinate System: Work piece processing uses the coordinate system is called as
the work piece coordinate system, it is set by CNC. The work piece coordinate system could change
to move its zero point.
Set the workpiece coordinates:
1.Use G54 ~ G59: Use coordinate parameters to set 6 workpiece coordinate system.
2.G52: Set a value behind G52 to set the workpiece coordinate system in program.
With absolute value instruction ,it must use the above method to establish the work piece
coordinate system.
+Z
+X
+Y
Vertical milling,drill machine
+Z
+X
+Y
Horizontal milling
Machine Coordinate & Direction

-Shenzhen Guanhong Automation Co.,Ltd.- SZGH-CNC1000MDb Series
- 7 -
Local coordinate system: Set local coordinate system of workpiece coordinate system in order
to programme easily when programming in workpiece coordinate system.
Absolute Programming:coordinates data of programming mode based on established absolute
coordinate system.Absolute coordinate value is corresponding to homing point of coordinate system.
It is settlements by “G90 X_Y_Z_A_”.
Relative Programming(increment programming):It is distance and direction of operation end
point ,compared with starting point.It is settlements by “G90”.
Mode Instruction:The instruction which can remain the function in the program.It works both
in this program and program in the future.
In the same operation, there may be several mode instruction, such as M03(spindle
clockwise),M04(spindle counter clockwise),M05(spindle stop).They are all mode used to control
spindle.The mode of same kind are categorized into one mode group.At any time it must be one of
them,and there is only one of them.The original chosen mode is called mode origin.In the above
mode group,M05 is such a mode origin .
Suspending Mode(destroying mode): It is instruction which can turn mode instruction into mode
origin or destroy the mode.Such as M20(program ending instruction),meaning the end of operation
and returning to original status.
Non-Mode instruction:It is the instruction which has no function to store,and only works in the
segment of program.
2.1.1 Tool Movement Along Workpiece Parts Figure Interpolation
The tool moves along straight lines and arcs constituting the workpiece pats figure(See
Fig2.1.1)
The function of moving the tool along straight lines and arcs is called the interpolation.
a)Tool movement along a straight line
Fig2.1.1 Tool Movement along a line
b)Tool movement along an arc
Fig2.1.2 Tool Movement along an arc
Table of contents