[Emc-users] Hostmot2 configuration - was Stepper Configuration
Hi all, I am getting following errors on my axes testing the hostmot2 driver in a 2 axis stepper configuration, and am trying to determine if it is a problem in the configuration, or a problem with the hostmot2 driver. The hostmot2 configuration is specified as: loadrt hostmot2 debug_idrom=1 debug_module_descriptors=1 debug_pin_descriptors=1 debug_modules=1 loadrt hm2_5i20 config=firmware=hm2/5i20/SVST8_4.BIT num_stepgens=2 num_pwmgens=1 num_encoders=0 I have the position command connect to axis 0 and 1 as: net Xpos-cmd axis.0.motor-pos-cmd = hm2_5i20.0.stepgen.00.position-cmd net Ypos-cmd axis.1.motor-pos-cmd = hm2_5i20.0.stepgen.01.position-cmd Position feedback as: net Xpos-fb hm2_5i20.0.stepgen.00.position-fb = axis.0.motor-pos-fb net Ypos-fb hm2_5i20.0.stepgen.01.position-fb = axis.1.motor-pos-fb The scaling set as (and shows as 1280 for the respective pins): # set stepgen module scaling - get values from ini file setp hm2_5i20.0.stepgen.00.position-scale [AXIS_0]SCALE setp hm2_5i20.0.stepgen.01.position-scale [AXIS_1]SCALE And stepgen parameters as: setp hm2_5i20.0.stepgen.00.dirsetup0.002 setp hm2_5i20.0.stepgen.00.dirhold 0.002 setp hm2_5i20.0.stepgen.00.steplen 0.40 setp hm2_5i20.0.stepgen.00.stepspace 0.40 setp hm2_5i20.0.stepgen.01.dirsetup0.002 setp hm2_5i20.0.stepgen.01.dirhold 0.002 setp hm2_5i20.0.stepgen.01.steplen 0.40 setp hm2_5i20.0.stepgen.01.stepspace 0.40 I don't see and enable for either stepgen or axis, but all stepgen and axis pins related to position remain at zero when I try to move an axis, and get following errors on that axis. Is there still something which needs to be enabled to get these axes to work? What else do I need to check? Thanks, Eric - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
Eric H. Johnson wrote: Hi all, I am getting following errors on my axes testing the hostmot2 driver in a 2 axis stepper configuration, and am trying to determine if it is a problem in the configuration, or a problem with the hostmot2 driver. Didn't you see Sebastian Kuzminsky's response to your message? He wrote (a few hours ago): Yes, I can reproduce this here - stepgen doesnt work on the 5i20. Sorry guys... How embarassing. :-( (additional info snipped - go read his message) Peter Wallace responded to that, and both of them are working on a fix. Regards, John Kasunich - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
John, Hmm, I am not showing them (Sebastian's post or Peter's reply). The last post I see from Sebastian was at 1:10 AM EST. I also don't see them in the deleted items tagged as spam, which happens occasionally too. Thanks for the information. Thanks, Eric Didn't you see Sebastian Kuzminsky's response to your message? He wrote (a few hours ago): Yes, I can reproduce this here - stepgen doesnt work on the 5i20. Sorry guys... How embarassing. :-( (additional info snipped - go read his message) Peter Wallace responded to that, and both of them are working on a fix. Regards, John Kasunich - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
John, It must have been filtered out upstream. All of my stuff is registered through GoDaddy so I guess I need to check my spam filter settings and make sure posts from this list are on the white list. Regards, Eric Hmm, I am not showing them (Sebastian's post or Peter's reply). The last post I see from Sebastian was at 1:10 AM EST. I also don't see them in the deleted items tagged as spam, which happens occasionally too. Thanks for the information. Thanks, Eric Didn't you see Sebastian Kuzminsky's response to your message? He wrote (a few hours ago): Yes, I can reproduce this here - stepgen doesnt work on the 5i20. Sorry guys... How embarassing. :-( (additional info snipped - go read his message) Peter Wallace responded to that, and both of them are working on a fix. Regards, John Kasunich - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
Eric H. Johnson wrote: It must have been filtered out upstream. All of my stuff is registered through GoDaddy so I guess I need to check my spam filter settings and make sure posts from this list are on the white list. I guess GoDaddy thinks I'm a virus or spam, I just tried sending an email to Eric directly and it bounced: This is an automatically generated Delivery Status Notification. Delivery to the following recipients failed permanently: * [EMAIL PROTECTED] Reporting-MTA: dns; QMTA07.emeryville.ca.mail.comcast.net [76.96.30.64] Received-From-MTA: dns; OMTA13.emeryville.ca.mail.comcast.net [76.96.30.52] Arrival-Date: Thu, 14 Aug 2008 15:22:50 + Final-recipient: rfc822; [EMAIL PROTECTED] Action: failed Status: 5.1.1 Diagnostic-Code: smtp; 554 The message was rejected because it contains prohibited virus or spam content Last-attempt-Date: Thu, 14 Aug 2008 15:22:50 + -- Sebastian Kuzminsky Cryogenic travel has improved since then... I woke screaming in a translucent box. “There, there,” said the box. “Everything will be all right. Have some coffee.” -- Ken Macleod, Who's afraid of Wolf 359 http://outofthiseos.typepad.com/blog/files/KenMacleodWhosAfraidofWolf359.htm - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
Sebastian, That is interesting. I just checked my settings. The spam setting is set to allow everything through, but to tag what it thinks is spam. I already added sourceforge.net to the white list. I don't see how to get your email address from the posts, but I can try added yours to the white list as well. I have a system all wired up, so if you need anything tested on the 5i20, please send it my way. Regards, Eric I guess GoDaddy thinks I'm a virus or spam, I just tried sending an email to Eric directly and it bounced: - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
Eric H. Johnson wrote: Sebastian, That is interesting. I just checked my settings. The spam setting is set to allow everything through, but to tag what it thinks is spam. I already added sourceforge.net to the white list. I don't see how to get your email address from the posts, but I can try added yours to the white list as well. I have a system all wired up, so if you need anything tested on the 5i20, please send it my way. Regards, Eric I guess GoDaddy thinks I'm a virus or spam, I just tried sending an email to Eric directly and it bounced: Hi Eric, please try this branch: http://highlab.com/~seb/bzr/emc2/5i20-stepgen-fix You can fetch it with http or bzr. If you have a CVS tree checked out, you can just grab src/hal/drivers/mesa-hostmot2/stepgen.c. It should work on both TRUNK and the 2.2 branch. -- Sebastian Kuzminsky Cryogenic travel has improved since then... I woke screaming in a translucent box. “There, there,” said the box. “Everything will be all right. Have some coffee.” -- Ken Macleod, Who's afraid of Wolf 359 http://outofthiseos.typepad.com/blog/files/KenMacleodWhosAfraidofWolf359.htm - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
Sebastian, One more quick question. When you say the pinout is written to the system log, which log is that? I don't see it through dmesg or by setting debug to the maximum value. Regards, Eric - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
Eric H. Johnson wrote: One more quick question. When you say the pinout is written to the system log, which log is that? I don't see it through dmesg or by setting debug to the maximum value. On my Ubuntu Gutsy computers it shows up in dmesg and /var/log/syslog. You shouldnt need to enable any debugging in rtai or hostmot2. Please send me your /var/log/syslog and the output of dmesg. -- Sebastian Kuzminsky Computer Science for life, that's my direction Instead of b-balls, my homies throw exceptions -- MC Plus+ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
Sebastian Kuzminsky wrote: Eric H. Johnson wrote: One more quick question. When you say the pinout is written to the system log, which log is that? I don't see it through dmesg or by setting debug to the maximum value. On my Ubuntu Gutsy computers it shows up in dmesg and /var/log/syslog. You shouldnt need to enable any debugging in rtai or hostmot2. Please send me your /var/log/syslog and the output of dmesg. (Eric sent me the files off-list and I replied, but i haven't heard back so i dont know if the spamfilter ate it again...) Eric, I dont see any hostmot2 messages at all in the logs you sent me... Your syslog starts at 9:53 this morning, did you try to load hostmot2 and hm2_5i20 since then? -- Sebastian Kuzminsky Computer Science for life, that's my direction Instead of b-balls, my homies throw exceptions -- MC Plus+ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
Sebastian, I replied off list because the log files were too large for this list. At any rate, I captured the dmesg log by running dmesg dmesg.txt Right after running EMC. The syslog file looks like everything since I first booted the system this morning. The last entry is at 13:10 (1:10 PM). Regards, Eric (Eric sent me the files off-list and I replied, but i haven't heard back so i dont know if the spamfilter ate it again...) Eric, I dont see any hostmot2 messages at all in the logs you sent me... Your syslog starts at 9:53 this morning, did you try to load hostmot2 and hm2_5i20 since then? - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
Eric H. Johnson wrote: I replied off list because the log files were too large for this list. Good call. At any rate, I captured the dmesg log by running dmesg dmesg.txt Right after running EMC. The syslog file looks like everything since I first booted the system this morning. The last entry is at 13:10 (1:10 PM). Hm, and the hostmot2 pins functions stuff were all available in EMC when you ran it? There really should have been something in the logs. Or wait, is RTAPI_MSG_INFO disabled by default? Most of my messages are at that level, because the next higher level is WARNING, and they're not warnings Try this: run echo 4 | sudo dd of=/proc/rtapi/debug after realtime start but before loading the hostmot2 driver. Then run dmesg again and send it to me (not to the list). Thanks! -- Sebastian Kuzminsky Computer Science for life, that's my direction Instead of b-balls, my homies throw exceptions -- MC Plus+ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
Sebastian, I will send it to you in a couple of hours. I have another commitment for the next hour or two. Regards, Eric Hm, and the hostmot2 pins functions stuff were all available in EMC when you ran it? There really should have been something in the logs. Or wait, is RTAPI_MSG_INFO disabled by default? Most of my messages are at that level, because the next higher level is WARNING, and they're not warnings Try this: run echo 4 | sudo dd of=/proc/rtapi/debug after realtime start but before loading the hostmot2 driver. Then run dmesg again and send it to me (not to the list). - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
(Copying this to the emc-users list.) Eric H. Johnson wrote: I was wondering if that was what you meant. Here is the dmesg log following the loading of hostmot2 and hm_5i20. Once I load hm_5i20 I can see the pins. That's more like it :-) Now that the driver's loaded, it can tell us what its pinout is. (This should show up even without setting /proc/rtapi/debug.) Here's the relevant bits from the dmesg2.txt file you sent me: [ 2485.811368] hm2/hm2_5i20.0: 72 I/O Pins used: [ 2485.811374] hm2/hm2_5i20.0: I/O Pin P2.000: IOPort [ 2485.811381] hm2/hm2_5i20.0: I/O Pin P2.001: IOPort [ 2485.811387] hm2/hm2_5i20.0: I/O Pin P2.002: IOPort [ 2485.811393] hm2/hm2_5i20.0: I/O Pin P2.003: IOPort [ 2485.811399] hm2/hm2_5i20.0: I/O Pin P2.004: IOPort [ 2485.811405] hm2/hm2_5i20.0: I/O Pin P2.005: IOPort [ 2485.811411] hm2/hm2_5i20.0: I/O Pin P2.006: IOPort [ 2485.811420] hm2/hm2_5i20.0: I/O Pin P2.007: PWMGen #0, pin Out0 (PWM or Up) (Output) [ 2485.811427] hm2/hm2_5i20.0: I/O Pin P2.008: IOPort [ 2485.811435] hm2/hm2_5i20.0: I/O Pin P2.009: PWMGen #0, pin Out1 (Dir or Down) (Output) [ 2485.811442] hm2/hm2_5i20.0: I/O Pin P2.010: IOPort [ 2485.811450] hm2/hm2_5i20.0: I/O Pin P2.011: PWMGen #0, pin Not-Enable (Output) [ 2485.811457] hm2/hm2_5i20.0: I/O Pin P2.012: IOPort [ 2485.811464] hm2/hm2_5i20.0: I/O Pin P2.013: IOPort [ 2485.811470] hm2/hm2_5i20.0: I/O Pin P2.014: IOPort [ 2485.811476] hm2/hm2_5i20.0: I/O Pin P2.015: IOPort [ 2485.811482] hm2/hm2_5i20.0: I/O Pin P2.016: IOPort [ 2485.811488] hm2/hm2_5i20.0: I/O Pin P2.017: IOPort [ 2485.811495] hm2/hm2_5i20.0: I/O Pin P2.018: IOPort [ 2485.811501] hm2/hm2_5i20.0: I/O Pin P2.019: IOPort [ 2485.811507] hm2/hm2_5i20.0: I/O Pin P2.020: IOPort [ 2485.811513] hm2/hm2_5i20.0: I/O Pin P2.021: IOPort [ 2485.811519] hm2/hm2_5i20.0: I/O Pin P2.022: IOPort [ 2485.811526] hm2/hm2_5i20.0: I/O Pin P2.023: IOPort [ 2485.811532] hm2/hm2_5i20.0: I/O Pin P3.024: IOPort [ 2485.811538] hm2/hm2_5i20.0: I/O Pin P3.025: IOPort [ 2485.811544] hm2/hm2_5i20.0: I/O Pin P3.026: IOPort [ 2485.811550] hm2/hm2_5i20.0: I/O Pin P3.027: IOPort [ 2485.811557] hm2/hm2_5i20.0: I/O Pin P3.028: IOPort [ 2485.811563] hm2/hm2_5i20.0: I/O Pin P3.029: IOPort [ 2485.811569] hm2/hm2_5i20.0: I/O Pin P3.030: IOPort [ 2485.811575] hm2/hm2_5i20.0: I/O Pin P3.031: IOPort [ 2485.811581] hm2/hm2_5i20.0: I/O Pin P3.032: IOPort [ 2485.811588] hm2/hm2_5i20.0: I/O Pin P3.033: IOPort [ 2485.811594] hm2/hm2_5i20.0: I/O Pin P3.034: IOPort [ 2485.811600] hm2/hm2_5i20.0: I/O Pin P3.035: IOPort [ 2485.811606] hm2/hm2_5i20.0: I/O Pin P3.036: IOPort [ 2485.811612] hm2/hm2_5i20.0: I/O Pin P3.037: IOPort [ 2485.811619] hm2/hm2_5i20.0: I/O Pin P3.038: IOPort [ 2485.811625] hm2/hm2_5i20.0: I/O Pin P3.039: IOPort [ 2485.811631] hm2/hm2_5i20.0: I/O Pin P3.040: IOPort [ 2485.811637] hm2/hm2_5i20.0: I/O Pin P3.041: IOPort [ 2485.811643] hm2/hm2_5i20.0: I/O Pin P3.042: IOPort [ 2485.811654] hm2/hm2_5i20.0: I/O Pin P3.043: IOPort [ 2485.811660] hm2/hm2_5i20.0: I/O Pin P3.044: IOPort [ 2485.811667] hm2/hm2_5i20.0: I/O Pin P3.045: IOPort [ 2485.811673] hm2/hm2_5i20.0: I/O Pin P3.046: IOPort [ 2485.811679] hm2/hm2_5i20.0: I/O Pin P3.047: IOPort [ 2485.811686] hm2/hm2_5i20.0: I/O Pin P4.048: StepGen #0, pin Step (Output) [ 2485.811695] hm2/hm2_5i20.0: I/O Pin P4.049: StepGen #0, pin Direction (Output) [ 2485.811704] hm2/hm2_5i20.0: I/O Pin P4.050: StepGen #0, pin (unused) (Output) [ 2485.811712] hm2/hm2_5i20.0: I/O Pin P4.051: StepGen #0, pin (unused) (Output) [ 2485.811721] hm2/hm2_5i20.0: I/O Pin P4.052: StepGen #0, pin (unused) (Output) [ 2485.811729] hm2/hm2_5i20.0: I/O Pin P4.053: StepGen #0, pin (unused) (Output) [ 2485.811738] hm2/hm2_5i20.0: I/O Pin P4.054: StepGen #1, pin Step (Output) [ 2485.811746] hm2/hm2_5i20.0: I/O Pin P4.055: StepGen #1, pin Direction (Output) [ 2485.811755] hm2/hm2_5i20.0: I/O Pin P4.056: StepGen #1, pin (unused) (Output) [ 2485.811763] hm2/hm2_5i20.0: I/O Pin P4.057: StepGen #1, pin (unused) (Output) [ 2485.811772] hm2/hm2_5i20.0: I/O Pin P4.058: StepGen #1, pin (unused) (Output) [ 2485.811780] hm2/hm2_5i20.0: I/O Pin P4.059: StepGen #1, pin (unused) (Output) [ 2485.811788] hm2/hm2_5i20.0: I/O Pin P4.060: IOPort [ 2485.811794] hm2/hm2_5i20.0: I/O Pin P4.061: IOPort [ 2485.811800] hm2/hm2_5i20.0: I/O Pin P4.062: IOPort [ 2485.811806] hm2/hm2_5i20.0: I/O Pin P4.063: IOPort [ 2485.811812] hm2/hm2_5i20.0: I/O Pin P4.064: IOPort [ 2485.811819] hm2/hm2_5i20.0: I/O Pin P4.065: IOPort [ 2485.811825] hm2/hm2_5i20.0: I/O Pin P4.066: IOPort [ 2485.811831] hm2/hm2_5i20.0: I/O Pin P4.067: IOPort [ 2485.811837] hm2/hm2_5i20.0: I/O Pin
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
Sebastian, So the PWMs appear on the P2 connector, but the Step generators appear on P4? I have the P4 connector going to a 7i37 to handle the high voltage I/O. So I guess I have to move that cable to P3 and remap the I/O. It looks like the TTL I/O can map to either P2 or P4, but it does mean I need three cables. I was hoping to be able to do it in two. What is the limitation as far as putting the step generators and PWMs on the same connector? Regards, Eric That's more like it :-) Now that the driver's loaded, it can tell us what its pinout is. (This should show up even without setting /proc/rtapi/debug.) Here's the relevant bits from the dmesg2.txt file you sent me: [ 2485.811368] hm2/hm2_5i20.0: 72 I/O Pins used: [ 2485.811374] hm2/hm2_5i20.0: I/O Pin P2.000: IOPort [ 2485.811381] hm2/hm2_5i20.0: I/O Pin P2.001: IOPort [ 2485.811387] hm2/hm2_5i20.0: I/O Pin P2.002: IOPort [ 2485.811393] hm2/hm2_5i20.0: I/O Pin P2.003: IOPort [ 2485.811399] hm2/hm2_5i20.0: I/O Pin P2.004: IOPort [ 2485.811405] hm2/hm2_5i20.0: I/O Pin P2.005: IOPort [ 2485.811411] hm2/hm2_5i20.0: I/O Pin P2.006: IOPort [ 2485.811420] hm2/hm2_5i20.0: I/O Pin P2.007: PWMGen #0, pin Out0 (PWM or Up) (Output) [ 2485.811427] hm2/hm2_5i20.0: I/O Pin P2.008: IOPort [ 2485.811435] hm2/hm2_5i20.0: I/O Pin P2.009: PWMGen #0, pin Out1 (Dir or Down) (Output) [ 2485.811442] hm2/hm2_5i20.0: I/O Pin P2.010: IOPort [ 2485.811450] hm2/hm2_5i20.0: I/O Pin P2.011: PWMGen #0, pin Not-Enable (Output) [ 2485.811457] hm2/hm2_5i20.0: I/O Pin P2.012: IOPort [ 2485.811464] hm2/hm2_5i20.0: I/O Pin P2.013: IOPort [ 2485.811470] hm2/hm2_5i20.0: I/O Pin P2.014: IOPort [ 2485.811476] hm2/hm2_5i20.0: I/O Pin P2.015: IOPort [ 2485.811482] hm2/hm2_5i20.0: I/O Pin P2.016: IOPort [ 2485.811488] hm2/hm2_5i20.0: I/O Pin P2.017: IOPort [ 2485.811495] hm2/hm2_5i20.0: I/O Pin P2.018: IOPort [ 2485.811501] hm2/hm2_5i20.0: I/O Pin P2.019: IOPort [ 2485.811507] hm2/hm2_5i20.0: I/O Pin P2.020: IOPort [ 2485.811513] hm2/hm2_5i20.0: I/O Pin P2.021: IOPort [ 2485.811519] hm2/hm2_5i20.0: I/O Pin P2.022: IOPort [ 2485.811526] hm2/hm2_5i20.0: I/O Pin P2.023: IOPort [ 2485.811532] hm2/hm2_5i20.0: I/O Pin P3.024: IOPort [ 2485.811538] hm2/hm2_5i20.0: I/O Pin P3.025: IOPort [ 2485.811544] hm2/hm2_5i20.0: I/O Pin P3.026: IOPort [ 2485.811550] hm2/hm2_5i20.0: I/O Pin P3.027: IOPort [ 2485.811557] hm2/hm2_5i20.0: I/O Pin P3.028: IOPort [ 2485.811563] hm2/hm2_5i20.0: I/O Pin P3.029: IOPort [ 2485.811569] hm2/hm2_5i20.0: I/O Pin P3.030: IOPort [ 2485.811575] hm2/hm2_5i20.0: I/O Pin P3.031: IOPort [ 2485.811581] hm2/hm2_5i20.0: I/O Pin P3.032: IOPort [ 2485.811588] hm2/hm2_5i20.0: I/O Pin P3.033: IOPort [ 2485.811594] hm2/hm2_5i20.0: I/O Pin P3.034: IOPort [ 2485.811600] hm2/hm2_5i20.0: I/O Pin P3.035: IOPort [ 2485.811606] hm2/hm2_5i20.0: I/O Pin P3.036: IOPort [ 2485.811612] hm2/hm2_5i20.0: I/O Pin P3.037: IOPort [ 2485.811619] hm2/hm2_5i20.0: I/O Pin P3.038: IOPort [ 2485.811625] hm2/hm2_5i20.0: I/O Pin P3.039: IOPort [ 2485.811631] hm2/hm2_5i20.0: I/O Pin P3.040: IOPort [ 2485.811637] hm2/hm2_5i20.0: I/O Pin P3.041: IOPort [ 2485.811643] hm2/hm2_5i20.0: I/O Pin P3.042: IOPort [ 2485.811654] hm2/hm2_5i20.0: I/O Pin P3.043: IOPort [ 2485.811660] hm2/hm2_5i20.0: I/O Pin P3.044: IOPort [ 2485.811667] hm2/hm2_5i20.0: I/O Pin P3.045: IOPort [ 2485.811673] hm2/hm2_5i20.0: I/O Pin P3.046: IOPort [ 2485.811679] hm2/hm2_5i20.0: I/O Pin P3.047: IOPort [ 2485.811686] hm2/hm2_5i20.0: I/O Pin P4.048: StepGen #0, pin Step (Output) [ 2485.811695] hm2/hm2_5i20.0: I/O Pin P4.049: StepGen #0, pin Direction (Output) [ 2485.811704] hm2/hm2_5i20.0: I/O Pin P4.050: StepGen #0, pin (unused) (Output) [ 2485.811712] hm2/hm2_5i20.0: I/O Pin P4.051: StepGen #0, pin (unused) (Output) [ 2485.811721] hm2/hm2_5i20.0: I/O Pin P4.052: StepGen #0, pin (unused) (Output) [ 2485.811729] hm2/hm2_5i20.0: I/O Pin P4.053: StepGen #0, pin (unused) (Output) [ 2485.811738] hm2/hm2_5i20.0: I/O Pin P4.054: StepGen #1, pin Step (Output) [ 2485.811746] hm2/hm2_5i20.0: I/O Pin P4.055: StepGen #1, pin Direction (Output) [ 2485.811755] hm2/hm2_5i20.0: I/O Pin P4.056: StepGen #1, pin (unused) (Output) [ 2485.811763] hm2/hm2_5i20.0: I/O Pin P4.057: StepGen #1, pin (unused) (Output) [ 2485.811772] hm2/hm2_5i20.0: I/O Pin P4.058: StepGen #1, pin (unused) (Output) [ 2485.811780] hm2/hm2_5i20.0: I/O Pin P4.059: StepGen #1, pin (unused) (Output) [ 2485.811788] hm2/hm2_5i20.0: I/O Pin P4.060: IOPort [ 2485.811794] hm2/hm2_5i20.0: I/O Pin P4.061: IOPort [ 2485.811800] hm2/hm2_5i20.0: I/O Pin P4.062: IOPort [ 2485.811806] hm2/hm2_5i20.0: I/O Pin P4.063: IOPort [ 2485.811812] hm2/hm2_5i20.0: I/O Pin P4.064: IOPort [
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
Eric H. Johnson wrote: So the PWMs appear on the P2 connector, but the Step generators appear on P4? I have the P4 connector going to a 7i37 to handle the high voltage I/O. So I guess I have to move that cable to P3 and remap the I/O. It looks like the TTL I/O can map to either P2 or P4, but it does mean I need three cables. I was hoping to be able to do it in two. What is the limitation as far as putting the step generators and PWMs on the same connector? The pinouts are determined by the firmware, and other than selecting whether each I/O pin is a GPIO or is connected to a particular instance of a particular module, there's nothing the driver can do about it. The pinouts are designed to mate well with Mesa's servo amps and stepper drivers. Each firmware .BIT file comes with a corresponding .PIN file, which tells you what the firmware's pinout is. It's the same info as you'd get if you loaded the driver module but didn't turn off any module instances with the config line. I forgot to put the .PIN files in the 2.2.6 debian package, but if you've checked out the CVS tree you can see them in src/hal/drivers/mesa-hostmot2/firmware. You can of course also see them via the CVS web interface: http://cvs.linuxcnc.org/cvs/emc2/src/hal/drivers/mesa-hostmot2/firmware/5i20/ So yeah, if you want 1 pwmgen, 2 steppers, and some GPIOs, you have to either use three cables (pwm on P2, gpio on P3, and stepgen on P4), or split one of the two cables (P2 or P4) out to your servo/stepper drivers gpio. Something like this might be useful (link from the EMC2 Wiki): http://www.daqstuff.com/50_pin_daq.htm -- Sebastian Kuzminsky Computer Science for life, that's my direction Instead of b-balls, my homies throw exceptions -- MC Plus+ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
On Thu, 14 Aug 2008, Eric H. Johnson wrote: Date: Thu, 14 Aug 2008 18:29:08 -0400 From: Eric H. Johnson [EMAIL PROTECTED] Reply-To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net To: 'Enhanced Machine Controller (EMC)' emc-users@lists.sourceforge.net Subject: Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration Sebastian, So the PWMs appear on the P2 connector, but the Step generators appear on P4? I have the P4 connector going to a 7i37 to handle the high voltage I/O. So I guess I have to move that cable to P3 and remap the I/O. It looks like the TTL I/O can map to either P2 or P4, but it does mean I need three cables. I was hoping to be able to do it in two. What is the limitation as far as putting the step generators and PWMs on the same connector? The pinout is fixed by the configuration(SVST8_4 has the pinout you see) Hostmot2 does not allow pin remapping as this uses a lot of FPGA resources The current firmware source is easy to change however, If you tell me what pinout you want, I can whip up a new bitfile in a few minutes Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your ()_() signature to help him gain world domination. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 configuration - was Stepper Configuration
Peter, For this project, using all three connectors is fine, it was already wired that way because of the pinout of the standard m5i20 driver. I was just hoping to eliminate one cable and the associated termination. For my next project it would be really nice if I could get all of the I/O onto a single connector both for cost and the fact that real estate is limited. This would require 2 or 3 steppers, 1 pwm and roughly 8 inputs and 4 outputs. Everything in this case is at TTL levels so it could all come off a single connector very simply. Regards, Eric The pinout is fixed by the configuration(SVST8_4 has the pinout you see) Hostmot2 does not allow pin remapping as this uses a lot of FPGA resources The current firmware source is easy to change however, If you tell me what pinout you want, I can whip up a new bitfile in a few minutes - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users