yalang yl620 VFD rs485/modbus communicaiton

More
4 years 11 months ago #226165 by mBender
Replied by mBender on topic yalang yl620 VFD rs485/modbus communicaiton
Sorry for my late response. Didn´t had much time to continue working on the integration.

So my problem with the pyvcp is that I can read out float numbers from the VFD for example the maximum HZ which I put for testing reasons to 399.9 HZ. I can see the number in the HAL but as soon as I connect the pins to a pyvcp, LinuxCNC won´t start anymore. If I get a second I will upload my code.

With the vfdmod, I can read the parameter register, but I can not write them. So I thougt it might be a good idea to use Classic Ladder, since I have a modbus relais platine as well which I wanted to use parallel.

So I started the integration of the VFD with the CL. I came to the point that I get the basic communication running and make the Error Bit for Modbus working and not working running. So my bus is working. My next step was to read out the registers. But no matter what I tried, I never got it sucessfully working. Part of the issue is that I don´t know how long the registers are, what type of reading I should use and so far and so on.

Meanwhile another user was able to upload an english manual to Github, so I have a complete description. I am sure I get it working as soon as I have figured out how to read out one of the registers. But I am not at that point and any help is greatly appreciated.

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

More
4 years 11 months ago #226196 by andypugh
Replied by andypugh on topic yalang yl620 VFD rs485/modbus communicaiton

So my problem with the pyvcp is that I can read out float numbers from the VFD for example the maximum HZ which I put for testing reasons to 399.9 HZ. I can see the number in the HAL but as soon as I connect the pins to a pyvcp, LinuxCNC won´t start anymore. If I get a second I will upload my code.
 
PyVCP has different number display boxes for float, int and unsigned int:
linuxcnc.org/docs/2.8/html/gui/pyvcp.html#_number_displays
I suspect that you are trying to connect a flat HAL pin to an integer  PyVCP display widget. 
 

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

More
4 years 11 months ago #227360 by mBender
Replied by mBender on topic yalang yl620 VFD rs485/modbus communicaiton
That worked.

I am continuing to work on the integration and started a new threat in HAL Examples. forum.linuxcnc.org/47-hal-examples/44328...mod-or-classicladder

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

More
4 years 4 months ago #245286 by tcurdt
Replied by tcurdt on topic yalang yl620 VFD rs485/modbus communicaiton
I've also gotten stuck with the RS485 communication.
I've set the YL620A to
Code:
P00.01    3    controlled by RS485 P03.00    3    baud, 3=9600, 4=19200 P03.01    1   id P03.02    2    8 1 None P03.03    3    RS485 communication error, 0=decelerate to stop, 3=non-stop P07.08  5   freq controlled by RS485

And since debugging inside linuxcnc was another layer of complexity I tried connecting via mbpoll:
Code:
$ mbpoll -r 8192 -b 9600 -P none -t 3:hex /dev/ttyUSB0mbpoll 1.0-0 - FieldTalk(tm) Modbus(R) Master SimulatorCopyright © 2015-2019 Pascal JEAN, https://github.com/epsilonrt/mbpollThis program comes with ABSOLUTELY NO WARRANTY.This is free software, and you are welcome to redistribute itunder certain conditions; type 'mbpoll -w' for details. Protocol configuration: Modbus RTUSlave configuration...: address = [1]                        start reference = 8192, count = 1Communication.........: /dev/ttyUSB0,       9600-8N1                        t/o 1.00 s, poll rate 1000 msData type.............: 16-bit register, input register table -- Polling slave 1... Ctrl-C to stop)Read input register failed: Connection timed out

I also switched the A/B.

Anyone of the YL620 mental support group that could help out with some idea or advice here?

cheers,
Torsten

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

More
4 years 4 months ago #245405 by MarkoPolo
Replied by MarkoPolo on topic yalang yl620 VFD rs485/modbus communicaiton
I also have yl620a, I have the following:
P00.01    3    controlled by RS485
P03.00    4    baud, 3=9600, 4=19200
P03.01    1    id
P03.02    2    8 1 None
P03.03    0    RS485 communication error, 0=decelerate to stop, 3=non-stop
P07.08    5    freq controlled by RS485

on the /dev /ttyUSB0 port and speed 19200 I check the first 1200 addresses with this command

root@debian:/#  for i in {0..1200}; do mbpoll -b 19200 -1 -P none -v -1 -t 4 -r $i /dev/ttyUSB0; done 2>/dev/null |grep \[[0-9]\]: 2>&1
[1]:     3998
[2]:     3
[3]:     0
[4]:     0
[5]:     4000
[6]:     4000
[7]:     1000
[8]:     400
[9]:     100
[10]:     40
[11]:     10
[12]:     100
[13]:     0
[14]:     0
[15]:     0
[16]:     1
[17]:     0
[18]:     1

if that doesn't work then I suspect the problem is with the physical connection

Marek
The following user(s) said Thank You: tcurdt

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

More
4 years 2 months ago #249641 by DavidE
Replied by DavidE on topic yalang yl620 VFD rs485/modbus communicaiton
Let me preface this post with, I am completely new to LinuxCNC so go easy on me please : )

I am hoping someone can help me. I am trying to get my YL620 VFD talking through VFDMOD. I have partial success. RS485 shows as connected. I can start in forward or reverse and stop the spindle. However I am unable to control the speed in any way. Either GCODE or with the + and - buttons in Axis. At start up my spindle speed is set to 100hz, as I set it in the ini, and that's where it stays no matter what I do.

I have attached all the config files, if anyone is able to help me to get this working I would be eternally grateful! I am at the point of pulling my hair out. 

I have tried ClassicLadder and MB2HAL as well with zero success. The closest I have got is VFDMOD. That being said I would be happy with getting any method working at this point. 

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

Time to create page: 5.097 seconds
Powered by Kunena Forum