Re: [Emc-users] Smart-serial and 7i43
2012/3/30 Peter C. Wallace : > On Fri, 30 Mar 2012, Viesturs L?cis wrote: > >> Date: Fri, 30 Mar 2012 23:27:30 +0300 >> From: "[UTF-8] Viesturs L?cis" >> Reply-To: "Enhanced Machine Controller (EMC)" >> >> To: "Enhanced Machine Controller (EMC)" >> Subject: Re: [Emc-users] Smart-serial and 7i43 >> >> 2012/3/30 Peter C. Wallace : >>> >>> Is your RJ45 pin 3 high? (high than pin 6) if not you likely have the +/- >>> swapped on both RX and TX >>> >> >> Just to make sure that I correctly understand, what do You mean: >> >> Pin 3 is Txa for 8i20, so I have connected to non-inverted input of >> SN75179 chip. I really tried to extra careful to make them right - Tx >> from my converter to Rx of 8i20 and vice versa. >> >> I measured - pin 3 is 3,93 V above GND, pin 6 is 0,96 V above GND. >> >> Viesturs > > Thats correct > > Are you sure you have a straight through CAT 5 cable? > What do You mean by "straight through"? Label on the cable itself says it is CAT.5E, I cut that piece off the roll and attached rj-45 connector on one end. I paid extra attention to line the wires by colors as per standard (the same as mentioned in 7i44 manual). Yesterday I checked all the wire leads between rj-45 connector and my converter with multimeter - all the leads are connected properly. I tested it by putting one tester pin on rj-45 pins and then attached the other pin to all the pins (one at a time) on converter to check, if there are any short circuits or misconnections. It was all right. Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
On Fri, 30 Mar 2012, Viesturs L?cis wrote: > Date: Fri, 30 Mar 2012 23:27:30 +0300 > From: "[UTF-8] Viesturs L?cis" > Reply-To: "Enhanced Machine Controller (EMC)" > > To: "Enhanced Machine Controller (EMC)" > Subject: Re: [Emc-users] Smart-serial and 7i43 > > 2012/3/30 Peter C. Wallace : >> >> Is your RJ45 pin 3 high? (high than pin 6) if not you likely have the +/- >> swapped on both RX and TX >> > > Just to make sure that I correctly understand, what do You mean: > > Pin 3 is Txa for 8i20, so I have connected to non-inverted input of > SN75179 chip. I really tried to extra careful to make them right - Tx > from my converter to Rx of 8i20 and vice versa. > > I measured - pin 3 is 3,93 V above GND, pin 6 is 0,96 V above GND. > > Viesturs Thats correct Are you sure you have a straight through CAT 5 cable? > > -- > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/30 Peter C. Wallace : > > Is your RJ45 pin 3 high? (high than pin 6) if not you likely have the +/- > swapped on both RX and TX > Just to make sure that I correctly understand, what do You mean: Pin 3 is Txa for 8i20, so I have connected to non-inverted input of SN75179 chip. I really tried to extra careful to make them right - Tx from my converter to Rx of 8i20 and vice versa. I measured - pin 3 is 3,93 V above GND, pin 6 is 0,96 V above GND. Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
On Fri, 30 Mar 2012, Viesturs L?cis wrote: Date: Fri, 30 Mar 2012 21:23:50 +0300 From: "[UTF-8] Viesturs L?cis" Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Smart-serial and 7i43 2012/3/29 Viesturs L??cis : It is past 9 PM, so I will try to run LinuxCNC with 8i20 attached tomorrow morning once more. Peter, today I tried again and the result is the same as before - "fault" led is turned on and I do not see 8i20 in "Show HAL config" under Pins -> hm2_7i43 -> 0. I have: 1) +55 VDC applied to motor power; 2) +12 VDC applied to "enable" input; 3) checked the cable between 7i43 to 8i20 again (including the ttl <--> rs422 converter in the middle) - all the wire leads match the firmware pinout, SN75179 pinout and 8i20 serial port pinout I do not have motor attached. There are 5 LEDs turned on: 1) PWR 2) LV STATUS 3) ISO PWR 4) HW ON 5) FAULT The only LED that is not turned on is STATUS. Are there any testing tools that I could try out to find, why does not LinuxCNC receive any response from 8i20 drive? Viesturs Is your RJ45 pin 3 high? (high than pin 6) if not you likely have the +/- swapped on both RX and TX -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/29 Viesturs Lācis : > > It is past 9 PM, so I will try to run LinuxCNC with 8i20 > attached tomorrow morning once more. Peter, today I tried again and the result is the same as before - "fault" led is turned on and I do not see 8i20 in "Show HAL config" under Pins -> hm2_7i43 -> 0. I have: 1) +55 VDC applied to motor power; 2) +12 VDC applied to "enable" input; 3) checked the cable between 7i43 to 8i20 again (including the ttl <--> rs422 converter in the middle) - all the wire leads match the firmware pinout, SN75179 pinout and 8i20 serial port pinout I do not have motor attached. There are 5 LEDs turned on: 1) PWR 2) LV STATUS 3) ISO PWR 4) HW ON 5) FAULT The only LED that is not turned on is STATUS. Are there any testing tools that I could try out to find, why does not LinuxCNC receive any response from 8i20 drive? Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/22 Peter C. Wallace : > > You can check your converter by looping the RS-422 TX to RX > > (TX+ to RX+ TX- to RX-) > > and then togging the FPGA TX pin and seeing if the FPGA RX pin follows > (you would need to disable SSERIAL so you catn get contro of the pins as > GPIO = SSERIAL_PORT_0=) > Here is what I did: 1) Soldered small wire between Tx+ and Rx+, as well as Tx- and Rx-; 2) In hm2-servo sample config, I added a line to specify that gpio.036 is output; 3) In HAL Config I watched gpio.034.in pin - it was "false"; 4) Then in "Show" tab I executed "setp hm2_7i43.0.036.out 1" 5) In "Watch" tab I observed that gpio.034.in had became "true" 6) Repeated the turning the output pin on and off several times, input pin followed it correctly; So my conclusion - that little converter is working. What else could I be missing to get 8i20 respond? Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
On Thu, 2012-03-22 at 16:37 +0200, Viesturs Lācis wrote: > 2012/3/22 Greg Bernard : > > Do you have a usb to ttl converter? If so you could use a terminal program > > and do a loop-back test (connect RX to TX) > > No. > The converter I built is the very first scheme here: > http://www.kmitl.ac.th/~kswichit/Rs422/Rs422.pdf > > Viesturs I think you should be able to do a loop back on the SN75179. The first schematic shows only a TTL to differential converter. The rest of the schematic shows a differential to RS-232 converter, which I assume does not apply here. Anyway, on one side of the chip the RxD and TxD pins could be tied together, then a signal on A(pin 8) and B (pin 7) should be mirrored on Y (5) and Z (6). In other words, ground (with a resistor) B and pull A up with a resistor to +5. Y should go up towards +5 and Z towards ground. Switch the ground and pull up on A and B, and Y and Z signals should switch. One could also loop the differential side of the chip by tying A to Y and B to Z (I think). Pull up or ground TxD, and RxD should follow. -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
On Thu, 22 Mar 2012, Viesturs L?cis wrote: Date: Thu, 22 Mar 2012 16:37:14 +0200 From: "[UTF-8] Viesturs L?cis" Reply-To: "Enhanced Machine Controller (EMC)" To: Greg Bernard , "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Smart-serial and 7i43 2012/3/22 Greg Bernard : Do you have a usb to ttl converter? If so you could use a terminal program and do a loop-back test (connect RX to TX) No. The converter I built is the very first scheme here: http://www.kmitl.ac.th/~kswichit/Rs422/Rs422.pdf Viesturs You can check your converter by looping the RS-422 TX to RX (TX+ to RX+ TX- to RX-) and then togging the FPGA TX pin and seeing if the FPGA RX pin follows (you would need to disable SSERIAL so you catn get contro of the pins as GPIO = SSERIAL_PORT_0=) -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/22 Greg Bernard : > Do you have a usb to ttl converter? If so you could use a terminal program > and do a loop-back test (connect RX to TX) No. The converter I built is the very first scheme here: http://www.kmitl.ac.th/~kswichit/Rs422/Rs422.pdf Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
Do you have a usb to ttl converter? If so you could use a terminal program and do a loop-back test (connect RX to TX) > > From: Viesturs Lācis >To: Enhanced Machine Controller (EMC) >Sent: Thursday, March 22, 2012 9:04 AM >Subject: Re: [Emc-users] Smart-serial and 7i43 > >2012/3/18 Peter C. Wallace : >> On Sun, 18 Mar 2012, Viesturs L?cis wrote: >> >>> Date: Sun, 18 Mar 2012 07:21:38 -0400 >>> From: "[UTF-8] Viesturs L?cis" >>> Reply-To: "Enhanced Machine Controller (EMC)" >>> >>> To: "Enhanced Machine Controller (EMC)" >>> Subject: Re: [Emc-users] Smart-serial and 7i43 >>> >>> 2012/3/17 Peter C. Wallace : >>>> Heres tha latest I have(any SSERIAL with 5 registers has to be at least 6 >>>> months old) >>> >>> So I got LinuxCNC to start up without errors. I have connected 8i20 >>> drive to 7i43 card. >>> >>> 1) But I do not see it in "Show HAL config" (I expect it to appear >>> there, if sserial module finds it): >>> http://www.linuxcnc.org/docs/devel/html/man/man9/hostmot2.9.html#8i20 >>> >>> Based on that I understand that communication between sserial and 8i20 >>> is not happening. >>> >>> I should mention that between 8i20 and 7i43 is my diy ttl <--> rs422 >>> converter (I am aware of existence of 7i44 card, but since I only want >>> to test, how 8i20 would perform with my servo motors, I thought that >>> building such a convertor would be cheaper). That converter is based >>> on SN75179 chip (very first scheme here): >>> http://www.datasheetarchive.com/dl/Datasheets-37/DSA-720721.pdf >>> >>> Based on firmware's PIN file, there are following sserial pins on P3 >>> connector: >>> 21 34 IOPort SSerial 0 RXData1 (In) >>> >>> 23 35 IOPort SSerial 0 RXData2 (In) >>> >>> 25 36 IOPort SSerial 0 TXData1 (Out) >>> >>> 27 37 IOPort SSerial 0 TXEn1 (Out) >>> >>> 29 38 IOPort SSerial 0 TXData2 (Out) >>> >>> 31 39 IOPort SSerial 0 TXEn2 (Out) >>> >>> >>> I have connected RXData1 and TXData1 to my converter, all the >>> remaining pins are not connected anywhere. >>> >>> Is this correct? >>> How can I test the communication between 7i43 and 8i29 cards, to see, >>> if that convertor is actually working? >>> >>> On 8i20 card 4 LEDs are shining: >>> Pwr >>> Lv status >>> Iso pwr >>> Fault >>> >> >> SSERIAL will not start a 8I20 unless the 8I20 has its drive enable powered >> and >>>~45V motor power. (newer 8I20 firmware does allow starts under these >> conditions) > >I have 55 VDC on motor power inputs and 12 VDC on enable inputs, but >still all the same. >What else am I missing? >Can anyone suggest, how can I test, if my diy ttl <--> rs422 converter >is working correctly? > >Viesturs > >-- >This SF email is sponsosred by: >Try Windows Azure free for 90 days Click Here >http://p.sf.net/sfu/sfd2d-msazure >___ >Emc-users mailing list >Emc-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/emc-users > > > -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/18 Peter C. Wallace : > On Sun, 18 Mar 2012, Viesturs L?cis wrote: > >> Date: Sun, 18 Mar 2012 07:21:38 -0400 >> From: "[UTF-8] Viesturs L?cis" >> Reply-To: "Enhanced Machine Controller (EMC)" >> >> To: "Enhanced Machine Controller (EMC)" >> Subject: Re: [Emc-users] Smart-serial and 7i43 >> >> 2012/3/17 Peter C. Wallace : >>> Heres tha latest I have(any SSERIAL with 5 registers has to be at least 6 >>> months old) >> >> So I got LinuxCNC to start up without errors. I have connected 8i20 >> drive to 7i43 card. >> >> 1) But I do not see it in "Show HAL config" (I expect it to appear >> there, if sserial module finds it): >> http://www.linuxcnc.org/docs/devel/html/man/man9/hostmot2.9.html#8i20 >> >> Based on that I understand that communication between sserial and 8i20 >> is not happening. >> >> I should mention that between 8i20 and 7i43 is my diy ttl <--> rs422 >> converter (I am aware of existence of 7i44 card, but since I only want >> to test, how 8i20 would perform with my servo motors, I thought that >> building such a convertor would be cheaper). That converter is based >> on SN75179 chip (very first scheme here): >> http://www.datasheetarchive.com/dl/Datasheets-37/DSA-720721.pdf >> >> Based on firmware's PIN file, there are following sserial pins on P3 >> connector: >> 21 34 IOPort SSerial 0 RXData1 (In) >> >> 23 35 IOPort SSerial 0 RXData2 (In) >> >> 25 36 IOPort SSerial 0 TXData1 (Out) >> >> 27 37 IOPort SSerial 0 TXEn1 (Out) >> >> 29 38 IOPort SSerial 0 TXData2 (Out) >> >> 31 39 IOPort SSerial 0 TXEn2 (Out) >> >> >> I have connected RXData1 and TXData1 to my converter, all the >> remaining pins are not connected anywhere. >> >> Is this correct? >> How can I test the communication between 7i43 and 8i29 cards, to see, >> if that convertor is actually working? >> >> On 8i20 card 4 LEDs are shining: >> Pwr >> Lv status >> Iso pwr >> Fault >> > > SSERIAL will not start a 8I20 unless the 8I20 has its drive enable powered and >>~45V motor power. (newer 8I20 firmware does allow starts under these > conditions) I have 55 VDC on motor power inputs and 12 VDC on enable inputs, but still all the same. What else am I missing? Can anyone suggest, how can I test, if my diy ttl <--> rs422 converter is working correctly? Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/18 Peter C. Wallace : > > SSERIAL will not start a 8I20 unless the 8I20 has its drive enable powered and >>~45V motor power. (newer 8I20 firmware does allow starts under these > conditions) Do I need also to connect the motor for 8i20? Of course, I will need it, when I will try to run it, but now I am just trying to get LinuxCNC see the 8i20 and communicate with it. > They are in the configuration (and the HM2 driver default behavior is to turn > all hardware on if unspecified in the command line) Just to make sure I am not missing something - I need to specify num_pwmgens=0 and num_stepgens=0 for them not to be loaded, right? > Heres a hal file that runs a 4 pole 1000 line motor: > > freeby.mesanet.com/hm2-servogreen.hal Thank You very much! Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
On Sun, 18 Mar 2012, Viesturs L?cis wrote: > Date: Sun, 18 Mar 2012 07:21:38 -0400 > From: "[UTF-8] Viesturs L?cis" > Reply-To: "Enhanced Machine Controller (EMC)" > > To: "Enhanced Machine Controller (EMC)" > Subject: Re: [Emc-users] Smart-serial and 7i43 > > 2012/3/17 Peter C. Wallace : >> Heres tha latest I have(any SSERIAL with 5 registers has to be at least 6 >> months old) > > So I got LinuxCNC to start up without errors. I have connected 8i20 > drive to 7i43 card. > > 1) But I do not see it in "Show HAL config" (I expect it to appear > there, if sserial module finds it): > http://www.linuxcnc.org/docs/devel/html/man/man9/hostmot2.9.html#8i20 > > Based on that I understand that communication between sserial and 8i20 > is not happening. > > I should mention that between 8i20 and 7i43 is my diy ttl <--> rs422 > converter (I am aware of existence of 7i44 card, but since I only want > to test, how 8i20 would perform with my servo motors, I thought that > building such a convertor would be cheaper). That converter is based > on SN75179 chip (very first scheme here): > http://www.datasheetarchive.com/dl/Datasheets-37/DSA-720721.pdf > > Based on firmware's PIN file, there are following sserial pins on P3 > connector: >21 34 IOPort SSerial 0RXData1 (In) > >23 35 IOPort SSerial 0RXData2 (In) > >25 36 IOPort SSerial 0TXData1 (Out) > >27 37 IOPort SSerial 0TXEn1 (Out) > >29 38 IOPort SSerial 0TXData2 (Out) > >31 39 IOPort SSerial 0TXEn2 (Out) > > > I have connected RXData1 and TXData1 to my converter, all the > remaining pins are not connected anywhere. > > Is this correct? > How can I test the communication between 7i43 and 8i29 cards, to see, > if that convertor is actually working? > > On 8i20 card 4 LEDs are shining: > Pwr > Lv status > Iso pwr > Fault > > 2) Even more, in INI file I have: > [HOSTMOT2] > DRIVER=hm2_7i43 > BOARD=7i43 > CONFIG="firmware=hm2/7i43-4/BOSSVSS.BIT num_encoders=6 sserial_port_0=00" > > But in "Show HAL config" I see not only 6 encoders, but also 2 pwmgens > and 5 stepgens. > > Can anyone suggest me, where did they come from? > > Is there a chance for any 8i20 user (preferrably together with 7i43) > to share some insights, how to set it up? I would really appreciate > related parts of config files. > > Viesturs Heres a hal file that runs a 4 pole 1000 line motor: freeby.mesanet.com/hm2-servogreen.hal > > -- > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
On Sun, 18 Mar 2012, Viesturs L?cis wrote: > Date: Sun, 18 Mar 2012 07:21:38 -0400 > From: "[UTF-8] Viesturs L?cis" > Reply-To: "Enhanced Machine Controller (EMC)" > > To: "Enhanced Machine Controller (EMC)" > Subject: Re: [Emc-users] Smart-serial and 7i43 > > 2012/3/17 Peter C. Wallace : >> Heres tha latest I have(any SSERIAL with 5 registers has to be at least 6 >> months old) > > So I got LinuxCNC to start up without errors. I have connected 8i20 > drive to 7i43 card. > > 1) But I do not see it in "Show HAL config" (I expect it to appear > there, if sserial module finds it): > http://www.linuxcnc.org/docs/devel/html/man/man9/hostmot2.9.html#8i20 > > Based on that I understand that communication between sserial and 8i20 > is not happening. > > I should mention that between 8i20 and 7i43 is my diy ttl <--> rs422 > converter (I am aware of existence of 7i44 card, but since I only want > to test, how 8i20 would perform with my servo motors, I thought that > building such a convertor would be cheaper). That converter is based > on SN75179 chip (very first scheme here): > http://www.datasheetarchive.com/dl/Datasheets-37/DSA-720721.pdf > > Based on firmware's PIN file, there are following sserial pins on P3 > connector: >21 34 IOPort SSerial 0RXData1 (In) > >23 35 IOPort SSerial 0RXData2 (In) > >25 36 IOPort SSerial 0TXData1 (Out) > >27 37 IOPort SSerial 0TXEn1 (Out) > >29 38 IOPort SSerial 0TXData2 (Out) > >31 39 IOPort SSerial 0TXEn2 (Out) > > > I have connected RXData1 and TXData1 to my converter, all the > remaining pins are not connected anywhere. > > Is this correct? > How can I test the communication between 7i43 and 8i29 cards, to see, > if that convertor is actually working? > > On 8i20 card 4 LEDs are shining: > Pwr > Lv status > Iso pwr > Fault > SSERIAL will not start a 8I20 unless the 8I20 has its drive enable powered and >~45V motor power. (newer 8I20 firmware does allow starts under these conditions) > 2) Even more, in INI file I have: > [HOSTMOT2] > DRIVER=hm2_7i43 > BOARD=7i43 > CONFIG="firmware=hm2/7i43-4/BOSSVSS.BIT num_encoders=6 sserial_port_0=00" > > But in "Show HAL config" I see not only 6 encoders, but also 2 pwmgens > and 5 stepgens. > > Can anyone suggest me, where did they come from? They are in the configuration (and the HM2 driver default behavior is to turn all hardware on if unspecified in the command line) > > Is there a chance for any 8i20 user (preferrably together with 7i43) > to share some insights, how to set it up? I would really appreciate > related parts of config files. > > Viesturs > > -- > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/18 Mark Wendt (Contractor) : > On 3/17/2012 1:08 PM, Viesturs Lācis wrote: >> 2012/3/17 Mark Wendt (Contractor): >> >>> You're missing at least the Boost.Python libraries for C++ (gcc). Dunno >>> what else you're missing since I don't know what you have on your >>> machine. ;-) >>> >> I just want to test one 8i20 servo drive, no real machine to control. >> >> Where can I find, which exactly version of gcc and if there are any >> other packages as well (gcc dependencies, for example)? >> >> Viesturs >> > Viesturs, > > I'm pretty sure gcc comes as part of the Ubuntu bundle. The > libboost-python-dev that Michael mentioned may not though, so you'll > have to go get it. To be sure on the gcc, type "which gcc" and see if it > returns anything. It is all right now, Michal suggested a command that solved the problem. I managed to build LinuxCNC, now I am struggling with getting it to communicate with 8i20 drive, see my last message in this thread. Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
On 3/17/2012 1:08 PM, Viesturs Lācis wrote: > 2012/3/17 Mark Wendt (Contractor): > >> You're missing at least the Boost.Python libraries for C++ (gcc). Dunno >> what else you're missing since I don't know what you have on your >> machine. ;-) >> > I just want to test one 8i20 servo drive, no real machine to control. > > Where can I find, which exactly version of gcc and if there are any > other packages as well (gcc dependencies, for example)? > > Viesturs > Viesturs, I'm pretty sure gcc comes as part of the Ubuntu bundle. The libboost-python-dev that Michael mentioned may not though, so you'll have to go get it. To be sure on the gcc, type "which gcc" and see if it returns anything. Mark -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/17 Peter C. Wallace : > Heres tha latest I have(any SSERIAL with 5 registers has to be at least 6 > months old) So I got LinuxCNC to start up without errors. I have connected 8i20 drive to 7i43 card. 1) But I do not see it in "Show HAL config" (I expect it to appear there, if sserial module finds it): http://www.linuxcnc.org/docs/devel/html/man/man9/hostmot2.9.html#8i20 Based on that I understand that communication between sserial and 8i20 is not happening. I should mention that between 8i20 and 7i43 is my diy ttl <--> rs422 converter (I am aware of existence of 7i44 card, but since I only want to test, how 8i20 would perform with my servo motors, I thought that building such a convertor would be cheaper). That converter is based on SN75179 chip (very first scheme here): http://www.datasheetarchive.com/dl/Datasheets-37/DSA-720721.pdf Based on firmware's PIN file, there are following sserial pins on P3 connector: 21 34 IOPort SSerial 0RXData1 (In) 23 35 IOPort SSerial 0RXData2 (In) 25 36 IOPort SSerial 0TXData1 (Out) 27 37 IOPort SSerial 0TXEn1 (Out) 29 38 IOPort SSerial 0TXData2 (Out) 31 39 IOPort SSerial 0TXEn2 (Out) I have connected RXData1 and TXData1 to my converter, all the remaining pins are not connected anywhere. Is this correct? How can I test the communication between 7i43 and 8i29 cards, to see, if that convertor is actually working? On 8i20 card 4 LEDs are shining: Pwr Lv status Iso pwr Fault 2) Even more, in INI file I have: [HOSTMOT2] DRIVER=hm2_7i43 BOARD=7i43 CONFIG="firmware=hm2/7i43-4/BOSSVSS.BIT num_encoders=6 sserial_port_0=00" But in "Show HAL config" I see not only 6 encoders, but also 2 pwmgens and 5 stepgens. Can anyone suggest me, where did they come from? Is there a chance for any 8i20 user (preferrably together with 7i43) to share some insights, how to set it up? I would really appreciate related parts of config files. Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/17 Peter C. Wallace : > > Those number do not match what I have for the BOSSVSS config so that is not > a current bit file (John Murphy must have sent you an old one by mistake) > Configuration Name: HOSTMOT2 > > General configuration information: > > Module: SSerial > There are 1 of SSerial in configuration > Version: 0 > Registers: 6 > BaseAddress: 5A00 > ClockFrequency: 50.000 MHz > > note the # of registers Yes, I noticed that line, which told that there were 5 registers, but 6 were expected. Could You, please, send me the current bit file? Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
On Sat, 17 Mar 2012, Peter C. Wallace wrote: > Date: Sat, 17 Mar 2012 13:33:56 -0700 (PDT) > From: Peter C. Wallace > Reply-To: "Enhanced Machine Controller (EMC)" > > To: "Enhanced Machine Controller (EMC)" > Subject: Re: [Emc-users] Smart-serial and 7i43 > > On Sat, 17 Mar 2012, Viesturs L?cis wrote: > >> Date: Sat, 17 Mar 2012 16:29:27 -0400 >> From: "[UTF-8] Viesturs L?cis" >> Reply-To: "Enhanced Machine Controller (EMC)" >> >> To: "Enhanced Machine Controller (EMC)" >> Subject: Re: [Emc-users] Smart-serial and 7i43 >> >> 2012/3/17 Peter C. Wallace : >>> >>> Looks right, though it probably should have the right number of 0's or X's >>> for >>> the number of sserial channels the config contains >> >> How do I find that out? The firmware is BOSSV.BIT, the one You sent to >> John Murphy a week or two ago. >> >>> what does dmesg say? >> >> I copied only the part, which is usually in the error message: >> [ 102.975901] I-pipe: Domain RTAI registered. >> [ 102.975913] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03. >> [ 102.975916] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu >> 4.4.3-4ubuntu5) . >> [ 102.975923] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE >> (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0). >> [ 102.975925] PIPELINE layers: >> [ 102.975929] f81efe20 9ac15d93 RTAI 200 >> [ 102.975932] c085cb20 0 Linux 100 >> [ 103.004497] RTAI[malloc]: global heap size = 2097152 bytes, . >> [ 103.004681] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: > RTAI OWN KTASKs>, kstacks pool size = 524288 bytes. >> [ 103.004686] RTAI[sched]: hard timer type/freq = APIC/12557095(Hz); >> default timing: periodic; linear timed lists. >> [ 103.004690] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq >> = 1808082000 hz. >> [ 103.004693] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns. >> [ 103.004822] RTAI[usi]: enabled. >> [ 103.095251] RTAI[math]: loaded. >> [ 103.327291] hm2: loading Mesa HostMot2 driver version 0.15 >> [ 103.333112] hm2_7i43: loading HostMot2 Mesa 7i43 driver version 0.3 >> [ 103.335184] hm2_7i43.0: firmware: requesting hm2/7i43-4/BOSSV.BIT >> [ 103.792562] hm2/hm2_7i43.0: inconsistent Module Descriptor for >> Smart Serial Interface, not loading driver >> [ 103.792571] hm2/hm2_7i43.0: Version = 0, expected 0 >> [ 103.792576] hm2/hm2_7i43.0: NumRegisters = 5, expected 6 >> [ 103.792581] hm2/hm2_7i43.0: InstanceStride = 0x0004, >> expected 0x0040 >> [ 103.792586] hm2/hm2_7i43.0: MultipleRegisters = 0x001F, >> expected 0x003C >> [ 103.792590] hm2/hm2_7i43.0: inconsistent Module Descriptor! >> [ 103.792595] hm2/hm2_7i43.0: failed to parse Module Descriptor 5 >> [ 103.792605] hm2_7i43.0: board at (ioaddr=0x0378, ioaddr_hi=0x0778, >> epp_wide ON) not found! >> [ 104.221146] hm2: unloading >> [ 104.365422] RTAI[math]: unloaded. >> [ 104.424819] SCHED releases registered named ALIEN RTGLBH >> [ 104.440290] RTAI[malloc]: unloaded. >> [ 104.540035] RTAI[sched]: unloaded (forced hard/soft/hard >> transitions: traps 0, syscalls 0). >> [ 104.543841] I-pipe: Domain RTAI unregistered. >> [ 104.543853] RTAI[hal]: unmounted. >> viesturs@ubuntu:~/linuxcnc-dev$ >> >> >>> is this 2.5? >> >> Freshly (less than 2 hours ago) built from master. Still warm :)) >> >> Viesturs Those number do not match what I have for the BOSSVSS config so that is not a current bit file (John Murphy must have sent you an old one by mistake) Configuration Name: HOSTMOT2 General configuration information: Module: SSerial There are 1 of SSerial in configuration Version: 0 Registers: 6 BaseAddress: 5A00 ClockFrequency: 50.000 MHz note the # of registers -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/17 Peter C. Wallace : > > Oh OK its a ancient bit file (dmesg is much more useful) So that means that You will send me something else, right? :)) Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
On Sat, 17 Mar 2012, Viesturs L?cis wrote: > Date: Sat, 17 Mar 2012 16:29:27 -0400 > From: "[UTF-8] Viesturs L?cis" > Reply-To: "Enhanced Machine Controller (EMC)" > > To: "Enhanced Machine Controller (EMC)" > Subject: Re: [Emc-users] Smart-serial and 7i43 > > 2012/3/17 Peter C. Wallace : >> >> Looks right, though it probably should have the right number of 0's or X's >> for >> the number of sserial channels the config contains > > How do I find that out? The firmware is BOSSV.BIT, the one You sent to > John Murphy a week or two ago. > >> what does dmesg say? > > I copied only the part, which is usually in the error message: > [ 102.975901] I-pipe: Domain RTAI registered. > [ 102.975913] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03. > [ 102.975916] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu > 4.4.3-4ubuntu5) . > [ 102.975923] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE > (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0). > [ 102.975925] PIPELINE layers: > [ 102.975929] f81efe20 9ac15d93 RTAI 200 > [ 102.975932] c085cb20 0 Linux 100 > [ 103.004497] RTAI[malloc]: global heap size = 2097152 bytes, . > [ 103.004681] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: RTAI OWN KTASKs>, kstacks pool size = 524288 bytes. > [ 103.004686] RTAI[sched]: hard timer type/freq = APIC/12557095(Hz); > default timing: periodic; linear timed lists. > [ 103.004690] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq > = 1808082000 hz. > [ 103.004693] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns. > [ 103.004822] RTAI[usi]: enabled. > [ 103.095251] RTAI[math]: loaded. > [ 103.327291] hm2: loading Mesa HostMot2 driver version 0.15 > [ 103.333112] hm2_7i43: loading HostMot2 Mesa 7i43 driver version 0.3 > [ 103.335184] hm2_7i43.0: firmware: requesting hm2/7i43-4/BOSSV.BIT > [ 103.792562] hm2/hm2_7i43.0: inconsistent Module Descriptor for > Smart Serial Interface, not loading driver > [ 103.792571] hm2/hm2_7i43.0: Version = 0, expected 0 > [ 103.792576] hm2/hm2_7i43.0: NumRegisters = 5, expected 6 > [ 103.792581] hm2/hm2_7i43.0: InstanceStride = 0x0004, > expected 0x0040 > [ 103.792586] hm2/hm2_7i43.0: MultipleRegisters = 0x001F, > expected 0x003C > [ 103.792590] hm2/hm2_7i43.0: inconsistent Module Descriptor! > [ 103.792595] hm2/hm2_7i43.0: failed to parse Module Descriptor 5 > [ 103.792605] hm2_7i43.0: board at (ioaddr=0x0378, ioaddr_hi=0x0778, > epp_wide ON) not found! > [ 104.221146] hm2: unloading > [ 104.365422] RTAI[math]: unloaded. > [ 104.424819] SCHED releases registered named ALIEN RTGLBH > [ 104.440290] RTAI[malloc]: unloaded. > [ 104.540035] RTAI[sched]: unloaded (forced hard/soft/hard > transitions: traps 0, syscalls 0). > [ 104.543841] I-pipe: Domain RTAI unregistered. > [ 104.543853] RTAI[hal]: unmounted. > viesturs@ubuntu:~/linuxcnc-dev$ > > >> is this 2.5? > > Freshly (less than 2 hours ago) built from master. Still warm :)) > > Viesturs > > -- > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > Oh OK its a ancient bit file (dmesg is much more useful) Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/17 Peter C. Wallace : > > Looks right, though it probably should have the right number of 0's or X's for > the number of sserial channels the config contains How do I find that out? The firmware is BOSSV.BIT, the one You sent to John Murphy a week or two ago. > what does dmesg say? I copied only the part, which is usually in the error message: [ 102.975901] I-pipe: Domain RTAI registered. [ 102.975913] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03. [ 102.975916] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) . [ 102.975923] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0). [ 102.975925] PIPELINE layers: [ 102.975929] f81efe20 9ac15d93 RTAI 200 [ 102.975932] c085cb20 0 Linux 100 [ 103.004497] RTAI[malloc]: global heap size = 2097152 bytes, . [ 103.004681] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: , kstacks pool size = 524288 bytes. [ 103.004686] RTAI[sched]: hard timer type/freq = APIC/12557095(Hz); default timing: periodic; linear timed lists. [ 103.004690] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1808082000 hz. [ 103.004693] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns. [ 103.004822] RTAI[usi]: enabled. [ 103.095251] RTAI[math]: loaded. [ 103.327291] hm2: loading Mesa HostMot2 driver version 0.15 [ 103.333112] hm2_7i43: loading HostMot2 Mesa 7i43 driver version 0.3 [ 103.335184] hm2_7i43.0: firmware: requesting hm2/7i43-4/BOSSV.BIT [ 103.792562] hm2/hm2_7i43.0: inconsistent Module Descriptor for Smart Serial Interface, not loading driver [ 103.792571] hm2/hm2_7i43.0: Version = 0, expected 0 [ 103.792576] hm2/hm2_7i43.0: NumRegisters = 5, expected 6 [ 103.792581] hm2/hm2_7i43.0: InstanceStride = 0x0004, expected 0x0040 [ 103.792586] hm2/hm2_7i43.0: MultipleRegisters = 0x001F, expected 0x003C [ 103.792590] hm2/hm2_7i43.0: inconsistent Module Descriptor! [ 103.792595] hm2/hm2_7i43.0: failed to parse Module Descriptor 5 [ 103.792605] hm2_7i43.0: board at (ioaddr=0x0378, ioaddr_hi=0x0778, epp_wide ON) not found! [ 104.221146] hm2: unloading [ 104.365422] RTAI[math]: unloaded. [ 104.424819] SCHED releases registered named ALIEN RTGLBH [ 104.440290] RTAI[malloc]: unloaded. [ 104.540035] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0). [ 104.543841] I-pipe: Domain RTAI unregistered. [ 104.543853] RTAI[hal]: unmounted. viesturs@ubuntu:~/linuxcnc-dev$ > is this 2.5? Freshly (less than 2 hours ago) built from master. Still warm :)) Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
On Sat, 17 Mar 2012, Viesturs L?cis wrote: > Date: Sat, 17 Mar 2012 16:02:42 -0400 > From: "[UTF-8] Viesturs L?cis" > Reply-To: "Enhanced Machine Controller (EMC)" > > To: "Enhanced Machine Controller (EMC)" > Subject: Re: [Emc-users] Smart-serial and 7i43 > > 2012/3/17 Peter C. Wallace : >> >> I cannot see how any of those errors are eveny vaguely related to the >> bitfile > > I do understand that. The fact is that it works with this: > CONFIG="firmware=hm2/7i43/SVST4_4B.BIT num_encoders=3 num_pwmgens=3 > num_stepgens=0" > > It does not work with this: > CONFIG="firmware=hm2/7i43-4/BOSSV.BIT num_encoders=1 sserial_port_0=00" > > It even works with this: > CONFIG="firmware=hm2/7i43-4/SVST4_4.BIT num_encoders=3 sserial_port_0=00" > > (wrong firmware, but requested to load sserial module). > > I tried in the same INI file (hm2-servo sample config) - commented out > one, uncommented the other and vice versa. > > If it would be something wrong in HAL file, it would display > appropriate message - if particular pin did not exist etc. But the > error I receive is something totally out of anything I have ever seen. > > Could You, please, confirm, if the syntax for loading sserial module is > correct? Looks right, though it probably should have the right number of 0's or X's for the number of sserial channels the config contains what does dmesg say? is this 2.5? > > Viesturs > > -- > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/17 Peter C. Wallace : > > I cannot see how any of those errors are eveny vaguely related to the > bitfile I do understand that. The fact is that it works with this: CONFIG="firmware=hm2/7i43/SVST4_4B.BIT num_encoders=3 num_pwmgens=3 num_stepgens=0" It does not work with this: CONFIG="firmware=hm2/7i43-4/BOSSV.BIT num_encoders=1 sserial_port_0=00" It even works with this: CONFIG="firmware=hm2/7i43-4/SVST4_4.BIT num_encoders=3 sserial_port_0=00" (wrong firmware, but requested to load sserial module). I tried in the same INI file (hm2-servo sample config) - commented out one, uncommented the other and vice versa. If it would be something wrong in HAL file, it would display appropriate message - if particular pin did not exist etc. But the error I receive is something totally out of anything I have ever seen. Could You, please, confirm, if the syntax for loading sserial module is correct? Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
On Sat, 17 Mar 2012, Viesturs L?cis wrote: Date: Sat, 17 Mar 2012 15:21:33 -0400 From: "[UTF-8] Viesturs L?cis" Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Smart-serial and 7i43 Sorry, for the double-post, do not know, how did I do that... 2012. gada 17. marts 15:13 Viesturs L??cis rakst??ja: Anyway, I still get this in error message: Can not find -sec MOT -var MOT -num 1 Can not find -sec IO -var IO -num 1 Can not find -sec TASK -var TASK_LD_PRELOAD -num 1 Can not find -sec DISPLAY -var DISPLAY_LD_PRELOAD -num 1 Can not find -sec LINUXCNC -var NML_FILE -num 1 Can not find -sec EMC -var NML_FILE -num 1 13992 PID TTY STAT TIME COMMAND Stopping realtime threads Unloading hal components I tried sample configs, LinuxCNC starts up normally. Both hm2-servo and hm2-stepper. The conclusion - it does not like the BOSSV.BIT firmware, because it does not start with it, regardless, if I have sserial_port_0=00 in CONFIG line in INI file or no. I cannot see how any of those errors are eveny vaguely related to the bitfile Peter, can You provide me with a firmware for 7i43-400 card with smart-serial module and at least 1 encoder module? Viesturs I would pretty much guarantee that it will not help, you have non-bitfile related troubles (maybe your hal or .ini files) Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
Greetings > > And now what? > > I ran all these commands: > cd src > ./autogen.sh > ./configure > make > make install-menus > sudo make setuid > > They all completed successfully - I did not see any warning messages. > > But in Applications -> CNC I have 4 items - Getting started guide and > 3 manuals - Hal, Integrator's and User's manuals, their icons are > question marks and nothing happens, if I try to open HAL manual, > remaining 3 docs do appear. > > But I do not see a way to run the LinuxCNC. > No menu entries... > Also in terminal from home directory typing linuxcnc and hitting enter > returns error message that such a command is not found. > > Viesturs > Viesturs I think I can help with that one. cd to the directory where you did all your compilations e.g. emc2-dev or linuxcnc-dev $ . scripts/rip-environment $ linuxcnc First line after prompt isscripts etc John Prentice -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
Sorry, for the double-post, do not know, how did I do that... 2012. gada 17. marts 15:13 Viesturs Lācis rakstīja: > > Anyway, I still get this in error message: > Can not find -sec MOT -var MOT -num 1 > Can not find -sec IO -var IO -num 1 > Can not find -sec TASK -var TASK_LD_PRELOAD -num 1 > Can not find -sec DISPLAY -var DISPLAY_LD_PRELOAD -num 1 > Can not find -sec LINUXCNC -var NML_FILE -num 1 > Can not find -sec EMC -var NML_FILE -num 1 > 13992 > PID TTY STAT TIME COMMAND > Stopping realtime threads > Unloading hal components I tried sample configs, LinuxCNC starts up normally. Both hm2-servo and hm2-stepper. The conclusion - it does not like the BOSSV.BIT firmware, because it does not start with it, regardless, if I have sserial_port_0=00 in CONFIG line in INI file or no. Peter, can You provide me with a firmware for 7i43-400 card with smart-serial module and at least 1 encoder module? Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/17 Michał Geszkiewicz : > http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Installing_LinuxCNC#Running_emc2 > > running script is in ../scripts directory Thank You! It is working! That is for run-in-place, but I did not specify that. Did it automatically build with --run-in-place? If so, how can I build it "in a normal way" - as if it was installed from deb package? Anyway, I still get this in error message: Can not find -sec MOT -var MOT -num 1 Can not find -sec IO -var IO -num 1 Can not find -sec TASK -var TASK_LD_PRELOAD -num 1 Can not find -sec DISPLAY -var DISPLAY_LD_PRELOAD -num 1 Can not find -sec LINUXCNC -var NML_FILE -num 1 Can not find -sec EMC -var NML_FILE -num 1 13992 PID TTY STAT TIME COMMAND Stopping realtime threads Unloading hal components Does anybody know, what do these lines mean? Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/17 Michał Geszkiewicz : > http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Installing_LinuxCNC#Running_emc2 > > running script is in ../scripts directory Thank You! It is working! That is for run-in-place, but I did not specify that. Did it automatically build with --run-in-place? If so, how can I build it "in a normal way" - as if it was installed from deb package? Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Installing_LinuxCNC#Running_emc2 running script is in ../scripts directory W dniu 17.03.2012 19:51, Viesturs Lācis pisze: > 2012/3/17 Michał Geszkiewicz: >> If you execute 'git clean -x -d -f' in top of linuxcnc source directory, >> it will reset to state after clone > > Thanks, I will try to remember! > > And now what? > > I ran all these commands: > cd src > ./autogen.sh > ./configure > make > make install-menus > sudo make setuid > > They all completed successfully - I did not see any warning messages. > > But in Applications -> CNC I have 4 items - Getting started guide and > 3 manuals - Hal, Integrator's and User's manuals, their icons are > question marks and nothing happens, if I try to open HAL manual, > remaining 3 docs do appear. > > But I do not see a way to run the LinuxCNC. > No menu entries... > Also in terminal from home directory typing linuxcnc and hitting enter > returns error message that such a command is not found. > > Viesturs > > -- > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/17 Michał Geszkiewicz : > If you execute 'git clean -x -d -f' in top of linuxcnc source directory, > it will reset to state after clone Thanks, I will try to remember! And now what? I ran all these commands: cd src ./autogen.sh ./configure make make install-menus sudo make setuid They all completed successfully - I did not see any warning messages. But in Applications -> CNC I have 4 items - Getting started guide and 3 manuals - Hal, Integrator's and User's manuals, their icons are question marks and nothing happens, if I try to open HAL manual, remaining 3 docs do appear. But I do not see a way to run the LinuxCNC. No menu entries... Also in terminal from home directory typing linuxcnc and hitting enter returns error message that such a command is not found. Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
If you execute 'git clean -x -d -f' in top of linuxcnc source directory, it will reset to state after clone regards Michael W dniu 17.03.2012 19:13, Viesturs Lācis pisze: > 2012/3/17 Michał Geszkiewicz: >> Try use make without sudo > > Thanks, You are right, there is no sudo in wiki page. > I still get some errors, so I deleted the code, will download it again > and then retry. > > BTW a little off-topic: the command to clone the source from git is: > git clone git://git.linuxcnc.org/git/emc2.git [destination folder, I > put it in] linuxcnc-dev > > Shouldn't the renaming to LinuxCNC affect also the git? > > If I visit http://git.linuxcnc.org/gitweb, the first line still says EMC2... > > Viesturs > > -- > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/17 Michał Geszkiewicz : > Try use make without sudo Thanks, You are right, there is no sudo in wiki page. I still get some errors, so I deleted the code, will download it again and then retry. BTW a little off-topic: the command to clone the source from git is: git clone git://git.linuxcnc.org/git/emc2.git [destination folder, I put it in] linuxcnc-dev Shouldn't the renaming to LinuxCNC affect also the git? If I visit http://git.linuxcnc.org/gitweb, the first line still says EMC2... Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
Try use make without sudo W dniu 17.03.2012 18:33, Viesturs Lācis pisze: > 2012/3/17 Michał Geszkiewicz: >> >> sudo apt-get install libboost-python-dev > > Thanks, that worked! > > ./configure completed successfully > > sudo make completedsuccessfully > > sudo make setuid terminates with error: > > viesturs@ubuntu:~/linuxcnc-dev/src$ sudo make setuid > make: Entering directory `/home/viesturs/linuxcnc-dev/src' > chown root ../bin/linuxcnc_module_helper > chown: cannot access `../bin/linuxcnc_module_helper': No such file or > directory > make: *** [setuid] Error 1 > make: Leaving directory `/home/viesturs/linuxcnc-dev/src' > viesturs@ubuntu:~/linuxcnc-dev/src$ > > > What could cause that? > > Viesturs > > -- > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > > -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/17 Michał Geszkiewicz : > > sudo apt-get install libboost-python-dev Thanks, that worked! ./configure completed successfully sudo make completedsuccessfully sudo make setuid terminates with error: viesturs@ubuntu:~/linuxcnc-dev/src$ sudo make setuid make: Entering directory `/home/viesturs/linuxcnc-dev/src' chown root ../bin/linuxcnc_module_helper chown: cannot access `../bin/linuxcnc_module_helper': No such file or directory make: *** [setuid] Error 1 make: Leaving directory `/home/viesturs/linuxcnc-dev/src' viesturs@ubuntu:~/linuxcnc-dev/src$ What could cause that? Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/17 Mark Wendt (Contractor) : > > You're missing at least the Boost.Python libraries for C++ (gcc). Dunno > what else you're missing since I don't know what you have on your > machine. ;-) I just want to test one 8i20 servo drive, no real machine to control. Where can I find, which exactly version of gcc and if there are any other packages as well (gcc dependencies, for example)? Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
Try sudo apt-get install libboost-python-dev regards Michael W dniu 17.03.2012 17:52, Viesturs Lācis pisze: > 2012/3/17 Viesturs Lācis: > configure: error: boost::python is required to build LinuxCNC > -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
On 3/17/2012 12:52 PM, Viesturs Lācis wrote: > 2012/3/17 Viesturs Lācis: > >> I will report back about my success. >> > So I uninstalled the buildbot version, got the source code and in > terminal executed: > > sudo apt-get build-dep emc2 > ./autogen.sh > ./configure > > The ./configure script terminates with this error message (I copied > all the lines from the first mention of python): > ... > checking for Python support... yes > checking python version... OK > checking version of python libraries... python2.6 > checking match between tk and Tkinter versions... 8.5 > checking location of Python header files... /usr/include/python2.6 > checking for Python headers... -I/usr/include/python2.6 > checking for Python libraries... -lpthread -ldl -lutil > checking whether the Boost::Python headers are available... no > configure: error: boost::python is required to build LinuxCNC > > What else am I missing? > > Viesturs > You're missing at least the Boost.Python libraries for C++ (gcc). Dunno what else you're missing since I don't know what you have on your machine. ;-) Mark -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/17 Viesturs Lācis : > > I will report back about my success. So I uninstalled the buildbot version, got the source code and in terminal executed: sudo apt-get build-dep emc2 ./autogen.sh ./configure The ./configure script terminates with this error message (I copied all the lines from the first mention of python): ... checking for Python support... yes checking python version... OK checking version of python libraries... python2.6 checking match between tk and Tkinter versions... 8.5 checking location of Python header files... /usr/include/python2.6 checking for Python headers... -I/usr/include/python2.6 checking for Python libraries... -lpthread -ldl -lutil checking whether the Boost::Python headers are available... no configure: error: boost::python is required to build LinuxCNC What else am I missing? Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/17 Peter C. Wallace : > On Sat, 17 Mar 2012, Viesturs L?cis wrote: >> >> Peter, what am I supposed to have on PC for smart-serial module to work? >> The only thing I know of is inuxCNC 2.5.something. Is there anything else? > > Thats it > Then I have only the buildbot version to blame. That does not sound encouraging, because it will take another 2 hours :( with my connection to get all the build-deps, so that I myself can build LinuxCNC from master. I will report back about my success. Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
On Sat, 17 Mar 2012, Viesturs L?cis wrote: > Date: Sat, 17 Mar 2012 11:24:34 -0400 > From: "[UTF-8] Viesturs L?cis" > Reply-To: "Enhanced Machine Controller (EMC)" > > To: "Enhanced Machine Controller (EMC)" > Subject: Re: [Emc-users] Smart-serial and 7i43 > > 2012/3/17 Peter C. Wallace : >> >> No idea but hm2 has not changed and NML is a totally different area of >> LinuxCNC (isnt there some bug where you have to delete some nml file when >> upgrading LinuxCNC?) > > AFAIK that was, when upgraded from 2.3.x to 2.4.x > > Peter, what am I supposed to have on PC for smart-serial module to work? > The only thing I know of is inuxCNC 2.5.something. Is there anything else? Thats it > > Viesturs > > -- > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/17 Peter C. Wallace : > > No idea but hm2 has not changed and NML is a totally different area of > LinuxCNC (isnt there some bug where you have to delete some nml file when > upgrading LinuxCNC?) AFAIK that was, when upgraded from 2.3.x to 2.4.x Peter, what am I supposed to have on PC for smart-serial module to work? The only thing I know of is inuxCNC 2.5.something. Is there anything else? Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
On Sat, 17 Mar 2012, Viesturs L?cis wrote: Date: Sat, 17 Mar 2012 11:11:21 -0400 From: "[UTF-8] Viesturs L?cis" Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Smart-serial and 7i43 2012/3/17 Peter C. Wallace : No I think its some other version issue (nml has nothin to do with hm2) Ok, what else could it be? Last weak I downloaded the latest-at-that-moment buildbot version. Viesturs No idea but hm2 has not changed and NML is a totally different area of LinuxCNC (isnt there some bug where you have to delete some nml file when upgrading LinuxCNC?) -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
2012/3/17 Peter C. Wallace : > > > No I think its some other version issue (nml has nothin to do with hm2) Ok, what else could it be? Last weak I downloaded the latest-at-that-moment buildbot version. Viesturs -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
On Sat, 17 Mar 2012, Viesturs L?cis wrote: > Date: Sat, 17 Mar 2012 10:55:23 -0400 > From: "[UTF-8] Viesturs L?cis" > Reply-To: "Enhanced Machine Controller (EMC)" > > To: "Enhanced Machine Controller (EMC)" > Subject: Re: [Emc-users] Smart-serial and 7i43 > > 2012/3/10 Peter C. Wallace : >> >> Looks like at least 2 problems, one is that the firmware and driver are >> different versions (that firmware is fairly ancient) and the second problame >> is that the config line syntax has changed (this should be fixable with man >> hostmot2) > > John Murphy sent me a firmware file that is working for him and in INI > file the CONFIG line is this: > CONFIG="firmware=hm2/7i43-4/BOSSV.BIT num_encoders=1 sserial_port_0=00" > > What am I missing as I get this error at LinuxCNC startup? > The fact that it complains about not being able to find nml_file makes > me think that something needs to be updated, but what exactly? > Could it be that Hostmot2 driver in LinuxCNC is outdated? No I think its some other version issue (nml has nothin to do with hm2) > > Viesturs > > > Here is complete error message: > > Print file information: > RUN_IN_PLACE=no > LINUXCNC_DIR= > LINUXCNC_BIN_DIR=/usr/bin > LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc > LINUXCNC_SCRIPT_DIR= > LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc > LINUXCNC_CONFIG_DIR= > LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs > INIVAR=inivar > HALCMD=halcmd > LINUXCNC_EMCSH=/usr/bin/wish8.5 > LINUXCNC - 2.5.0-pre2-916-g280b0ea > Machine configuration directory is '/home/viesturs/linuxcnc/configs/hm2-servo' > Machine configuration file is '7i43-big.ini' > INIFILE=/home/viesturs/linuxcnc/configs/hm2-servo/7i43-big.ini > PARAMETER_FILE=hm2-servo.var > TASK=milltask > HALUI= > DISPLAY=axis > Starting LinuxCNC... > Starting LinuxCNC server program: linuxcncsvr > Loading Real Time OS, RTAPI, and HAL_LIB modules > Starting LinuxCNC IO program: io > Shutting down and cleaning up LinuxCNC... > Killing task linuxcncsvr, PID=2440 > Removing HAL_LIB, RTAPI, and Real Time OS modules > Removing NML shared memory segments > Cleanup done > > Debug file information: > Can not find -sec MOT -var MOT -num 1 > Can not find -sec IO -var IO -num 1 > Can not find -sec LINUXCNC -var NML_FILE -num 1 > Can not find -sec EMC -var NML_FILE -num 1 > insmod: error inserting > '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hm2_7i43.ko': -1 > Invalid parameters > hm2-servo.hal:46: exit value: 1 > hm2-servo.hal:46: insmod failed, returned -1 > See the output of 'dmesg' for more information. > 2440 > PID TTY STAT TIME COMMAND > Stopping realtime threads > Unloading hal components > > Kernel message information: > [ 595.108459] I-pipe: Domain RTAI registered. > [ 595.108470] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03. > [ 595.108473] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu > 4.4.3-4ubuntu5) . > [ 595.108479] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE > (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0). > [ 595.108481] PIPELINE layers: > [ 595.108485] fbc53e20 9ac15d93 RTAI 200 > [ 595.108488] c085cb20 0 Linux 100 > [ 595.136200] RTAI[malloc]: global heap size = 2097152 bytes, . > [ 595.136404] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: RTAI OWN KTASKs>, kstacks pool size = 524288 bytes. > [ 595.136409] RTAI[sched]: hard timer type/freq = APIC/12557105(Hz); > default timing: periodic; linear timed lists. > [ 595.136413] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq > = 1808451000 hz. > [ 595.136416] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns. > [ 595.136550] RTAI[usi]: enabled. > [ 595.238850] RTAI[math]: loaded. > [ 595.341395] hm2: loading Mesa HostMot2 driver version 0.15 > [ 595.350735] hm2_7i43: loading HostMot2 Mesa 7i43 driver version 0.3 > [ 595.354947] hm2_7i43.0: firmware: requesting hm2/7i43-4/BOSSV.BIT > [ 595.830428] hm2/hm2_7i43.0: inconsistent Module Descriptor for > Smart Serial Interface, not loading driver > [ 595.830437] hm2/hm2_7i43.0: Version = 0, expected 0 > [ 595.830442] hm2/hm2_7i43.0: NumRegisters = 5, expected 6 > [ 595.830447] hm2/hm2_7i43.0: InstanceStride = 0x0004, > expected 0x0040 > [ 595.830451] hm2/hm2_7i43.0: MultipleRegisters = 0x001F, > expected 0x003C > [ 595.830456] hm2/hm2_7i43.0: inconsistent Module Descriptor! > [ 595.830460] hm2/hm2_7i43.0: failed to parse Module Descriptor 5 > [ 595.830471] hm2_7i43.0: board
Re: [Emc-users] Smart-serial and 7i43
2012/3/10 Peter C. Wallace : > > Looks like at least 2 problems, one is that the firmware and driver are > different versions (that firmware is fairly ancient) and the second problame > is that the config line syntax has changed (this should be fixable with man > hostmot2) John Murphy sent me a firmware file that is working for him and in INI file the CONFIG line is this: CONFIG="firmware=hm2/7i43-4/BOSSV.BIT num_encoders=1 sserial_port_0=00" What am I missing as I get this error at LinuxCNC startup? The fact that it complains about not being able to find nml_file makes me think that something needs to be updated, but what exactly? Could it be that Hostmot2 driver in LinuxCNC is outdated? Viesturs Here is complete error message: Print file information: RUN_IN_PLACE=no LINUXCNC_DIR= LINUXCNC_BIN_DIR=/usr/bin LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc LINUXCNC_SCRIPT_DIR= LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc LINUXCNC_CONFIG_DIR= LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs INIVAR=inivar HALCMD=halcmd LINUXCNC_EMCSH=/usr/bin/wish8.5 LINUXCNC - 2.5.0-pre2-916-g280b0ea Machine configuration directory is '/home/viesturs/linuxcnc/configs/hm2-servo' Machine configuration file is '7i43-big.ini' INIFILE=/home/viesturs/linuxcnc/configs/hm2-servo/7i43-big.ini PARAMETER_FILE=hm2-servo.var TASK=milltask HALUI= DISPLAY=axis Starting LinuxCNC... Starting LinuxCNC server program: linuxcncsvr Loading Real Time OS, RTAPI, and HAL_LIB modules Starting LinuxCNC IO program: io Shutting down and cleaning up LinuxCNC... Killing task linuxcncsvr, PID=2440 Removing HAL_LIB, RTAPI, and Real Time OS modules Removing NML shared memory segments Cleanup done Debug file information: Can not find -sec MOT -var MOT -num 1 Can not find -sec IO -var IO -num 1 Can not find -sec LINUXCNC -var NML_FILE -num 1 Can not find -sec EMC -var NML_FILE -num 1 insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hm2_7i43.ko': -1 Invalid parameters hm2-servo.hal:46: exit value: 1 hm2-servo.hal:46: insmod failed, returned -1 See the output of 'dmesg' for more information. 2440 PID TTY STAT TIME COMMAND Stopping realtime threads Unloading hal components Kernel message information: [ 595.108459] I-pipe: Domain RTAI registered. [ 595.108470] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03. [ 595.108473] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) . [ 595.108479] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0). [ 595.108481] PIPELINE layers: [ 595.108485] fbc53e20 9ac15d93 RTAI 200 [ 595.108488] c085cb20 0 Linux 100 [ 595.136200] RTAI[malloc]: global heap size = 2097152 bytes, . [ 595.136404] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: , kstacks pool size = 524288 bytes. [ 595.136409] RTAI[sched]: hard timer type/freq = APIC/12557105(Hz); default timing: periodic; linear timed lists. [ 595.136413] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1808451000 hz. [ 595.136416] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns. [ 595.136550] RTAI[usi]: enabled. [ 595.238850] RTAI[math]: loaded. [ 595.341395] hm2: loading Mesa HostMot2 driver version 0.15 [ 595.350735] hm2_7i43: loading HostMot2 Mesa 7i43 driver version 0.3 [ 595.354947] hm2_7i43.0: firmware: requesting hm2/7i43-4/BOSSV.BIT [ 595.830428] hm2/hm2_7i43.0: inconsistent Module Descriptor for Smart Serial Interface, not loading driver [ 595.830437] hm2/hm2_7i43.0: Version = 0, expected 0 [ 595.830442] hm2/hm2_7i43.0: NumRegisters = 5, expected 6 [ 595.830447] hm2/hm2_7i43.0: InstanceStride = 0x0004, expected 0x0040 [ 595.830451] hm2/hm2_7i43.0: MultipleRegisters = 0x001F, expected 0x003C [ 595.830456] hm2/hm2_7i43.0: inconsistent Module Descriptor! [ 595.830460] hm2/hm2_7i43.0: failed to parse Module Descriptor 5 [ 595.830471] hm2_7i43.0: board at (ioaddr=0x0378, ioaddr_hi=0x0778, epp_wide ON) not found! [ 596.325306] hm2: unloading [ 596.382915] RTAI[math]: unloaded. [ 596.449225] SCHED releases registered named ALIEN RTGLBH [ 596.464583] RTAI[malloc]: unloaded. [ 596.564043] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0). [ 596.573316] I-pipe: Domain RTAI unregistered. [ 596.573329] RTAI[hal]: unmounted. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
On Sat, 10 Mar 2012, Viesturs L?cis wrote: > Date: Sat, 10 Mar 2012 04:30:11 -0500 > From: "[UTF-8] Viesturs L?cis" > Reply-To: "Enhanced Machine Controller (EMC)" > > To: "Enhanced Machine Controller (EMC)" > Subject: [Emc-users] Smart-serial and 7i43 > > Hello, gentlemen! > > I am trying to test the performance of 8i20 drive with my servo motors. > I have 7i43 card, latest buildbot version 2.5.0-pre-2-916 and a > firmware file, kindly provided by Andy Pugh. > > In INI file I have: > CONFIG="firmware=hm2/7i43-4/SVSS4_8_48.BIT num_encoders=1 > num_sserial=1 num_stepgens=0" > > I receive error message, in which I find this phrase: "hm2_7i43.0: > invalid token in config string num_sserial=1" > I tried also num_serial=1... > > If I remove that num_sserial=1, I get this one: > > Print file information: > ... > [ 1236.560275] hm2: loading Mesa HostMot2 driver version 0.15 > [ 1236.565882] hm2_7i43: loading HostMot2 Mesa 7i43 driver version 0.3 > [ 1236.567932] hm2_7i43.0: firmware: requesting hm2/7i43-4/SVSS4_8_48.BIT > [ 1237.015322] hm2/hm2_7i43.0: inconsistent Module Descriptor for > Smart Serial Interface, not loading driver > [ 1237.015332] hm2/hm2_7i43.0: Version = 0, expected 0 > [ 1237.015336] hm2/hm2_7i43.0: NumRegisters = 5, expected 6 > [ 1237.015343] hm2/hm2_7i43.0: InstanceStride = 0x0004, > expected 0x0040 > [ 1237.015347] hm2/hm2_7i43.0: MultipleRegisters = 0x001F, > expected 0x003C > [ 1237.015352] hm2/hm2_7i43.0: inconsistent Module Descriptor! > [ 1237.015356] hm2/hm2_7i43.0: failed to parse Module Descriptor 4 > [ 1237.015366] hm2_7i43.0: board at (ioaddr=0x0378, ioaddr_hi=0x0778, > epp_wide ON) not found! > [ 1237.327107] hm2: unloading > [ 1237.386640] RTAI[math]: unloaded. > [ 1237.447317] SCHED releases registered named ALIEN RTGLBH > [ 1237.461017] RTAI[malloc]: unloaded. > [ 1237.560031] RTAI[sched]: unloaded (forced hard/soft/hard > transitions: traps 0, syscalls 0). > [ 1237.563922] I-pipe: Domain RTAI unregistered. > [ 1237.563934] RTAI[hal]: unmounted. > > > How am I supposed to load smart serial module? > Thanks! > > Viesturs > Looks like at least 2 problems, one is that the firmware and driver are different versions (that firmware is fairly ancient) and the second problame is that the config line syntax has changed (this should be fixable with man hostmot2) > P.S. LinuxCNC starts up correctly with a hm2-servo 7i43-big sample > config, so the card is ok. > > -- > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Smart-serial and 7i43
Check with mr Wallace, I believe the smart serial firmware in git needs a couple patches. He got me setup last week. On Saturday, March 10, 2012, Viesturs Lācis wrote: > Hello, gentlemen! > > I am trying to test the performance of 8i20 drive with my servo motors. > I have 7i43 card, latest buildbot version 2.5.0-pre-2-916 and a > firmware file, kindly provided by Andy Pugh. > > In INI file I have: > CONFIG="firmware=hm2/7i43-4/SVSS4_8_48.BIT num_encoders=1 > num_sserial=1 num_stepgens=0" > > I receive error message, in which I find this phrase: "hm2_7i43.0: > invalid token in config string num_sserial=1" > I tried also num_serial=1... > > If I remove that num_sserial=1, I get this one: > > Print file information: > ... > [ 1236.560275] hm2: loading Mesa HostMot2 driver version 0.15 > [ 1236.565882] hm2_7i43: loading HostMot2 Mesa 7i43 driver version 0.3 > [ 1236.567932] hm2_7i43.0: firmware: requesting hm2/7i43-4/SVSS4_8_48.BIT > [ 1237.015322] hm2/hm2_7i43.0: inconsistent Module Descriptor for > Smart Serial Interface, not loading driver > [ 1237.015332] hm2/hm2_7i43.0: Version = 0, expected 0 > [ 1237.015336] hm2/hm2_7i43.0: NumRegisters = 5, expected 6 > [ 1237.015343] hm2/hm2_7i43.0: InstanceStride = 0x0004, > expected 0x0040 > [ 1237.015347] hm2/hm2_7i43.0: MultipleRegisters = 0x001F, > expected 0x003C > [ 1237.015352] hm2/hm2_7i43.0: inconsistent Module Descriptor! > [ 1237.015356] hm2/hm2_7i43.0: failed to parse Module Descriptor 4 > [ 1237.015366] hm2_7i43.0: board at (ioaddr=0x0378, ioaddr_hi=0x0778, > epp_wide ON) not found! > [ 1237.327107] hm2: unloading > [ 1237.386640] RTAI[math]: unloaded. > [ 1237.447317] SCHED releases registered named ALIEN RTGLBH > [ 1237.461017] RTAI[malloc]: unloaded. > [ 1237.560031] RTAI[sched]: unloaded (forced hard/soft/hard > transitions: traps 0, syscalls 0). > [ 1237.563922] I-pipe: Domain RTAI unregistered. > [ 1237.563934] RTAI[hal]: unmounted. > > > How am I supposed to load smart serial module? > Thanks! > > Viesturs > > P.S. LinuxCNC starts up correctly with a hm2-servo 7i43-big sample > config, so the card is ok. > > -- > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users