Compiling Altivar VFD Modbus comp

More
25 Mar 2015 22:35 #57182 by Swapper
The port sniffing i have tried, maight not have been exactly like that but i tried with mb2hal and got data in the "sniffer"
When i run the altivar comp i get nothing, its not touching the serialport at all.
i have ran it with -v no difference.

The VFD does have modbus activated since i can read registers with mb2hal component.
That in my world means that serial coms and settings to read the VFD is correct.

Since the VFD comp is changed and compiled against newer linuxcnc software my guess is that something in the modbus lib is wrong and its not able to communicate correctly.

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

More
26 Mar 2015 16:12 #57201 by fupeama

The port sniffing i have tried, maight not have been exactly like that but i tried with mb2hal and got data in the "sniffer"
When i run the altivar comp i get nothing, its not touching the serialport at all.
i have ran it with -v no difference.

The VFD does have modbus activated since i can read registers with mb2hal component.
That in my world means that serial coms and settings to read the VFD is correct.

Since the VFD comp is changed and compiled against newer linuxcnc software my guess is that something in the modbus lib is wrong and its not able to communicate correctly.


Can you describe sniff method?
I compiled altivar comp on 2.7.0 pre not on 2.8. But I can try it.

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

More
26 Mar 2015 18:57 #57204 by Swapper
Hi
i tried the sniffer you provided

socat -d -d PTY: PTY

halrun:
loadusr -W atv_vfd -g -r 19200 -s 1 -t 1 -v -d /dev/pts/5

setp atv_vfd.spindle-on 1

cat /dev/pts/6

No results at all from cat

if you can try the same on 2.8 it would be very appreciated!

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

More
26 Mar 2015 19:03 #57205 by andypugh
You _must_ set atv_vfd.enable to 1 otherwise nothing at all happens.

here is the source-code
 594     // wait for enable signal after load axis
 595     while (!*(haldata->enable)) {       
 596         // do nothing
 597         sleep(1);  // be nice to CPU -mah
 598     }

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

More
27 Mar 2015 04:11 #57221 by Swapper
Hi
Oh now where getting some errors at least :)


halcmd: setp atv_vfd.enable 1
halcmd: read_data: reading setup parameters:


ERROR invalid crc received 208 - crc_calc 5846

main: read_data retval=-16


ERROR Communication time out

main: write_data retval=-16
read_data: reading setup parameters:


ERROR Communication time out

main: read_data retval=-12


ERROR Communication time out

main: write_data retval=-12
read_data: reading setup parameters:

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

More
31 Mar 2015 04:24 #57325 by Swapper
i gave in and hooked the VFD up with analog control, maybe someone will get it running in the future.

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

Time to create page: 0.089 seconds
Powered by Kunena Forum