Huanyang vfd overload

More
15 Mar 2020 18:07 #160323 by igMakes
Hello,
I have a cnc router with huanyang vfd, connected with rs485 usb adapter. I am wondering if I can get amps data fro this vfd, and to make linuxcnc to pause gcode when vfd current reaches too hight, and automaticaly pause gcode or lower the feedrate until the current drops to normal. I would use this to improve drilling operations and to make the router stop on collisions. Is it posible to do this in linuxcnc?

Please Log in or Create an account to join the conversation.

More
15 Mar 2020 19:38 #160329 by tommylight
Replied by tommylight on topic Huanyang vfd overload

Is it posible to do this in linuxcnc?

Yes it is.
Is it possible with your VFD, i do not know, we would need the exact manual for the VFD to be able to tell you more.
On the other side, personally, i would not trust RS485 to report errors.
There must be a pin somewhere for that on the VFD, so you could use that. Again that would need setting parameters on the drive on what conditions it should be triggered. It is usually named Alarm .
The following user(s) said Thank You: igMakes

Please Log in or Create an account to join the conversation.

More
19 Mar 2020 12:15 #160739 by bbsr_5a
Replied by bbsr_5a on topic Huanyang vfd overload
hi depending on what serios you got GT or standard
you got one or up to 3 regisers that the VFD is setting to 1 as it is failing
you can set this BIT to the pause signal
in the POSTGUI File of your mashine not the main Mashine HAL this will fail

net pausefromvfd hy_gt_vfd.AI1 halui.program.pause
The following user(s) said Thank You: igMakes

Please Log in or Create an account to join the conversation.

More
20 Mar 2020 18:15 #160917 by andypugh
Replied by andypugh on topic Huanyang vfd overload

Hello,
I have a cnc router with huanyang vfd, connected with rs485 usb adapter. I am wondering if I can get amps data fro this vfd, and to make linuxcnc to pause gcode when vfd current reaches too hight, and automaticaly pause gcode or lower the feedrate until the current drops to normal.


Yes, I think you probably can.

The hy_vfd driver has an outA pin. I have checked on my lathe, and that looks a lot like amps.
Pass that to a lincurve component (so you can tweak the effect) and then pass the lincurve output to the motion.adaptive-feed HAL pin.
The following user(s) said Thank You: igMakes

Please Log in or Create an account to join the conversation.

More
22 Mar 2020 17:48 #161125 by igMakes
Replied by igMakes on topic Huanyang vfd overload
Found it. Connected it to pyvcp to show the current and it seems correct. Could not find 'if' operator for hal components. Is there a way to make it something with conditionals in hal?
something like this:
if vfd.OutA>8 => halui.program.pause

Please Log in or Create an account to join the conversation.

More
22 Mar 2020 18:02 #161127 by andypugh
Replied by andypugh on topic Huanyang vfd overload
What "if" do you want to interpret?

HAL can do lots of signal processing, but the most useful HAL pin for what you want is probably motion.adaptive-feed, and that needs a floating-point input from 0 to 1, which is why I suggested using the "lincurve" hal component as that allows arbitrary functions to be used.

(I would set the curve up so that the output is 1 all the way to 5A, then tapers off to 0 at 7A, with my machine, for example)

Have you looked through the HAL components?

abs
abs_s32
and2
at_pid
axis
axistest
bin2gray
biquad
bitslice
bitwise
bldc
bldc_hall3
blend
carousel
charge_pump
clarke2
clarke3
clarkeinv
classicladder
comp
constant
conv_bit_s32
conv_bit_u32
conv_float_s32
conv_float_u32
conv_s32_bit
conv_s32_float
conv_s32_u32
conv_u32_bit
conv_u32_float
conv_u32_s32
counter
ddt
deadzone
debounce
edge
encoder
encoder_ratio
estop_latch
feedcomp
flipflop
gantry
gantrykins
gearchange
genhexkins
genserkins
gladevcp
gray2bin
histobins
hm2_7i43
hm2_7i90
hm2_eth
hm2_pci
hm2_spi
hostmot2
hypot
ilowpass
integ
invert
joyhandle
kins
knob2float
latencybins
lcd
limit1
limit2
limit3
lincurve
logic
lowpass
lut5
maj3
match8
matrix_kb
maxkins
message
minmax
motion
moveoff
mult2
multiclick
multiswitch
mux16
mux2
mux4
mux8
mux_generic
near
not
offset
oneshot
opto_ac5
or2
orient
pid
pumakins
pwmgen
rotatekins
sample_hold
sampler
scale
scarakins
select8
serport
setsserial
siggen
sim_axis_hardware
sim_encoder
sim_home_switch
sim_parport
sim_spindle
simple_tp
sphereprobe
sserial
stepgen
steptest
streamer
sum2
supply
thc
thcud
threads
threadtest
time
timedelay
timedelta
toggle
toggle2nist
tripodkins
tristate_bit
tristate_float
trivkins
updown
watchdog
wcomp
weighted_sum
wj200_vfd
xhc_hb04_util
xor2

All documented under "hal compnents" near the bottom of this page:
linuxcnc.org/docs/2.7/html/

Please Log in or Create an account to join the conversation.

Time to create page: 0.128 seconds
Powered by Kunena Forum