Download Print this page

HUST Automation H4CL-M Manual

Mill cnc controller

Advertisement

Quick Links

H4CL-M
Mill CNC Controller
Manual
(Suitable for the controller: H4CL-M、H4PL-M)
Oct. , 2012
HUST Automation Inc.
No. 80 Kon Yei Road, Toufen, Miaoli, Taiwan
Tel: 886-37-623242
Fax: 886-37- 623241

Advertisement

loading
Need help?

Need help?

Do you have a question about the H4CL-M and is the answer not in the manual?

Questions and answers

Summary of Contents for HUST Automation H4CL-M

  • Page 1 H4CL-M Mill CNC Controller Manual (Suitable for the controller: H4CL-M、H4PL-M) Oct. , 2012 HUST Automation Inc. No. 80 Kon Yei Road, Toufen, Miaoli, Taiwan Tel: 886-37-623242 Fax: 886-37- 623241...
  • Page 3: Table Of Contents

    Table of Contents Table of Contents MAIN FEATURES OF HUST MILL CNC CONTROLLER1 OPERATION Basic Operation Startup Screen Standby Screen MPG – TEST (MPG hand-wheel test) Auto Mode Screen MDI Mode Screen Home Mode Screen Jog Mode Screen Edit Mode Screen 2-10 Program Select Screen 2-11...
  • Page 4 HUST CNC-H4CL-M Manual 2.3.6.1 G81~G89 2-41 2.3.6.2 G22~G25 2-43 2.3.6.3 G34~37 2-44 2.3.6.4 Soft key " " 2-45 2.3.6.5 Program Edit by TEACH mode 2-46 Programming and Command Codes Types of Command Codes 3.1.1 One-shot G-code 3.1.2 Modal G-code Fast Positioning G00...
  • Page 5 3.18 Mirror-Effect Cutting, G68, G69 3-42 3.19 Absolute and Incremental Coordinate Settings, G90, G91 3-44 3.20 Canned Cycle Functions (H4CL-M only), G81~G89, G80 3-45 3.21 G90 or G91-Absolute or Incremental Coordinate Setting 3-46 3.22 G94 or G99 – FeedRate,setting 3-47 3.23...
  • Page 6 H4CL-M External Dimensions H4CL-M Panel (Including the MDI Panel) H4CL-M CPU Main Board Connectors (Rear View) H4CL-M Series Cabinet Dimensions H4CL-M Series Control Unit Case Dimensions (Top View) H4CL-M Series Cutout Dimensions MDI Panel Cutout Dimensions Input/Output (I/O) Interface Connections 5.3.1...
  • Page 7 5-23 Emergency-Stop Circuit-2 5-24 Servo Motor Connection (This is the example of MITSUBISHI J2S Motor) 5-25 5.4.5 H4CL-M Auxiliary Panel + SIO Wring and Explanation 5-26 Expansion Output Board size 5-27 Expansion Input Board size 5-27 5.4.6 Connection Method for Servo Driver & Pulse Generator 5-28 5.4.7...
  • Page 8 HUST CNC-H4CL-M Manual Appendix C Master Axis Settings and G84 Mode Applicable to 4-axis milling machine...
  • Page 9: Chapter I Main Features Of Hust Mill Cnc Controller

    Chapter I Main Features of HUST Mill CNC Controller Main Features of HUST Mill CNC Controller □ Controlled Axis: X, Y, Z and Spindle Encoder Feedback □ Or control: X, Y, Z, A and no Spindle Encoder Feedback □ Program Designed by CAD/CAM on PC. Program input and DNC on-line execution from PC through RS232C interface.
  • Page 10 HUST CNC-H4CL-M Manual 1 - 2...
  • Page 11: Chapter Ii Operation

    Chapter II Operation Operation 2.1 Basic Operation Screen Description * Startup Screen After powering the controller, the following startup screen displays: Fig 2-1 Standby Screen After 3 seconds, the standby screen displays (this screen will also display when the Reset key is pressed and no mode is selected), as the following figure shows: Fig 2-2 2 - 1...
  • Page 12: Mpg - Test (Mpg Hand-Wheel Test)

    HUST CNC-H4CL-M Manual MPG – TEST (MPG hand-wheel test) Turn the Mode to the “MPG – TEST” to enter this mode. PRNO TEACH EDIT JOGx1 AUTO JOGx10 MPG- TEST JOGx100 HOME GRAPH MODE 擇 擇 擇 擇 Fig 2-3 When the start key is pressed in the “MPG – TEST” mode, no axis will move before the hand-wheel is rotated.
  • Page 13: Auto Mode Screen

    Chapter II Operation Auto Mode Screen Press the “Auto/ MDI” key or turn the mode to Auto to enter Auto mode. The following screen displays: PRNO TEACH EDIT JOG×1 AUTO JOG×10 JOGx100 MPG- TEST GRAP H HOME MODE Fig 2-4 Press the PAGE “...
  • Page 14 HUST CNC-H4CL-M Manual program become invalid and the program runs at the highest speed set in MCM #148~151. 3. OP_Stop: This function can be selected at any time no matter whether the program is running or stops. When this function is selected, the M01 command in the program is used as stop command.
  • Page 15: Mdi Mode Screen

    Chapter II Operation MDI Mode Screen Press the “Auto/ MDI” key twice or turn the mode to MDI,to enter MDI mode. The following screen displays: PRNO TEACH EDIT JOG×1 AUTO JOG×10 MPG- TEST JOG×100 GRAP H HOME MODE 擇 擇 擇 擇 Fig 2-6 A single command line is executed during MDI mode.
  • Page 16 HUST CNC-H4CL-M Manual Methods for returning to the HOME: Select an axis for returning to the HOME with the axis and press the “Start” key to perform the action of returning to the HOME When Z-axis needs to return to the HOME before X and Y axes, press the “Z->XY”...
  • Page 17: Jog Mode Screen

    Chapter II Operation Jog Mode Screen Press the “JOG / Home” key once or turn the mode to JOG to enter Jog mode. The following screen displays: CHOSE TEACH EDIT JOG×1 AUTO JOG×10 JOG×100 MPG- TEST HOME GRAPH MODE MODE 擇...
  • Page 18 HUST CNC-H4CL-M Manual Lubricant: Press the key to turn on and press it again to turn off. The LED illuminates to indicate that an action is running. Press the Origin Setting and the following screen displays: Fig 2-11 (1).Standard work origin setting: a.
  • Page 19 Chapter II Operation End Face A Center Point End Face B Rectangular Work-piece Fig 2 -11 - 1 Press the Manual Drilling and the following screen displays: Simple manual drilling Fig 2-12 (1).Complete the fields and press the Execute key to start the processing procedure according to the value entered by the user.
  • Page 20: Edit Mode Screen

    HUST CNC-H4CL-M Manual * Edit Mode Screen Press the “Edit/PRNO” key once or turn the function mode to “Edit” to enter the Edit mode. The following screen displays: PRNO EDIT TEACH JOG×1 AUTO JOG×10 MPG- TEST JOG×100 GRAPH HOME MODE...
  • Page 21 Chapter II Operation Program Selector Screen Press the “Edit/PRNO” key twice or turn the function mode to “PRNO” to enter the PRNO mode. The following screen displays: PRNO TEACH EDIT JOG×1 AUTO JOG×10 RPNO JOG×100 GRAPH HOME MODE MODE MODE MODE 擇...
  • Page 22 HUST CNC-H4CL-M Manual (2). When you press the “Delete” key, a dialogue pops up to request your confirmation. (3). Press the “Y” key to conform and delete the program. 4 Copy a program: (1). Press the “Copy” key and the following screen displays: Fig 2-15 (2).
  • Page 23: I/O Mode Screen

    Chapter II Operation I/O Mode Screen Press the “I/O/Parameter” once to enter the I/O mode. The following screen displays: Fig 2-16 000-023 is the INPUT status. (Highlight shows input) 000-015 is the OUTPUT status. (Highlight shows output) Fig 2-17 2 - 13...
  • Page 24: Tool Compensation Screen

    HUST CNC-H4CL-M Manual Tool Compensation Screen Click the “T.Radius/T.Offset” once to enter the tool length compensation mode. The following screen appears: ※ (Refer to Section 3.15.6 for more information) Fig 2-18 Switching between the screens is possible using the soft key in this mode.
  • Page 25 Chapter II Operation 1. Follow the steps below to configure the parameters for tool length compensation: a. Use the “Cursor ” key to move the cursor to the parameter to be changed. b. Enter the desired wear value. Press the “Enter” key. Fig 2-19 2.
  • Page 26 HUST CNC-H4CL-M Manual Follow the steps below to configure the parameters for tool wear compensation: a. Use the “Cursor ” key to move the cursor to the parameter to be changed. b. Enter the desired compensation value. c. Press the “Enter” key.
  • Page 27: Graph Mode Screen

    Chapter II Operation Graph Mode Screen Press the “Graph” key to enter the Graph mode. The following screen displays: PRNO TAPE TEACH EDIT JOG×1 AUTO JOG×10 MPG- TEST JOG×100 GRAPH HOME MODE MODE MODE MODE 擇 擇 擇 擇 Fig 2-22 The “*”...
  • Page 28 HUST CNC-H4CL-M Manual Interruption” displays on the screen. When you press the “Hand-wheel Interruption”, it becomes highlighted and you can select an axis and operate the hand-wheel. When the positioning is complete, press the “Hand-wheel Interruption” again to cancel this function and the highlight displays accordingly.
  • Page 29: Programming Overview

    Chapter II Operation 2.2 Programming Overview 2.2.1 Part Programs The movement of a numerical control machine is controlled by the program. Prior to part machining, the part shape and machining conditions must be converted to a program. This program is called a part program. A comprehensive machining plan is required for writing the part program.
  • Page 30 HUST CNC-H4CL-M Manual Basic capability in geometric, trigonometric, and algebraic operations. Good capability of determination of machining conditions. Good capability in setting chucks. Good capability in determination of part material. Two programming methods are available for the part program of the numerical control unit: □...
  • Page 31: Program Composition

    Chapter II Operation actions and the shape, size, and cutting sequence of the part, reinforcing the communication and processing capability of the computer. The input data is translated into a CNC program using the computer, which will be in turn transmitted to the CNC controller via RS232C interface.
  • Page 32 HUST CNC-H4CL-M Manual Feed rate. Spindle speed. D, H Tool number. Auxiliary functions (machine control code). Except for the block serial number (N), the command group of a block can be classified into four parts: Function Command: The G-code, for example, is used to instruct the machine to perform actions, such as linear cutting or arc cutting.
  • Page 33 Each command code has its own definition and the machine behaves according to the command code given. The command codes of H4CL-M Series and their definitions are described below.
  • Page 34: Coordinate System

    Coordinate Axis The H4CL-M Series uses the well-known 2-D/3-D Cartesian coordinate system. The 2-D coordinate system of the H4CL-M is X-Y, Y-Z, or Z-X, and X-Y is used as an example in this manual. As shown in the figure below, the intersecting point of X-Y is the zero point, i.e.
  • Page 35 Chapter II Operation The 3-D coordinate system is a rectangular coordinate system (right hand rule) consisting of the X-axis, Y-axis, and Z-axis. A right angle is formed with the thumb, forefinger, and middle finger. The directions to which the thumb, forefinger, and middle finger point represent the X-axis, Y-axis, and Z-axis respectively.
  • Page 36: Coordinate Positioning Control

    HUST CNC-H4CL-M Manual 2.2.4.2. Coordinate Positioning Control The coordinates of the H4CL-M Series controller are either absolute or incremental, depending on the command code of the coordinate axis, i.e.: X, Y, Z, A : Absolute coordinate commands. U, V, W : Incremental (or decremental) coordinate commands.
  • Page 37 “X, Y, Z” to increment. The incremental command U, V, W is only valid when the G90 absolute coordinate command is used. The default of the H4CL-M series is in absolute coordinates. In this case, the above-mentioned program can be re-written as: N10 G00 X0.000 Y0.000...
  • Page 38 HUST CNC-H4CL-M Manual N30 U14.000 V4.000 P1 to P2 N40 U12.000 V14.000 P2 to P3 N60 M2 Program ends Coordinate Interchange: N10 G00 X0.000 Y0.000 Move to the work origin rapidly N30 G1 X12.000 V12.000 F300.00 ... P0 to P1 N40 X26.000 V4.000...
  • Page 39: Work Origin

    This reference point is called machine origin. For the H4CL-M Series controller, the machine origin is the stop position of the X-axis, Y-axis, and Z-axis when the homing action on each axis is completed.
  • Page 40: Program Editing

    HUST CNC-H4CL-M Manual Min. setting unit 0.001 mm Max. setting unit 8000.000 mm Min. moving distance 0.001 mm Max. moving distance 8000.000 mm Min. Time 0.1 sec. Max. Time 8000.000 sec. The limits in the above table are applicable to 4/3-formats.
  • Page 41 Chapter II Operation 2.3.1 Program Selection The H4CL-M controller can store programs numbered O0~O999. You can select any one of the programs to edit or execute. Program selection: Double-click the “EDIT/PRNO” key to enter the PRNO mode and open the file directory page on the LCD (Fig. 2-28). Move the cursor to the desired program and press the “Input”...
  • Page 42: New Program Edition

    HUST CNC-H4CL-M Manual 2.3.2 New Program Editing After selecting the program number to be edited, press the “EDIT/PRON” key or turn the knob to EDIT. To edit a new program, the following screen displays: PRNO TAPE TEACH EDIT JOG×1 A UTO JOG×10...
  • Page 43 Chapter II Operation Enter Use the key after adding a command or changing a command value in an existing block. Delete Use the key to delete the program of a block. Program Edition Example: O001 N1 X0.Y0.Z0. N2 X20. N3 U480.V-480. N4 Z-15.
  • Page 44 HUST CNC-H4CL-M Manual Then enter: Enter Enter The above-mentioned procedure is used to edit the first block data. Enter the following data for 2 blocks: Second block: Insert Third block: Insert - Enter (Note that the sign can be entered before the key is pressed.)
  • Page 45 Chapter II Operation to move the cursor to block N3. Enter a command code and value to be added (changed), e.g. F300. Enter The screen shows as Fig. 2-31. Fig 2-31 Change U480 by entering U360; Enter To change an incorrect command, enter the correct command and press Delete a Command Ex: The third block program N30 U480.
  • Page 46 HUST CNC-H4CL-M Manual (No value is entered behind F). The screen shows as Fig. 2-32: Fig 2-32 Insert a Block Ex: Inset the block N31 U20. V-20 between the third block N3 G0 U480. V-480. and the fourth block N4 Z-15 Procedure: Make sure the system is in “EDIT”...
  • Page 47 Chapter II Operation The screen shows as Fig. 2-33 Fig 2-33 Delete a Block Ex: Delete the block N3 U480 V-480. Procedure: Make sure the system is in “EDIT” mode. Use the to move to the cursor to block N3.3. Press .
  • Page 48: Delete A Program

    HUST CNC-H4CL-M Manual * Since N is the line number and has no effect on the execution of the program, you can decide to enter it or not. 2.3.4 Delete a Program In PRNO mode, move the cursor to the program to be deleted and press the key.
  • Page 49: Editing Notes

    Chapter II Operation a decimal input, the control unit automatically puts a decimal point at the position specified in the given format. The table below shows the validated values after the internal processing of the control unit. Input 4/3 Format X0.002 mm Y250 Y0.0250mm...
  • Page 50 HUST CNC-H4CL-M Manual N20 G4 X1..Second block N30 U480. V-480..Third block N35 U20. V-20..Fourth block N40 G4 X1 ..Fifth block N50 M99 ..Sixth block If the block serial number N35 is changed to N350, the program execution order remains the same.
  • Page 51: Graphical Input

    Chapter II Operation 2.3.7 Graphical Input Fig 2-36 There are there function keys on the editing screen: “G81~G89”, “G22~G25”, “G34~G37”, and “ ”. 2.3.7.1 G81~G89 When “G81~G89” is selected, the following screen displays: Fig 2-37 Follow the instruction of the diagram and select the required function (G81, G83, G85, G86, or G89) to open the corresponding screen Example: Select G81 to open the screen below: 2 - 41...
  • Page 52 HUST CNC-H4CL-M Manual Fig 2-38 Enter the required value in the field. Make sure the input is correct and press the “Program Insertion” key. The controller automatically generates a new program based on the value entered in the field. Use the “Program Check” key to check if the data are correct or the program is generated.
  • Page 53: G22~G25

    Chapter II Operation 2.3.7.2 G22~G25 When “G22~G25” is selected, the following screen displays: Fig 2-39 Follow the instructions of the diagram and select the required function. Example: Select “G25” to open the screen below. Fig 2-40 Enter the required value in the field. Make sure the input is correct and press the “Program Insertion”...
  • Page 54 HUST CNC-H4CL-M Manual execution of this grooving action (not the program being edited). When the execution is completed, the program returns from Auto mode to the previous screen. A drawing of the drilling action is shown on the right of Fig. 2-40. the user can enter parameters with reference to this drawing.
  • Page 55: Soft Key

    Chapter II Operation Enter the required value in the field. Make sure the input is correct and press the “Program Insertion” key. The controller automatically generates a new program based on the value entered in the field. Use the “Program Check” key to check if the data are correct or the program is generated.
  • Page 56: Program Edit By Teach Mode

    HUST CNC-H4CL-M Manual 2.3.7.5 Program Edit by TEACH mode Occasionally during program editing, it's difficult to obtain the X or Y coordinate. One easy way to solve this problem is to use the TEACH function in HUST H4CL controller. When the system is in TEACH mode, you can use MPG hand-wheel to move the tool to the desired location.
  • Page 57 Chapter II Operation EX: G01 X100.000 ( 100.000 use MPG hand-wheel input coordinate ) 1. Enter Teach mode 2. Enter LINE 3. Move the tool to the location 100.000 coordinate by using MPG hand-wheel and press the key. INPUT 4. Enter LINE 2 - 47...
  • Page 58 HUST CNC-H4CL-M Manual 2 - 48...
  • Page 59: Chapter Iii Programming And Command Codes

    This chapter definitely describes the command codes of H4CL-M series and provides simple examples for each command to explain its applications. The definition of G-codes in the H4CL-M series is similar to other controllers. They are classified into two groups: (Table 3-1).
  • Page 60 HUST CNC-H4CL-M Manual The G-codes of H4CL-M controller are listed in Table 3-1. Only one G-code of the same group can be set for one program block. If more than one G-code is set, only the last G-code is valid.
  • Page 61: Fast Positioning G00

    * 95 # Feed-rate specified by mm/revolution ˙ * -- Modal G-codes ˙ # -- Default settings upon power-on of the controller ˙ $ -- Special functions of H4CL-M Series. ˙ % -- Optional functions Fast Positioning, G00 Format: G00 X(U)____Y(V)____Z(W)____ X, Y.
  • Page 62 HUST CNC-H4CL-M Manual movement distance for fast positioning. The feed-rate of other axes is determined based on their movement distance and the components of the axis with the longest movement distance. If the calculated speed of any axis exceeds the MCM setting value, the controller will re-calculate the feed-rate of other axes based on the feed-rate of the overrun axis.
  • Page 63: Linear Cutting, G01

    Chapter III Programming and Command Codes Linear Cutting, G01 Format: G01 X(U)____Y(V)____Z(W)____A____F____ X,Y,Z,A : End point in absolute coordinates U,V,W : End point in incremental coordinates relative to the start point of the program block. : Cutting feed-rate (F-code can be used in combination with any G-code) The F-code can be used in the G00 block without affecting the fast positioning movement.
  • Page 64: Cnc And Master/Slave Mode

    HUST CNC-H4CL-M Manual G91 incremental program (Fig 3-2) N1 G91 N2 G01 X25.000 Y20.000 Z10.000 F100.00 … P1 N3 X35.000 Y30.000 Z30.000 … P2 G90 increment program (Fig 3-2) N1 G90 N2 G01 U25.000 V20.000 W10.000 F100.00 … P1 N3 V35.000 V30.000 W30.000 …...
  • Page 65 Chapter III Programming and Command Codes MCM #93 is used to set CNC and master/slave modes: 0 = CNC mode, 1 = master/slave mode with the X-axis as the master, 2 = master/slave mode with the Y-axis as the master, 3 = master/slave mode with the Z-axis as the master, 4 = No-dwell Mode.
  • Page 66 HUST CNC-H4CL-M Manual F value 1500 1000 X travel F value 1000 Y travel F value 1000 Z travel Fig. 3-3 CNC Mode with G01- exponential curve Acc. / Dec. Ex.2 and Ex.3 show how to calculate X and Y feed-rate in CNC mode using formulae (1) and (2).
  • Page 67 Chapter III Programming and Command Codes Since Fy > TRY (1000), the feed-rate is limited to: Fx = (894.4/1788.9) * 1000 = 500 Fy =(1788.9/1788.9) * 1000=1000 Master/Slave Mode: MCM #93 is not set to 0 If MCM #93 is set to 1 with the X-axis as the master and the other axes as slaves, the speed between blocks is not reset to 0 but adjusted to the feed-rate of the next block.
  • Page 68 HUST CNC-H4CL-M Manual F value 1500 1000 X-master F value 1000 Y-slave F value 1000 Z-slave Fig 3-4 Master/ Slave Mode - linear Acc./Dec. If the motor accelerates or decelerates in “S” curve, the acceleration/deceleration status between blocks is shown in Fig 3-4A:...
  • Page 69 Chapter III Programming and Command Codes Ex2: As shown in Fig 3-5, X is the master while Y and Z are the slaves. The feed- rate of the master axis (X) in each block doesn’t change, but the feed-rate of the slave axes (Y, Z) changes along with the incremental slope ratio.
  • Page 70 HUST CNC-H4CL-M Manual Slave feed-rate Fy =(50/100) * 2000.00=1000 Fy < TRY (4000), So, the feed-rate is determined by the TRX value of MCM#148 (X-axis). Ex. 4: G0 U100.0 V300.0 (X-axis as Master, MCM#93=1) Master feed-rate Fx = 2000 Slave feed-rate Fy =(300/100) * 2000=6000 Fy >...
  • Page 71 Chapter III Programming and Command Codes The end point coordinates of arc cutting. The start point is the coordinates of the tool when G02 or G03 execute. I, J, K and R I, J and K are the increment or decrement from the start point of the arc to the center of the circle.
  • Page 72 HUST CNC-H4CL-M Manual As shown in Fig. 3-8, R-value is either positive (+) or negative (-) during the arc cutting. R-value ranges from –4000. mm to +4000.mm. 1. R values must be positive when an arc less than 180 ° is cut 2.
  • Page 73: Servo Spindle Positioning Command

    This speed is subject to the radius of the arc and the F value of the program because H4CL-M system uses a fixed 1 μm chord height error. (Chord Height Error is the maximum distance between the arc and chord) 2.
  • Page 74: Thread Cutting

    HUST CNC-H4CL-M Manual Thread Cutting, G17, G18, G19 This command is set as an independent block before the arc cutting command. It executes an arc cutting on a plane specified by G17, G18, G19 and perform a linear cutting on a third axis along the path same as the path of a constant-diameter spring.
  • Page 75 Chapter III Programming and Command Codes axis. Clockwise is G02 and counter-clockwise is G03. Fig 3-13 Format: (Refer to Fig 3-6 and Fig 3-13) N1 G18 N2 G02 (or G03)Z___X___ K____ I____Y____F____ (R can replace K,I) G19, Y-Z Arc Cutting Plane If you look at the machine from the right side (along the X-axis toward the negative direction), you have Y-Z arc cutting plane with X-axis as the linear axis.
  • Page 76: Dwell Command, G04

    HUST CNC-H4CL-M Manual N2 G03 X80.000 Y30.000 R30.000 Z40.000 F100 End Point R = 30 Start Point Fig 3-15 Dwell Command, G04 Format: G04 X____ Dwell time in seconds (the X here indicates time rather than coordinates). To meet machining requirements, the axial movement may need to hold for a while when the execution of a program block is completed before the command for the next block is executed.
  • Page 77: Data Setting, G10

    3.10 Data Settings, G10 Table 3-2 HUST H4CL-M G10 Command Code List G10 Command Code List Set the work origin on the G54~G59 G10 X **...
  • Page 78: Set The Work Origin Using G10 (Recommended)

    HUST CNC-H4CL-M Manual Clear all programs in the memory of G10 P2001 the controller G10 P2002 Clear all variables #1 ~ #9999 to zero Load part program from FLASHROM to memory. G10 P2100 3.10.1 Set the Work Origin Using G10 (Recommended) ,G10 Set the work origin on the G54~G59 work coordinate system using G10 command.
  • Page 79: Set The Tool Length Compensation Using G10

    Chapter III Programming and Command Codes Z15. Input. Press the CYCST key to finish the setting. The following precautions should be observed when using G10 to set the work origin. Do not add P__ to the G10 block, otherwise, it becomes a tool length (movement) compensation command.
  • Page 80 HUST CNC-H4CL-M Manual VAR9015 VAR9016 VAR9017 VAR9018 VAR9190 VAR9191 VAR9192 VAR9193 VAR9195 VAR9196 VAR9197 VAR9198 X -axis Y -axis Z -axis R - Tool radius P –tool group wear Tool wear Tool wear Tool wear number compensation compensation compensation compensation...
  • Page 81: Set And Clear The Counter Limit Using G10

    Chapter III Programming and Command Codes >> MCM#9205 = 0.02+0.01 = 0.03 MCM#9206 = 0.03+0.05 = 0.05 MCM#9207 = 1.25+1.72 = +2.97 3.10.3 Set and Clear the Counter Limit Using G10 Counter Limit Data Setting Format: G10 P200 L___ --P200 is a fixed value while L__ is used to set up the counter limit data of MCM #170.
  • Page 82: Set G01 Acceleration/Deceleration Time Using G10

    HUST CNC-H4CL-M Manual 3.10.4 Set G01 Acceleration/Deceleration Time Using G10 The acceleration/deceleration time is stored in MCM #166. This setting can be adjusted using one of the following 3 methods. 1. Change the setting directly in the MCM EDIT mode.
  • Page 83: Return To The First Reference Point, G28

    Chapter III Programming and Command Codes N003 M02 N005 G65 L85 P008 A#1 B200 N006 G10 P800 L50 N007 M02 N008 G10 P800 L100 N010 M02 Step 2: Enter AUTO mode and execute O001 Result>>Since #1 = 120, MCM #166=50 (m/sec) 3.11 Imperial/Metric Measuring Modes, G20, G21 Format: G20 --...
  • Page 84: Return To Previous Position From The Reference Point, G29

    HUST CNC-H4CL-M Manual Ex: G40 Tool compensation is canceled (it can not co-exist with G28 in the same block) G28 X10. Tool returns to the 1st reference point on the X-axis, while the Y and Z axes do not move.
  • Page 85: Tool Compensation

    3.16 Tool Compensation The tool compensations of HUST H4CL-M CNC have three types The data of tool compensation are store in the tool length compensation and tool radius wear compensation, and can store 40 tool compensation data. These data can be called by G41, G42, G43, G44 commands.
  • Page 86: Tool Radius And Radius Wear Compensation

    HUST CNC-H4CL-M Manual compensation if required. Tool radius wear compensation To compensate the error in x or y-axis resulting from tool radius wear after This compensation is usually used in combination with the tool radius compensation. The compensation data are stored in the length wear radius compensation.
  • Page 87: The Initial Setting Of The Tool Radius Compensation

    Chapter III Programming and Command Codes Center G41 (Left Side of the Path Direction) workpiece Tool Path Dir. G42 (Right Side of the Path Direction) Fig 3-17 G41 and G42 Applications Execution of Tool Radius Wear Compensation Tool radius wear compensation is executed in the same way as the tool radius compensation is.
  • Page 88 HUST CNC-H4CL-M Manual N3 X______ Program path Fig 3-18 Radius compensation-1 Radius compensation is complete at the start point (B) of the arc cutting. N1 G01 F200.00 N2 G41(G42) N______ X______ Y______ N3 G02 X______ Y______ J______ Program path Fig 3-19 Radius compensation-2 3.16.3 Relationship between Radius Compensation and Tool Path...
  • Page 89 Path Fig 3-22 Compensation Direction Change HUST H4CL-M does not accept the direct change of compensation direction from G41 to G42 or from G42 to G41. Where changing of the direction is required, the compensation must be cancelled using G40 before the direction can be changed.
  • Page 90: Tool Radius Compensation - Cancellation

    HUST CNC-H4CL-M Manual Tool Radius Change Like the direction change, HUST H4CL-M does not accept the direct change from one tool number to another for radius compensation. Where changing of the tool number is required, the compensation must be cancelled using G40 before tool number can be changed.
  • Page 91: Notes On Tool Radius Compensation

    (G41,42), the writing method of the radius value “R” is applicable. Where multiple axes are controlled simultaneously, the tool radius compensation of the HUST H4CL-M is only valid on the X, Y plane not on the Z- axis. The tool radius compensation function is not available for MDI operation.
  • Page 92 HUST CNC-H4CL-M Manual Fig 3-27 Programming examples Programming Examples of Tool Radius Compensation: N1 G91 ... Incremental coordinates setting N2 G01 Z-2.500 F150..Z-axis cutting by 2.5mm N3 G17 F300..X-Y cutting plane setting N4 G41 D10 Y30.000 ...
  • Page 93: Tool Length Compensation

    Chapter III Programming and Command Codes N11 G03 X-80.000 R50.000 ... Arc cutting from G~H N12 G01 X-70.000 ... Linear cutting from H~I N14 Z2.500 ... Z-axis rising by 2.5mm N15 G40 ... Compensation cancelled, ready for direction change N16 M01 ...
  • Page 94 HUST CNC-H4CL-M Manual H : Tool number for which the length compensation is executed. Explanation: Different tools are used for processing of work-pieces on a milling machine or machining center. Since the length is different among tools, the distance from the tool-tip to the work-piece varies to a significant extent.
  • Page 95 Chapter III Programming and Command Codes N4 G01 Z-30.000 F200 N5 G49 Z0.000 N3 Block N4 Block (Aft. (Aft. Compensation) Compensation) Fig 3-28 Ex 2: N1 G00 X-2.000 Y-2.000 N2 G44 Z-30.000 H1 (Length compensation 4,000) N3 G01 Z-40.000 N4 G49 Z0.000 N2 Block N3 Block (Aft.
  • Page 96: Work Coordinate System Setting, G54~G59

    HUST CNC-H4CL-M Manual N8 G00 Z41.000 N9 X50.000 Y30.000 N10 G01 Z-25.000 N11 G04 X2.000 N12 G00 Z57.000 N13 G49 X-200.000 Y-60.000 N14 M02 Start Point Fig 3-30 3.17 Work Coordinate System Setting, G54~G59 There are two coordinate systems for CNC machine tools. This section describes how to use these coordinate systems.
  • Page 97: Work Coordinate System Setting, G54~G59

    3.17.2 Work Coordinate System Settings, G54~G59 H4CL-M series provides 6 sets of work origins. The coordinate system comprising these work origins is called Work Coordinate System. The 6 sets of work origins are located relative to the position of the machine origin. Their coordinates are called machine coordinates and stored in MCM #1~36.
  • Page 98 HUST CNC-H4CL-M Manual Direct modification in MCM mode Manual jog mode The application of these work origins in the program is executed by the G54~G59 command codes. Depending on processing requirements and programming, the user can select up to six sets of work origins to work with.
  • Page 99 Chapter III Programming and Command Codes Machine Origin Fig 3-32 G54~G59 Work Coordinate System Note that the program coordinates are changed when the work coordinate system is selected. The changed coordinates are determined based on the selected work coordinate system. When the action of cutting a circle or semi-circle is added to the above program, the application of G54 and G55 can be illustrated as follows.
  • Page 100 HUST CNC-H4CL-M Manual second work-piece (Machine coordinates X-80.,Y-30.) N6 G1 V10.0 F300..Y-axis feeding (incremental command) travels to +10.0 N7 G3 V-20.0 R10.0 F300..Cut a semi-circle in CCW with R=10.0 N8 G1 V10.0 F300..Y-axis feeding (incremental command) travels to +10.0...
  • Page 101: Mirror-Effect Cutting

    Chapter III Programming and Command Codes M98 P___ -- Cut pattern 2 (P___ subprogram code) -- Invert the sign of Y-coordinates behind G69 block M98 P___ -- Cut pattern 3 (P___ subprogram code) -- Invert the sign of X-coordinates behind G68 block M98 P___ -- Cut pattern 4 (P___ subprogram code) -- Invert the sign of Y-coordinates behind G69 block.
  • Page 102: Absolute And Incremental Coordinate Settings

    Absolute coordinates setting Incremental coordinates setting The absolute coordinates system is the default power-on of the H4CL-M Series. Use G90 and G91 to set the absolute or incremental coordinates in the program. The incremental bit-code U,V,W are only valid in the G90 status. They are invalid in the G91 status.
  • Page 103: Canned Cycle Functions (H4Cl-M Only), G81~G89, G80

    Fig 3-35 G90, G91 Example 3.20 Canned Cycle Functions (H4CL-M only), G81~G89, G80 These G-code commands are for the H4CL-M milling machine only, and NOT for other HUST CNC controllers. H4CL-M provides a number of canned cycle cutting functions for processing.
  • Page 104: G90 Or G91-Absolute Or Incremental Coordinate Setting

    HUST CNC-H4CL-M Manual Drill bit retracted to R-point. The moving speed depends on the command specified. Move back to the start point S at G00 feed-rate. When applying the canned cycle function, M03 is used for normal spindle rotation, M04 is used for reverse spindle rotation, and M05 is used for spindle stop.
  • Page 105: G94 Or G99 - Feedrate,Setting

    Chapter III Programming and Command Codes (Fig. 3-37) when executing different commands (G90/G91). G90 Absolute G91 Incremental Coordinate Coordinate Start Point Start Point S Point Z = 0 R Point Point Z Point (Hole Bottom) G00 Rate G01 Rate Z Point (Hole Bottom) Fig 3-37 G90 and G91 Application 3.22 G94 or G95 –...
  • Page 106: G80, G81~G89 -- Canned Cycle Commands

    HUST CNC-H4CL-M Manual G98 Return to Initial Start point G99 Return to R Pt. Start point Start point S pt. R pt. R pt. Z Point (hole bottom) Z point (hole bottom) Example: M3 S1000 ;Master Axis forward revolution ; Set to initial point G00 X10.Y10.Z10.
  • Page 107: G80 Cancellation Of Canned Cycle

    Chapter III Programming and Command Codes Drilling Canned G01 Feed G00 Fast Cycle rate Drilling Canned G01 Feed Dwell G00 Fast Cycle rate Deep Hole G01 Feed Drilling (peck G00 Fast rate drill) Steel threading G01 Feed FeedRate Boring Canned G01 Feed G01 Rate Cycle...
  • Page 108: G82 Drilling Canned Cycle

    HUST CNC-H4CL-M Manual 3.27 G82 Drilling Canned Cycle Format: G82 X____Y____Z____P____R____K____F____ (X,Y) S Start Point R Point G00 Rate G01 Rate Z Point (Hole Bottom) P (Dwell at Hole Bottom) Fig 3-41 G82 Drilling Canned Cycle The difference between G81 and G82 is that G82 has a wait time (P) before retraction when the drill bit reaches the bottom.
  • Page 109: G84 Taping Cutting Canned Cycle

    Chapter III Programming and Command Codes set in MCM parameter #282. (The d value can be changed in the graphics input form.) 3.29 G84 Tap Cutting Canned Cycle G84 X(U)___,Y(V)___,Z(W)___,R___,Q___,F___ S Start S Start (X,Y) (X,Y) R pt. R pt. Z pt.
  • Page 110: G85 Boring Canned Cycle

    HUST CNC-H4CL-M Manual resolution setting is: Resolution numerator 36000 resolution denominato 10000 3.30 G85 Boring Canned Cycle Format: G85 X____Y____Z____R____K____F____ (X,Y) S Start Point R Point G00 Rate G01 Rate Z Point (Hole Botton) Fig 3-43 G85 Boring Canned Cycle 3.31 G86 Boring Canned Cycle (Spindle Stop at Hole Bottom)
  • Page 111: G89 Boring Canned Cycle With Dwell At Hole Bottom

    Chapter III Programming and Command Codes 3.32 G89 Boring Canned Cycle with Dwell at Hole Bottom Format: G89 X____Y____Z____R____P____K____F____ (X,Y) S Start Point R Point G00 Rate G01 Rate Z Point(Hole Botton) P(Dwell at Hole Botton) Fig 3-45 G89 Boring Canned Cycle The difference between G85 and G89 is that G89 has a wait time (P) before retraction when the drill bit reaches bottom.
  • Page 112 HUST CNC-H4CL-M Manual Explanation: G00 X(x) Y(y) G00 Z(r) G01 Z(z) F(f) G01 X(x+I) Y(y+j) G00 Z(r) 3.34 G23 Arc Groove Milling (Only available in absolute mode) Format: G23 X___Y___Z___R___I___J____K___T___F____ Start point coordinate Start point coordinate Groove depth Height of outer part...
  • Page 113: G24 Square Groove Milling

    Chapter III Programming and Command Codes The gray area shows the cutting trajectory. PS. R-value is positive when an arc less than 180-degrees is cut. R-value is negative when an arc greater than 180-degrees is cut. 3.35 G24 Square Groove Milling (Only available in absolute mode) Format: G24 X___Y___Z___R___I___J____D___T___F____ Start point coordinate...
  • Page 114: G25 Round Groove Milling

    HUST CNC-H4CL-M Manual T=1; As shown in the above figure, an inner square is cut in a S-shaped groove- milling manner. Then cut again along the side to remove the part that is not cut during the S-shaped groove milling process.
  • Page 115: Special Canned Cycle

    Chapter III Programming and Command Codes G01 Z(z) F(f) G02 I(k) J(0) R(k) F(f) G00 Z(r) T=1; G00 X(x-k) Y(y) G00 Z(r) G01 U(d) F(f) G01 Z(z) F(f) G02 I(k) J(0) R(k) F(f) IF (k>d) THEN {[k=k-d]and[goto N3]} G00 Z(r) 3.37 Special Canned Cycle The special canned cycle should go with the canned cycle commands G81~G89.
  • Page 116: G35 Angular Linear Drilling Canned Cycle

    HUST CNC-H4CL-M Manual The amount of circular holes – n Drilling speed Example: N001 G81 Z-100. R-50.K0 F100 Definition of drilling resource N002 G34 X100. Y100. I50. J45. K4 N003 G80 Canned cycle command canceled 3.39 G35 Angular Linear Drilling Canned Cycle...
  • Page 117: G36 Arc Drilling Canned Cycle

    Chapter III Programming and Command Codes N003 G80 Canned cycle command canceled Action Diagram 3.40 G36 Arc Drilling Canned Cycle Format: G36 X___Y___ I___J____P____K___F____ Center coordinate Center coordinate Circle radius Angle of the first hole – θ Angle of each drilling The number of arc holes Center of coordinate...
  • Page 118: G37 Grid Drilling Canned Cycle

    M followed by a 2-digit number. The M-code ranges 00~99 and each code represents a different action. The following M-codes are used by H4CL-M system and no customers are allowed access. M00 Program Stop. When the program runs to this point, all processing actions stop, including spindle and coolant.
  • Page 119: Subprogram

    Except for the above M-codes that cannot be changed, customers may define other M-codes in the PLC if required. Examples of some general settings are shown below. These examples are also parts of the H4CL-M standard PLC Ladder. M03 Spindle rotation in normal direction.
  • Page 120: Execution Of Subprogram

    M98 P05 L3 Stepwise Call: The main program calls the first subprogram, and the first subprogram calls the second subprogram in turn. The H4CL-M Series controller provides a maximum of 5 levels stepwise call, as shown in the following figure:...
  • Page 121 Chapter III Programming and Command Codes Ex.: L2 stands for addition (+) and L3 stands for subtraction (-). Functions. 1. P#i is the location to store the result of mathematical operations. 2. Pi is the program serial number for line feed when a function is deemed as valid.
  • Page 122 HUST CNC-H4CL-M Manual Ex. 2: #2 = 25, #3 = 5 G65 L04 P#1 A#2 B-#3 ; #1 = #2× -#3 = -125 。 3. If the content value of #j and #k is entered as a constant, it must be an integer (max 7 digits, + or -).
  • Page 123 Chapter III Programming and Command Codes Table 3-4 Mathematical Operator Definitions For HUST G65 Command Operator Definition Mathematical Definitions code code Equal or Substitution, #i = #j Addition #i = #j + #k Subtraction #i = #j - #k Multiplication #i = #j x #k Division #i = #j / #k...
  • Page 124 HUST CNC-H4CL-M Manual –1 Arctangent (Tan Obtain Data in Register #i = #j Obtain I-Bit data #i = #j Obtain O-Bit data #i = #j Obtain C-Bit data #i = #j Obtain S-Bit data #i = #j Obtain A-Bit data...
  • Page 125 Chapter III Programming and Command Codes Mathematical Operation Examples (See Table 3-4) 1. Equal or Substitution G65 L1 P#i A#j ; #i = #j Ex. 1: #10 initial value=0, for #10 = 150 Command : G65 L1 P#10 A150 Result : #10 = 150 Ex.
  • Page 126 #10 = #4 × #30 Command : G65 L4 P#10 A#4 B#30 Result : #10 = ????? (HUST H4CL-M controller cannot handle the multiplied values greater than 9999.999.) 5. Division G65 L5 P#i A#j B#k ; #i = #j / #k Results less than 1 are disregarded.
  • Page 127 Chapter III Programming and Command Codes G65 L7 P#i A#j B#k ; #i = #j; #(i+1)=#(j+1) …. If #i plus 900000 ; #(#i) =#j; #(#i)+1=#(j+1) Note: 0 < #k < 1024 Ex. 1: Copy #10 ….. #20 to #125…. #135 Command : G65 L7 P#125 A#10 B11 Result...
  • Page 128 HUST CNC-H4CL-M Manual Ex. 2: For #10 = #10 .AND. 10, #10 = 15 Command : G65 L12 P#10 A#10 B10 Result : #10 = 15 .AND. 10 = 10 10. Logic XOR G65 L13 P#i A#j B#k ; #i = #j .XOR. #k Ex.
  • Page 129 Chapter III Programming and Command Codes Ex. 2: Initial value #10 = 7 Command : G65 L14 P#12 A#10 B1 (ROL once) Result : #12 = 14 Bit 15 14 … … Bit 15 14 … … Ex. 3: Initial value #10 = -2 Command : G65 L14 P#12 A#10 B1 (ROL once) Result...
  • Page 130 HUST CNC-H4CL-M Manual Command : G65 L15 P#12 A#10 B1 (ROR once) Result : #12 = 32769 Bit 15 14 … … Bit 15 14 … … Ex. 2: Initial value #10 = 6 Command : G65 L15 P#12 A#10 B1 (ROR once)
  • Page 131 Chapter III Programming and Command Codes Bit 15 14 … … Bit 15 14 … … 14. LSR (Move Right) G65 L17 P#i A#j B#k Bit 15 14 … … Ex. 1: Initial value #10 = 13 Command : G65 L17 P#12 A#10 B2 (LSR twice) Result : #12 = 3 Bit 15 14 …...
  • Page 132 G65 L26 P#i A#j B#k ; #i =( #i × #j )/#k Note 1: HUST H4CL-M controller cannot handle multiplied values greater than 9999.999. However, if you use G65 L26 for the operation, the multiplied value can exceed 7 digits as long as the final result after division is less than 7 digits.
  • Page 133 Note 1: The angle #k has 5 integers and 2 decimals in this format. #k = 4500 stands for #k = 45 ° Note 2: Since Sin(#K) ≦ 1 and the HUST H4CL-M system does not operate on decimals, the numbers after the decimal point, if any, will be automatically disregarded.
  • Page 134 HUST CNC-H4CL-M Manual Note 2: The numbers after the decimal point, if any, will be automatically disregarded. Therefore, G65 L33 must by multiplied by a number #J. For example: #1 = tan60 ° = 1.732. The format of 1.732 in the system is 0001732, so the operation is G65 L33 P#1 A1000 B6000.
  • Page 135 Chapter III Programming and Command Codes Functions G65 L51, G65 L52, G65 L53, G65 L54, G65 L55 are used to acquire PLC-IOCSA status signal. A#J in the function acquires 16-bit data at a time. G65 L51 G65 L52 G65 L53 G65 L54 G65 L55 I-BIT...
  • Page 136 HUST CNC-H4CL-M Manual xx xx xx xx xx xx xx xx I23 I22 I21 I20 I19 I18 I17 I16 25. Obtain O-Bit Data G65 L52 P#i A#j ; #i=#j=O(#j×16)…O(#j×16+15) Note 1: Function A#J ranging 0 (O000 …. O015) Ex. 1: For #10 = O000 .. O015...
  • Page 137 Chapter III Programming and Command Codes 28. Obtain A-Bit Data G65 L55 P#i A#j ; #i=#j=A(#j×16)…A(#j×16+15) Note 1: Function A#J ranging 0… 63 (A000 ….A1023) 。 Ex. 1: for #10 = A016 .. A031 Command : G65 L55 P#10 A1 Result : #10 = 229 A31 A30 A29 A28 A27 A26 A25 A24 A23 A22 A21 A20 A19 A18 A17 A16...
  • Page 138 HUST CNC-H4CL-M Manual G65 L80 Pn ; Program branches to block number 'n'. Ex. 1: Program: N10 G65 L80 P4 N20 X100. N30 Y200. N40 M02 Result: When the program runs to N10, it branches to N40 and ignores N20 &...
  • Page 139 Chapter III Programming and Command Codes Result: N10 sets #1=20, so when the program runs to N20, it branches to N50 and ignores N30 & N40 because #1 ≠ 10 is true. 35. Conditional Branching 3 ; If #j > #k branches to n G65 L83 Pn A#j B#k Ex.
  • Page 140 HUST CNC-H4CL-M Manual N30 X100. N40 Y100. N50 M02 Result: N10 sets #1=100, so when the program runs to N20, it branches to N50 and ignores N20 & N30 & N40 because #1 ≧ 100 is true. 38. Conditional Branching 6 ;...
  • Page 141 Chapter III Programming and Command Codes sealing machine. A sensor is used to check the changing color tones or patterns of the material. The following only introduces part of the main program, which also forms an independent subprogram. The program is divided into two parts: sensor (I005 signal) On and Off.
  • Page 142 HUST CNC-H4CL-M Manual 3 - 84...
  • Page 143: Chapter Iv Mcm Parameter Settings

    Chapter IV MCM Parameter Settings 4 MCM Parameter Settings MCM Parameter Settings The MCM parameter setting function allows the user to define the system constants of the controller according to mechanical specifications and machining conditions. The correct and proper setting of these constants is important in the operation of the mechanical system and fabrication of the work- piece.
  • Page 144 HUST CNC-H4CL-M Manual PAGE2 H4CL-M H4PL-M 4 - 2...
  • Page 145 Chapter IV MCM Parameter Settings (2) On the Parameter Settings screen-2 1. Enter MDI mode and execute M9999 command. 2. Press the CYCST key. 3. After entering the menu, press PAGE UP/PAGE DOWN to switch pages. After revising parameters, remember to press RESET to exit. (3) Change via Upload from RS232C: Use the transmission software (HCON) to send parameters to the PC for saving as a text file.
  • Page 146: Mcm Parameter Settings

    HUST CNC-H4CL-M Manual MCM Parameter Setting List Factory Parameter Default Unit Description Remarks Settings G54 X-axis 1 work coordinates setting G54 Y-axis 1 Work coordinates setting G54 Z-axis 1 work coordinates setting G54 A-axis 1 work coordinates setting Reserved Reserved...
  • Page 147 Chapter IV MCM Parameter Settings Factory Parameter Default Unit Description Remarks Settings Reserved 2nd tool radius compensation setting X-axis 3 tool length compensation setting Y-axis 3 tool length compensation setting Z-axis 3 tool length compensation setting A-axis 3 tool length compensation data setting Reserved Reserved 3rd tool radius compensation setting...
  • Page 148 HUST CNC-H4CL-M Manual Factory Parameter Default Unit Description Remarks Settings G28 X-axis 1st ref. point setting G28 Y-axis 1st ref. point setting G28 Z-axis 1st ref. point setting G28 A-axis 1st ref. point setting Reserved Reserved G30 X-axis 2nd ref. point setting G30 Y-axis 2nd ref.
  • Page 149 Chapter IV MCM Parameter Settings Factory Parameter Default Unit Description Remarks Settings Pulse Reserved µm Reserved Pulse Reserved µm Reserved X-axis homing direction when tool returning to machine origin. 0=positive, 1=negative. Y-axis homing direction when tool returning to machine origin. 0=positive, 1=negative Z-axis homing direction when tool returning to machine origin.
  • Page 150 HUST CNC-H4CL-M Manual Factory Parameter Default Unit Description Remarks Settings X-axis, encoder pulse multiplication factor, 1, 2, or 4 Y-axis, encoder pulse multiplication factor, 1, 2, or 4 Z- axis, encoder pulse multiplication factor, 1, 2, or 4 A-axis, encoder pulse multiplication factor, 1,...
  • Page 151 Chapter IV MCM Parameter Settings Factory Parameter Default Unit Description Remarks Settings Z-axis program coordinates clearing when encountering M02, M30, M99 A-axis program coordinates clearing when encountering M02, M30, M99 Reserved Reserved X-axis incr./abs. program command, 0=incremental, 1=absolute Y-axis incr./abs. program command, 0=incremental, 1=absolute Z-axis incr./abs.
  • Page 152 HUST CNC-H4CL-M Manual Factory Parameter Default Unit Description Remarks Settings Start number for automatic generation of program block numbers Increment of numbers during automatic generation of program block numbers Denominator of feed-rate multiplier when in MPG test mode Numerator of feed- rate multiplier when in MPG...
  • Page 153 Chapter IV MCM Parameter Settings Factory Parameter Default Unit Description Remarks Settings A is the linear axis when A-axis=0 A is the rotating axis when A-axis ≠0 Reserved Reserved Arc cutting error.(ideal value=1) Display of coordinates per servo spindle 360000 rotation Reserved X Home Limit switch input no.
  • Page 154 HUST CNC-H4CL-M Manual Factory Parameter Default Unit Description Remarks Settings setting Z-axis ball screw pitch error compensation setting A-axis ball screw pitch error compensation setting Reserved Reserved X-axis segment length of pitch error 20000 compensation Y-axis segment length of pitch error...
  • Page 155: Description Of Mcm Parameters

    Chapter IV MCM Parameter Settings Description of MCM Parameters In this section the decimal format of parameters is described based on the 4/3 format. The work coordinates of MCM parameters #1~36 are set by G54~G59. That is to set the work origin of the work coordinates, the machine coordinates of the work origin are relative to the machine coordinates with the machine origin as the zero point.
  • Page 156 HUST CNC-H4CL-M Manual G59 X-axis 4th work coordinates setting. Format=□.□□□Unit: mm G59 Y-axis 4th work coordinates setting. Format=□.□□□Unit: mm G59 Z-axis 4th work coordinates setting. Format=□.□□□Unit: mm G59 A-axis 4th work coordinates setting. Format=□.□□□Unit: mm G59 X-axis 5th work coordinates setting.
  • Page 157 Chapter IV MCM Parameter Settings A-axis 1st tool length compensation. Format=□.□□□Unit: mm Radius compensation Format=□.□□□Unit: mm X-axis 2nd tool length compensation. Format=□.□□□Unit: mm Y-axis 2nd tool length compensation. Format=□.□□□Unit: mm Z-axis 2nd tool length compensation. Format=□.□□□Unit: mm A-axis 2nd tool length compensation. Format=□.□□□Unit: mm Radius compensation Format=□.□□□Unit: mm...
  • Page 158 HUST CNC-H4CL-M Manual A-axis 4th tool length compensation. Format=□.□□□Unit: mm Radius compensation Format=□.□□□Unit: mm X-axis 5th tool length compensation. Format=□.□□□Unit: mm Y-axis 5th tool length compensation. Format=□.□□□Unit: mm Z-axis 5th tool length compensation . Format=□.□□□Unit: mm A-axis 5th tool length compensation.
  • Page 159 Chapter IV MCM Parameter Settings A-axis 7th tool length compensation. Format=□.□□□Unit: mm Radius compensation Format=□.□□□Unit: mm X-axis 8th tool length compensation. Format=□.□□□Unit: mm Y-axis 8th tool length compensation. Format=□.□□□Unit: mm Z-axis 8th tool length compensation. Format=□.□□□Unit: mm A-axis 8th tool length compensation. Format=□.□□□Unit: mm Radius compensation Format=□.□□□Unit: mm...
  • Page 160 HUST CNC-H4CL-M Manual 106. X-axis backlash compensation setting. 107. Y-axis backlash compensation setting. 108. Z-axis backlash compensation setting. 109. A-axis backlash compensation setting. Format=□.□□□ (Default=0) Unit: pulse Range:1024 112. X-axis JOG speed, & power-on G01 speed setting, unit: mm/min 113.
  • Page 161 Chapter IV MCM Parameter Settings X-axis resolution denominator (MCM#118) =10 X-axis resolution numerator (MCM#119) =1 Ex2: Y-axis = rotating axis (MCM#254 = 1), angle per rotation = 360.000° Motor encoder=2500 pulses, multiplication factor=4 (MCM#161 = 4) Gear Ratio= 5:1 (Servomotor rotates 5 turns = Y-axis Rotates 1 turn) 360000 Resolution ×...
  • Page 162 HUST CNC-H4CL-M Manual HUST H4CL-M Series controller provides three velocities for an axis to return to the machine origin (Fig 7-2) First velocity: The velocity of X, Y, Z, and A is set respectively in MCM#136~139, while the direction is set in MCM#130~133.
  • Page 163 Chapter IV MCM Parameter Settings Speed : #136~139 Touch limit switch Direction: #130~133 C064=1 、 C065=1 、 Leave limit switch C064=0 、 C065=0 、 C066=1 C066=0 Speed : #136~139 × 1/4 Direction: #231~234=256 First Speed Speed Identify encoder INDEX Speed : #142~145 Second Direction :...
  • Page 164 HUST CNC-H4CL-M Manual Touch limit switch C064=1 、 C065=1 、 C066=1 Leave limit switch C064=0 、 C065=0 、 First Speed Speed C066=0 Speed : #136~139 × 1/4 Direction: #231~234=1 Second Tool position Third Identify encoder INDEX Speed : #142~145 Direction : #231~234=1 Fig 4-2 (C) Homing Speed and Homing Grid Direction Speed :...
  • Page 165 Chapter IV MCM Parameter Settings Note: the setting is an integer format. If you set the Z-axis as 5000, which means that your highest feed rate will be 5000 mm per minute. The feed speed limit can be calculated from the following equation: Fmax = 0.95 x RPM (the rated rpm of the servomotor) x Pitch (ball screw pitch) ÷...
  • Page 166 HUST CNC-H4CL-M Manual Example: X-AXIS Servo signal VCMD Travel command -10 ~ +10V Ground signal X-AXIS Servo signal VCMD Travel command -10~+10v +10V+10V Ground signal 160. X-axis, encoder pulse multiplication factor 161. Y-axis, encoder pulse multiplication factor 162. Z-axis, encoder pulse multiplication factor 163.
  • Page 167 Chapter IV MCM Parameter Settings 166. G00 accel/decel time constant setting Format=□□□ (Default=100) Unit: Millisecond (msec.) Setting range: 4~512 ms. 167. G01 accel./decel. time constant setting. Format=□□□ (Default=100) Unit: Millisecond (msec.) Setting range: 10 ~ 1024 ms. 100 ms is the recommended for G00 and G01.
  • Page 168 HUST CNC-H4CL-M Manual 177. X-axis software OT Limit in (-) 178. Y-axis software OT Limit in (-) 179. Z-axis software OT Limit in (-) 180. A-axis software OT Limit in (-) Format=□□□□.□□□ (Default=-9999.999) Unit: mm/min The set value is the negative distance between software OT and the machine origin).
  • Page 169 Chapter IV MCM Parameter Settings 190. X-axis program coordinate clearing when encountering M02, M30, M99 191. Y-axis program coordinate clearing when encountering M02, M30, M99. 192. Z-axis program coordinate clearing when encountering M02, M30, M99 193. A-axis program coordinate clearing when encountering M02, M30, M99 Format=□□□□(Default=0) 0 = Program coordinates are not cleared when encountering M02, M30, M99.
  • Page 170 HUST CNC-H4CL-M Manual axes must be set to 1 as the absolute coordinate to give U, V, and W commands. *Description 3: If a four-axis absolute or incremental change is required in conjunction with G90, G91, the absolute or incremental...
  • Page 171 2046 4096 Server Error (Error Count) Fig 4-4 Relationship between the Driver V-command and Servo Error Formula of the position gain and HUST H4CL-M V-command: Setting Position Gain CNC Controller V-cmd = GAIN * Servo Encoder Feedback Error * (...
  • Page 172 HUST CNC-H4CL-M Manual The HUST controller provides a closed-circuit system. The servo-error is the difference in pulses between the position command and actual motor encoder pulses. The control unit will adjust its V-command appropriately based on this error. Note that the position gain setting has a great effect on the servo stability of the system and the servo response.
  • Page 173 Chapter IV MCM Parameter Settings GAIN = 128/64 GAIN = 64/64 GAIN = 32/64 Vcmd 0.20 Controller 0.15 command 0.10 0.05 ERROR = 10 Servo Error (ERROR COUNT) Fig 4-5 Break-over Point of Position Gain 215. PLC R000~R199 data saved/not saved during power failure Format=□...
  • Page 174 HUST CNC-H4CL-M Manual Setting = 0, Linear Setting = 1, "S" curve 223. G99 accel/decel time per rotation Format=□□□ (Default=100), Unit: msec. Setting Range: 4 ~ 1024 ms. 224. Spindle encoder pulses setting Format=□□□□ (Default: 4096) (1) If the spindle is mounted at the X-axis end, then setting value = specifications of the encoder pulses ×...
  • Page 175 Chapter IV MCM Parameter Settings Format =□□□□□ (Default=100) During MPG TEST mode, if the MPG feed-rate in the MPG test mode is not fast as required, set #229 and 230 to increase the speed by multiplying the MPG feed-rate with the ratio of the parameters #229 and #230. The value of #229 and #230 should be within 5-digits and should not be set to 0.
  • Page 176 HUST CNC-H4CL-M Manual Format=□□□□□ (Default=0), Unit:Rot./sec Setting=0, no limit The parameter 239 limits the maximum feed rate for arc cutting commands G02 and G03 240. Metric/ Imperial system Format=□□□(Default = 0) Setting = 0, Metric System Measurements. Setting = 1, Imperial System Measurements.
  • Page 177 Chapter IV MCM Parameter Settings = 250 μm 。 253. Setting X-axis as the rotating axis 254. Setting Y-axis as the rotating axis 255. Setting Z-axis as the rotating axis 256. Setting A-axis as the rotating axis Format=□, Default=0 Setting = 0, linear axis. Setting = 1, rotating axis.
  • Page 178 A-axis accel./decel. time setting Format=□□□□ (Default=0), Unit: msec A/D time (4~3072) MCM #291~542: Ball screw pitch error compensation The machine origin is the reference point for HUST H4CL-M ball screw pitch error compensation. 291. X-axis ball screw pitch error compensation setting...
  • Page 179 Chapter IV MCM Parameter Settings 292. Y-axis ball screw pitch error compensation setting 293. Z-axis ball screw pitch error compensation setting 294. A-axis ball screw pitch error compensation setting Format=□ (Default=0) Setting=0, compensation cancel Setting=-1, negative compensation Setting=1, positive compensation X-axis Y-axis Z-axis A-axis Explanation Compensation cancel...
  • Page 180 2. If the length of a compensation segment is less than 20 mm, it will be set to 20 mm. 3. HUST H4CL-M uses an average compensation approach and sets up 8 points for each segment length as a basis for compensation. The compensation of each point is 1/8 of the parameters in MCM #303~342.
  • Page 181 Chapter IV MCM Parameter Settings 303~542. X, Y, Z, A axes 40 segments compensation Format=□.□□□ (Default=0), Unit=mm The maximum number of segments for each axis is 40. The compensation value is incremental, either positive or negative. If the number of segments is less than 40, all other parameters must be set to zero.
  • Page 182 HUST CNC-H4CL-M Manual 303~342. Segmentation compensation for X-axis ball screw pitch error (unit: MCM# Default Compensation 4 - 40...
  • Page 183 Chapter IV MCM Parameter Settings 343~382. Segmentation compensation for Y-axis ball screw pitch error (unit: MCM# Default Compensation 4 - 41...
  • Page 184 HUST CNC-H4CL-M Manual 383~422. Segmentation compensation for Z-axis ball screw pitch error (unit: MCM# Default Compensation 4 - 42...
  • Page 185 Chapter IV MCM Parameter Settings 423~462. Segmentation compensation for A-axis ball screw pitch error (unit: MCM# Default Compensation 4 - 43...
  • Page 186 HUST CNC-H4CL-M Manual 4 - 44...
  • Page 187: Chapter V Wiring

    5.1 Connection System Introduction This connection manual explains the electrical connections and system structure of the H4CL-M Series numerical control unit to ensure an adequate connection between the numerical unit and machine. This manual is intended for users with basic electrical knowledge.
  • Page 188: System Installation

    HUST CNC-H4CL-M Manual 5.2 System Installation 5.2.1 Operating Environment The control unit used for the H4CL-M Series must be installed under the following conditions. Any failure to observe these conditions may lead to abnormal operation. Ambient temperature - 0 ° C~ 45 ° C Operation -...
  • Page 189 Chapter V Wiring 5.2.3 Case Thermal Design The internal temperature of the case should not be 10 ° C higher than the ambient temperature. The main factors are the heat source and heat transfer area. For customers, the heat source is more uncontrollable than the heat transfer area.
  • Page 190: H4Cl-M External Dimensions

    MPG-TEST GRAPH HOME MODE AXIS G01 MFO G00 MFO FEED Toll Ref- Servo Lub. Coolant Chage Release Point HUST HOLD POWER Tool Tool Radius STOP Offset START RAPID EM-STOP Fig. 5-2 H4CL-M Panel (Including the MDI Panel) 5 - 4...
  • Page 191: H4Cl-M Cpu Main Board Connectors (Rear View)

    Chapter V Wiring H4CL-M CPU Main board Connectors (Rear View) INPUT OUTPUT X-AXIS Y-AXIS ODD 2 Z-AXIS EVN 2 SPINDLE ODD 1 RS232 EVN 1 LCD.ADJ AC110 V 220V TO Auxiliary Panel Fig. 5-3 H4CL-M CPU Main board Connectors 5 - 5...
  • Page 192: H4Cl-M Series Control Unit Case Dimensions (Top View)

    HUST HOLD POWER Tool Tool Radius STOP Offset START RAPID EM-STOP Fig. 5-4 H4CL-M Series Control Unit Case Dimensions H4CL-M Series Control Unit Case Dimensions (Top View) Fig. 5-5 H4CL-M Series Control Unit Case Dimensions (Top View) 5 - 6...
  • Page 193: H4Cl-M Series Cutout Dimensions

    Chapter V Wiring H4CL-M Series Cutout Dimensions  Main Control Unit Cutout Diagram 4 Cutout (240(H) * 412(W)) Fig. 5-6 Control Unit Cutout Dimensions  MDI Panel Cutout Dimensions M3*8 Cutout (124(H) * 410(W)) Fig. 5-7 MDI Panel Cutout Dimensions...
  • Page 194: Input/Output (I/O) Interface Connections

    HUST CNC-H4CL-M Manual 5.3 Input/Output (I/O) Interface Connections 5.3.1 Input Board / Output Board (Terminal Block Type) NPN standard input board – 24 IN. 200 mm 44 mm 64 mm 65 mm 64 mm Fig. 5-8 NPN type 1 Input Board NPN type standard output board –...
  • Page 195: Input Board / Output Board (Ce Standard)

    Chapter V Wiring 5.3.2 Input Board / Output Board (CE Standard) Input Board The standard NPN input board provides an interface of 24 input points. When the signal is correctly received, the corresponding indicator will “illuminate”, otherwise, check if your part program or connections are correct. Note: Voltages will exist at the +24V terminal of each input when the +24V power supply begins operation.
  • Page 196: Output Board

    HUST CNC-H4CL-M Manual Output Board For External 24V Power 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 Fig. 5-11 Output Board 5 - 10...
  • Page 197 Chapter V Wiring Instructions for Dry Contact Mode: 1. Turn the DIP Switches (SW1 ~ SW4) to OFF when the output board is switched to “Dry Contact Mode”. 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 SW1 (O0~O7)
  • Page 198 HUST CNC-H4CL-M Manual (2) This output board is NPN-TYPE. Make sure the DIP Switches 8 of SW1 and SW3 are turned to 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 SW1 (O0~O7)
  • Page 199: I/O Interface Connector Pin Assignment

    The output points of the H4CL-M Series are transistor circuit of the open collector. The H4CL-M Series should be fed with the +24V power supply from the output board. The +24 power supply is not provided.
  • Page 200: Input Signals

    Input Signal Connection Diagram (direct input to the control unit) The input signal is directly connected to the input points (the input connectors of the H4CL-M) of the numerical control unit when the input board is not used. Signal Contact 3.3K Resistance...
  • Page 201: Output Signals

    The output signal will be directly connected to the output points (the output connectors of the H4CL-M) of the numerical control unit when the output relay board is not used When the H4CL-M control unit is directly connected to an inductive load, such as a relay on the machine, the inductive load should be connected to a spark killer in parallel that should be as close to the load as possible.
  • Page 202 HUST CNC-H4CL-M Manual DB25LM Connect Pin (O point) RELAY Spark Killer (diode) Controller output circuit Machine Fig. 5-20 Output Line (without the output relay board) Output Signal Connection (the signal is transmitted to the machine via the output relay board) Refer to Fig.
  • Page 203: Connector Type

    Chapter V Wiring 5.4 Connection Diagram 5.4.1 Connector Type The connector types on the back of the H4CL-M control unit are listed below. Each connector symbol is followed by a letter of either M (for male) or F (for female). :...
  • Page 204 HUST CNC-H4CL-M Manual 5.4.3 H4CL-M Connection (Y-shaped terminal) H4CL-M Main Connection Diagram Fig. 5-17 +24V Power Supply +24V OUTPUT Board INPUT OUTPUT X-axis X-AXIS Y-axis Y-AXIS Z-axis ODD 2 Z-AXIS Spindle EVN 2 A-AXIS Hand-wheel ODD 1 RS232 EVN 1 AC110 220V10%...
  • Page 205 Chapter V Wiring Emergency-Stop Line-1 It is recommended to connect as Fig. 5-23. In doing so, the software and hardware will be controlled in series control and the user can press the emergency button to turn off the Servo-On even if any abnormity is found in the software.
  • Page 206 HUST CNC-H4CL-M Manual Emergency-Stop Line-2 Fig.5-24 is a simplified connection diagram. (E-Stop) +24VGround (0V) Emergency Limit Switch Button Reset Button (Forced) INPUT Board OUTPUT Board Servo Driver Servo-On Signal X-axis Servo Driver Servo-On Signal Y-axis Servo Driver Servo-On Signal Z-axis Fig.
  • Page 207: H4Cl-M Spindle Connection

    Chapter V Wiring H4CL-M Spindle Connection DB9LF Definition Pin 1 SPINDLE Pin 2 Pin 3 (Female) Pin 4 Pin 5 Pin 6 ±10V Pin 7 Pin 8 Pin 9 Control Unit (Rear View) FUJI G9S-2JE + - 12 11 FWD REV CM...
  • Page 208: H4Cl-M Connections (Ce Standard)

    HUST CNC-H4CL-M Manual 5.4.4 H4CL-M Connection (CE Standard) H4CL-M Main Connection Diagram +24V Power OUTPUT INPUT OUTPUT X-AXIS X-axis Y-axis Y-AXIS ODD 2 Z-axis Z-AXIS Spindle EVN 2 A-AXIS ODD 1 RS232 EVN 1 AC110 220V10% AC IN: only for AC 220V INPUT Fig.
  • Page 209 Chapter V Wiring Emergency-Stop Line-1 It is recommended to connect as Fig. 5-27. When the software and hardware is connected in series, press the emergency button to turn off the servo even if the software is abnormal. (One end of the idle contact used for output is connected to the ground through emergency stop button and limit switch and its other end is connected to the relay to control all SERVO ON contacts of the servo motor.)
  • Page 210 HUST CNC-H4CL-M Manual Emergency-Stop Line-2 Fig.5-28 is a simplified connection diagram. (E-Stop) +24V Ground (0V) Emergency Limit Switch Button Reset Button (Forced) +24V COM15 NOO15 +24V COM14 NOO14 +24V +24V +24V Input Board OUTPUT Board Servo Driver Servo-On Singnal X-axis...
  • Page 211: Servo Motor Connection

    Chapter V Wiring Servo Motor Connection Diagram (The MITSUBISHI J2S motor is used as an example.) To the control unit axis To the SERVO-ON RELAY 3 AC 220V Grounding Fig. 5-29 5 - 25...
  • Page 212: H4Cl-M Auxiliary Panel + Sio Wring And Explanation

    HUST CNC-H4CL-M Manual 5.4.5 H4CL-M Auxiliary panel + SIO wring and explanation INPUT OUTPUT X-AXIS Y-AXIS ODD 2 Z-AXIS EVN 2 A-AXIS ODD 1 RS232 EVN 1 AC110 220V10% PANEL BOARD Attention of wiring SIO for H4CL-M 1. The signal will decay without input the 24V for each expansion Input or Output board.
  • Page 213: Expansion Output Board Size

    Chapter V Wiring * Expansion Output Board size 1. There have 16 output for one piece of expansion OUTPUT board. 2. O000~O013 is the type of Open-Collector.(24V 100 mA) 3. The other two is for Contact type.(5A) RELAY 1 RELAY 2 Fig.
  • Page 214: Connection Method For Servo Driver & Pulse Generator

    HUST CNC-H4CL-M Manual 5.4.6 Connection Method for Servo Driver & Pulse Generator The servo driver is connected to the connectors of the X-, Y-, and Z-axis, and the spindle encoder and inverter to D/A. As shown in Fig. 5-33, the pulse generator is connected to the MPG.
  • Page 215 Chapter V Wiring Main board (MPG) Signal Case Ground Fig. 5-33 Axes, Spindle, and MPG connection 5 - 29...
  • Page 216 HUST CNC-H4CL-M Manual Driver and MPG connections Depend on manufacutre H4PL-M Pul+ PULSE Pul- Dir+ Servo Dir- X-axis Case Ground Pul+ Pul- Dir+ Servo Dir- y-axis Case Ground Pul+ Pul- Dir+ Servo Dir- z-axis Case Ground Encoder SPINDLE Inverte Case Ground...
  • Page 217 Chapter V Wiring Difference in Display Frame Pulse Type: 0=Pulse + Direction 1:Positive Pulse + Negative Pulse 2:A+B 5 - 31...
  • Page 218 HUST CNC-H4CL-M Manual 5.4.7 AC Power System Connection CNC Power-on Servo Power-on Time Time servo on delay To CPU Power supply R AC220V R AC220V S To CPU Power supply T AC220V T Servo Driver power-off power-on Power-On Relay Power-On Timer Relay The item with the dotted rectangle can be connected or not.
  • Page 219: Mpg Connection

    Chapter V Wiring 5.4.8 MPG Connection If the tool moves in the opposite direction marked by the MPG, please exchange the signal line A and B in the MPG. CPU Mainboard +5V 0V A B Fig. 5-35 MPG Connection 5 - 33...
  • Page 220: Rs232 Connector Pin Assignment And Connection

    HUST CNC-H4CL-M Manual 5.4.9 RS232 Connector Pin Assignment and Connection Fig. 36 shows the connection method for the H4CL-M control unit and PC. Observe the following when connecting: The connection between the RS232 port and PC should not be more than 15 meters.
  • Page 221: D/A Explanation And Wiring (For Spindle)

    Chapter V Wiring 5.4.10 D/A Explanation and Wiring (For Spindle) D/A for spindle control, the explanation and wiring is below: * D/A Explanation B- -12V A- +12V (5V) VCC VCMD Fig 5-37 D/A Connector * D/A Wiring Encoder Signal VCMD Signal 0 ~ 10V Fig 5-38 D/A Wiring 5 - 35...
  • Page 222 HUST CNC-H4CL-M Manual 5 - 36...
  • Page 223: Chapter Vi Maintenance-Error Message Explanations

    Error Message Explanations When an error occurs during the execution of the program, the error message is displayed on the LCD of the H4CL-M Series controller. (Fig 6-1). Possible error messages of the H4CL-M Series controller and their solutions are...
  • Page 224 HUST CNC-H4CL-M Manual 1. The control unit sends commands too quickly, and the servomotor cannot respond in time. 2. The control unit does not receive feedback. Recommended remedy: 1. Check the F value is set appropriately. 2. Check the resolution and maximum feed-rate are correct. Also check the MCM parameter settings.
  • Page 225 ERROR-13 ERROR G CODE COMMAND Message: An incorrect G-code exists in the program data of the H4CL-M Series controller and cannot be accepted. Recommended remedy: Check the program and make sure the G-code is correct.
  • Page 226 HUST CNC-H4CL-M Manual ERROR-14 Y-AXIS OVER TRAVEL Message: The Y-axis tool moves beyond the pre-set hardware over-travel limit. Recommended remedy: Press the "Forced Homing" key and the lamp on the left-top corner of the key illuminates. Use the JOG (single step) function to return the axial movement from the limit to normal range.
  • Page 227 Chapter VI Maintenance-Error Message Explanations Recommended remedy: After the cause of the emergency is removed, restore the emergency stop button and press “reset”. ERROR-24 M98 EXCEED 8 LEVEL Message: Subprogram calls exceeds 8 levels. Recommended remedy: Modify the part program and make sure subprogram calls does not exceed 8 levels.
  • Page 228 HUST CNC-H4CL-M Manual ERROR-35 RS232C PROGRAM NO. ERROR Message: The part program number transmitted from RS232C is incorrect. Recommended remedy: Check DNC10 or HCON part program number for correctness. ERROR-36 EXECUTION MODE ERROR Message: An error occurred in the selection of execution modes.
  • Page 229: Chapter Vii Attachment A

    Chapter VII Attachment A 7. 7. 7. 7. Attachment A * * * * Input Planning Input Description Remarks EM-STOP X-axis HOME LIMIT Y-axis HOME LIMIT Z-axis HOME LIMIT Program start Editing mode lock A-axis HOME The fourth axis is axial A SERVO READY The fourth axis is axial X SERVO READY...
  • Page 230: Input Planning

    HUST CNC-H4CL-M Manual Input planning * Description Remarks INPUT EM-STOP X-axis HOME LIMIT Y-axis HOME LIMIT Z-axis HOME LIMIT Program start Editing mode lock A-axis HOME LIMIT Comply with 4 axis setting display A SERVO READY Comply with 4 axis setting display...
  • Page 231: Output Planning

    Chapter VII Attachment A * * * * Output Planning Output Description Remarks Spindle rotation CW Spindle rotation CCW Coolant Lubricant X SERVO ON Y SERVO ON Z SERVO ON A SERVO ON * * * * M-code and I/O M-code Description Remarks...
  • Page 232 HUST CNC-H4CL-M Manual * * * * Others Occupied portion in the PLC Plan 1. Variables 1-1000。 2. Registers 20, 90 and subsequent 3. A_BIT 0~400; do not use when planning 4. For a variable frequency axis positioned by external signals, axis output/input points shall be assigned by the user, with PLC modified accordingly.
  • Page 233: Usb Expansion

    Chapter VII Attachment A * * * * USB Expansion Enter MDI mode, execute M9998 command. Enter Tool Compensation screen. Enter 3 page of Parameter Settings; set USB storage device as Device 1, as shown in the following selection frame.) After pressing RESET, system enters into TYPE mode.
  • Page 234 HUST CNC-H4CL-M Manual Press F8 to enter USB operation interface (as shown below). Press F8 to enter next operation interface (as shown below). 7 - 2...
  • Page 235 Chapter VII Attachment A To read data, move the cursor to the file to be read and press the respective button. To save data, enter a file name and press the respective button to save the data in the file name. USB can read files containing the following extensions.
  • Page 236 HUST CNC-H4CL-M Manual 7 - 2...
  • Page 237: Chapter Viii Attachment B - Zdnc Operating Instructions

    Chapter VIII Attachment B – ZDNC Operating Instructions Attachment B - zDNC Operating Instructions 1. Getting Started Click on the desktop to execute zDNC zDNC 2. Open the Option Setting Screen Enable Option is required for parameter configuration Right- click Fig 8-1 8 - 1...
  • Page 238: Display Settings

    HUST CNC-H4CL-M Manual 3. Display Settings Corresponding to controller settings To avoid connection failure, do not check boxes other than those indicated here. Save the changes To change the settings, press DisConnect. When the settings are configured, press Connect. Fig 8-2...
  • Page 239: Pc To Cnc

    Chapter VIII Attachment B – ZDNC Operating Instructions 4. PC TO CNC Job file path Trans. progress Start trans Select a file 0: Transmit the part program to CNC 1:Transmit the part program to CNC and execute simultaneously (PLC required) 2: Transmit variables to CNC Fig 8-3 8 - 3...
  • Page 240: Cnc To Pc

    HUST CNC-H4CL-M Manual 5. CNC TO PC Start reading Select a file name 0>transmit the current file 1>transmit all part programs 2-9&M>transmit variables Fig 8-4 6. Attention ※ DNC function is required to transmit huge part programs. ※ PLC should not restrict the availability of R100, R239, C04 when DNC is required, because the system needs to change the value of these three items to enter DNC mode.
  • Page 241 IX Appendis C – Master Axis Settings Appendix C Master Axis Settings and G84 Mode Applicable to 4-axis milling machine 1. When Fourth axis is the Master (R238=4) and Close Loop Control=1 (C117=1) G84 Threading mode is G94 (mm/min), where Z-axis and A-axis activate simultaneously.
  • Page 242 HUST CNC-H4CL-M Manual Manual Mode Master axis origin: In Origin Mode, pressing Master Origin key will activate “Return to Grid” by retrieving Grid direction and Grid speed from Page 4 of Parameter Settings (as shown below). Master axis positioning: Under Manual Mode, pressing Master Axis Positioning...
  • Page 243 IX Appendis C – Master Axis Settings ※ Master Axis rotation Display: this is a reference value and not for setting. Factory Default is 360.0. ※ For a servo master axis, performing G84 threading activates Z-axis and A-axis simultaneously; therefore resolution of A-axis needs to be set. For coping with the programming process, resolution of A-axis must be worked out with 36mm as the definition denominator.
  • Page 244 HUST CNC-H4CL-M Manual 3. When the 4 axis is a direction axis (R238=5), master axis command is given by DA and is not a close loop control (C117=0), then G84 threading mode is G95 (mm/rev), in feed per revolution mode.
  • Page 245 IX Appendis C – Master Axis Settings When the spindle is set to closed loop control and the master command is PULSE (as shown above), the spindle positioning and spindle homing items will appear on the Manual and Automatic screens, as shown below. Origin mode Manual...
  • Page 246 HUST CNC-H4CL-M Manual Spindle in-position: In Manual Mode, the spindle will spirally move to the location specified by the In Position Angle settings according to the In-position Direction and Speed settings on the Page 2 of Parameter Settings (as shown below), when the Spindle In-positon is pressed.
  • Page 247 IX Appendis C – Master Axis Settings 5. When the H4PL-M spindle is B-axis (R238=5) and closed loop control is not set to 0 (C117=0), the G84 tap cutting mode will be G95 (mm/rev) feed per revolution mode, whether the spindle command is set to V or P. 9 - 7...
  • Page 248 HUST CNC-H4CL-M Manual 9 - 8...

This manual is also suitable for:

H4pl-m