i found this 18.6 HostMot2 Functions
• hm2_<BoardType>.<BoardNum>.read_gpio - Read the GPIO input pins only. (This function is not available on the 7i43 due to limitations of the EPP bus.) • hm2_<BoardType>.<BoardNum>.write_gpio - Write the GPIO control registers and output pins only. (This function is not available on the 7i43 due to limitations of the EPP bus.) //////////////////////////////////////////////////////////////// • hm2_<BoardType>.<BoardNum>.read_gpio - Read the GPIO input pins only it looks some different - has ---read_gpio On Wed, Jul 16, 2014 at 1:35 PM, a k <[email protected]> wrote: > I did input > > > # Read home switch inputs from I/O card. > net x-home-sw <= hm2_[HOSTMOT2](BOARD).0.gpio.026.in > net y-home-sw <= hm2_[HOSTMOT2](BOARD).0.gpio.030.in > net z-home-sw <= hm2_[HOSTMOT2](BOARD).0.gpio.034.in > > and this > > # Connect home switch nets to motion. > net x-home-sw => axis.0.home-sw-in > net y-home-sw => axis.1.home-sw-in > net z-home-sw => axis.2.home-sw-in > > > ############################# > > error was hm2 servo 'net' requires at least one pin, none given 1993 > > what part 1993 means? > and after i put # at front of 2nd part number change to 2257 > > > > On Wed, Jul 16, 2014 at 12:44 PM, Philipp Burch <[email protected]> wrote: > >> Hi Aram! >> >> On 16.07.2014 21:30, a k wrote: >> > Hi Philipp >> > About >> > >> > ---------- -------------- -------------- >> > # Read home switch inputs from I/O card. >> > net x-home-sw <= m5i20.0.in-02 >> > net y-home-sw <= m5i20.0.in-06 >> > net z-home-sw <= m5i20.0.in-10 >> > >> > # Connect home switch nets to motion. >> > net x-home-sw => axis.0.home-sw-in >> > net y-home-sw => axis.1.home-sw-in >> > net z-home-sw => axis.2.home-sw-in >> > ------------------------------------- >> > ####################################### >> > what about HOMING code that came as a default - from installation-- >> > >> > net home-switch <= hm2_[HOSTMOT2](BOARD).0.gpio.025.in_not >> > net home-switch => axis.0.home-sw-in >> > net home-switch => axis.1.home-sw-in >> > net home-switch => axis.2.home-sw-in >> > ######################################### >> > delete it/alter--something should be >> > 1st line need remove because of 025 and i use 2-6-10-and remaining part? >> > >> >> You can just replace the posted example code by the above. Have you even >> tried to figure out what the example code does differently than what I >> wrote? If you see that, then you have at least a basic understanding of >> HAL and should be able to modify most of the example configuration to >> suit your machine. But again, I never worked with Mesa cards, so I don't >> know how they are exactly named in HAL (check the first line of your >> posted excerpt, that might give you a hint). And I especially do not >> know if the pin numbers are correct. >> Check Peters answer(s), he's the Mesa Guru. >> >> Best regards, >> Philipp >> >> >> >> ------------------------------------------------------------------------------ >> Want fast and easy access to all the code in your enterprise? Index and >> search up to 200,000 lines of code with a free copy of Black Duck >> Code Sight - the same software that powers the world's largest code >> search on Ohloh, the Black Duck Open Hub! Try it now. >> http://p.sf.net/sfu/bds >> _______________________________________________ >> Emc-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/emc-users >> >> > ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
