Desktop Milling Machine CNC Retrofit Using PIC-SERVO Motor Controllers

Similar documents
MD3. Microstepping Motor Driver Page 1 of 7. Description. Software. Mechanical Drawing. Features

UNIVERSAL MOTION INTERFACE (UMI) ACCESSORY

ADVANCED MICRO SYSTEMS

A Axis M-Functions Level 1 A Axis Standard A Axis SMT Level 2. Each console includes the following:

Overview Included in the Box: Pinout Installation Power Supply Stepping Motors DIP Switch (JP1) Location...

C-Series C142 Machine Controller Eurocard DIN Packaged Systems

SUM-40 OPERATING MANUAL. Ma0 DYNAMIC STRUCTURES AND MATERIALS, LLC REV

SCS AUTOMATION & CONTROL

UNIVERSAL MOTION INTERFACE (UMI) ACCESSORY

P7000 Stepper Drives. P7000 Introduction

The mystem Project Board Quick Start

THE CTB08D LIGHT CONTOLLER

SYSTEMS ELECTRONICS GROUP

527F CNC. Retrofit controller for machines made by Fadal Machining Centers. Installation and set-up manual Calmotion LLC

WHAT TO DO IF THE SERVO SYSTEM REPORTS FAILURES.

SD DRIVE SERIES INSTALLATION MANUAL

527F CNC. Retrofit controller for machines made by Fadal Machining Centers. Installation and set-up manual Calmotion LLC

D115 The Fast Optimal Servo Amplifier For Brush, Brushless, Voice Coil Servo Motors

DMX-K-DRV. Integrated Step Motor Driver + (Basic Controller) Manual

Hybrid AC Driver [GCNC-1110]

The SilverNugget is a servo controller/driver for NEMA 34 frame microstep motors.

PS/IO Circuit Board Retrofit

2017 TigerStop,LLC. Printer. February 2017 Mk1

Resolver to Digital Expansion Board

The SilverNugget is a servo controller/driver for NEMA 17 & 23 frame microstep motors.

Plasma Panel Replacement Guide DU-42PX12X

1. Mount the echo and tremolo control switches under the keyboard shelf, in a position convenient for the organist.

Advanced Features. High Performance Stepper Drive Description. Self Test and Auto Setup

Hardware Manual 1240i-485

G540 User Manual. Date Modified: March 5, 2012 Page 1 of 10

WIRING INSTRUCTIONS FOR HENRY SIGNS CONCERNING THE JOHN HANCOCK SIGN

NMC Simple Sequencer S ta nd-alone Controller

Lexium MDrive. LMD M57 programmable Motion Control REACH IP65. Product overview. General features. Intelligent motion systems

G540 4-AXIS DRIVE REV 4: MAY 28, 2010

USER S MANUAL. CNC Servo Stepper Motor Control Box CH4EV12-1 Rev. 1

Lexium MDrive. LMD P57 Pulse / direction input REACH IP65. Product overview. General features. Intelligent motion systems

Hardware Installation Manual Integrated BLDC Servo Motor

DigiSpeed-SD DC-06. Isolated Control Voltage Generator User s Guide. DigiSpeed-SD PCB Ver:3.0 Mach3 Ver: 2.+ DigiSpeed-SD - Users Guide Page 1

C5 Series Stainless Steel Photoelectric

Lexium MDrive. LMD A85 CANopen REACH IP65. Product overview. General features. Intelligent motion systems

Lexium MDrive. LMD A57 CANopen REACH IP65. Product overview. General features. Intelligent motion systems

Appendix E: Edge Ti. Overview. Appendix E: Edge Ti 169

G540 MANUAL MULTIAXIS STEP MOTOR DRIVE

Mounting Card MC1XDZR02-HP1

Hardware Manual of Easy Servo Drives ES-D Series

FE Series Photoelectric Sensors

ADVANCED MOTION CONTROLS 3805 Calle Tecate, Camarillo, CA Tel: (805) , Fax: (805) Page 1 of 12

R325P Single Axis Driver

Zenith DS9000 Dispensing System

Linear Actuator Reference Manual

MPA-DSP. User s Guide and Programmer s Reference North Broadway New Ulm, MN B Telephone:

USER S MANUAL VER.1. C10D- PARALLEL PORT INTERFACE CARD BOARD Rev. 1

Master Pulse Reference/ Isolated Pulse Follower Expansion Board

Hardware Manual Si3540

When any of the following symbols appear, read the associated information carefully. Symbol Meaning Description

DirectCommand Installation 5 Channel Spreader Control Module Technology

ACORN User Guide For Revision (Aka Acorn_rev3) Updated 1/23/17

RoHS. High shaft load capacity. Shock / vibration resistant

Installation, Operation and Maintenance Manual

Centroid ACORN CNC controller Specification and Use Guide Updated 8/3/17. Overview

SURFACE CONTROLTrack INSTALLATION INSTRUCTIONS

Rhino Buffer Module PSM24-BFM600S. Operating Instructions

Replacing the Power Supply

PowerFlex DC Drive - Frame A SCR Modules for Drives with a Power Traces Circuit Board

JR3 EXTERNAL SENSOR ELECTRONICS WITH ANALOG OUTPUT. JR3, Inc. 22 Harter Ave. Woodland, CA 95776

Cutter Option Installation Instructions

Installing Your 1394 Drive Interface Module

PSM-2 POWER SUPPLY MODULE INSTRUCTIONS

4.8 Expansion Module MAC00-FS1/FS4

Secured Series: Hub Plus Kit Single Door Controller Package Installation Manual

CONSOLE CONNECTOR KIT 9501 INSTALLATION INSTRUCTIONS

HARDWARE MANUAL TMCM-1613 TMCM-1613-REC. Hardware Version V TRINAMIC Motion Control GmbH & Co. KG Hamburg, Germany.

TB6600 Stepper Motor Driver

OPERATING INSTRUCTIONS 7 SERIES STATIC GENERATORS

User s Manual Hub444. Motion Control Network Hub

Table of Contents 1 ABOUT THIS GUIDE CONTACT INFORMATION ANTENNA INSTALLATION... 4

CHAPTER 3B: ELECTRONIC POWER STEERING

Indra Works DS Tuning Procedure

RTK3 Logic Controller User Manual Revised

Brushless Motor with Integral Drive EnduraMax 95i Series

Material: Weight: Shaft Loads: Cable: Connector:

EMC 10T "CE" Mechanical Upgrade Procedure

4.7 Expansion Module MAC00-FS1/FS4

1993 SPECIFICATIONS CSJ , ETC. & SPECIAL SPECIFICATION ITEM 6132 ARTERIAL TRAFFIC MANAGEMENT SYSTEM

UCC PI 80 installation guide

WL-400 Milling Machine Operator s Manual

Mounting Card MC1XDZR02-QD

MODEL SST3-MV INSTALLATION INSTRUCTIONS FOR FEDERAL MODEL SST3-MV SELECTABLE SIRENTONE-MULTI VOLT

Adapter Kit - QSI Electronics to G2 Meter Installation Instructions

Blue Weapon Laser. User manual UK. Version 1.0

How to Assemble a Desktop PC

Hardware Installation Manual

DCM Digital Control Modules

Made In America 2017 TigerStop, LLC. Tablet Package. Installation Guide. February 2017 Mk1

BS 287 DUAL CHANNEL POWER SUPPLY. User Manual. January 2017 V1.0

RE 2 52 ROTARY ENCODER

uservo box instruction manual

Screw. Nut Guide. Features

User Guide for NUC7CJYSAL. Intel NUC 7 Essential, a Mini PC with Windows 10 NUC7CJYSAL. User Guide

Instruction Manual. M Pump Motor Controller. For file reference, please record the following data:

Transcription:

Desktop Milling Machine CNC Retrofit Using PIC-SERVO Motor Controllers Overview This application note describes the motors, electronics and software needed to convert a small 3-axis desktop milling machine to servo-based CNC control. It applies to small milling machines such as those made by Sherline or MAXNC. It also contains some guidance for working with larger machines requiring larger motors. While many stepper based CNC packages are available, servo control offers faster, smoother and more reliable performance. In addition, the sample CNC control program, PSCNC.EXE, runs under Windows, making the system very clear and easy to use. Please note that this application note and the sample software and source code are provided for your convenience in evaluating the PIC-SERVO motion controllers. They are not supported as products, and all risks associated with their use are with the user. Also, please take the time to read the PIC-SERVO chip data sheet and the PIC-SERVO motor control board data sheet to understand their operation 1. This application note does not cover the mechanical aspects of physically attaching the motors to milling machine. What Is Needed The following items are needed for your CNC retrofit: 3 Motors 3 PIC-SERVO SC or CMC (standard or 3-phase) Motor Control boards 1 Z232-485 Serial Port Converter board 3 Motor cables 3 NMC Communication cables 1 RS232 cable 6 Limit switches 1 Logic power supply 1 Motor power supply 1 Enclosure PC (200 MHz Pentium or better) running Windows 98/NT/2000/XP PSCNC Example Software NMCTEST test utility program PIC-SERVO, PIC-SERVO CMC data sheets PIC-SERVO Motor Control board data sheet 1 Unfortunately, we at JEFFREY KERR, LLC do not have the resources to answer all questions regarding the basics of motion control systems. However, this application note, the other supporting documentation, and other basic information available on the Internet should help you understand the fundamentals of CNC and motion control systems. JEFFREY KERR, LLC www.jrkerr.com 1

The cost for all of these items is a little over $1000.00. Of course, you can always save a little money by searching for surplus components. Motors The motors recommended for a small desktop milling machine are Pittman 14204S006 24v DC brush motors with 500 line (2000 count) optical encoders. They will deliver 26 oz-in continuously at a little over 3000 RPM. They can be ordered from Pittman Motors (1-215-256-6601). In general, it is simplest to connect the motor shafts directly to the drive screws, and the rest of this application note assumes that this is the configuration used. However, this gives you a much higher speed capability that you would actually want to use. (1000 RPM, or 50 in/min with 20 TPI screws, is a good practical speed limit for small machines.) To increase the available torque (which in turn, improves the accuracy), it would be better to use a 2:1 or 3:1 toothed belt drive reduction to connect the motors to the drive screws. The PIC-SERVO SC or CMC controller boards can drive up to 3 amps continuously, or 6 amps peak, at up to 48vdc. The 3-Phase versions of these boards can drive up to 6 amps continuously, also at up to 48v. Therefore, is possible to drive more powerful motors if they have closer to a 48v winding. The specification to check when looking at motors it the torque constant, which gives the amount of torque per amp. If you need to use motors which require more than the 1/3 HP max. available from the PIC-SERVO controller board s amplifier, you have a couple of options: 1. Use an external amplifier such as those available from Advanced Motion Controls. Make sure you get one which accepts PWM and Direction inputs. 2. Build your own PIC-SERVO based controller and high current amplifier. This is only for the truly ambitious. Motor Cables You will need to make cables for connecting the motors to the connectors on the PIC- SERVO or PIC-SERVO 3PH controllers. The pin definitions for the motor connectors can be found in the PIC-SERVO board data sheets. The connections for the Pittman motor and encoder are as follows: Encoder Definition Black wire Ground Red wire +5v Yellow wire Channel A Blue wire Channel B Green wire Index JEFFREY KERR, LLC www.jrkerr.com 2

Motor Definition Red terminal Motor + Black terminal Motor - The encoder wires and motor wires should be in separate shielded cables, with the shield wires connected to ground only at the PIC-SERVO motor controller end. In the motor wire cable, M+ and M- should be twisted together. In the encoder cable, Channel A should be twisted with GND, and Channel B should be twisted with +5v. The Index wire can be optionally twisted with a spare wire connected to GND. Do not try using the shield wire as a ground wire. The motor/encoder cables should not be longer than 10 feet. Also in the encoder cable, you will want to include 2 or 4 wires for connecting your limit switches. Only two wires for a single limit switch are mandatory, but a second limit switch is a good option. The motor wires should be at least 22 gage, and the encoder wires can be 24 or 26 gage. Larger motors should have heavier gage wires. PIC-SERVO Control Components The PIC-SERVO motor control boards, the Z232-485 converter, the logic power supply, and the communications cables can be purchased from the PIC-SERVO distributor, HdB Electronics (1-800-287-9432) using the following part numbers: Motor controller boards (any combination of the following 3 boards) PIC-SERVO SC Motion Control Board KAE-T0V10-BDV1 PIC-SERVO SC 3PH Motion Control Board KAE-T0V10-BD3PHV1 PIC-SERVO CMC Motion Control Board KAE-T0V5-BDV1 PIC-SERVO 3PH Motion Control Board KAE-T0V5-BD3PHV1 NMC Communication Cables (3) 125250 Z232-485 Serial Port Converter (1) 108939 Logic Power Supply (1) 123964 RS232 cable (1) 106907 The NMC communications cables listed are 20 inch twisted-pair flat ribbon cables. Because you will probably not need such long cables for interconnecting your boards inside the enclosure, you can also make your own shorter 10 pin flat ribbon cables using conventional flat cable. Limit Switches Six limit switches, typically pushbutton-type mechanical microswitches should be located (1 each) at either end of the range of motion for each axis. The example software only actually uses the switches at the positive end of the range of motion, and therefore only three are actually required. Limit switch signals should be wired to the normally closed and common terminals of the switches. JEFFREY KERR, LLC www.jrkerr.com 3

Motor Power Supply The motor power supply should be 24vdc, capable of supplying 10 amps. The supply may be regulated or unregulated. Make sure that there is an appropriately sized fuse in the AC side of the power supply, and that the power supply case is connected to earth ground. The DC output of the motor power supply is connected to the screw terminals of each of the PIC-SERVO CMC controller boards. Enclosure The PIC-SERVO controller boards, the Z232-485 converter board, the logic power supply and the motor power supply should be housed in a sealed enclosure. The enclosure should have no holes (even vent holes) in which metal chips could enter. The enclosure should be metal, ideally aluminum. The enclosure should have a common AC power switch. When mounting the PIC-SERVO controller boards inside the enclosure, the power amplifier chip on each board (LMD18201) should be screwed to a heat sink which makes good thermal contact with the inside of the metal enclosure. PC Running Windows A PC running Windows 95/98 is needed as the host for the CNC control system. The PC should have at least a 166 MHz Pentium processor with at least 32 meg. of memory and one free COM port (COM1, COM2 COM3 or COM4). Note that COM1 and COM3, or COM2 and COM4 cannot be used simultaneously. No other programs should be running while the milling machine is actually in motion, although utilities such as text editors and the like can be used while the machine is not in motion. Software and Documentation You will need to download the following files from www.jrkerr.com: PIC-SERVO board data sheet PIC-SERVO chip (or chipset) data sheet PIC-SERVO CNC example program (PSCNC.ZIP) PIC-SERVO test utility program (NMCTEST.ZIP) PSCNC.ZIP contains the PIC-SERVO CNC Milling Machine controller program, plus documentation and source code files. When you un-zip PSCNC.ZIP, all files should be located in a single working directory. NMCTEST.ZIP is a test utility program useful for verifying that all of your hardware is working. It can also be used for testing different servo control parameters. The controller chip data sheet contain background information on the PIC-SERVO controllers, and are necessary for understanding how your PIC-SERVO controllers work. JEFFREY KERR, LLC www.jrkerr.com 4

Assembling and Testing the Hardware Before assembling the controllers inside your enclosure, you should connect everything up (using PIC-SERVO board data sheet as a guide) on your bench. The motors should be disconnected from your milling machine. It will be convenient to plug in both the logic power supply and the motor power supply to a power strip with a common power switch. Run the program NMCTEST.EXE, and make sure that all three controllers are recognized by the software. Try some test motions using the default gains. If encoder seems to be working, but the motor jerks and does not servo properly, the polarity of the motor might be reversed. In this case, try swapping the M+ and M- motor wires. When you are confident that all of your motors are connected and working properly, try connecting your motors to your milling machine. Examine the servo gain parameters located in the sample initialization file PSCNC.INI (using a text editor), and enter them into the NMCTEST.EXE program. Again, try some short test motions to verify that these gains will work with your machine. Be careful not to run the machine into its stops. If you are using different motors than recommended, or if your machine is appreciably different from a Sherline mill, you may need to adjust your servo gain parameters. Please refer to the PIC-SERVO data sheet for guidelines on setting these parameters. Once you are confident that all of your wiring is correct and that the motors work with your machine, you can assemble the controllers into your enclosure. Once assembled, rerun the NMCTEST.EXE program to verify that everything is still working. Configuring and Running PSCNC Before running the PSCNC controller program, you should thoroughly read the documentation file PSCNC.PDF (which is included in PSCNC.ZIP). Make sure that you have at least the positive limit switch connected for each axis. The sample initialization file PSCNC.INI contains parameters nominally suitable for a Sherline milling machine. Some of these parameters, however, may be different depending on how you hook up your motors, and on the location of your limit switches. In particular, the sign of the X, Y and Z scale factors (+ or -) might be reversed, and the range of motion parameters (xmin, xmax, etc.) may be different. To test these parameters, you should run the PSCNC.EXE program, but do not home the milling machine when prompted. Instead, enable all servos, and use the jog controls to move the mill around, and verify the directions of motion and the ranges of motion. After making any corrections in PSCNC.INI that may be necessary, run PSCNC.EXE again, and this time, choose the homing option. The homing procedure will first home the Z axis, then the X axis, then the Y axis. When homing starts, try pressing the limit switches manually before each axis arrives at the limit to make sure that the switches are responding correctly. JEFFREY KERR, LLC www.jrkerr.com 5

When you are confident that the switches are working correctly, re-run PSCNC.EXE and allow the homing to execute properly. The machine should end up in the final position of X=-0.3500, Y=-0.3500, Z=-0.3500. Again, use the jogging controls to move each axis to the negative end of the range of motion, and verify that xmin, ymin and zmin are set correctly. You should now be ready to use your CNC milling machine. Safety Computer controlled machinery, and especially machining equipment, can be very dangerous. The PSCNC example CNC control program provided is exactly that - an example. While it has been designed to be quite usable, it is not necessarily failsafe, and users should use the utmost of caution when operating their milling machine. This is especially critical when you are first familiarizing yourself with its operation, and especially if you undertake modifying any of the source code. Aside from the caution used when operating any piece of home-built electronic equipment, you should also follow the customary safety precautions of wearing safety glasses, not wearing loose clothing or jewelry, keeping your hands away from moving components, and observing electrical safety rules regarding AC power. JEFFREY KERR, LLC www.jrkerr.com 6