Vdocuments - MX CNC Controller Jy5300 v3 User Guide
Vdocuments - MX CNC Controller Jy5300 v3 User Guide
0 2013 JULY 3
1
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
1) Special Features P4
2) Specifications P5
3) Control Box Structure P7
i) Mainboard P8
ii) Stepper Driver Card P10
iii) DC Spindle Driver Card P10
iv) AC Spindle Driver Card P11
v) Socket pin diagram P12
4) First Installation P13
5) MACH3 Basic Setup P14
6) Run a demo G Code P20
7) MHC2 Handwheel pendant Introduction P21
i) Button Introduction P21
ii) LCD display P21
Hand Wheel Controller Function: P22
i) Standard motor control P22
ii) PC/ HC mode P23
iii) Memory P23
iv) Emergency Stop P24
v) Divide to Half P24
vi) Back to Zero P24
vii) Rolling function P24
viii) Limit Switch P25
ix) Modify stepper motor parameter P25
x) 3D Printer A Axis Motor setting P25
8) MHC2 Handwheel pendant MACH3 setup P25
i) Modbus communication and Mach3 brain control P25
ii) Mach 3 pendant setup and calibration P28
9) How to use AutoCheck P32
10) Spindle Motor Controlling P32
i) Software acceleration and deceleration P32
ii) PWM driving constant speed P32
iii) Manual PWM Control P32
iv) MACH3 PWM Control by G-Code P32
v) Overdrive protection P33
vi) AC 800W or higher watering cooling spindle motor P33
11) Stepper Motor controlling P33
12) Limit switch Protection P33
13) Water Cooling terminal P34
14) Output Relay (OUT1) P34
15) Application Tutorial P35
i) Basic control in MACH3 P35
ii) How To generate G Code From 3D graphics P36
iii) How To generate G Code From photo P36
2
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
3
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
4
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
Specification:
Limit Switch X Y Z 1
Auto-shutdown
DC Spindle Maximum Current 7DCA
protection
Motor Driver
PWM Speed Control 0 to 100% 1KHz
Board
Constant Speed Tolerance 5 to 15%
Tested in 300W
Maximum Acceleration ~3000RPM/s
12000RPM DC Motor
Maximum Deceleration ~3000RPM/s
5
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
Display 16 button
Inch or mm mode
Support Mach3 Modbus communication
Cable Length 3m
Hand Wheel Encoder 100 PPR
6
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
4)
1)
5)
3) 2)
7) 6) 5) 4) 3) 2) 1)
11)
12)
10)
9)
8)
14) 13)
7
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
Socket:
1) X Axis: Connect to X stepper motor
2) Y Axis: Connect to Y stepper motor
3) Z Axis: Connect to Z stepper motor
4) A Axis: Connect to A stepper motor
5) Limit Switch: Connect to machine limit switch
6) Spindle Motor: Connect to spindle motor
7) Cooling System: Connect to water cooling system (if exist)
8) Parallel Port: Connect to Computer parallel port
9) Hand Controller / External Device: Connect to hand wheel controller, or other
controller
10) Input Electricity: 110V or 220V AC ( Fixed rating, marked on the controller box)
11) B Axis: Connect to B stepper motor (* reserved connector port)
12) OUT 1: Relay output port
13) AUTO CHECK: For AutoCheck device
14) USB Power: Connect to USB port of the computer; don’t use other power source like USB
adapter. And will create a USB serial com port for Modbus control
Mainboard
Block Diagram:
MICRO
CONTROL BOARD SOCKET TERMINAL RJ12 HANDWHEEL PORT PROCESSOR
8 HANDWHEEL
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
With high speed 10Mb/s opto-isolation between PC and control box. Prevent the ground loop
damage.
Total 17 pcs 6N137 high speed opto isolation ic for all inputs and outputs, at all parallel port pin
with level shifter to enhance the signal.
Card slot design, support up to 5 stepper driver cards and one spindle motor card. Can replace or
add new card easily
Dual power supply input, one for spindle motor up to 48V, separate 24V power for stepper motor
driving.
Support handwheel, limit switch, and relay output, auto check function, water cooling system
and system fan cooling.
Limit Switch
Logic supply
Fuse 5mm 1.5A
Stepper supply
Fuse 5mm 10A J4 AutoCheck
Step Motor
Supply J3 OUT1 Relay
Output
HandWheel/ PC
Spindle mode switch
Motor
Supply
9
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
Using Toshiba TB6560 3A high current stepper motor card, with independent microprocessor
control.
With 32Mb flash memory to record the motion up to 30 minutes, can record simple motion by
handwheel and repeat the simple work.
Constant speed PWM control, with high speed microprocessor to calculate the software
acceleration and deceleration. Real time monitor the spindle current and spindle motor speed.
10
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
Can connect to external AC spindle control box JY800W and use higher power spindle motor
up to 800W or more.
11
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
Stepper Motor:
A- B-
A+ B+
Spindle Motor:
Limit Switch:
Y LIMIT SWITCH
X LIMIT SWITCH
Z LIMIT SWITCH
COMMON GND
12
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
Water Cooling:
GND
12V DC VCC
max 0.8A
First Installation
1) Switch to Power Off before installation
2) Connect all cable according to the marking on the cable. Follow the marking: “X” to X axis,
‘Y’ to Y axis, etc. Connect: X, Y, Z, A and B stepper motor, spindle motor, electricity input,
hand wheel controller (A, B stepper motor and water cooling is optional order) and USB
cable, *please connect to the same computer USB’s port to have opto-isolation function.
3) Double check the cable connection.
4) Tune the spindle motor speed’s rotary knob to 0% ( When you tune the rotary knob to
turn off mode (Tick sound heard) will need Gcode command M3 to start the motor on off)
5) Inspect the whole machine without abnormal situation, like missing parts, obstacle, etc.
6) Release the emergency stop and then power on
7) “Beep” sound is heard once the main board is ready
8) Check the hand wheel controller, the LCD is on
9) Press “Speed” to X10 on hand controller, select “X” motor (*detail can see the hand
controller instruction)
10) Try to move X, Y, Z, stepper motor by handwheel or arrow key on keyboard (make sure
you turn on the jog mode and set to cont or step). Check that it is working or not
11) Tune the spindle motor speed rotary knob to 100%, spindle motor should start to work
12) Tune back the spindle speed to 0%
13) Connect the parallel cable to computer (if not connected)
14) Follow the instruction of ” MACH3 Setup” section
15) Press direction key in keyboard to check the motor is working
*make sure to clear the Emergency Stop status, (external emergency stop can be cleared
in hand wheel controller’s “ESTOP” button, soft emergency stop can be cleared in
MACH3 left bottom’s “EMERGENCY” button).
14) If there is any problem, please contact the sales’ representative
13
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
You should purchase the MACH3 or try the demo version from
http://www.machsupport.com/
9) Select “Config”, click “Select Native Units”, and then select mm or inch
Better to choose “mm” as follow
14
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
6) Select “Config”, “Ports and Pins”, choose 25000Hz for stepping motor
Set the correct parallel port number, normally default is 0X378, if you are using PCI card type
parallel port, then it may be different, you can check your correct port address in hardware
device-> ports & LPT.
If you want to invert the axis’s direction, just press the Dir Low Active.
15
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
16
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
7) Select “Config”, click “Motor tuning”, select X Axis firstly and set as below photo.
Remember to press “SAVE AXIS SETTINGS” after you modify each axis as below..
REMEMBER to press SAVE AXIS SETTINGS Button
And then press Axis-> Selection on the right hand side, select Y, Z, A and B. Follow the
same steps as X setting.
Steps per mm must be 320, (For MIB Instruments’ CNC3020, CNC3040 CNC6040 model)
For inch is 8128
Velocity can be 0 to 3500 mm per minutes or 137 inch per minutes
Acceleration can be 20 to 400 mm/s or 1 to 16 inch per minutes
Step Pulse better to be 10us, or 5us, too low will lose step. Dir Pulse is 2us
17
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
8) And then go to Config-> System Hotkeys. You can set the control button of your keyboard.
Default X, Y and Z are set as direction UP, DOWN, LEFT, RIGHT, PAGE UP and PAGE DOWN
key. You can then press A/U++ and then press keyboard’s “<”, press B/U-- and then
press keyboard’s “>”, press B/V++ and then press keyboard’s “M”, press B/V-- and then
press keyboard’s “N”.
Then you can use keyboard to control axis’s motor.
18
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
9) And then we can set the SPINDLE motor setting, this will allow g code M3 command to
turn the spindle on and M5 to turn it off
Make sure you have check the SPINDLE to Pin 16, 17 and once you use MACH3 PWM
spindle function, you can’t use the B axis, as the same pin is used:
10) Inside Config-> Ports & Pin -> Spindle Setup follow the below setting in Motor Setup:
19
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
1000Hz is recommended.
11) You can turn the spindle on off by adding command inside G code:
Insert “ M3 S1000” to start spindle with speed 1000, “M5” to stop
In this demo G code can then test the X, Y, Z and spindle motor.
20
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
HandWheel Controller
LCD Display:
Axis Position display: +/-000.00mm to +/-999.99mm
Or in inch mode +/-00.000 to +/-99.999 inch
Button:
X/ESC:
a) Press and release to set as X axis control.
b) Press and release to escape or back to normal
c) Press and hold to set X ROLLING mode
Y/<:
a) Press and release to set as Y axis control.
b) Left direction button at Memory mode
c) Press and hold to set Y ROLLING mode
Z/>:
a) Press and release to set as Z axis control.
b) Right direction button at Memory mode
c) Press and hold to set Z ROLLING mode
A/Ent:
a) Press and release to set as A axis control.
b) Confirm button in Memory mode
c) Press and hold to set A ROLLING mode
Zero:
a) Press and release to set current position as zero
Back to Zero:
a) Press and release and all axis motor will move back to zero position
21
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
Speed:
a) Press and release to set speed to X1->X2->X5->X10->X20
Spindle On Off:
a) Press and release to switch the spindle on off (if you tune rotary switch to MACH3 PWM
mode, need the M3 Mach3 code enable the spindle firstly)
Auto Check:
a) Press and release to switch the AutoCheck function, PC mode will use the marco inside
MACH3, in HC mode, it will use the embedded program inside microprocessor
Memory:
a) Press and release and go to memory mode
Estop:
a) Press and release to set or clear Emergency stop
b) Long press for 3 seconds can switch mm or inch mode (restart the controlling box power
after setting)
PC/ HC mode:
PC is computer controlling; HC is Hand wheel Controller mode.
LCD will display “PC Mode” or “HC Mode.
During “PC Mode” hand wheel control axis stepper motor function will be prohibited.
Memory and Emergency Stop function is allowed in both controlling mode.
Memory:
a) SAVE:
In normal operating mode, press and release “Mem” button to Memory mode.
Use “Y/<” and “Z/>” button to scroll the mode to SAVE -> MANUAL -> LOAD -> LOOP, and
choose SAVE mode, press “A/Ent” to confirm the SAVE mode.
And then scroll the M0, M1, M2 or M3, this is 4 memory region, choose the target memory
region and press “A/Ent” to start recording the motion
b) LOAD:
Looping mode will repeat to load the selected memory region.
In normal operating mode, press and release “Mem” button to Memory mode.
Use “Y/<” and “Z/>” button to scroll the mode to SAVE -> MANUAL -> LOAD -> LOOP, and
choose LOAD mode, press “A/Ent” to confirm the LOAD mode.
And then scroll the M0, M1, M2 or M3, this is 4 memory region, choose the target memory
region and press “A/Ent” to load the recorded region.
c) LOOP:
Looping mode will repeat to load the selected memory region.
In normal operating mode, press and release “Mem” button to Memory mode.
Use “Y/<” and “Z/>” button to scroll the mode to SAVE -> MANUAL -> LOAD -> LOOP, and
choose LOOP mode, press “A/Ent” to confirm the LOOP mode.
And then scroll the M0, M1, M2 or M3, this is 4 memory region, choose the target memory
region and press “A/Ent” to start looping the recorded region.
Can press “X/Esc” and go back to normal operating mode.
d) MANUAL:
Can press “X/Esc” and go back to normal manual operating mode.
Emergency Stop:
Will enter emergency stop mode:
23
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
While emergency stop, spindle motor, all stepper motors will be stopped.
Buzzer inside the main controller box will beep.
*not recommend to use emergency as stop function; motor will be stopped without normal
deceleration. This will reduce the life of motors and mechanical structure.
Can press again the ESTOP button in hand wheel controller and back to normal
Divide to half:
It is usually to use for finding the center of the material,
Go to point 1 press zero and then go to point2, press divide to half, and then the bit will go to
center.
Be careful that you will need to move the Z axis up by yourself to avoid crash.
Final Point
1 2
Back to Zero:
Press and hold the “SPEED” button for 3 seconds.
All axis motor will move back to the zero point according the hand wheel’s zero display
*Position on hand wheel and Mach3 is not correlated. If you need to move back according
MACH3 position, you need to press back to zero in MACH3
Rolling:
Press and hold the “X”, “Y”, “Z”, “A” button for 3 second, LCD will display “R” in corresponding
axis.
The axis stepper motor will move forever in constant speed. There are 4 speed selections by
press and release the “Speed” button.
Can control clockwise, counter-clockwise or stop by rotate the hand wheel, rotate
counter-clockwise 1 step to have counter-clockwise rotation, rotate hand wheel one step
clockwise to stop, etc.
Limit Switch:
At X, Y, Z axis, are installed 2 mechanical limit switch on both side. Once it is triggered,
controller will send out limit switch triggered signal to PC and whole system.
24
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
The triggered axis will drive back around 5mm immediately; this action can prevent crash,
accident on human and release the limit switch.
*Reset the zero position is necessary once limit switch is triggered.
1) Install the control box USB driver, you can install the driver CH340 exe file inside CD
2) And then plug USB cable to control box
3) You will then find a serial COM port at My Computer->hardware device you will see a COM &
LPT, a com port is marked CH340. Remember the port number.
The port number usually won’t change if you always use the same USB port
4) Copy and paste the MHC2_Brain file from CD to C:\Mach3\Brains, if no Brains folder is found ,
you need to create one
5) Open MACH3 and you can go to PORTS & PINS and check ModBus InputOutput Support and
ModBus PlugIn Supported
25
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
8) Press TEST MODBUS and fill as below (COM number use what you found) and then press
OPEN to open port, press Read to check the modbus is normal or not.
If ok, It will show NO ERROR and you will get number from modbus. Once you lost the
connection between MACH3 and handwheel, you can enter this TEST MODBUS mode to
reconnect.
26
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
9) Press OK, and the press Apply and OK again. The serial Modbus is ready, then we will go to
MACH3 brain control, brain control will then link all handwheel button to relevant MACH3
function
10) Go to Operator-> Brain Control
11) Enable the MHC2_brain and then press Reload ALL Brains
27
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
12) You can try to ViewBrain if you are interesting on the modbus commuication
13) Set the step speed for Multi-step or single step mpg mode:
14) Press OK and then you can use HandWheel with MACH3
15) Make sure that HC/PC button on the control box selected to PC
16) And you will see that handwheel in PC mode, the X, Y, Z and A position will sync with MACH3
17) Select X and try to move handwheel, if motor and MACH3 Xposition number moves, then
means the whole communication is ready.
1) Press the TAB on key board you can switch on the handwheel in MACH3, press tab again
to hide.
28
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
3) You can then press OK, at MACH3 handwheel you can select Velocity or Multistep mode.
Suggest to Velocity mode for smooth control, for precision control you can choose multistep, but
it doesn’t provide accleration or deceleration in MACH3. Multistep may cause lose step.
6) You can then enter MPG Feedrate to 3000 and then press enter
7) Try to move your handwheel and see check the motion is smooth or not.
8) After that you can press TAB button to hide the mach3 handwheel
9) You can then use handwheel to work
29
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
4) Inside Config-> Ports & Pins -> set the OEM TRIGGER 1 as below
30
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
6) Make sure you have put the brain control file and setup Modbus (detail at Modbus setup)
31
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
Stepper Motor card is using Toshiba TB6560 3A high power stepper IC, each card is marked X, Y, Z
or A.
Microstepping is set to 1:8
This combination can provide high torque and high speed controlling.
X, Y, Z axis Limit switches anti-crash function, once limit switch is triggered, the machine will
automatically drive back 5 mm and enter emergency stop mode, prevent crash accident. You
can press ESTOP button on Handwheel or switch HC/PC button on control box to back to
normal.
If you find there is noise come out to trigger limit switch, you can setup debouncing/ noise
rejection inside the general configuration:
33
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
The water cooling terminal provides 12VDC 0.8A power to drive the water pump and fan.
Connection as follow:
34
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
Application Tutorial
Gcode import:
1) At file-> Load Gcode
2) Make sure that the machine is in origin position; you can use handwheel or keyboard to
move the unit to correct X, Y, Z position. And then press ZERO to zero the X, Y, Z and 4
position
4) If you find there is any problem, you can then press Stop, and then press GOTO ZERO button.
Press Rewind, and press Cycle Start to restart again
5) In between engraving procedure, you can set the feed rate to control the machine speed
35
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
6) If you find that there is some losing step, you can set lower feed rate or lower acceleration in
Motor tuning.
There is lot of software can do this. (Below software as tutorial reference only)
- MASTERCAM http://www.mastercam.com/
- LAZYCAM http://www.machsupport.com/
- CAMBAM http://www.cambam.info/
- Skeinforge http://fabmetheus.crsndoo.com/
36
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
You will need a gerber file then you can route a prototype PCB
1) You will need to purchase a 3D printer extruder and 3D printer heating controlling M3D from
us.
2) Replace the spindle motor by extruder
3) Use skeinforge to convert 3d graphic to g code
4) Import G code to MACH3
5) And then you can build like this:
37
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
38
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
3) Spindle motor is consuming part; there is a carbon brush replacement. Power off,
Remove the spindle motor, unscrew the spindle motor, and replace the carbon brush.
Using Mach3, the stepper motor direction reversed and move wobbling:
1) Follow the instruction of MACH3 setup again.
2) Don’t power the computer during the MACH3 software is not closed, non-properly close
the MACH3 software may lose the setup in MACH3
Memory is missing:
1) Try again save and load instruction
2) User may press save to the memory region accidently, and deleted the original memory
39
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
Can use third-party hand wheel or use this hand wheel on other machine?
No. This system is self-developed, and not compatible with other branch of machine,
Why memory load time will be more than the actual saving time?
The system will re-calculate the motion, so normally will take 5% to 8% time more than actual.
For example, a 100s motion saving, loading may need around 108s.
40
MIB Instruments Ltd. 2013
CNC Machine Controller JY5300 and Handwheel MHC2 User Guide V3.0 2013 JULY 3
Appendix
18 to 25 Ground -
41
MIB Instruments Ltd. 2013