Open Rakishaa opened 1 year ago
Share some pictures of your wiring? The wiring on the HY manual is backwards for the RS+ and RS- , follow the ones here.
What lights are blinking under the PWM - RS485 switch? Red is xPRO talking, Green is VFD talking
The undefined RTS is ok, this controller uses an auto-RTS control.
Rakishaa,
The first things first... let's do a few things:
$Spindle/Type=HUANYANG
(or in some cases $Spindle/Type=H2A
), after which you should see a confirmation of the spindle type change in the command windowSet the following register values via the VFD touchpad (should be the same on most VFD's - VERIFY ON YOUR SPECIFIC MODEL VFD): | Register | Value | Description |
---|---|---|---|
PD000 | 0 | unlock parameters | |
PD001 | 2 | Command source is RS485 | |
PD002 | 2 | Speed source is RS485 | |
PD163 | 1 | Communications address 1 | |
PD164 | 1 | 9600 b/s | |
PD165 | 3 | 8 Bit No Parity - RTU | |
PD000 | 1 | lock parameters |
Also check the following settings (these will setting will vary based on the values indicated on the motor's nameplate and your mains voltage 110VAC vs 220VAC)
Register | Description |
---|---|
PD004 | Base frequency as listed on spindle (typically 400) |
PD005 | Maximum frequency Hz (typical value for spindles is 400) |
PD011 | Min speed (recommended air-cooled=120 water=100) |
PD014 | Acceleration time (test to optimize) |
PD015 | Deceleration time (test to optimize) |
PD023 | Reverse run enabled (set to 1) |
PD141 | Spindle max rated voltage (typically 220) |
PD142 | Max rated motor current (0.8kw=3.7, 1.5kw=7.0, 2.2kw=??) |
PD143 | Motor poles (typically 2 or 4) |
PD144 | Rated motor revolution at 50Hz (typically 3000 @ 50Hz and 24000 @ 400Hz) |
In some rare cases where VFD noise is particularly severe (typically only encountered with VFD's on 220V mains); you may need to install an RS485 isolator - see https://github.com/Spark-Concepts/xPro-V5/issues/164#issuecomment-1219037733
I followed the above step with the RS 485 amplifier and still had intermittent issues controlling the spindle.
Until I put the Spindle controller in an metal electrical box and grounded the exterior of the box. The box has a slot opening
in the bottom I left open for air flow. Everything works now for the first time. The box is listed below.
Herewith my setup with the twisted wire and the RS485 isolation module (see attached photos). Also attached are screenshots of the errors when I try and run the spindle with the M3 command. The spindle does not start from the current setup. Please advise what to do next.
Hope you are well .
I have the issue connecting xpro V5 with vfd hy02d223b . Have separated RS cable from rest of the cables to avoid interference . Spindle can be controlled manually but not via RS485 port. Would be grateful for any kind of advice. Many thanks .
Settings on VFD: pd1=2 pd2=2 pd5=400 pd163=1 pd164=1 pd165=3
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1216 ho 0 tail 12 room 4 load:0x40078000,len:9720 ho 0 tail 12 room 4 load:0x40080400,len:6352 entry 0x400806b8 [MSG:Grbl_ESP32 Ver 1.3a Date 20201212] [MSG:Compiled with ESP32 SDK:v3.2.3-14-gd3e562907] [MSG:Using machine:CNC_xPRO_V5_XYYZ_RS485_NO] [MSG:Axis count 3] [MSG:RMT Steps] [MSG:Init Motors] [MSG:TMCStepper Library Ver. 0x000701] [MSG:X Axis Trinamic TMC5160 Step:GPIO(12) Dir:GPIO(14) CS:GPIO(17) Disable:None Index:1 R:0.050 Limits(0.000,740.000)] [MSG:X Axis Trinamic driver test passed] [MSG:Y Axis Trinamic TMC5160 Step:GPIO(27) Dir:GPIO(26) CS:GPIO(17) Disable:None Index:2 R:0.050 Limits(0.000,1240.000)] [MSG:Y Axis Trinamic driver test passed] [MSG:Y2 Axis Trinamic TMC5160 Step:GPIO(33) Dir:GPIO(32) CS:GPIO(17) Disable:None Index:3 R:0.050 Limits(0.000,1240.000)] [MSG:Y2 Axis Trinamic driver test passed] [MSG:Z Axis Trinamic TMC5160 Step:GPIO(15) Dir:GPIO(2) CS:GPIO(17) Disable:None Index:4 R:0.050 Limits(-100.000,0.000)] [MSG:Z Axis Trinamic driver test passed] [MSG:Initializing RS485 VFD spindle] [MSG:Undefined VFD_RS485_RTS_PIN] [MSG:VFD RS485 Tx:GPIO(4) Rx:GPIO(25) RTS:GPIO(0)] [MSG:Spindle RS485 Unresponsive 8] [MSG:Critical Spindle RS485 Unresponsive] [MSG:Local access point CNC_xPRO_V5 started, 192.168.0.1] [MSG:Captive Portal Started] [MSG:HTTP Started] [MSG:TELNET Started 23] [MSG:Flood coolant on pin GPIO(21)] [MSG:Mist coolant on pin GPIO(21)] [MSG:X Axis limit switch on pin GPIO(35)] [MSG:Y Axis limit switch on pin GPIO(34)] [MSG:Z Axis limit switch on pin GPIO(39)] [MSG:Probe on pin GPIO(22)] Grbl 1.3a ['$' for help] [MSG:Check limits] [MSG:'$H'|'$X' to unlock]