+ All Categories
Home > Documents > H9Ccon-E

H9Ccon-E

Date post: 02-Mar-2016
Category:
Upload: sbarrios
View: 17 times
Download: 0 times
Share this document with a friend

of 150

Transcript
  • HUST H9C CNC

    CONNECTING MANUAL

    (Suitable for the controller: H6CH6CLH9CH9CL)

    Feb , 2011

    HUST Automation Inc. No. 80 Industry Rd., Toufen, Miaoli, Taiwan, R.O.C.

    Tel: 886 37 623242 Fax: 886 37 623241

  • Contents

    i

    TABLE OF CONTENTS 1 INTRODUCTION 1-1 2 INSTALLATION AND DIMENSION 2-1 2.1 Environmental Requirements 2-1 2.2 Cabinet Considerations 2-1 2.3 Thermal Design for the Cabinet 2-2 2.4 External Dimensions And Diagrams 2-3 2.4.1 HUST H9C Controller and accessories 2-3 H9C Controller by All Series 2-3 H9C Accessories 2-3 2.4.2 HUST H9C/H6C Controller Dimensions (8 LCD) 2-4 H9C Series 2-4 H6C Series 2-6 2.4.3 HUST H9CL/H6CL Controller Dimensions (10.4 LCD) 2-8 H9CL Series 2-8 H6CL Series 2-10 2.4.4 HUST H9C Single board 2-12 2.4.5 H9C Accessories 2-13 Single Board 2-13 H9C/H6C Auxiliary Panel 2-15 H9CL/H6CL Auxiliary Panel 2-15 3 CONNECTING DIAGRAMS 3-1 3.1 Connector Type 3-1 3.2 Connector Designation 3-1 3.3 Connector Pin Definition 3-2 DA/AD Pin Assignment 3-2 DA/AD Control Signals 3-3 G31 INPUT Control Signals 3-3 Axial Control, pin assignment and wiring 3-4 Servo on wiring diagram -1 3-5 Servo on wiring diagram -2 3-6 MPG Hand-wheel Connecting Diagram 3-7 Wiring of Spindle Control 3-8 Wiring of Spindle Control Voltage command 3-8 Wiring of Spindle ControlPulse command 3-9 AC Power System Connection 3-10 Emergency-Stop wiring diagram -1 3-11 Emergency-Stop wiring diagram -2 3-12 RS232 Connector Pin Assignment and Connection Diagram 3-13 4 I/O (Input/Output) INTERFACE CONNECTION 4-1

  • HUST H9C Connecting Manual

    ii

    4.1 I/O Interface Connection 4-1 SIO Module Board 4-2 I/O Board 4-6 NPN Output Relay Board 4-6 AC Power Output Module Board 4-7 DC Power Output Module Board 4-7 Axes Control Module Board 4-8 Designation and Pin Assignment 4-8 4.2 SIO Module Board Connection 4-9 4.3 Emergency-Stop Circuit 4-16 5 INTERFACE BETWEEN CNC CONTROLLER AND PLC 5-1 5.1 HUST H9C Series Status Signal S-Bits 5-1 5.1.1 S-Bit Signal And PLC Cycle Time Chart 5-4 5.1.2 Descriptions Of S-Bits 5-4 Square Wave Signal with 0.75sec ON,0.25sec OFF (S000) 5-4 Reset Key Strobe (S001) 5-4 Cycle Start Key Strobe (S002) 5-4 None pre-program and ending-program(S003) 5-4 Square Wave Signal with Wave Period (S008~S011) 5-5 CNC Control Unit Alarm Signal (S016) 5-5 Key Strobe (S017) 5-5 Key Strobe for Key Being Pressed Twice in 0.5sec (S018) 5-5 Cursor Up Key Strobe (S020) 5-5 Cursor Down Key Strobe (S021) 5-5 Page Up Key Strobe (S022) 5-5 Page Down Key Strobe (S023) 5-5 M-, T-, S-Code Strobe (S024~S026) 5-5 Signal for Spindle Motor In-position or When Grid-point Found (S030) 5-6 Signals for X/Y/Z/A/B/C/U/V/W-axes Servo Motor Running Status (S064-S072) 5-6 In Process Status Bit (S080) 5-6 Spindle Motor Speed Less Than 60 RPM (S081) 5-6 Rotating Signal for Spindle Motor (S085) 5-6 Signals for Servo Motor Running Status (S088) 5-6 Key Signals from PC or Easyview (S104~S111) 5-7 Battery low signalS120 5-7 RS232 Linkage Signal (S123) 5-7 PLC interrupt signalS125 5-7 Key Strobe for Key Being Pressed Down and Hold Down (S126) 5-7 Ladder Simulation Mode (S127) 5-7

    X/Y/Z/A/B/C/U/V/W-axes - Home Signal at Machine Coordinate=0 (S160~S168) 5-7

    Positioning Execution in PLC (S208~S216) 5-7 5.2 PLC Command Signal C-bits 5-9

  • Contents

    iii

    5.2.1 C-bit explanation 5-14 Machine Lock/Feed-Hold (C000) 5-14 Effect of Feed-Hold on output control command G11 5-14 RESET (C001) 5-15 Emergency Stop Signal (C002) 5-15 Cycle Start (C004) 5-15 Program No. Selection By Enter Key (C005) 5-15 Single Block (C006) 5-16 NC Alarm and Stop key (C007) 5-16 Background edit (C008) 5-16 Program NO. Selection by external I/O (C009) 5-16 Testing the second software limit (C010) 5-16 Program Restart-1 (C011) 5-17

    Program Restart-2 (C012~C013) 5-18 Program Restart-3 (C014) 5-18

    Dry Run (C015) 5-19 When the program restarts, it will directly execute the contents below the restart single block,(C017) 5-19

    Cursor Up and Down Key (C020~C021) 5-20 Page Up and Down Key (C022~C023) 5-20 Bit searching function in Edit mode (C024) 5-20 The program reading function is established with use of V10932 and V13449 (C025) 5-21 Option Stop (C026) 5-21 Option Skip (C027) 5-22 Speed Deceleration Selection For G31 Skip Function (C028) 5-22 G31 velocity changes from MFO (C029) 5-22 Counter Status (C030) 5-22 PLC ladder Simulation (C031) 5-23 M-, T-, S-code Command Finish Signal (C032~C034) 5-23 Round Corner Non-stop Operation (C036) 5-23 LCD Delayed Display (C037) 5-23 The Auto-Teach mode is established (C040) 5-23 The function of dynamic software limit is established (C041) 5-24 When the fill grid restarts the program in AUTO mode, it will hold the display of the program (C049) 5-24 When the fill grid is in the automatic state, the cursor will indicat the program number being executed (C050) 5-24 Simulating the input signal of the spindle Encoder (C052) 5-24 MPG Hand-wheel Test Mode (C056) 5-24 Return to The Last Program Block (C057) 5-25 Program Edit And MCM Edit Function Disabled (C058~C059) 5-25 Setting a relative coordinate (C060) 5-25 Copy function (C061) 5-25 HOME Execution Command (C063) HOME Limit Switch Signals for X/Y/Z/A/B/C-axis (C064~C072) 5-25 Making Copy of A Program File (C079) 5-26 Use the Current Program Position as Working Coordinate (C080~C088) 5-27

  • HUST H9C Connecting Manual

    iv

    Clear the Current Program and Machine Coordinate to Zero (C096~C104) 5-28 Spindle following error and position zeroing (C111) 5-29 The spindle number indicating function is established (C112) 5-29 Program simulation mode, no V-Command output & no encoder Feedback (C115) 5-29 Spindle Motor Control (C116~C119, C121) 5-29 Spindle Motor searching for GRID point (C116) 5-29 Spindle Motor under closed-loop control (C117) 5-29 Spindle Motor rotational direction control (C118) 5-29 Angular set position for spindle motor (G119) 5-29 Program Selection from External I/O Device (C120) 5-32 Spindle Speed Control ( in %) from External I/O Device (C121) 5-32 Set Work Coordinate (C123) 5-32 Checking that the IO does not show the KEY CODE (C124) 5-33 Simultaneous Execution for M-code, S-code, T-code (C125) 5-33 Axial Data Input Disabled in TEACH Mode (C128~ C136) 5-33 DRO Mode Enabled (C144~C1152) 5-33 Signal for Over-travel (OT) Limit Switch (C160~C177) 5-33 Clear Error-Count to Zero (C192~C200) 5-34 X/Y/Z/A/B/C/U/V/W-axis Rapid Positioning Signal (C208~C216)5-34 In Edit or Teach mode, Insert and Input functions are not used Completely (C220) 5-36 In Edit or Teach mode, the Insert function is not used. (C221) 5-36 Input method of the milling machine tool compensation data incremental / absolute (C222) 5-36 Rapid Positioning (increasing value) signal (C223) Special C-bit for G28,G29 and G30 (C224~C225) 5-36 Adjustment for MCM Parameters through PLC Ladder (C226) 5-36 Variable Value Input/Output Blocked (C227) 5-37 JOG Mode Enable Command (C228) 5-37 G01 Feed-rate Adjustment by MPG Hand-wheel (C229,C230) 5-37 Load File from EPROM/FLASH-Rom (C231) 5-38 Clear G54 Work Coordinates to Zero (C233) 5-38 Program Simulation using MPG Hand-wheel (C235) 5-38 User Defined Keyboard keys (C236) 5-38 Using the second set of handwheel, (C237) 5-41 When the program restarts, M, T, S and G04 commands are skipped, (C240) 5-41 To set the rotational axis, each rotational axis is not cleared to zero, (C241) 5-41 MPG Hand-wheel Feed Interrupt Mode (C242) 5-41 Easyview or LCD Screen In Sleep Mode (C243) 5-41 Suppressing Alarm ERROR-2 When Following Count>4096 (C244) 5-41 User Defined Keyboard Keys (C245) 5-41 LCD Display Function Disabled (C247) 5-43 When the fill grid displays, the cursor jumps out of the fill grid (C250) 5-43

  • Contents

    v

    When functions of G40/G41/G42 are established, the tool compensation is corrected linearly at the tangent. The round arc correction is cancelled (C251) 5-44 Milling Function Enabled (C252) 5-44 Lathe function Enabled (C254) 5-44 User Defined Keyboard Function Output (C255) 5-45 5.3 Description of PLC Register 5-46 5.3.1 Register singal descriptions 5-49 Execution Mode Selection (R100) 5-49 Displaying codes (R101) 5-49 Program Numbers to be copied from & into (R102,R103) 5-49 X & Y coordinate (R104 & R105) 5-50 Current Single block display during program execution (Y)(R106) 5-50 Pre-Set Program and End program ( R107 & R108) 5-51 Showing cursor location in column/row of a function table (R109&R110) 5-51 Program Number the Cursor Aiming At (R111) 5-52 The single block line number being edited by the system (C112) 5-52 Setting the maximum program number displayed in the machining Program (C113) 5-52 Storing the max program number (R114) 5-52 Setting the LCD display width (R115) 5-52 Display of self-defined MACRO program whan in execution Mode (R118) 5-53 Displaying RS232 execution mode (R119) 5-53 Axial ON/OFF (R121) 5-53 Reading the status signal sent from the PC or the man-machine interface, S104~S111 (R122) 5-53 Setting the F speed format (R123) 5-54 Displaying axial operational direction (R124) 5-54 When the program initiates the signal, the system will pre-catch the designated single block number (R125) 5-54 Composite functions (R126) 5-55 Number of Program Blocks Pre-Fetched to the System When Starting Program Execution (R127) 5-55 No LCD Display When Number of Program Blocks Pre-fetch Smaller Than R128 Setting Value (R128) 5-55 LCD display of refresh frequency (R129) 5-56 Spidle Motor Speed at 10V (R130) 5-56 Home Shift Value of Spindle Motor (R131) 5-56 Spindle RPM in Manual Mode (R132) 5-56 Spindle RPM When Searching for GRID (R133) 5-56 Angular Set Position for Spindle Motor (R134) 5-56 Number of Rotation for Spindle (R135) 5-56 Spindle home shift (R138) 5-56 AD1 (R142) 5-56 AD2 (R143) 5-56 User-defined Command Code (R154) 5-57 Setting the selection of an axial relative coordinate (R157) 5-60

  • HUST H9C Connecting Manual

    vi

    Feed Rate Setting for X/Y/Z/A/B/C/U/V/W-axes (R160-R168) Absolute Coordinate Setting for X/Y/Z/A/B/C/U/V/Waxes (R180-R188) 5-60 Motor Deceleration Selection for G31 Skip Function (R190-R198) 5-61 Page Number for Liquid LCD Screen Display (R200) 5-61 Special Display Mode (R202) 5-61 Page Number Table (R203) 5-63 X&Y-Coordinate for the Top-left Corner of the Table Screen (R204, R205) 5-63 Read the cell value in the Function Table (R206) 5-63 Setting USB/SDC operation (R211) 5-64 Setting Feed-Rate Percentage for G00 MFO % (R220) 5-64 Setting Feed-Rate Percentage for G0x MFO % (R221) 5-65 Setting the Multiplier for MPG Pulse (R222) 5-65 Setting Spindle Gear Ratio (R223) 5-65 When C121=0, Spindle Speed Percentage=R224 Value (R224) 5-65 When C121=1, Spindle Speed Percentage=R225 Value (R225) 5-65 Selecting Program Number from External I/O Device (R226) 5-65 Setting the Selected Variable Number When Editing the Variable Data (R227) 5-66 Selecting Work Coordinate System (R228) 5-66 Setting the Number of Decimals for Display After Power On (R229) 5-66 Setting Page Number for Easyview Display (R230) 5-67 Setting tool compensation groups (R231) 5-67 Selecting the Axes in JOG and HOME Mode (R232) 5-67 Selecting X/Y/Z/A/B/C-Axes to Move in Positive (+) Direction With JOG Speed (R233) 5-68 Setting X/Y/Z/A/B/C -Axes to Move in Negative (-) Direction With JOG Speed (R234) 5-68 Display the Drivable (Enabled) Axes (R235) 5-69 Display the Axis That is on HOME Position (R236) 5-69 Display the Axis of which the HOMING Process has been Completed (R237 ) 5-70 Spindle Axis Selection (R238) 5-70 Displaying the FUNCTION KEY value (R240) 5-71 Display the Keyboard Key Code as Read by the Controller (R241) 5-71 Self-Defining Key Function (R242) 5-72 Selecting the second handwheel axial direction (R243) 5-73 Setting the second handwheel pulse rate (R245) 5-73 Displaying positive (+) direction of ERR14, 20 and axial direction of ERR02 (R247) 5-73 Displaying positive (-) direction of ERR14, 20 and axial direction of ERR02 (R248) 5-73 Setting axial SERVO ON (BIT=1 ON, BIT=0 OFF) (R249) 5-74 Input Signal Type for G31 (R250) 5-74 The Number of Error Code (R251) 5-75 The Number of the Mxxx Code (R252) 5-75 The Number of the Txxx Code (R253) 5-75

  • Contents

    vii

    The Number of the Sxxx Code (R254) 5-75 For storing the Current Execution Program Numbers (R255) 5-76 5.4 Specified Variables 5-77 Set the cursor size #10781 5-77 #10782 & #10783 5-77 #10784 & #10785 5-78 #10786 & #10787 5-78 #10788 & #10789 5-79 5.5 Variables 5-80 Variables #10000~#10899 5-80 Special Variables Table 5-81 ErrorList description 5-82 Variables (VM) #12001~#13500 5-83 6 LADDER DIAGRAM 6-1 6.1 Introduction to Ladder Diagram (PLC or Ladder Program) 6-1 6.1.1 Interface Signal Definitions For PLC Ladder Diagram 6-1 6.1.2 Maximum Input/Output Point For PLC And PLC Editor 6-1

  • HUST H9C Connecting Manual

    viii

  • 1 Introuction

    1 - 1

    1 INTRODUCTION This manual explains the HUST H9C controllers electrical as well as structural design necessary for connecting the CNC to the machine tool. It also describes the HUST H9C connection signals including input, output, internal signals, such as S-bits and C-bits. This manual also describes the functions and the ladder diagram with corresponding signals. For the functional information of HUST H9C controller, please refer to HUST H9C Operation manual. This manual is intended for users with some basic electrical and electronic knowledges. HUST H9C SERIES of generally external accessories: (1) Communication interface: (a) RS232?Connection with PC, transfer data by software (b) USB ?Connection with PC, or directly transfer data (2) Motion control connection(AXES)? (a) H6C 1 6 Axis, can be controlled step motor and servo motor. (b) H9C 1 9 Axis, can be controlled step motor and servo motor. (c) Spindle control will occupation which of one axis? (3) MPG Hand-wheel (MPG)? (a) 2 set MPG? (4) Series Input/Output Module(SIO) (a) SIO module board?48 input//32 output?

    Maximum in series?6 modules maximum control 256 in/256 out. Auxiliary panel can be in series (2nd panel)

    (b) Can be used with the following accessories: I/O Connect board(24 Input/16 Output)? NPN output Relay board?Max. current for each output of the PCB is 1A . DC power module board?Max. current for each output of the PCB is 1A . AC power output module board?Max. current for each output of the PCB

    is 1A . Axes control module board?step motor or servo motor

    (5) Analog output/ Analog input(AD/DA) (a) 2 Set analog output?0V ~ 10V? (b) 2 Set analog input?0V ~ 10V? (c) G31 Input?

  • HUST H9C Connecing Manual

    1 - 2

    Communication Interface (a)H6C?H9C (8 screen)

    Fig1-1 H9C 8 screen Communication interface

    (b)H6CL?H9CL( 10.4 screen)

    Fig1-2 H9CL 10.4 Communication interface

    (c)H9C single board(NO screen)

    Fig1-3 H9C single board Communication interface

    USB Interface

    RS232 Interface

    PC

    PC

    USB Interface

    RS232 Interface

    RS232 Interface

    USB Interface

    PC

  • 1 Introuction

    1 - 3

    HUST H9C of generally external accessories:(H9C?H9CL?Single Board)

    Fig 1-4

    AC Servo

    AC Servo

    AC Servo

    AC Servo

    X

    Y

    Z

    A

    AC B

    AC C

    AC U

    AC V

    AC W

    MPG1

    MPG2 24in/16out

    24in/16out

    DAC-1 Output(DB15LM pin 1) DAC-2 Output(DB15LM pin

    G31 Input(DB15LM pin 5)

    ADC-1 Input(DB15LM pin 6) ADC-2 Input(DB15LM pin 7)

    ? Connected next SIO module: 6 modules.maximum. ? When use AXES CONTROL MODULE BOARD , last 64 I/O address Occupancy.

    #1SIO Module (48IN/32OUT)

    Axes control module board

    DC Power Board

    AC Power BoardRelay Board

    Optional: Use in combination as required

  • HUST H9CConnection Manual

    1 - 4

    HUST H6C of generally external accessories:?(H6C?H6CL)

    Fig 1-5

    Connected next SIO module: 6 modules.maximum. When use AXES CONTROL MODULE BOARD

    , last 64 I/O address Occupancy.

    24in/16out

    24in/16out

    #1SIO Module (48IN/32OUT)

    Axes control module board

    DC Power Board

    AC Power BoardRelay Board

    Optional: Use in combination as required

    AC Servo

    AC Servo

    AC Servo

    AC Servo

    X

    Y

    Z

    A

    C

    MPG1 MPG2

    DAC-1 Output(DB15LM pin 1) DAC-2 Output(DB15LM pin

    G31 Input(DB15LM pin 5)

    ADC-1 Input(DB15LM pin 6) ADC-2 Input(DB15LM pin 7)

    AC Servo

    AC Servo B

  • 2 Installation and Dimendion

    2 - 1

    2 INSTALLATION AND DIMENSION 2.1 Environmental Requirements The design of the cabinet to house the CNC unit, the keyboard panel and the LCD display is the responsibility of the machine tool builder. The cabinet must be constructed and the unit installed in an environment satisfying the following conditions Ambient Temperature

    When operating: 0o C to 45o C. When storing or transporting the system: -20o C to 55o C.

    Temperature Variation Maximum: 1.1o C/minute. Humidity Normally: 80% RH or less (Relative Humidity). For short period: maximum 95% RH. Vibration When operating:

  • HUST H9C Connecting Manual

    2 - 2

    2.3 Thermal Design for the Cabinet The cabinet for the control unit must be a closed structure, and the temperature rise within the cabinet must be 10o C or less than the ambient temperature. When designing a metal cabinet for a CNC unit, two factors must be considered, which are the heat source and the radiation area. The heat source is from the CNC unit itself, users cannot do anything to reduce it. Therefore, the one thing that the user can do in controlling the temperature rise is the radiation area. The allowable temperature rise inside a metal cabinet can be estimated as follows: 1. With a cooling fan, the allowable temperature rise is 1o C/6 W/1 m2. 2. Without a cooling fan, the allowable temperature rise is 1o C/4 W/1 m2. This means that a cabinet with a radiation area of 1 m2 and a cooling fan will have an internal temperature rise of 1o C when a heating unit of 6 W (4W without a cooling) is inside the cabinet. The radiation area of a cabinet is the entire surface area of the cabinet minus the area contacting the floor. Example 1 (with a cooling fan): A cabinet has a 2 m2 radiation area with a temperature rise of 10o C. The maximum allowable heat value inside the cabinet is 6 W x 2 x 10 = 120 W. Therefore, the heat generated inside the cabinet must be kept less than 120 W. If the heat generated is 120 W or more in the cabinet, some other cooling devices, such as cooling fins, must be incorporated in the unit. Example 2 (without a cooling fan): A cabinet has a 2 m2 radiation area with a temperature rise of 10o C. The maximum allowable heat value inside the cabinet is 4 W x 2 x 10 = 80 W. Therefore, the heat generated inside the cabinet must be kept less than 80 W. If the heat generated is 80 W or more in the cabinet, some other cooling devices, such as fan, or cooling fins, must be incorporated in the unit.

  • 2 Installation and Dimendion

    2 - 3

    2.4 External Dimensions and Diagrams 2.4.1 HUST H9C Controller and Accessoires * HUST H9C Controller by All Series

    * HUST H9C Accessories

    Table 2-1 HUST H9CH6C Accessories

    Project Standard Options (a) SIO MODULE BOARD : 48 IN/32 OUT (b) I/O CONNECT BOARD : 24 IN/16 OUT

    H6CH9C (c) Auxiliarypanel (Operator panel) H6CLH9CL (d) NPN OUTPUT RELAY BOARD : 8 OUT (e) AC POWER OUTPUT MODULE BOARD : 8 OUT

    (f) DC POWER MODULE BOARD : 8 OUT (g) AXES CONTROL MODULE BOARD : 8 OUT (a)(b) item are standard accessories,all of items are 1 pcs. (c)(d)(e)(f)(g)item are options accessories User according to needs selection accessories.

    Screen Controller series Dimensions 8 H6C H9C identical 10 H6CL H9CL identical

    Single Board H9C SB

  • HUST H9C Connection Manual

    2 - 4

    2.4.2 HUST H9C / H6C Controller Dimensions ( 8 LCD ) * HUST H9C Series

    Fig 2-1 Front View

    Fig 2-2 Rear View

  • 2 System Installation

    2 - 5

    Fig 2-3 Top View

    Fig 2-4 Cutout

  • HUST H9C Connection Manual

    2 - 6

    * HUST H6C Series

    Fig 2-5 Front View

    Fig 2-6 Rear View

  • 2 System Installation

    2 - 7

    Fig 2-7 Top View

    Fig 2-8 Cutout

  • HUST H9C Connection Manual

    2 - 8

    2.4.3 HUST H9CL / H6CL Controller Dimensions ( 10.4 LCD ) * HUST H9CL Series

    Fig 2-9 Front View

    Fig 2-10 Rear View

  • 2 System Installation

    2 - 9

    Fig 2-11 Top View

    Fig 2-12 Cutout

  • HUST H9C Connection Manual

    2 - 10

    * HUST H6CL Series

    Fig 2-13 Front View

    Fig 2-14 Rear View

  • 2 System Installation

    2 - 11

    Fig 2-15 Top View

    Fig 2-16 Cutout

  • HUST H9C Connection Manual

    2 - 12

    2.4.4 HUST H9C Single Board

    * HUST H9C Single Board

    Fig 2-17 Rear View

    Fig 2-18 Top View

    Fig 2-19 Cutout

  • 2 System Installation

    2 - 13

    2.4.5 HUST H9C Accessories Dimensions

    * HUST H9C \H9CL\H6C\H6CL \SINGLE BOARD

    Fig 2-20 SIO module : 48 in/32 out

    Fig 2-21 I/O connect board : 24 in/16 out

    Fig 2-22 Axes control module board

  • HUST H9C Connection Manual

    2 - 14

    Fig 2-23 8 NPN output relay board Fig 2-24 DC power module board

    Fig 2-25 AC power output module board

  • 2 System Installation

    2 - 15

    * HUST H9C / H6C Auxiliary Panel

    Fig 2-26 H9C Auxiliary Panel

    * HUST H9CL / H6CL Auxiliary Panel

    Fig 2-27 H9CL Auxiliary Panel

  • HUST H9C Connection Manual

    2 - 16

  • 3 Connection Diagrams

    3 - 1

    3 CONNECTION DIAGRAMS 3.1 Connector Type The types of connectors provided on the HUST H9C controller box are summarized below. Each connector symbol is followed by a letter of either M (for male) or F (for female). DBxx pin number indicated by xx. DB9L 9 pins connector. DB9LF 9 pins female connector. DB15LM 15 pins male connector. 3.2 Connector Designation The connector designation on HUST H9C controller is printed on the back of the controller and their corresponding types are listed below.

    Table 3-1 Connector Designation and Type

    The back of the Controller

    Connector Name H6C/H6CL H9C/H9CL Connector Designation Type

    Analog Input/Output AD/DA DB15LM (M)

    X-axis Servo X-AXIS DB15LF (F)

    Y-axis Servo Y-AXIS DB15LF (F)

    Z-axis Servo Z-AXIS DB15LF (F)

    A-axis Servo A-AXIS DB15LF (F)

    B-axis Servo B-AXIS DB15LF (F)

    C-axis Servo C-AXIS DB15LF (F)

    U-axis Servo U-AXIS DB15LF (F)

    V-axis Servo V-AXIS DB15LF (F)

    W-axis Servo W-AXIS DB15LF (F)

    MPG Handwheel MPG DB9LM (M)

    I/O SIO DB15LF (F) Front Controller

    Connector Name H6C/H6CL H9C/H9CL Connector Designation Type

    RS232 DB9LF (F) Communication Interface USB USB (F)

  • HUST H9C Connecting Manual

    3 - 2

    3.3 Connector Pin Definition

    Table 3-2 HUST H9C Connector Pin HUST H9C

    AD/DA AXIS MPG DB15LM Definitoin DB15LM Definitoin DB9LF (F) Definitoin

    1 DAC0 1 CW+ 1 A 2 DAC1 2 CW- 2 B 3 D+ 3 CCW+ 3 5V 4 D- 4 CCW- 4 A 5 G31 IN 5 VCC 5 B 6 ADC-0 6 GRD-(Z-) 6 7 ADC-1 7 TOG 7 0V 8 8 VCOM 8 0V 9 9 SVO+ 9

    10 10 SVO- 11 11 A- 12 5V 12 A+ 13 +12V 13 B+ 14 -12V 14 B- 15 GND 15 GND

    * HUST H6C Series DA/AD Pin Assignment: AD/DA PIn

    Fig 3-1 AD/DA control wiring

    DAC-0DAC-1D+D-

    G31 INADC-0ADC-1GNDXVCC+12V-12V

    GND-CN

    CPU Board

    2 set DAC 0 ~ 10V output 1 2 3 4 5 6 7 11 12 13

    AD/DA

    14 15

    2 set ADC IN 0 ~ 10V input

    G31 Hardware stop signal

    0V

  • 3 Connection Diagrams

    3 - 3

    * AD/DA Control signals

    Table 3-3 AD/DA: Setting of relative registers

    Function Register Description

    R146 Pin 1 (DAC-0) and Pin 15 (GND) are for #1 output signal DAC

    R147 Pin 2 (DAC-1) and Pin 15 (GND) are for #2 output signal

    Usage 1. PLC directly sets R146=5000 2. Actual output voltage=5V

    R142 Indicates value of #1 analog voltage input ADC R143 Indicates value of #2 analog voltage input

    Wiring Method Note: Value read from #1 ADC IN will be shown in R142

    z G31 INPUT Control signals

    Table 3-4

    G31 INPUT: Settings for related Parameters and Registers Description

    G31 INPUT Pin 5 (G31 IN) inputs signal to control high-speed axial stop, responding in 0.5sec. Setting of high-speed stop in axial direction of G31 Jump Function

    Setting method Parameter

    530 BIT0/1/2/3/4/5/6/7/8 respectively represents X/Y/Z/A/B/C/U/V/W axis. Ex.: BIT0=1, indicates X-axis Function enabled; BIT1=1, indicates Y-axis Function enabled Signal format for waiting for the G31skip Function Setting = 0, I-bit Input signal is an ascending (01) trigger signal Setting = 1, I-bit Input signal is a descending (10) trigger signal Setting = 2, I-bit Input signal is a Normal Open (0) signal

    R250

    Setting = 3, I-bit Input signal is a Normal Close (1) signal

    Pin 13 +12V Pin 06 ADC IN Pin 15 GND

    VR

  • HUST H9C Connecting Manual

    3 - 4

    * Axial Control,pin assignment and wiring Connect servo driver to axial-control connector as shown in Fig.5-23 (pin assignment identical for all axes).

    Fig 3-2 Wiring for Axial Control

    1. Isolated twist-pair cables shall be used. 2. Pay special attention to Pin15 of the wriing. Be sure to connect. 3. Pay special attention to Pins 11-14 of the axial connection. In case the

    motor runs scattering, alter the terminal A with the terminal A- at the driver end.

    4. HUST miller controller, when voltage-command type servo motor is used, you need to set the Follow Error checking function. (Not applicable to pulse commands.) (a) Parameter 533 = 4096 check the value of Follow Error. (b) Parameter 543 =511 check Follow Error of the axis

    X/Y/Z/A/B/C/U/V/W simultaneously (set by BIT: Bit0=1 for X-axis, Bit1=1 for Y-axis).

    (c) When the ERROR COUNT of the actual feedback of X-axis motor >4096, the system will issue an error message.

    CPU Main Board

    Servo connections dependent on different maker

    Displacement command -10 ~ +10V

    Cabin GND

    1 2 3 4 5 6 7 8 9

    CW+ CW- CCW+ CCW-

    VCC-CN GRD-(Z-)

    TOG VCOM SVO+ SVO- A- A+ B+ B-

    GND-CN

    AXIS

    10 11 12 13 14 15

    SERVO ON(internal control)

    Servo signal

  • 3 Connection Diagrams

    3 - 5

    * SERVO ON wiring - 1

    In this connection,servo on control directly by R249. R249 Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7 Bit8 Axis

    1 1 0 0 0 0 0 0 0 0 X 2 0 1 0 0 0 0 0 0 0 Y 4 0 0 1 0 0 0 0 0 0 Z 8 0 0 0 1 0 0 0 0 0 A 16 0 0 0 0 1 0 0 0 0 B 32 0 0 0 0 0 1 0 0 0 C 64 0 0 0 0 0 0 1 0 0 U

    128 0 0 0 0 0 0 0 1 0 V 256 0 0 0 0 0 0 0 0 1 W 511 1 1 1 1 1 1 1 1 1 ALL

    R249=511 by setting BIT0123456789 On XYZABCUVW-Axis will SERVO ON SERVO ON connection PC board endured maximum 60V and 4mA

    Fig.3-3 SERVO ON connection

    Fig.3-4

    Servo on command (Control by inside)

    SVO+ VCC

    SVO-XSVOX

    Servo driver

    X AXIS

    Servo-On Singnal

    9

    10

    SVO+

    SVO-

    AXIS port SON

    SG

  • HUST H9C Connecting Manual

    3 - 6

    Servo driver

    X Axis

    * SERVO ON wiring - 2 Servo connections dependent on different maker. In this connection, 24V output control through output board. When SERVO ON need to provide 24V power.Refer to Fig.3-5.

    Fig 3-5

    I24/O16 connect board SIO module board

    Servo-On Singnal

    /SON +24V

    GND24V

  • 3 Connection Diagrams

    3 - 7

    * MPG Hand-wheel Connecting Diagram 1. HUST H9C Series can be provided with 2 manual pulse generators. 2. If the direction of tool travel is not the same as indicated by the MPG,

    use Parameter 518, handwheel direction, to correct it 3. Use 2nd hand wheel according to actual demand

    (a) If C237=1 in the PLC, MPG2 terminals can be used. (b) When MPG2 is used, adjust the multiplier using R245.

    Fig 3-6

    MPG1+5V 0V A B

    P7

    1 2 3 4 5 6 7 8

    A B +5V AB 0V 0V

    MPG2 +5V 0V A B

    MPG2 CPU Main Board

  • HUST H9C Connecting Manual

    3 - 8

    Inverter

    Encoder

    * Wiring of spindle control There are 2 types of Spindle Control: (a) Voltage Command type (b) Pulse Command type

    * Voltage Command type

    Fig 3-7 Spindle voltage command control-closed circuit wiring (servo) Fig 3-8 Spindle Voltage Command Control- Open circuit wiring (Inverter)

    Case GND

    8 15

    VCOMGND-CN

    5VA-A+B+B-Z-

    Spindle

    5 11 12 13 14 6

    Servo Driver

    VCOMGND-CN

    5VA-A+B+B-Z-

    Case GND

    8 15

    Spindle

    5 11 12 13 14 6

    Extemal Encoder

  • 3 Connection Diagrams

    3 - 9

    * Pulse Command Type

    Fig 3-9 Spindle pulse command control- closed circuit wiring (servo)

    Fig 3-10 Spindle pulse command control- closed circuit wiring (Inverter)

    4 11 12 13

    6 14

    1 2 3

    Servo driver

    CW+ CW- CCW+ CCW- A- A+ B+ B- Z-

    GND-CN Case GND

    Spindle

    15

    4 11 12 13

    6 14

    1 2 3 Inverter

    CW+ CW-CCW+CCW-A-A+B+B-Z-5V

    GND-CN

    Case GND

    Spindle

    Extemal Encoder

    5 15

    Encoder

  • HUST H9C Connection Manual

    3 - 10

    * AC Power System Connection In order to avoid controller anomalies caused by voltage fluctuations, it is recommended to provide sequential differences for the ON/OFF of the CNC power and Servo power. 1. SERVO ON signal shall be activated in a slight delay after the

    activation of system power supply, when the latter is stabilized. 2. Before switching off the system power supply, provide a delay for

    switching off the SERVO ON signal first.

    CNC Power/ SERVO Power ON-OFF sequence diagram

    Fig 3-11 Wiring of System AC Power Supply

    R TS

    To CPU Power supply R

    To CPU Power supply T

    AC220V R AC220V S AC220V T

    Servo Driver

    Ti D l C

    Fan

    power-off power-onPower-On Relay

    Power-On Timer Relay

    AC 220V R T0 Servo AMP Power TB P AC 220V S T0 Servo AMP Power TB N

    Can be omitted inside dashed line

    CNC Power-onTimeServo Power-on

    Timeservo on delay

    Power off delay

  • 3 Connection Diagrams

    3 - 11

    * Emergency-Stop wiring diagram-1 Recommended wiring diagram. In this connection, the software control and hardware control are connected in a series; when the E-stop button is pressed, the hardware will switch off Servo-On even if the software fails.

    Fig 3-12

    24V GND (0V) Limit Switch E-Stop

    Servo Release

    24V

    Servo Start Command

    External SERVO ON RELAY

    Servo Driver

    X Axis

    Servo-OnSingnal

    Servo Driver

    Z Axis

    Servo-OnSingnal

    8 OUT RELAYBoard

    SIO Moudle Board

    I24/O16 Board

    24V GND (0V)

    X-axis Origin Limit

    Z-axis Origin Limit

  • HUST H9C Connection Manual

    3 - 12

    * Emergency-Stop wiring diagram-2 Simplified wiring diagram

    Fig 3-13

    24V GND (0V) Limit Switch E-Stop

    Servo Release

    24V GND (0V)

    X-axis Origin Limit

    Z-axis Origin Limit

    I24/O16 Board

    SIO Moudle Board

    Servo Driver

    X Axis

    Servo-On Singnal

    Servo Driver

    Z Axis

    Servo-On Singnal

    X-AXIS

    Z-AXIS

    SVO+

    SVO+

    SVO-

    SVO-

    10

    10

    9

    9

    HUST H9C CNC

  • 3 Connection Diagrams

    3 - 13

    * RS232 Connector Pin Assignment and Connection Diagram Fig 3-14 shows the connection between the HUST H9C controller and the PC. Please observe the following guidelines: 1. Do not exceed 15 meters for the cable connecting RS232 port and the PC. 2. The interface voltage on the PC side should be in the range 10 ~ 15V. 3. Try NOT to work in an environment where electrical noises are common, such as

    EDM machine and electric welder. Do not use the same power source as EDM machine or electric welder. Twist RS232 cables if possible.

    Fig 3-14 RS232C Connector Pin Assignment

    HUST Controller end PC COM

    HUST Controller end PC COM

    2 3 5 7 8

    TXD RXD SG CTS RTS

    3

    27

    54

    RXD

    TXDSG

    RTSCTS

    DB9LM CONNECTO

    DB25LF CONNECTO

    2 3 5 7 8

    TXD RXD SG CTS RTS

    DB9LM CONNECTO

    DB9LF CONNECTO

    DCE DCE

    2

    357

    8

    RXD

    TXDSG

    RTSCTS

  • HUST H9C Connection Manual

    3 - 14

  • 4 I/O Interface Connection

    4 - 1

    4 I/O (Input/Output) Interface Connection The +24V power supply for the I/O interface operation has to come separately from the external source. 4.1 I/O Interface Connection Input signal is a signal that is received by the CNC controller and it is generated from an external devices, such as keyboard button, sensor, limit switch, proximity switch, etc. Output signal is a signal that is being sent from the CNC controller to the external devices. that can be used to drive a relay or LED, etc. H9C controller accessories Total of seven standard accessories

    Table 4-1 H9C standard accessories H9C standard accessories

    NO. Project Input Output Note(Material NO.) 1 SIO module board 48 32 H6C\SIO\I48O32\V2_4 2 I/O connect board 24 16 H6C\SIO\CONNECT\V1_1 3 NPN output relay board 8 H6C\SIO\RLY8\V0 4 AC power output module

    board 8 H6C\SIO\SSR8\V0

    5 DC power module board 8 H6C\SIO\DC8\V0 6 Axes control module board 8 Step motor or servo motor 7 Auxiliary panel H6C?H9C series can be used

    I/O Interface Connection: Controller must through the SIO Module Board and Connect I/O Board then can control the I/O motion. The explanation is below

  • HUST H9C Connection Manual

    4 - 2

    SIO MODULE BOARD H6C\SIO\I48O32\V2_4

    Fig 4-1

    1. 48 IN/32 OUT control. (a) Maximum in series6 modules.maximum control 256 IN/256 OUT. (b) Auxiliary panel can be in series (2nd panel) 2. Each SIO MODULE BOARD can connect with (a) I/O connect board (24 Input/16 Output) (b) NPN Relay Board8 out (c) DC power module board8 out (d) AC power output module board8 out (e) Axes control module boardcontrol other step motor or servo motor.

    3. When use axes control module board, last 64 I/O address Occupancy. 4. When use universal auxiliary panel, 4th I/O address Occupancy. 5. SIO module board start address by switch control. 6. Controller MAX control 256in and 176 out

  • 4 I/O Interface Connection

    4 - 3

    Explanation of SIO MODULE BOARD LED-lamp (Input)n LED-lamp (Output)o JUMP (NPN or PNP)p SWITCHq

    Fig 4-2

    1. LED-LAMP

    INPUT - LED (Green) nEach Left and Right have 3 groups, every group have 8 signal. The total signal is 48. OUTPUT - LEDRedoEach Left and Right have 2 groups, every group have 8 signal. The total signal is 32.

    2. JUMP (NPN OR PNP)p

    Each Left and Right have 1 groups. Leftcontrol 1th CONNECT I/O BOARD. Rightcontrol 2th CONNECT I/O BOARD. The explanation is below

    1

    1

    1

    1

    1

    1 3 3

    4

    2

    2

    2

    2

    24V GNDFROM-CNC TO-NEXT

    LED

    LED

    LED

    LED

    1st connect I/O port DC24V INPUT

    2nd connect I/O port

  • HUST H9C Connection Manual

    4 - 4

    3. SWITCH qI/O position define.

    Each SIO MODULE BOARD can control 48in/32out and string of 6 pieces.

    Table 4-2 Switch table explanation MODULE Switch 1 Switch 2 Switch 3 Switch 4 IN range OUT range

    1st 0 0 0 0 I000 ~ I047 O000 ~ O0312nd 1 1 0 0 I048 ~ I095 O048 ~ O0793rd 0 1 1 0 I096 ~ I143 O096 ~ O1274th 1 0 0 1 I144 ~ I191 O144 ~ O1755th 0 0 1 1 I192 ~ I239 O192 ~ O2236th 1 1 1 1 I240 ~ I255 O240 ~ O255

    The 6th SIO MODULE BOARD can control 16in/16out only.

    ON DIP

    1 2 3 4SW

    Explanation2 CONNECT I/O BOARD signal (1) I00~I23 NPN type. (2) I24~I39 NPN type, I40~I47 PNP type.

    Explanation1 All input are NPN type of CONNECT I/O BOARD

    1 2 3

    Fig5-2-Lp

    1 2 3

    Fig5-2-Rp

    Short Short

    1 2 3

    Fig5-2-Lp

    Short

    1 2 3

    Fig5-2-Rp

    Short

    1 2 3

    Fig5-2-Rp

    Short

    1 2 3

    Fig5-2-Lp

    Short

    Explanation3 CONNECT I/O BOARD signal (1) I00~I15 NPN type, I16~I23 PNP type. (2) I24~I47 NPN type.

    1 2 3

    Fig5-2-Lp

    Short 1 2 3

    Fig5-2-Rp

    Short

    Explanation4 CONNECT I/O BOARD signal (1) I00~I15NPN type, I16~I23 PNP type. (2) I24~I39NPN type, I40~I47 PNP type.

  • 4 I/O Interface Connection

    4 - 5

    When use Axes control module board and Auxiliary panelIO range

    Table 4-3 H9C controller IO range IO range

    Board Switch 1 Switch 2 Switch 3 Switch 4 Input range Output Range1st 0 0 0 0 I000 ~ I047 O000 ~ O0312nd 1 1 0 0 I048 ~ I095 O048 ~ O0793rd 0 1 1 0 I096 ~ I143 O096 ~ O1274th Universal auxiliary panel I144 ~ I191 O144 ~ O1755th The 1st axis control board I192 ~ I223 O192 ~ O2236th The 2nd axis control board I224 ~ I255 O224 ~ O255

    When use universal auxiliary panel, 4th I/O address Occupancy. When use axes control module board, last 64 I/O address Occupancy.

  • HUST H9C Connection Manual

    4 - 6

    * I/O connect Board (PC Board No.H6C\SIO\CONNECT\V1_1) 1. I/O connect board controls 24 input terminals and 16 output terminals. 2. Output control is by 0V output. 3. An INPUT can be of NPN type or PNP type. 4. When the SIO setting of the module is PNP, the 8 input terminals after the INPUT

    signal are of PNP type; the rest are of NPN type. 5. Input voltage at I: 0V 6. Output current at I: 6mA 7. Output current at O: 100mA

    Fig 4-3

    * NPN output relay Board (PC Board No.H6C\SIO\RLY8\V0) 1. Max. current for each output of the PCB is 1A 2. The 8 Output terminals can sustain a max. current of 8A, all together. 3. For a max. current > 1A, use other relays. 4. Contacts on the RELAY adaptor board are dry contacts.

    Fig 4-4

    H9C\SIO\RLY8\V0:

    AB585

  • 4 I/O Interface Connection

    4 - 7

    AC power output module board (PC Board No.H6C\SIO\SSR8\V0)

    1. AC Power supply adaptor board controls 8 AC110 outputs. 2. Max. current for each output of the PCB is 1A . 3. The 8 Output terminals can sustain a max. current of 8A, all together. 4. Two power supply ports are provided on the AC Power supply adaptor board:

    1. AC 110V ~220V; 2. DC 24V (can be connected independently from the external)

    5. Rating of the factory supplied fuse is 5A.

    Fig 4-5

    DC power module board (PC Board No.H6C\SIO\DC8\V0) 1. DC power output board controls 8 sets of DC 24V output. 2. Max. current for each output of the PCB is 1A . 3. The 8 Output terminals can sustain a max. current of 8A, all together. 4. Rating of the factory supplied fuse is 5A.

    Fig 4-6

  • HUST H9C Connection Manual

    4 - 8

    Axes control module board (AE674)

    Fig 4-7

    1. Can external control 8 axes. 2. Step motor and servo motor control. 3. Only one kind of motor can be control at the same time 4. The 8 Output terminals can sustain a max. 5. Max. current for each output of the PCB is 2A . 6. The 8 Output terminals can sustain a max. current of 10 A, all together. 7. Max fast : 255 kpps * Designation and pin assignment

    Table 4-4

    Connector type Step Motor Servo Motor

    HUST Pin Step Pin HUST Pin Servo Pin 1 A 1 /B 2 /A 2 B 3 B 3 A 4 /B 4 /A

    5 G Step Motor connection (4PIN) Servo Motor connection (5PIN)

    1 2 3 4

    A /A B /B

    1 2 3 4 5

    B/B A /A G

  • 4 Input/Output Interface Connection

    4 - 9

    4.2 SIO MODULE BOARD connection Explanation of SIO MODULE BOARD

    Structure of wiring (1)

    All of the SIO board must used the sameDC24V power supplyexcept to the AC output board.

    Fig 4-8

    15 pin Female to Male cable

    40pin Row cable, 2nd Connect I/O board I24~I47 (24in)O16~O31 (16out)

    40pin Row cable, 1st Connect I/O board I0~I23(24in)O0~O15(16out)

    HUST H9C CONTROLLER

    FROM-CNC TO-NEXT

    DC24V POWER SUPPLY

    TO-NEXT

    SIO module boardI48/032

    Auxiliary panel

    DC24V POWER SUPPLY

    DC24V POWER SUPPLY

  • HUST H9C Connection Manual

    4 - 10

    Structure of wiring (2)

    All of the SIO board must used the sameDC24V power supplyexcept to the AC output board.

    Fig 4-9

    GND 24V

    LED LED

    Relay board AC power supply DC power supply

    1. Use in combination as required 2. 10 pin white connecto 3. Can be connected to 3 optional boards 4. Can be connect 4 modules maximum . 5. NPN RELAY BOARD provide 8 dry contacts. Max. current for each output

    of he PCB is 1A . 6. AC power output module boardprovide 8 AC110V outputs. M ax. current for

    each output of the PCB is 1A. 7. DC power module boardprovide 8 DC24V outputs. Max. current for each

    output of the PCB is 1A . Accessories

    DC24V POWER SUPPLY

    40pin Row cable, 2nd Connect I/O board I24~I47 (24in)O16~O31 (16out)

    40pin Row cable, 1st Connect I/O board I0~I23(24in)O0~O15(16out)

    DC24V POWER SUPPLY

  • 4 Input/Output Interface Connection

    4 - 11

    ConnectionModel 1

    Fig 4-10

    40pin Row cable, 1st Connect I/O board I0~I23 (24in)O0~O15 (16out)

    24V

    O15 Output 0V

    Spark Killer

    External Relay 2

    24V

    Spark Killer

    External Relay 1

    24VO00 Output 0V

    24V

  • HUST H9C Connection Manual

    4 - 12

    ConnectionModel 2Relay type control

    Fig 4-11

    Each COM point not conduction. Used the Relay board only or with external Relay. When O00 = 1, the COM and 01 will be conduction and send out 0V.

    COM 00 COM 01 COM 02 COM 03 COM 04 COM 05 COM 06 COM 07

    H9C\SIO\RLY8\V0:AB585

    AC 220V Output

    When O00 signal is activated, relay on the RELAY PCB will be excited, energizing the AC220 power supply

    AC 220V Transformer

    DC 24V Power Supply

    DC 24V Power Supply 40pin Row cable, 1st Connect I/O board I0~I23 (24in)O0~O15 (16out)

  • 4 Input/Output Interface Connection

    4 - 13

    ConnectionModel 3AC OUTPUT Single output controlPCB-board limit is 1A 8 output control at one timePCB-board limit is 8A

    Fig 4-12

    AC110VOutput

    AC110~220V Input

    DC24V Input

    JP6 10 PIN Row cable

    When O016 = 1, AC 110V will send out.

    DC24V input can used same with the common point of I/O Module (H6C\SIO\I48O32) or used another power supply alone.

    Fuse default:5A

  • HUST H9C Connection Manual

    4 - 14

    ConnectionModel 4DC Power Suply

    Single output controlPCB-board limit is 1A 8 output control at one timePCB-board limit is 8A

    Fig 4-13

    DC24V Output

    When O016 = 1, DC 24V will send out.

    Fuse default:5A

    JP6 10 PIN Row cable

  • 4 Input/Output Interface Connection

    4 - 15

    ConnectionModel 5NPN 3-wire SENSOR

    Fig 4-14

    ConnectionModel 6PNP 3-wire SENSOR

    Fig 4-15

    SENSOR

    I00 0VInput

    DC24V POWER SUPPLY

    SENSOR

    I00 24VInput

    DC24V POWER SUPPLY

  • HUST H9C Connection Manual

    4 - 16

    4.3 Emergency-Stop Circuit The electronic circuit in the controller requires about 100 milli-seconds to reach stable state when power is turned on. During this unstable period, the servo motor should not be turned on. To accomplish this purpose, HUST internal PLC has a "Servo-on Timer" with 1.5 seconds. When the timer is up, the controller sends an O-bit high (1) to turn on the servo driver. Fig 4-16 is an emergency stop circuit. When the hardware OT limit switch is touched or the E-stop button pushed, the controller will be in a state of emergency stop and the servo-on switch on the servo motor will trip off. For safety reason, the E-stop button, the hardware OT limit switch, and the E-stop relay should be connected in-series and the servo-release button in-parallel with the hardware OT limit switch. Please note that the E-stop button and the hardware OT limit switch are of normal-closed type. During normal operating condition, the servo-release button is at OFF position. After emergency stop has occurred and all power to servo motor has been cut off, servo-release button can be pushed in to supply power to servo motor to bring the machine tool to normal operating range.

    Fig 4-16 Emergency Stop Circuit

    Spark Killer

    External Relay B24V

    Spark Killer

    External Relay A 24V

    Servo Driver

    Servo-On Signal

    Spark Killer

    SERVO ON Relay C 24V

    +24V GND Limit Switch (E-Stop)

    INPUT

    Servo Release

    PLC Output

    PLC Output

  • 4 Input/Output Interface Connection

    4 - 17

    Notes: 1. Relays A and B are protection circuit during power-on. The purpose is to prevent the

    tool from being damaged in case of power-on failure that results in a total output. 2. Relay C is a servo-on relay. 3. Relay A and B are outputs in PLC. 4. Generally, Relay C has multiple connecting points for multiple servo. Each servo

    motor requires independent connecting point. Do NOT connect servo motors in parallel because some servo motors cannot be connected in parallel. See Fig 4-17.

    5. The arrangement of servo-on in PLC. See Fig 4-17. Incorrect Connection

    Correct Connection

    Fig 4-17 Incorrect / Correct Connection

    24V

    PLC Output

    RELAY C

    Servo Driver Servo-On

    Singnal

    Servo Driver Servo-On

    Singnal

    RELAY C 24V

    PLC Output

    Servo DriverServo-OnSingnal

    Servo Driver

  • HUST H9C Connection Manual

    4 - 18

    Emergency-Stop Line-1 It is recommended to connect as Fig. 4-18. In doing so, the software and hardware is controlled in series and the user can press the emergency button to turn off the servo even if an abnormality is found in the software.

    Fig 4-18

    24V GND (0V) Limit Switch E-Stop

    Reset Button (Forced)

    24V

    Servo Start Command

    Server Driver

    X Axis

    ServoOn Singnal

    Server Driver

    Z Axis

    Servo-OnSingnal

    24V GND (0V)

    X-axis Origin LIMIT

    NPN RELAY Board

    SIO Module Board

    I24/O16 Board

    Z-axis Origin LIMIT

    External SERVO ON RELAY

  • 4 Input/Output Interface Connection

    4 - 19

    Emergency-Stop Line-2 Fig.4-19 is a simplified connection diagram.

    Fig 4-19

    24V GND (0V)

    Server Driver

    X Axis

    Servo-On Singnal

    Server Driver

    Z Axis

    24V GND (0V)

    Servo-On Singnal

    Limit Switch E-Stop

    Reset Button (Forced)

    X-axis Origin LIMIT

    Z-axis Origin LIMIT

    NPN RELAY Board

    SIO Module Board

    I24/O16 Board

  • HUST H9C Connection Manual

    4 - 20

  • 5 Interface Between CNC & PLC

    5 - 1

    5 INTERFACE BETWEEN CNC CONTROLLER AND PLC PLC bits used in HUST H9C controller with PLC (Programmable Logic Controller) are described below. Their meanings and applications will be discussed in this chapter. This chapter is intended for those who are familiar with HUST PLC program editing. S-bit : Status signal from CNC controller to PLC unit. C-bit : Command signal from PLC unit to CNC controller. I-bit : Input signal from external I/O unit to PLC unit. O-bit : Output signal from PLC unit to I/O unit for driving external device. A-bit : Auxiliary bit for PLC unit. Register:

    1. R000~R099 are for users application in the PLC program. 2. R100~R255 are reserved for HUST H9C system data, NOT for customers use.

    The data in R000~R099 can be saved with power off if MCM #521=256, and the data will NOT be saved if MCM #521=0.

    HUST CONTROL UNIT

    C-BITS S-BITS REGISTER

    HUST PLC A-BITS TIMER COUNTER

    I-BITS O-BITS

    EXTERNAL I / O DEVICES OR MACHINE TOOLS

    5.1 HUST H9C Series Status Signal S-Bits

    S-bit is the internal status signal from HUST CNC system unit to PLC unit for sequential control of the machine tool. The meaning of each S-bit signal is shown in Table 6-1. Note that S000~S031 are one-shot bits and are effective for one cycle only. For example, when RESET key is pressed, S001=1 for one cycle.

  • HUST H9C Connecting Manual

    5 - 2

    Table 5-1 HUST H9C Series Status Signal (S-Bits) S-Bit

    Number Status Signal S-Bit Description

    S000 Send out square wave signal with 0.75 sec ON, 0.25 sec OFF S001 Reset key S002 Cycle start key S003 None pre-program and ending-program

    S004 ~ S007 Reserved S008 Send out square wave signal with wave period = 0.10 sec. S009 Send out square wave signal with wave period = 0.25 sec. S010 Send out square wave signal with wave period = 0.50 sec. S011 Send out square wave signal with wave period = 1.00 sec.

    S012 ~ S015 Reserved S016 Error code strobe S017 Key strobe S018 Key strobe for key being pressed twice in 0.5 sec S019 Function key signal

    S020 ~ S021 Cursor up key, Cursor down key S022 ~ S023 Page up key, Page down key

    S024 M-code strobe S025 T-code strobe S026 S-code strobe for spindle speed S027 Man / Machine ENTER signal

    S028 ~ S029 Reserved

    S030 Signal when spindle servo motor being in-position or when Grid-point found. (S030 = 1, Flag for spindle HOME position. ) S031 ~ S063 Reserved

    S064 X-axis motor running S065 Y-axis motor running S066 Z-axis motor running S067 A-axis motor running S068 B- axis motor running S069 C- axis motor running S070 U-axis motor running S071 V- axis motor running S072 W- axis motor running

    S073 ~ S079 Reserved S080 Program execution in process S081 Spindle speed lower than 60 RPM S082 Spindle rpm reach

    S083 ~ S084 Reserved S085 Stop signal of spindle

    S086 ~ S087 Reserved S088 X/Y/Z/A/B/CU/V/W-axis Servo motor in motion

    S089 ~ S103 Reserved S104 ~ S111 Status signals from PC or Man / Machine interface (Easyview)

  • 5 Interface Between CNC & PLC

    5 - 3

    S-Bit Number Status Signal S-Bit Description

    S112 ~ S119 Reserved S120 Battery doun signal

    S121 ~ S122 Reserved S123 Signal for linking to PC S124 Reserved S125 Hardware interrupt signal S126 Key strobe for key being pressed down continuously S127 Signal for ladder simulation

    S128 ~ S159 Reserved S160 Home signal for X-axes respectively (Machine coordinate = 0) S161 Home signal for Y-axes respectively (Machine coordinate = 0) S162 Home signal for Z-axes respectively (Machine coordinate = 0) S163 Home signal for A-axes respectively (Machine coordinate = 0) S164 Home signal for B-axes respectively (Machine coordinate = 0) S165 Home signal for C-axes respectively (Machine coordinate = 0) S166 Home signal for U-axes respectively (Machine coordinate = 0) S167 Home signal for V-axes respectively (Machine coordinate = 0) S168 Home signal for W-axes respectively (Machine coordinate = 0)

    S169 ~ S207 Reserved S208 X-axis traverse execution signal, when C208 01, S208 = 1 S209 Y-axis traverse execution signal, when C209 01, S209 = 1 S210 Z-axis traverse execution signal, when C208 01, S210 = 1 S211 A-axis traverse execution signal, when C209 01, S211 = 1 S212 B-axis traverse execution signal, when C208 01, S212 = 1 S213 C-axis traverse execution signal, when C209 01, S213 = 1 S214 U-axis traverse execution signal, when C209 01, S211 = 1 S215 V-axis traverse execution signal, when C208 01, S212 = 1 S216 W-axis traverse execution signal, when C209 01, S213 = 1

  • HUST H9C Connecting Manual

    5 - 4

    5.1.1 S-bit Signal and PLC Cycle Time Chart Fig 5-1 shows the time chart between the HUST H9C controller and the PLC unit. Note Bit S017 synchronizes with Bits S000~S023. S000~S031 are all single-pulse signals.

    Fig 5-1 Time Chart Between HUST CNC and PLC

    5.1.2 Descriptions of S-bits

    Square Wave Signal with 0.75 sec ON, 0.25 sec OFF (S000)

    Reset Key Strobe (S001)

    The controller sends S001 one-pulse high (1) strobe to PLC unit when RESET key is pressed.

    Cycle Start Key Strobe (S002)

    The controller sends S002 one-pulse high (1) strobe to PLC unit when CYCST key on the keyboard is pressed. To burn program into memory chip through RS232 link, it is to use S002 =1 signal to trigger C004 (= 1) to complete the burning action. Therefore, care should be taken not to block S002 signal from triggering C004 when editing PLC under MDI mode.

    None pre-program and ending-program(S003) When R107 (pre-program NO.)R108 (ending-program NO.) =0,system send S003=1 (high)

    0.75 sec 0.25 sec

    One Shot S-Bit S000~S031

    Continuous S032~S096

    1 2 3PLC Cycle

    Key Strobe S017

  • 5 Interface Between CNC & PLC

    5 - 5

    Square Wave Signal with Wave Period (S008~S011)

    Table 5-2 ON/OFF Time for Square Wave Signal Square Wave Signal

    ON TIME (sec) OFF TIME (sec) S008 0.10 0.10 S009 0.25 0.25 S010 0.50 0.50 S011 1.00 1.00

    CNC Control Unit Alarm Signal (S016)

    The controller sends Bit S016 one-pulse high (1) strobe to inform PLC unit when any alarm occurs.

    Key Strobe (S017) The controller sets Bit S017 one-pulse high (1) strobe to inform PLC unit when any key on HUST keyboard is pressed.

    Key Strobe for Key Being Pressed Twice in 0.5 sec (S018) When a key on the keyboard is being pressed twice within 0.5 seconds, the controller send S018 = 1 one-pulse to PLC.

    Cursor Up Key Strobe (S020), Cursor Down Key Strobe (S021) The controller sets Bit S020 one-pulse high (1) strobe to inform PLC unit when CURSOR Up key is pressed. Bit S021 will be one-pulse high (1) when CURSOR Down key is pressed.

    Page Up Key Strobe (S022), Page Down Key Strobe (S023) The controller sets Bit S022 one-pulse high (1) strobe to inform PLC unit when PAGE Up key is pressed. Bit S023 will be one-pulse high (1) when PAGE Down key is pressed.

    M-, T- and S-Code Strobe (S024~S026) When an M-code is being executed in a part program, the controller will send S024 = 1 signal to PLC. When a T-code is being executed in a part program, the controller will send S025 = 1 signal to PLC.

    ON-TIME OFF-TIME

  • HUST H9C Connecting Manual

    5 - 6

    When a S-code is being executed in a part program, the controller will send S026 = 1 signal to PLC. Note that the CNC system defined M-codes, such as M00, M01, M02, M30, M98 and M99 will NOT send S024 = 1 to PLC.

    Signal for Spindle Motor In-position or When Grid-point Found (S030) When C117=1, the spindle motor is being controlled in a closed loop and tollowing two conditions exist for S030 signal. 1. If C116=1, the spindle motor will start searching for the GRID point on the encoder.

    The direction and the speed of motor rotation will base on the setting of C118 (0/1 = Normal/ Reverse) and R133. When the GRID point is found, the CNC controller will send S030 =1 signal to PLC to trun off C116, i.e. C116=0.

    2. If C119=1, the spindle motor will rotate a fixed angle to be In-position.The direction of motor rotation will base on the setting of C118 (0/1 = Normal/ Reverse) When the motor is In-position, the CNC controller will send S030 =1 signal to PLC to trun off C119, i.e. C119=0

    Signals for X/Y/Z/A/B/CU/V/W axis Servo Motor Running Status (S064-S072)

    When X-axis motor running, S064=1 to PLC. When Y-axis motor running, S065=1 to PLC. When Z-axis motor running, S066=1 to PLC. When A-axis motor running, S067=1 to PLC. When B-axis motor running, S068=1 to PLC. When C-axis motor running, S069=1 to PLC. When U-axis motor running, S070=1 to PLC. When V-axis motor running, S071=1 to PLC. When W-axis motor running, S072=1 to PLC.

    In Process Status Bit (S080) Whenever HUST control unit is executing a part program including option stop, signal S080 = 1 will be sent out to PLC.

    Spindle Motor Speed Less Than 60 RPM (S081) S0811 signal will be sent to PLC when spindle motor speed is less than 60 RPM.

    Rotating Signal for Spindle Motor (S085) S085=1 signal will be sent to PLC when spindle motor is rotating (in motiom).

    Signals for Servo Motor Running Status (S088) When one or more of the four axis motors (X/Y/Z/A/B/C-axis) are moving (in motion), the CNC will send the signal S088=1 to PLC.

  • 5 Interface Between CNC & PLC

    5 - 7

    Key Signals from PC or Easyview (S0104~S111) When the special key that was designed on PC or Easyview is pressed, a signal is sent through RS232 to the controller which will send the status bits S104~S111 (=1) to PLC.

    Battery Down Signal(S120) If the battery BT1 is down, the controller displays ERROR 30 BATT. Low and sends S120=1 signal tp PLC

    RS232 Linkage Signal (S123) When CNC controller established linkage with PC through RS232, the CNC will send S123=1 signal to PLC.

    Hardware Interrupt Signal(S125) When C110=1 PLC interrupt function is enabledS125=1 (high)

    Key Strobe for Key Being Pressed Down and Hold Down (S126) When a key is pressed down and hold down, the controller will send S126 = 1 to PLC. When key is released, S126 = 0.

    Ladder Simulation Mode (S127) S127 =1 will be sent to PLC when a ladder program edited in PC is being simulated from the CNC controller.

    X/Y/Z/A/B/CU/V/W - axes Home Signal at Machine Coordinate = 0 (S160~S168) When the tool is at X-axis home location (machine coordinate X=0), S160 = 1. When the tool is at Y-axis home location (machine coordinate Y=0), S161 = 1. When the tool is at Z-axis home location (machine coordinate Z=0), S162 = 1. When the tool is at A-axis home location (machine coordinate A=0), S163 = 1. When the tool is at B-axis home location (machine coordinate B=0), S164 = 1. When the tool is at C-axis home location (machine coordinate C=0), S165 = 1. When the tool is at U-axis home location (machine coordinate A=0), S166 = 1. When the tool is at V-axis home location (machine coordinate B=0), S167 = 1. When the tool is at W-axis home location (machine coordinate C=0), S168 = 1.

    Positioning Execution in PLC (S208-S216) When execute the X-axis move by PLC, S208=1. S208=0 when motion completed. Please consult the illustration of C208 When execute the Y-axis move by PLC, S209=1.

  • HUST H9C Connecting Manual

    5 - 8

    S209=0 when motion completed. Please consult the illustration of C209 When execute the Z-axis move by PLC, S210=1. S210=0 when motion completed. Please consult the illustration of C210 When execute the A-axis move by PLC, S211=1. S211=0 when motion completed. Please consult the illustration of C211 When execute the B-axis move by PLC, S212=1. S212=0 when motion completed. Please consult the illustration of C212 When execute the C-axis move by PLC, S213=1. S213=0 when motion completed. Please consult the illustration of C213 When execute the U-axis move by PLC, S214=1. S214=0 when motion completed. Please consult the illustration of C214 When execute the V-axis move by PLC, S215=1. S215=0 when motion completed. Please consult the illustration of C215 When execute the W-axis move by PLC, S216=1. S216=0 when motion completed. Please consult the illustration of C216 PS 1. R180R188R160R168 setting range:+32767-32767.

    2. When C223=0, the value is the position of absolute coordinate in R180R188. Default #11800=10

    #11800 setting range1~1000. 3. When C223=1,

    the value is the position of incremental coordinate in R180R188. Default #11800=1

    #11800 setting range1.

  • 5 Interface Between CNC & PLC

    5 - 9

    5.2 PLC Command Signal, C-Bits A C-bit is a command signal from the PLC to the HUST controller for CNC functional control. The C-bits for HUST H9C ontroller are shown in Table 5-3 and their meanings and applications are discussed in the following sections.

    Table 5-3 HUST H9C Series Command C-Bits C-Bit

    Number C-Bit Description

    C000 Machine Lock/Feed Hold C001 Reset C002 Emergency Stop C003 Reserved C004 Cycle Start C005 Program No. Selection by INPUT key C006 Single Block C007 NC Alarm & Stop NC Command C008 Background edit C009 Program NO. Selection by external I/O C010 Testing the second software limit C011 Program Restart 1

    C012~C013 Program restart 2. After jumping to other program, restart from where the program execution was interrupted C014 Program block restart command 3 C015 Program Dry Run C016 Reserved

    C017 When the program restarts, it directly executes the contents below the single block of restart. C018~C019 Reserved C020~C021 Cursor up / Cursor down command C022~C023 Page up / Page down command

    C024 Bit search function in Edit mode (the first bit in the single block only)

    C025 The program reading function is established with use of V10932 and V13449.

    C026 Option stop C027 Option skip C028 Speed deceleration selection for G31 Skip function C029 G31 velocity changes from MFO C030 Counter status (On/Off) command C031 Ladder simulation C032 M-code finish signal from PLC to CNC C033 T-code finish signal from PLC to CNC C034 S-code finish signal from PLC to CNC C035 Reserved C036 Round corner non-stop operation C037 LCD delayed display in accordance with the value in R128

  • HUST H9C Connecting Manual

    5 - 10

    C-Bit Number C-Bit Description

    C038~C039 Reserved C040 The Auto Teach mode is established C041 The dynamic software limit function is established

    C042~C048 Reserved

    C049 When the fill grid excutes a restart in Auto mode, the program will hold the display.

    C050 When the fill grid is in Auto mode, the cursor will indicate the current program line number being executed. C051 Reserved C052 Simulating the input signal of the spindle ENCODER (for testing)

    C053~C055 Reserved C056 MPG hand-wheel test mode C057 Return to the last program block where execution was interrupted C058 Program EDIT mode disabled C059 MCM EDIT mode disabled C060 Setting a relative coordinate C061 Copy function C062 Reserved C063 Machine Origin (HOME) execution command C064 X-axis HOME limit switch signal C065 Y-axis HOME limit switch signal C066 Z-axis HOME limit switch signal C067 A-axis HOME limit switch signal C068 B-axis HOME limit switch signal C069 C-axis HOME limit switch signal C070 U-axis HOME limit switch signal C071 V-axis HOME limit switch signal C0723 W-axis HOME limit switch signal

    C070~C078 Reserved C079 Making copy of a program file C080 Set the current program position as work coordinate ORIGIN for X-axis C081 Set the current program position as work coordinate ORIGIN for Y-axis C082 Set the current program position as work coordinate ORIGIN for Z-axis C083 Set the current program position as work coordinate ORIGIN for A-axis C084 Set the current program position as work coordinate ORIGIN for B-axis C085 Set the current program position as work coordinate ORIGIN for C-axis C086 Set the current program position as work coordinate ORIGIN for U-axis C087 Set the current program position as work coordinate ORIGIN for V-axis C088 Set the current program position as work coordinate ORIGIN for W-axis

    C089~C095 Reserved C096 Clear current program&machine coordinate on X-axis to zero (0) C097 Clear current program&machine coordinate on Y-axis to zero (0) C098 Clear current program&machine coordinate on Z-axis to zero (0) C099 Clear current program&machine coordinate on A-axis to zero (0) C100 Clear current program&machine coordinate on B-axis to zero (0)

  • 5 Interface Between CNC & PLC

    5 - 11

    C-Bit Number C-Bit Description

    C101 Clear current program&machine coordinate on C-axis to zero (0) C102 Clear current program&machine coordinate on U-axis to zero (0) C103 Clear current program&machine coordinate on V-axis to zero (0) C104 Clear current program&machine coordinate on W-axis to zero (0)

    C105~C110 Reserved C111 Spindle following error and position zeroing

    C112 The function of displaying the servo spindle number is established (the following error is compensated to the spindle position) C113~114 Reserved

    C115 Program simulation mode, no V-Command output & no encoder feedback C116 Spindle motor looking for GRID point (Closed-loop control) C117 Spindle motor under closed-loop control C118 Spindle motor rotational direction control (Closed-loop control) C119 Set a specific angular position for spindle (Closed-loop control) C120 Select program number from External I/O device C121 Set spindle speed in percent from external I/O device C122 Reserved C123 Set work coordinate system (G54~G59) C124 When display the I/O page, the value of key board not display. C125 M, T, and S-code to be executed in synchronization C126 Reserved C127 Executive after the Calculated with R125 C128 To enable X-axis data input when in TEACH mode C129 To enable Y-axis data input when in TEACH mode C130 To enable Z-axis data input when in TEACH mode C131 To enable A-axis data input when in TEACH mode C132 To enable B-axis data input when in TEACH mode C133 To enable C-axis data input when in TEACH mode C134 To enable U-axis data input when in TEACH mode C135 To enable V-axis data input when in TEACH mode C136 To enable W-axis data input when in TEACH mode

    C137~C142 Reserved C143 When TEACH mode is enabled, Relative coordinates generated C144 To enable digital readout mode for X-axis C145 To enable digital readout mode for Y-axis C146 To enable digital readout mode for Z-axis C147 To enable digital readout mode for A-axis C148 To enable digital readout mode for B-axis C149 To enable digital readout mode for C-axis C150 To enable digital readout mode for U-axis C151 To enable digital readout mode for V-axis C152 To enable digital readout mode for W-axis

    C153~C159 Reserved C160 Hardware limit signal for X+ axis C161 Hardware limit signal for X- axis

  • HUST H9C Connecting Manual

    5 - 12

    C-Bit Number C-Bit Description

    C162 Hardware limit signal for Y+ axis C163 Hardware limit signal for Y- axis C164 Hardware limit signal for Z+ axis C165 Hardware limit signal for Z- axis C166 Hardware limit signal for A+ axis C167 Hardware limit signal for A- axis C168 Hardware limit signal for B+ axis C169 Hardware limit signal for B- axis C170 Hardware limit signal for C+ axis C171 Hardware limit signal for C- axis C172 Hardware limit signal for U+ axis C173 Hardware limit signal for U- axis C174 Hardware limit signal for V+ axis C175 Hardware limit signal for V- axis C176 Hardware limit signal for W+ axis C177 Hardware limit signal for W- axis

    C178~C191 Reserved C192 Clear following count to 0 for X axis C193 Clear following count to 0 for Y axis C194 Clear following count to 0 for Z axis C195 Clear following count to 0 for A axis C196 Clear following count to 0 for B axis C197 Clear following count to 0 for C axis C198 Clear following count to 0 for U axis C199 Clear following count to 0 for V axis C200 Clear following count to 0 for W axis

    C201~C207 Reserved C208 X-axis. Rapid Positioning signal C209 Y-axis. Rapid Positioning signal C210 Z-axis. Rapid Positioning signal C211 A-axis. Rapid Positioning signal C212 B-axis. Rapid Positioning signal C213 C-axis. Rapid Positioning signal C214 U-axis. Rapid Positioning signal C215 V-axis. Rapid Positioning signal C216 W-axis. Rapid Positioning signal

    C217~C219 Reserved C220 In Edit or Teach mode, Insert and Input functions are not used CompletelyC221 In Edit or Teach mode, the Insert function is not used

    C222 Input method of the milling machine tool compensation data incremental / absolute

    C223 Rapid Positioning (increasing value) signal C224~C225 G28, G29, G30 mode

    C226 To revise MCM parameter value in PLC (One Pulse ) C227 When C227=1, the value of variables input / output blocked (locked)

  • 5 Interface Between CNC & PLC

    5 - 13

    C-Bit Number C-Bit Description

    C228 JOG mode enable command C229 G01 feed speed adjustment by MPG handwheel, max 300% C230 Enable the function of G01 feed speed adjustment by MPG handwheel

    C231 When C231=10, Load the program that was stored in the EPROM/FLASH-ROM C232 Reserved C233 When C233=10, Clear G54 work coordinates (MCM #1~#4=0) C234 Reserved

    C235 (MPG TEST MODE) Program simulation using MPG handwheel. Simulate handwheel input the pulse signal. C236 User defined keyboard keys.(Type 1) C237 Use the second set of pins of handwheel

    C238~C239 Reserved C240 When the program restarts, M.T.S and G04 commands are skipped.

    C241 To set the rotational axis, each rotational coordinate is not cleared to zero.

    C242 MPG hand-wheel feed interrupt mode C243 Easyview or LCD screen in sleep mode C244 Suppressing alarm ERROR-2 when following count > 4096 C245 User defined keyboard keys. (Type 2) C246 Reserved C247 LCD display disabled

    C248~C249 Reserved C250 When the fill grid displays, the cursor will jump out of the fill grid.

    C251 When functions of G40/G41/G42 are established, the tool compensation will be corrected linearly at the tangent pin.

    C252 Enable milling machine function C253 Reserved C254 Enable lathe machine function C255 User defined keyboard function output

  • HUST H9C Connecting Manual

    5 - 14

    5.2.1 C-Bit explanation

    Machine Lock/FEED-HOLD (C000) C000 = 1 (high), All machine tool operation stops. C000 = 0 (low), Machine tool operation in process. If bit C000 is set high (1), control unit will stop all CNC operations. It will remain stopped until C000 becomes low again. The relationship between C000 and the machine motion is shown as below.

    Fig 6-2 Relationship between C000 Signal and Machine

    Effect of FEED-HOLD on output control command G11 The Command Format: G11 Pxxx Lyyy 1. If yyy= 0 or void, this command is to turn ON the output specified by xxx which

    can be turned OFF either by RESET or by G11 P-xxx. FEED-HOLD will not change the status of output xxx

    2. If yyy= any number, this is to turn ON output xxx which can be turned OFF by

    Feed-Hold. It will remain OFF as long as Feed-Hold is on. When Feed-Hold is released, output xxx will be back ON. Use RESET or G11 P-xxx to turn output xxx OFF.

    Please refer to HUST H6C Operation Manual for more information on G11.

    C000 = 0 C000 = 1

    C000 = 0

    Machine on Motion Resumed

    Machine Lock On

    Motion Stopped

  • 5 Interface Between CNC & PLC

    5 - 15

    Fig 6-3

    RESET (C001) C001 = 1 (high), RESET the whole system to initial status. C001 = 0 (low), RESET function is cleared.

    Emergency Stop (C002) C002 = 1 (high), Controller reset and machine stops immediately. C002 = 0 (low), No action. Bit C002 informs the control unit to execute emergency stop. When bit C002 is set high (1), the control unit is reset and emergency stop is applied to the machine. Emergency stop signal turns off the servo ready signal. Refer to Section 5.4 for suggested circuit connection. When the problem that activated an emergency stop has been resolved, please reset the control unit and execute HOME process before normal operation.

    Cycle Start (C004) C004 = 1 (high), Start program execution. (one pulse) C004 = 0 (low), No response. Bit C004 informs the control unit to start program execution. However, Cycle-Start signal (C004) is ignored when: 1. The control unit is already in "IN PROCESS" mode. 2. The control unit is not at AUTO, SINGLE, MDI, or TAPE mode. 3. Emergency stop signal (C002) is at high (1) 4. The control unit is in alarm state. (C007=1)

    Program No. Selection by INPUT key (C005) Place controller under PRNO Mode:

    FEED-HOLD

    G11 Pxxx Lyyy with yyy=any value

    C000=1

    Output

    RESETor Use G11 P-xxx

    C000=1 Output OFF C000=0

    Output On

    C000=0

    C000=1

    Output

    FEED-HOLD

    RESETor Use G11 P-xxx

    G11 Pxxx Lyyy with yyy=0 or void

  • HUST H9C Connecting Manual

    5 - 16

    1. R100=0; system mode = 0 2. R202=4; display program listing 3. Move cursor to the desired program number, press ENTER to complete the selection. Note: A. Cursor Right / Left key for program number to increase / decrease by 100. B. When program listing is being displayed, program footnote can be entered.

    Single Block (C006) C006 = 1 (high), SINGLE block execution mode selected. C006 = 0 (low), Function OFF. When C006 = 1, the current execution is in SINGLE block mode. Press CYCST key to execute. If AUTO and SINGLE modes are selected at the same time, the SINGLE mode has higher priority than the AUTO mode. Operation can be changed to MDI or JOG by the mode selection signal under single block state. Fig 6-4 is a time chart for SINGLE block execution.

    Fig 6-4 Time Chart for Single Block Execution

    NC Alarm & Stop NC Command (C007) C007 = 1 (high), NC alarm is ON. C007 = 0 (low), NC alarm is OFF. Bit C007=1 to inform the CNC unit a machine problem has been detected. When the external device encounters any trouble, such as spindle servo alarm, these alarm signals can be used, through input points, to inform the control unit to stop execution by setting C007 high (1). LCD screen displays ERROR 37 NC ALARM. When the problem is resolved, RESET the machine before restart the program.

    Background Edit (C008)

    Program NO. Selection by external I/O (C009)

    Testing the second software limit (C010)

    Single Mode Auto Mode Continue BLK2BLK1

    offoff

    off on

    on

    on onoff Cycle

    Start

    Single Mode C006

    Auto Mode

    C006 off

  • 5 Interface Between CNC & PLC

    5 - 17

    When C010 = 1, the testing of the second software limit function is established. When the first sets of X/Y/Z/A/B/C/U/V/W softwares are positive limits, machine parameters are Item Nos 581~589. When the first sets of X/Y/Z/A/B/C/U/V/W softwares are negative limits, machine parameters are Item Nos 601~609. When the second sets of X/Y/Z/A/B/C/U/V/W softwares are positive limits, machine parameters are Item Nos 621~629. When the second sets of X/Y/Z/A/B/C/U/V/W softwares are negative limits, machine parameters are Item Nos 641~649.

    Table 5-3 Software limit positions corresponding parameters First software limit Second sofeware limit

    Axial direction

    Positive limit

    Negative limit

    Axial direction

    Positive limit

    Negative limit

    X #14581 #14601 X #14621 #14641 Y #14582 #14602 Y #14622 #14642 Z #14583 #14603 Z #14623 #14643 A #14584 #14604 A #14624 #14644 B #14585 #14605 B #14625 #14645 C #14586 #14606 C #14626 #14646 U #14587 #14607 U #14627 #14647 V #14588 #14608 V #14628 #14648 W #14589 #14609 W #14629 #14649

    Program Restart-1 (C011)

    C011 = 1 (high), Program Restart mode ON. If the program execution is interrupted for any reasons, the Restart function (C011=1 ) allows you to resume the execution from the program block where the program was interrupted. HUST H6C does not provide this function key on the keyboard and it must be processed through PLC. Follow the steps below to restart the interrupted program: 1. Press RESET. Use MPG to move tool away. If the interruption was caused by Em-

    stop or servo alarm (Error 2), execute HOME, then RESET. 2. Press user installed [Restart] key to set C011 = 1 in PLC as follow. 3. In AUTO mode, press CYCST key to restart. At the end of M02 or M30, the restart

    function will be automatically cleared.

    I023 C011( )

  • HUST H9C Connecting Manual

    5 - 18

    Note that the M, T, S-code in the previously executed program blocks prior to program interruption will be re-executed during restart operation. Example: (See Fig 6-5) Assuming that the program was interrupted at block N40. When restart function is activated, the controller will calculate the coordinate change from N10 to N30, then move the tool to the end of N30 and continue the program execution from there. N10 S200 N20 G0 X50. Y100. N30 G1 V-20. F200. N40 X60. V-20. .....Program interrupted here and restart from here N50 V-20.000 N60 X80. V-20. N70 G0 X250. Y150. N80 M2

    Fig 5-5 Program restart When RE-START key is pressed (See Fig 6-5}, then [AUTO] and [CYCST], the CNC controller will calculate the executed distance from N10 to N30 and the cutting tool will then move to that point, from where the program execution will be continued.

    Program Restart 2 (C012~C013) The command Bits C012~C013 are also used to restart the program from where the execution was interrupted. They are applied to the case when you interrupt the execution of the 1st program and jump to the 2nd program. Once you finish the 2nd program, you can use C012~C013 to go back to the 1st program and restart from where it was left. The procedures are as follows: 1. When program #1 is interrupted, activate C012=1 to store the interrupted block

    number. 2. Jump to the 2nd program or do some other task such as JOG function. 3. Once finished the 2nd program, use PRNO Or PLC to return to program #1. 4. Set C013=1 to read the stored block number in step 1. 5. Set C011=1 (Restart-1). 6. Press CYCST.

    Program Restart 3 (C014)

    Y

    X

    N30

    N60

    N40

    N50

    Restart

    Interrupted

  • 5 Interface Between CNC & PLC

    5 - 19

    1. In EDIT mode, move cursor to the desired restart block. Use PLC to activate

    C014=1. 2. Return to [AUTO] mode, program restart signal ON, C011=1. 3. Press CYCST.

    Dry-run (C015) C015 = 1 (high), Dry-run mode selected. When C015=1, the control unit will execute dry run function. The dry run mode can be set at any time during program execution. When dry run is set, the feed-rate will change to fast speed at the beginning of next block. When dry run mode is turned OFF (C015=0), the feed-rate will return to normal cutting speed at the beginning of next block. Fig 5-6 shows the relationship between dry run mode and normal execution mode.

    Fig 5-6 Time-relationship between dry run and normal execution mode

    When the program restarts, it will directly execute the contents below the restart single block, C017 When C0171 (high) and the program restarts, it will not execute the single blocks before the restart sigle block and the function of direct execution of the contents below the restart single block is established. If the program is interrupted in execution due to whatever reasons, and when C017 = 1, the program will restart (with process of Co11 Bit) and execute from the place where it is interrupted. Program example: N10 S200 N20 G0 X50. Y100.

    1 2 3 4 5 6 7

    Off

    Off Off

    Off Off

    On

    On

    On

    Auto Mode

    Dry run C015

    Cycle

    Feed Rate Cutting Dryrun speed

    Block Execution Cutting

  • HUST H9C Connecting Manual

    5 - 20

    N30 G1 V-20. F200. N40 X60. V-20. ..... N50 V-20.000 N60 X80. V-20. N70 G0 X250. Y150. N80 M2

    Fig5-7 Program restart

    As shown in the above figure, start the RE-START function, and then execute AUTO, CYCST, the program will proceed from the original single block position.

    Cursor Up And Cursor Down (C020~C021) C020 = 0 ~ 1 (Rising edge), the cursor moves up one line. C021 = 0 ~ 1 (Rising edge), the cursor moves down one line. Bit C020 informs the control unit to move the cursor one line up. It is effective only at the moment when the signal (C020) rises from low (0) to high (1). This function can be controlled by external input to remotely move the cursor. Bit C021 is for Cursor Down function.

    Page Up And Page Down Key (C022~C023) C022 = 0 ~ 1 (Rising edge), move cursor one page up C023 = 0 ~ 1 (Rising edge), move cursor one page down When bit C022 is rising from low (0) to high (1), move cursor one page up. This function can be controlled from external input. Bit C023 is for Page-down function.

    Bit searching function in Edit mode (First bit only) (C024) C024=1 (1 PULSE) In Edit mode and C24=1, it will search the first bit single block that was input in the input area.

    Y

    X

    N30

    N60

    N40

    N50

    Interupts here and restarts from here

    The program is interrupted here, it will not execute the single block before N30 when it restarts and will directly restart from the place where it is interrupted.

  • 5 Interface Between CNC & PLC

    5 - 21

    EX

    O000 G1 X50. X50.Y50. N1 X70.Y60. Y100. M30

    When you key in X in the input area and C024=1, the cursor will point to the second block X50.Y50. When you key in M in the input area and C024=1, the cursor will jump and point to the fifth single block M30.

    The program reading function is established with use of V10932 and V13449 (C025) V13449: Designates the program number for this function. V10932: Designates the program single block number for this function (the minimum single block number is 1). Before C025 is triggered ON with PLC, the values of V13449 and V10932 shall first be designated. When the function C025 is successfully executed, the relevant program contents that are read will be stored in the following variables: #13400 ----The system sends the message whether the letters A~Z in the

    single block are used. BIT1 A 0= not use 1= use BIT26 Z #13401#13426 ----The system sends the contents of the letters A~Z. #13448 ----The system sends the message whether the letters A~Z in the

    single block use #. BIT1 A 0= not use 1= use BIT26 Z Example: G01 A100 B#100 C#-100 Then, 13400=0x0000 000E (1110B) 13401=100 13402=100 13403=-100 13448=0x0000 000C (1100B) Note: R126 BIT27=0 When the function C025 is in execution, it reports Error when the

    designated single block number is incorrect. (ERROR18.M). BIT27=1 When the function C025 is in execution, it does not report Error when the designated single block number is incorrect.

    Option Stop (C026) C026 = 1 (high), Option Stop is enabled.

  • HUST H9C Connecting Manual

    5 - 22

    C026 = 0 (low), Option Stop is disabled. If C026 is set low (0), M01 block will be ignored during program execution. If C026 is set high (1), M01 block will stop program execution until CYCST is pressed again.

    Option Skip (C027) C027 = 1 (high), Option Skip function is ON. C027 = 0 (low), Option Skip function is OFF. If C027 is set to 1, the block labeled with "/1" will be skipped during program execution. If C027 = 0, the block labeled with "/1" will be executed.

    Speed Deceleration Selection for G31 Skip Function (C028) Bit C028 informs the control unit how to decelerate the servo motor when G31 skip function is encountered in the program. C028 is used in conjunction with the value in R190. Please refer to Operation Manual section 3.13 for G31 function C028 = 0 (low), servo motor ignores the value in R190 and decelerates linearly to zero. C028 = 1 (high) & R190 = 0, servo motor speed jumps to zero. C028 = 1 (high) & R190 0, servo motor will stop in a distance = value in R190.

    Fig 6-8 Motor Deceleration with C028 and R190

    G31 velocity changes from MFO (C029) Counter Status (C030)

    C030 = 1 (high), System counter ON. C030 = 0 (low), System counter OFF.

    T

    Feed-rate

    Motor starts

    G31 ON, Normal deceleration C0280 R190 Ignored

    T

    Feed-rate

    Motor starts

    G31 ON, Motor speed jumps to 0. C0281 R1900

    T

    Feed-rate

    Motor starts

    G31 ON, motor stops in a distance = R190 C0281

    R1900 Area R190, must > Distance in normal deceleration.

  • 5 Interface Between CNC & PLC

    5 - 23

    PLC Ladder Simulation (C031) C031 = 1 (high), CNC is ready to accept ladder simulation procedures. C031 = 0 (low), ladder simulation stops. When C031 = 1, a RAM memory in HUST H6C controller will become available for user to test his ladder program that was edited in the personal computer. Note that the user's ladder program should have a line of C031=1 for the simulation to be effective. Please refer to Chapter 9 of HUST H6C Operation Manual for ladder simulation procedures.

    M-, T-, S-code Command Finish Signal (C032~C034) C032 = 1 (high), M-code command is finished. C033 = 1 (high), T-code command is finished. C034 = 1 (high), S-code command is finished. When you use an M-code to do work on an external device, it normally takes some times for the external device to finish the work. When the work is finished, let C032=1 in your PLC. The H6C controller must receive this finish code for it to continue executing the next block. T-code and S-code work the same way. The M-code finish signals are effective for the range of M003~M499.

    Round Corner Non-stop Operation (C036) C036 = 1 (high), Round Corner Non-stop Operation Between Blocks ON. When the tool motion changes from one direction (block) to another, it will produce a sharp corner and the motors will decelerate and accelerate at the intersection. This condition will produce an undesirable effect for some industrial machinery such as glue machine, flame or laser cutting machine. To overcome this problem, set C036=1 to produce a round corner and the motors will also run continuously when cornering with a cutting speed specified by the programmed federate (F). Note: C036 in NOT fot G00.

    LCD Delayed Display (C037) Works in conjunction with


Recommended