WJ200_VFD component randomly changes spindle dirrection
- RomeReactor
- Offline
- Junior Member
Less
More
- Posts: 35
- Thank you received: 2
27 May 2022 00:32 #243962
by RomeReactor
WJ200_VFD component randomly changes spindle dirrection was created by RomeReactor
Hi all. We're using the wj200_vfd component to control a Toshiba wj200,. After a few tests it seems to work fine, except that when running it for a few minutes (for example, with m3s600) the spindle suddenly starts spinning in reverse. The relevant parts of the hal file are these:
and in xhc-whb04b-6.hal:
Any help? Thanks in advance.
loadusr -W wj200_vfd --device /dev/ttyUSB0 --baud 19200 --parity N --stopbits 1 --databits 8
setp wj200-vfd.0.mbslaveaddr 1
net spin_enb wj200-vfd.0.enable => motion.motion-enabled
#net spin_is_on halui.spindle.0.is-on => wj200-vfd.0.is-running
net spin_at_spd wj200-vfd.0.is-at-speed => spindle.0.at-speed
net pdnt.spindle.is-on wj200-vfd.0.run
net spin_rev spindle.0.reverse => wj200-vfd.0.reverse
net pdnt.spindle-speed-abs => scale.14.in => scale.15.in
net spin_rpm scale.15.out => spindle.0.speed-in
net scale_spin scale.14.out wj200-vfd.0.commanded-frequency
net spin_amps wj200-vfd.0.motor-current
and in xhc-whb04b-6.hal:
net pdnt.spindle.is-on whb.halui.spindle.is-on spindle.0.on
net pdnt.spindle-speed-abs whb.halui.spindle-speed-cmd spindle.0.speed-out-abs
Any help? Thanks in advance.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
30 May 2022 00:48 #244168
by andypugh
Replied by andypugh on topic WJ200_VFD component randomly changes spindle dirrection
Try setting up a pair of halmeters to monitor the wj200 reverse and frequency pins, to see if either a negative speed is being commanded, or the reverse bit is being set.
(ie, determine whether it is a bad response, or a bad command)
(ie, determine whether it is a bad response, or a bad command)
Please Log in or Create an account to join the conversation.
Time to create page: 0.050 seconds