@Parker3123
Description
Parker3123
opened on Aug 17, 2022
Controller Board
6-pack
Help From Board Vendor
Yes
No
Not Applicable
Machine Description
gantry router with dual y motors, xyyz setup dm542t stepper drivers and 6pack control board with RS485 module
Configuration file
board: 6 Pack
name: 6 Pack External XYYZ Huany
meta: 2022-06-28 B. Dring for Forest Darling Forest Darling
stepping:
engine: I2S_STREAM
idle_ms: 250
pulse_us: 4
dir_delay_us: 1
disable_delay_us: 0
axes:
shared_stepper_disable_pin: NO_PIN
x:
steps_per_mm: 100.000
max_rate_mm_per_min: 5000.000
acceleration_mm_per_sec2: 100.000
max_travel_mm: 300.000
soft_limits: false
homing:
cycle: 2
positive_direction: false
mpos_mm: 0.000
feed_mm_per_min: 100.000
seek_mm_per_min: 200.000
settle_ms: 500
seek_scaler: 1.100
feed_scaler: 1.100
motor0:
limit_neg_pin: NO_PIN
limit_pos_pin: NO_PIN
limit_all_pin: NO_PIN
hard_limits: false
pulloff_mm: 1.000
standard_stepper:
step_pin: I2SO.2
direction_pin: I2SO.1
disable_pin: I2SO.0
y:
steps_per_mm: 100.000
max_rate_mm_per_min: 5000.000
acceleration_mm_per_sec2: 100.000
max_travel_mm: 300.000
soft_limits: false
homing:
cycle: 3
positive_direction: true
mpos_mm: 0.000
feed_mm_per_min: 100.000
seek_mm_per_min: 200.000
settle_ms: 500
seek_scaler: 1.100
feed_scaler: 1.100
motor0:
limit_neg_pin: NO_PIN
limit_pos_pin: NO_PIN
limit_all_pin: NO_PIN
hard_limits: false
pulloff_mm: 1.000
standard_stepper:
step_pin: I2SO.5
direction_pin: I2SO.4
disable_pin: I2SO.7
motor1:
limit_neg_pin: NO_PIN
limit_pos_pin: NO_PIN
limit_all_pin: NO_PIN
hard_limits: false
pulloff_mm: 1.000
standard_stepper:
step_pin: I2SO.10
direction_pin: I2SO.9
disable_pin: I2SO.8
z:
steps_per_mm: 100.000
max_rate_mm_per_min: 5000.000
acceleration_mm_per_sec2: 100.000
max_travel_mm: 300.000
soft_limits: false
homing:
cycle: 1
positive_direction: true
mpos_mm: 0.000
feed_mm_per_min: 100.000
seek_mm_per_min: 800.000
settle_ms: 500
seek_scaler: 1.100
feed_scaler: 1.100
motor0:
limit_neg_pin: NO_PIN
limit_pos_pin: NO_PIN
limit_all_pin: NO_PIN
hard_limits: false
pulloff_mm: 1.000
standard_stepper:
step_pin: I2SO.13
direction_pin: I2SO.12
disable_pin: I2SO.15
probe:
pin: NO_PIN
check_mode_start: true
i2so:
bck_pin: gpio.22
data_pin: gpio.21
ws_pin: gpio.17
spi:
miso_pin: gpio.19
mosi_pin: gpio.23
sck_pin: gpio.18
sdcard:
card_detect_pin: NO_PIN
cs_pin: gpio.5
control:
safety_door_pin: NO_PIN
reset_pin: NO_PIN
feed_hold_pin: NO_PIN
cycle_start_pin: NO_PIN
macro0_pin: NO_PIN
macro1_pin: NO_PIN
macro2_pin: NO_PIN
macro3_pin: NO_PIN
start:
must_home: false
coolant:
flood_pin: gpio.15
mist_pin: gpio.12
delay_ms: 0
YL620:
uart:
txd_pin: gpio.26
rxd_pin: gpio.16
rts_pin: gpio.4
baud: 9600
mode: 8N1
modbus_id: 1
tool_num: 0
speed_map: 0=0% 0=25% 6000=25% 24000=100%
Laser:
pwm_hz: 5000
output_pin: gpio.14
enable_pin: gpio.13
disable_with_s0: false
s0_with_disable: true
tool_num: 1
speed_map: 0=0.000% 255=100.000%
Startup Messages
[MSG:INFO: FluidNC v3.3.0 (pr/easytarget/272-c8cdb9b-dirty)]
[MSG:INFO: Compiled with ESP32 SDK:v3.3.5-1-g85c43024c]
[MSG:INFO: Configuration file:config.yaml]
[MSG:INFO: Machine 6 Pack External XYYZ Huany]
[MSG:INFO: Board 6 Pack]
[MSG:INFO: I2SO BCK:gpio.22 WS:gpio.17 DATA:gpio.21]
[MSG:INFO: SPI SCK:gpio.18 MOSI:gpio.23 MISO:gpio.19]
[MSG:INFO: SD Card cs_pin:gpio.5 dectect:NO_PIN]
[MSG:INFO: Stepping:I2S_stream Pulse:4us Dsbl Delay:0us Dir Delay:1us Idle Delay:250ms]
[MSG:INFO: Axis count 3]
[MSG:INFO: Axis X (0.000,300.000)]
[MSG:INFO: Motor0]
[MSG:INFO: standard_stepper Step:I2SO.2 Dir:I2SO.1 Disable:I2SO.0]
[MSG:INFO: Axis Y (-300.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: standard_stepper Step:I2SO.5 Dir:I2SO.4 Disable:I2SO.7]
[MSG:INFO: Motor1]
[MSG:INFO: standard_stepper Step:I2SO.10 Dir:I2SO.9 Disable:I2SO.8]
[MSG:INFO: Axis Z (-300.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: standard_stepper Step:I2SO.13 Dir:I2SO.12 Disable:I2SO.15]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: YL620 Spindle Uart Tx:gpio.26 Rx:gpio.16 RTS:gpio.4 Baud:9600]
[MSG:INFO: Laser Spindle Ena:gpio.13 Out:gpio.14 Freq:5000Hz Res:13bits Laser mode:On]
[MSG:INFO: Using spindle YL620]
[MSG:INFO: Flood coolant gpio.15]
[MSG:INFO: Mist coolant gpio.12]
[MSG:INFO: STA SSID is not set]
[MSG:INFO: AP SSID FluidNC IP 192.168.0.1 mask 255.255.255.0 channel 1]
[MSG:INFO: AP started]
[MSG:INFO: WiFi on]
[MSG:INFO: Captive Portal Started]
[MSG:INFO: HTTP started on port 80]
[MSG:INFO: Telnet started on port 23]
Grbl 3.3 [FluidNC v3.3.0 (pr/easytarget/272-c8cdb9b-dirty) (wifi) ‘$’ for help]
[MSG:INFO: VFD RS485 Unresponsive]
User Interface Software
Terminal mostly and WebUI
What happened?
cant get the spindle (YL620) to move at all says the RS485 is unresponsive. I have spent quite a bit of time digging around and feel like I have things right. The wiring is A-A,B-B, COM-G, the first of those being from the vdf to the rs485 module. I am just not sure if Im dumb or missing somthing the code seems correct for the yaml file. Here I am though desperate for any guidance!
Other Information
No response
Activity
MitchBradley
MitchBradley commented on Aug 17, 2022
MitchBradley
on Aug 17, 2022
Collaborator
You haven’t mentioned what you have tried for settings on the VFD.
Parker3123
Parker3123 commented on Aug 17, 2022
Parker3123
on Aug 17, 2022
Author
I apologize the setting I have made for the VFD are
P00.00 | 400.0
P00.01 = 3
P03.00 = 3
P03.01 = 1
P03.02 = 2
P03.08 = 100.0
I found these in this link under the YL620 section
https://github.com/bdring/FluidNC/wiki/Fluid-Spindle-Setup#yl620-rs485
MitchBradley
MitchBradley commented on Aug 17, 2022
MitchBradley
on Aug 17, 2022
Collaborator
Please attach some photos. Is the RS485 module in slot number 3?
Parker3123
Parker3123 commented on Aug 17, 2022
Parker3123
on Aug 17, 2022 · edited by Parker3123
Author
image!
image
The RS458 is in socket number 3
bdring
bdring commented on Aug 17, 2022
bdring
on Aug 17, 2022
Owner
Try swapping A and B at the controller end.
Parker3123
Parker3123 commented on Aug 17, 2022
Parker3123
on Aug 17, 2022
Author
[MSG:INFO: FluidNC v3.3.0 (pr/easytarget/272-c8cdb9b-dirty)]
[MSG:INFO: Compiled with ESP32 SDK:v3.3.5-1-g85c43024c]
[MSG:INFO: Configuration file:config.yaml]
[MSG:INFO: Machine 6 Pack External XYYZ Huany]
[MSG:INFO: Board 6 Pack]
[MSG:INFO: I2SO BCK:gpio.22 WS:gpio.17 DATA:gpio.21]
[MSG:INFO: SPI SCK:gpio.18 MOSI:gpio.23 MISO:gpio.19]
[MSG:INFO: SD Card cs_pin:gpio.5 dectect:NO_PIN]
[MSG:INFO: Stepping:I2S_stream Pulse:4us Dsbl Delay:0us Dir Delay:1us Idle Delay:250ms]
[MSG:INFO: Axis count 3]
[MSG:INFO: Axis X (0.000,300.000)]
[MSG:INFO: Motor0]
[MSG:INFO: standard_stepper Step:I2SO.2 Dir:I2SO.1 Disable:I2SO.0]
[MSG:INFO: Axis Y (-300.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: standard_stepper Step:I2SO.5 Dir:I2SO.4 Disable:I2SO.7]
[MSG:INFO: Motor1]
[MSG:INFO: standard_stepper Step:I2SO.10 Dir:I2SO.9 Disable:I2SO.8]
[MSG:INFO: Axis Z (-300.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: standard_stepper Step:I2SO.13 Dir:I2SO.12 Disable:I2SO.15]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: YL620 Spindle Uart Tx:gpio.26 Rx:gpio.16 RTS:gpio.4 Baud:9600]
[MSG:INFO: Laser Spindle Ena:gpio.13 Out:gpio.14 Freq:5000Hz Res:13bits Laser mode:On]
[MSG:INFO: Using spindle YL620]
[MSG:INFO: Flood coolant gpio.15]
[MSG:INFO: Mist coolant gpio.12]
[MSG:INFO: STA SSID is not set]
[MSG:INFO: AP SSID FluidNC IP 192.168.0.1 mask 255.255.255.0 channel 1]
[MSG:INFO: AP started]
[MSG:INFO: WiFi on]
[MSG:INFO: Captive Portal Started]
[MSG:INFO: HTTP started on port 80]
[MSG:INFO: Telnet started on port 23]
Grbl 3.3 [FluidNC v3.3.0 (pr/easytarget/272-c8cdb9b-dirty) (wifi) ‘$’ for help]
[MSG:INFO: VFD RS485 Unresponsive]
the [MSG:INFO: VFD RS485 Unresponsive] is still appearing when I swap the wires.
MitchBradley
MitchBradley commented on Aug 17, 2022
MitchBradley
on Aug 17, 2022
Collaborator
You appear to be running a customized firmware build.
Parker3123
Parker3123 commented on Aug 17, 2022
Parker3123
on Aug 17, 2022
Author
I should have mentioned that I believe you posted it related to a similar issue way back. I should also mention that I get the same results with 3.4.4 as well. Do you recommend a version to use?
MitchBradley
MitchBradley commented on Aug 17, 2022
MitchBradley
on Aug 17, 2022
Collaborator
3.4.4 is as good as any with respect to VFDs. At this point, if I were having the problem, I would get out the oscilloscope.
I used to have a YL620 but I gave it to a friend who lives in another town, so I no longer have easy access to it.
Parker3123
Parker3123 commented on Aug 17, 2022
Parker3123
on Aug 17, 2022
Author
Okay I have one but really only use it for synth making. Any leads onto what types of things i should be looking for or just probe the output of the module? Thanks again for helping me through this
MitchBradley
MitchBradley commented on Aug 17, 2022
MitchBradley
on Aug 17, 2022
Collaborator
I would connect it to one of the A or B leads. Check to see which one is at the highest voltage of the two and connect to that one. Set it to trigger on a falling edge with a threshold value midway between the idle value of A and B. Look for a sequence of pulses that happens just before the error message. That will tell you if a transmission is going out. If you have a second channel, look at the RTS line, which should change state just after the transmission to invert the direction from ESP>VFD to VFD>ESP. Then, if things are working right, there should be some more pulses as the VFD sends back a response.
MitchBradley
MitchBradley commented on Aug 17, 2022
MitchBradley
on Aug 17, 2022
Collaborator
https://sbc-support.com/uploads/tx_srcfaq/RS%20485%20Oscilloscope%20Screenshots_100179.pdf
MitchBradley
MitchBradley commented on Aug 17, 2022
MitchBradley
on Aug 17, 2022
Collaborator
Parker3123
Parker3123 commented on Aug 17, 2022
Parker3123
on Aug 17, 2022
Author
thank you will look at this and get back later with any updates!
bdring
changed the title [-]Problem: [/-][+]YL620 VFD Not Responding.[/+] on Aug 17, 2022
24 remaining items
Parker3123
Parker3123 commented on Oct 17, 2022
Parker3123
on Oct 17, 2022
Author
No worries again thank you for the help that is how the channels are set up
bdring
bdring commented on Oct 17, 2022
bdring
on Oct 17, 2022 · edited by bdring
Owner
I just tested huanyang again. Here is some info from that. ($Message/Level=Debug)
[MSG:INFO: FluidNC v3.6.3]
[MSG:INFO: Compiled with ESP32 SDK:v4.4.1-1-gb8050b365e]
[MSG:INFO: Local filesystem type is spiffs]
[MSG:INFO: Configuration file:6P_Huany.yaml]
[MSG:DBG: Running after-parse tasks]
[MSG:INFO: Axes: using defaults]
[MSG:DBG: Checking configuration]
[MSG:INFO: Machine 6 Pack Huany]
[MSG:INFO: Board 6 Pack]
[MSG:INFO: I2SO BCK:gpio.22 WS:gpio.17 DATA:gpio.21]
[MSG:INFO: SPI SCK:gpio.18 MOSI:gpio.23 MISO:gpio.19]
[MSG:INFO: SD Card cs_pin:gpio.5 detect:NO_PIN]
[MSG:INFO: Stepping:I2S_stream Pulse:4us Dsbl Delay:0us Dir Delay:1us Idle Delay:250ms]
[MSG:INFO: Axis count 3]
[MSG:INFO: Axis X (-1000.000,0.000)]
[MSG:INFO: Axis Y (-1000.000,0.000)]
[MSG:INFO: Axis Z (-1000.000,0.000)]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: Huanyang Spindle Uart Tx:gpio.26 Rx:gpio.16 RTS:gpio.4 Baud:9600]
[MSG:INFO: Using spindle Huanyang]
[MSG:INFO: STA SSID is not set]
[MSG:INFO: AP SSID FluidNC IP 192.168.0.1 mask 255.255.255.0 channel 1]
[MSG:INFO: Huanyang PD005,PD011 Freq range (100,400) Hz (6000,24000) RPM]
[MSG:INFO: Huanyang PD144 Rated RPM @ 50Hz:3000]
[MSG:INFO: AP started]
[MSG:INFO: WiFi on]
[MSG:INFO: Captive Portal Started]
[MSG:INFO: HTTP started on port 80]
[MSG:INFO: Telnet started on port 23]
[MSG:DBG: VFD setState:0 SpindleSpeed:0]
[MSG:DBG: RPM:0 mapped to device units:0]
Grbl 3.6 [FluidNC v3.6.3 (wifi) ‘$’ for help]
[MSG:INFO: Huanyang PD143 Poles:2]
[MSG:INFO: Huanyang PD014 Accel:6.000]
[MSG:INFO: Huanyang PD015 Decel:6.000]
[MSG:DBG: vfd_cmd_task mode:1]
M3S12000
[MSG:DBG: VFD setState:1 SpindleSpeed:12000]
[MSG:DBG: RPM:12000 mapped to device units:19999]
[MSG:DBG: vfd_cmd_task mode:1]
[MSG:DBG: prep speed 19999 curr -1]
ok
M5
[MSG:DBG: VFD setState:0 SpindleSpeed:12000]
[MSG:DBG: RPM:12000 mapped to device units:19999]
ok
[MSG:DBG: vfd_cmd_task mode:1]
I verified all programmed values on the VFD are per this page.
http://wiki.fluidnc.com/en/config/config_spindles#huanyang-rs485
If you want to verify any other settings, I can.
bdring
bdring commented on Oct 17, 2022
bdring
on Oct 17, 2022
Owner
Can you post your config with the Huanyang?
bdring
bdring commented on Oct 18, 2022
bdring
on Oct 18, 2022
Owner
I tried changing PD001 and PD002 away from RS485 control to see if that created any problems.
It responded to all the reads properly with no time outs.
Strangely, I was not able to read PD001 or PD002.
Parker3123
Parker3123 commented on Oct 18, 2022
Parker3123
on Oct 18, 2022 · edited by bdring
Author
(edit) I formatted the code with a yaml code block, so it can be read.
board: 6 Pack
name: 6 Pack External XYYZ 10V
meta: 2022-04-28 B. Dring for Leif Beaton
stepping:
engine: I2S_STREAM
idle_ms: 250
pulse_us: 4
dir_delay_us: 1
disable_delay_us: 0
axes:
shared_stepper_disable_pin: NO_PIN
x:
steps_per_mm: 100.000
max_rate_mm_per_min: 5000.000
acceleration_mm_per_sec2: 100.000
max_travel_mm: 300.000
soft_limits: false
homing:
cycle: 2
positive_direction: false
mpos_mm: 0.000
feed_mm_per_min: 100.000
seek_mm_per_min: 200.000
settle_ms: 500
seek_scaler: 1.100
feed_scaler: 1.100
motor0:
limit_neg_pin: gpio.33
limit_pos_pin: NO_PIN
limit_all_pin: NO_PIN
hard_limits: false
pulloff_mm: 1.000
standard_stepper:
step_pin: I2SO.2
direction_pin: I2SO.1
disable_pin: I2SO.0
y:
steps_per_mm: 100.000
max_rate_mm_per_min: 5000.000
acceleration_mm_per_sec2: 100.000
max_travel_mm: 300.000
soft_limits: false
homing:
cycle: 2
positive_direction: true
mpos_mm: 0.000
feed_mm_per_min: 100.000
seek_mm_per_min: 200.000
settle_ms: 500
seek_scaler: 1.100
feed_scaler: 1.100
motor0:
limit_neg_pin: NO_PIN
limit_pos_pin: gpio.32
limit_all_pin: NO_PIN
hard_limits: false
pulloff_mm: 1.000
standard_stepper:
step_pin: I2SO.5
direction_pin: I2SO.4
disable_pin: I2SO.7
motor1:
limit_neg_pin: NO_PIN
limit_pos_pin: gpio.35
limit_all_pin: NO_PIN
hard_limits: false
pulloff_mm: 1.000
standard_stepper:
step_pin: I2SO.10
direction_pin: I2SO.9
disable_pin: I2SO.8
z:
steps_per_mm: 100.000
max_rate_mm_per_min: 5000.000
acceleration_mm_per_sec2: 100.000
max_travel_mm: 300.000
soft_limits: false
homing:
cycle: 1
positive_direction: true
mpos_mm: 0.000
feed_mm_per_min: 100.000
seek_mm_per_min: 800.000
settle_ms: 500
seek_scaler: 1.100
feed_scaler: 1.100
motor0:
limit_neg_pin: NO_PIN
limit_pos_pin: gpio.34
limit_all_pin: NO_PIN
hard_limits: false
pulloff_mm: 1.000
standard_stepper:
step_pin: I2SO.13
direction_pin: I2SO.12
disable_pin: I2SO.15
i2so:
bck_pin: gpio.22
data_pin: gpio.21
ws_pin: gpio.17
spi:
miso_pin: gpio.19
mosi_pin: gpio.23
sck_pin: gpio.18
sdcard:
card_detect_pin: NO_PIN
cs_pin: gpio.5
control:
safety_door_pin: NO_PIN
reset_pin: NO_PIN
feed_hold_pin: NO_PIN
cycle_start_pin: NO_PIN
macro0_pin: NO_PIN
macro1_pin: NO_PIN
macro2_pin: NO_PIN
macro3_pin: NO_PIN
probe:
pin: gpio.2
check_mode_start: true
start:
must_home: false
coolant:
flood_pin: NO_PIN
mist_pin: NO_PIN
delay_ms: 0
Laser:
pwm_hz: 5000
output_pin: gpio.26
enable_pin: gpio.4
disable_with_s0: false
s0_with_disable: true
tool_num: 0
speed_map: 0=0.000% 255=100.000%
Huanyang:
uart:
txd_pin: gpio.14
rxd_pin: gpio.15
rts_pin: gpio.3
baud: 9600
mode: 8N1
modbus_id: 1
tool_num: 1
speed_map: 0=0% 0=25% 6000=25% 24000=100%
off_on_alarm: false
bdring
bdring commented on Oct 18, 2022
bdring
on Oct 18, 2022
Owner
I see in your picture that the controller is a 6 Pack with an RS485 module in socket #3. Is this true? The pins you used are way off.
image
Try using the config I used. It used the same module socket. It only configures the Huanyang, so no other features will work. This is only a test.
board: 6 Pack
name: 6 Pack Huany
meta: 2022-10-17 B. Dring
stepping:
engine: I2S_STREAM
idle_ms: 250
pulse_us: 4
dir_delay_us: 1
disable_delay_us: 0
i2so:
bck_pin: gpio.22
data_pin: gpio.21
ws_pin: gpio.17
spi:
miso_pin: gpio.19
mosi_pin: gpio.23
sck_pin: gpio.18
sdcard:
card_detect_pin: NO_PIN
cs_pin: gpio.5
start:
must_home: false
# Module Socket #3
Huanyang:
uart:
txd_pin: gpio.26
rxd_pin: gpio.16
rts_pin: gpio.4
baud: 9600
mode: 8N1
modbus_id: 1
tool_num: 0
speed_map: 0=0% 0=25% 6000=25% 24000=100%
Parker3123
Parker3123 commented on Oct 18, 2022
Parker3123
on Oct 18, 2022
Author
The Rs485 was originally in socket number three for the yl620 and I changed it to socket number four. I will give your config a try.
bdring
bdring commented on Oct 18, 2022
bdring
on Oct 18, 2022
Owner
The pins were wrong for any socket.
Parker3123
Parker3123 commented on Oct 18, 2022
Parker3123
on Oct 18, 2022
Author
well that is embarrassing. I swear I had triple checked but yours worked immediately. To confirm if I change my config now for my laser in socket number four it should look like this right?
Laser:
pwm_hz: 5000
output_pin: gpio.14
enable_pin: gpio.13
disable_with_s0: false
s0_with_disable: true
tool_num: 1
speed_map: 0=0.000% 255=100.000%
bdring
bdring commented on Oct 18, 2022
bdring
on Oct 18, 2022
Owner
That will work for the laser.
Where does that leave this issue? Can we close it? I am pretty sure the YL620 problems are not firmware or hardware related.
Parker3123
Parker3123 commented on Oct 18, 2022
Parker3123
on Oct 18, 2022
Author
Yes you may close it It is 100% user error on my part
MitchBradley
added
SOLVED
on Oct 18, 2022
bdring
changed the title [-]YL620 VFD Not Responding.[/-] [+]YL620 and Huanyang VFDs Not Responding.[/+] on Oct 18, 2022
bdring
closed this as completedon Oct 18, 2022
bdring
mentioned this on Oct 23, 2022
RS 485 issue #680
to join this conversation on GitHub. Already have an account? Sign in to comment