[ Vfdmod ] An easy VFD control over MODBUS RTU

More
11 Mar 2021 20:58 #201860 by Zbysob1
ok one step more :)
it's look like :

Opening /dev/ttyUSB0 at 9600 bauds (N, 8, 1)

vfdmod: reading 'spindle.rpm-out' from address 8203 (0x200B)...
[01][03][20][0B][00][01][FE][08]
Waiting for a confirmation...
<00>
vfdmod: setting command speed value to 5 (0x0005)...
[01][06][20][01][00][05][13][C9]
Waiting for a confirmation...
<00>
vfdmod: reading 'spindle.rpm-out' from address 8203 (0x200B)...
[01][03][20][0B][00][01][FE][08]
Waiting for a confirmation...
<00>
vfdmod: setting command speed value to 5 (0x0005)...
[01][06][20][01][00][05][13][C9]
Waiting for a confirmation...
<00>
and so on ...
but the minimum speed is correctly written to the inverter - it changes from zero to 5

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

More
12 Mar 2021 01:13 #201917 by aekhv
Try to increase ProtocolDelay to 5...15 and watch to debug, is something changes?

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

More
12 Mar 2021 05:35 #201927 by Zbysob1
After increasing ProtocolDelay, ignored replies from random senders show "The responding slave 127 isn't the requested slave 1 , ...,
The responding slave 217 isn't the requested slave 1 "and after several such replies return to " ERROR Connection timed out: select. " Only the read request 8203 and write 8193 is sent. The minimum frequency is correct.

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

More
12 Mar 2021 05:49 #201928 by Zbysob1
I changed the converter to yours and now the debug out looks correct - next commands and the inverter answer, but the running program still shows connection errors and you can not control the direction or rotation

File Attachment:

File Name: vfd.txt
File Size:12 KB
Attachments:

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

More
12 Mar 2021 05:53 #201929 by Zbysob1
Error code for RS485 is 112345679 and diode is RED

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

More
12 Mar 2021 06:12 #201930 by aekhv
vfdmod: reading 'parameters.user-coil-parameter' from address 8193 (0x2001)...
[01][01][20][01][00][01][A7][CA]
Waiting for a confirmation...
<01><81><01><81><90>

No returned value after this block, it seems like my read coils function works wrong. Try to delete "user-coil-parameter" parameter from your ini.

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

More
12 Mar 2021 06:26 #201931 by Zbysob1
You are genius :)
I deleted this fragment and made my-pyvcp-panel.xml file and postgui.hal file again. The connection is green and no errors :)
I'll check the rest in the evening because work is waiting. Thanks again Aekhv :)

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

More
13 Mar 2021 06:42 #202060 by Zbysob1
Communication is ok but no reaction to traffic commands. The "Spindle at speed" diode is red and there is no reaction to start and stop and RPM setting. Information about the minimum revolutions is sent to the inverter, but only the revolutions without a movement command - the display on the inverter blinks with value of minimum

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

More
13 Mar 2021 06:57 #202063 by aekhv
Well, possible reasons are:
a) wrong control register address and / or wrong control world values. See your device manual to be sure.
b) wrong HAL connections. Show your HAL files please, I'll try to help.

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

More
13 Mar 2021 07:57 #202068 by Zbysob1
I think the registers are ok - sending the value 0x0012 to the address 0x2000 causes the start to the right, etc.

File Attachment:

File Name: custom.hal
File Size:0 KB

File Attachment:

File Name: custom_postgui.hal
File Size:0 KB

File Attachment:

File Name: vfd.hal
File Size:3 KB

File Attachment:

File Name: pyvcp_options.hal
File Size:0 KB
Attachments:

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

Time to create page: 0.168 seconds
Powered by Kunena Forum