Skip to content

RobertOlechowski/Huanyang_VFD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Huanyang VFD

All you have to know about Huanyang VFD

Original manuals:

Dedicated blog

Blog is in Polish language: blog

Equipment photos

vfd_and_spindle

vfd_and_spindle

vfd_and_spindle

vfd_and_spindle

vfd_and_spindle

vfd_and_spindle

Wiring

Power three phases

Three phases

Power single phase

Single Phase

Connection between VFD and spindle

Single Phase

analog input

analog connection

jumper

Huanyang

external control

Huanyang

Huanyang

Configuration

It is sample configuration that works for me

Parameter Value Comment
PD013 08 set as first
PD001 0
PD002 1
PD004 400Hz
PD005 400Hz
PD006 20Hz
PD007 0.5Hz
PD008 220V
PD009 16V
PD010 4V
PD011 30Hz
PD014 10
PD015 10
PD023 0
PD024 1
PD071 20
PD072 400Hz
PD141 220V
PD142 6A
PD143 2
PD144 3000
PD145 2.0
PD146 40
PD147 0
PD150 1
PD151 0
PD000 1 set as last one

Control over communication port RS485

Parameter Value
PD001 2
PD002 2
PD163 1
PD164 2
PD165 3
port COM5
pip install crcmod
pip install pyserial

module HuanyangDev is in this repository.

import serial
import time
import HuanyangDev

dev = HuanyangDev.HuanyangDev({"port": "COM5", "rate": 19200, "parity": serial.PARITY_NONE, "address": 1, "timeout": 0.1})
dev.open()

dev.write_function_data(8, 2200)
pd008 = dev.read_function_data(8)
print("PD008 = {}".format(pd008))

dev.write_freq(200)
dev.write_control_data(0x03)  # start

# 0: target frequency,  1: output frequency, 2:output current, 3: rpm, 4: DC voltage, 5: AC voltage,6:cont, 7:temp
f1, f2 = dev.read_control_data(0), dev.read_control_data(1)
print("target frequency = {}   output frequency = {}".format(f1, f2))
time.sleep(5)

dev.write_control_data(0x08)  # stop
dev.close()

Mach 3 integration

...............

Linux CNC integration

...............

About

All you have to know about Huanyang VFD

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages