Dear all,
Please accept my apologies for the long mail or if I sent it to the wrong
mailing list.

I have a problem trying to get the xy2-100 protocol working. This
protocol/interface seems to be supported in LinuxCNC master branch (2.9,
available from https://github.com/LinuxCNC/linuxcnc), using xy2mod and mesa
cards with hostmot2 firmware.

Being aware that this implementation is very new and not very well
documented, I was hoping that someone could point me in the right direction
on which particular hostmot2 firmware, mesa card and corresponding daughter
board would be suitable for using XY2-100 protocol.

The only information on the xy2mod I was able to find is on the following
sites:
1.
https://sourceforge.net/p/emc/mailman/emc-commit/thread/LinuxCNC/linuxcnc/push/refs/heads/master/d82b10-bcb7b1%40github.com/#msg37002348
2.
https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/drivers/mesa-hostmot2/xy2mod.c
3. http://linuxcnc.org/docs/devel/pdf/LinuxCNC_Manual_Pages.pdf
4. hostmot2 man pages (from LinuxCNC 2.9)

Other latest information on the mesa cards and hostmot2 bitfiles contains
no information regarding xy2mod:
1. http://linuxcnc.org/docs/devel/html/drivers/hostmot2.html
2. http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Mesa_Cards

I am not sure how to proceed. So far I managed to successfully comile
latest LinuxCNC from the master branch (2.9). Then I tried to load the
hostmot2 firmware for 5i22-1,5 card, which I presently have for testing. I
tried loading the following bitfiles:
1. SV16.BIT, SVST2_4_7I47.BIT, SVST8_24.BIT and SVST8_8.BIT
(/lib/firmware/hm2/5i22-1.5, available from
hostmot2-firmware-all/hostmot2-firmware-5i22-1.5 package, version
0.8.21.g5be856c)
2. sv16b.bit, svst8_24b.bit and svst8_8b.bit (manually extracted to
/lib/firmware/hm2/5i22-mesanet/ from 5i22.zip file available from
http://www.mesanet.com/software/parallel/5i22.zip) - these seem to be older
than bitfiles from hostmot2-firmware-all package.

Following syntax was used within HAL for testing:

loadrt threads name1=th01ms period1=1000000
loadrt hostmot2 debug_idrom=1 debug_module_descriptors=1
debug_pin_descriptors=1 debug_modules=1

#Each of the following lines was sequentially uncommented in order to
analyze the output from dmesg
#loadrt hm2_pci config="firmware=hm2/5i22-1.5/SV16.BIT num_xy2mods=1
num_encoders=0 num_pwmgens=0 num_stepgens=0"
#loadrt hm2_pci config="firmware=hm2/5i22-1.5/SVST2_4_7I47.BIT
num_xy2mods=1 num_encoders=0 num_pwmgens=0 num_stepgens=0"
#loadrt hm2_pci config="firmware=hm2/5i22-1.5/SVST8_24.BIT num_xy2mods=1
num_encoders=0 num_pwmgens=0 num_stepgens=0"
#loadrt hm2_pci config="firmware=hm2/5i22-1.5/SVST8_8.BIT num_xy2mods=1
num_encoders=0 num_pwmgens=0 num_stepgens=0"

#loadrt hm2_pci config="firmware=hm2/5i22-mesanet/sv16b.bit num_xy2mods=1
num_encoders=0 num_pwmgens=0 num_stepgens=0"
#loadrt hm2_pci config="firmware=hm2/5i22-mesanet/svst8_24b.bit
num_xy2mods=1 num_encoders=0 num_pwmgens=0 num_stepgens=0"
#loadrt hm2_pci config="firmware=hm2/5i22-mesanet/svst8_8b.bit
num_xy2mods=1 num_encoders=0 num_pwmgens=0 num_stepgens=0"

addf hm2_5i22.0.read          th01ms
addf hm2_5i22.0.write         th01ms
start

Neither of the combinations produced any meaningful output results, which
would potentially indicate that the xy2mod was successfully initialised.
Instead, all the pins are initialized as GPIO without any errors reported
during the loading of hm2_pci driver or hostmot2 firmware(s).

It would seem that the available hostmot2 bitfiles for 5i22 do not support
xy2mod.
Is there any combination of hostmot2 firmware, mesa cards and daughter
boards known to work with xy2mod?

btw. I have also posted similar question on the linuxcnc forum:
https://www.forum.linuxcnc.org/27-driver-boards/39850-linuxcnc-support-for-xy2-100-interface-using-xy2mod-and-hostmot2-firmware

With kind regards and many thanks in advance,
Tomislav

_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to