#linuxcnc | Logs for 2013-12-14

Back
[01:03:56] <Mr_Mayhem> Hmm, how to add the A axis info in the ini for Pncconf for a Mesa 7I76?
[01:04:39] <Mr_Mayhem> I have the X,Y, and Z axis working, but now for A axis...
[01:07:24] <jesseg> hahahaha
[01:07:39] <jesseg> Mr_Mayhem, Do you want A to be angular or linear?
[01:07:47] <Mr_Mayhem> Angular, please.
[01:07:54] <jesseg> Oh that's easy then
[01:08:44] <jesseg> I don't know a lot about it, but it does come with several example ini files which can give example of 3 linear and 1 angular
[01:08:53] <Mr_Mayhem> I have the MESA_CNC_MACHINE.ini open in front of me. Was gonna copy the z info, but its angular, not linear.
[01:09:10] <Mr_Mayhem> oh, ok.
[01:10:02] <jesseg> The entry in the ini file for angular is similar to linear, but the type is set to angular and of course it is scaled in degrees.
[01:10:27] <Mr_Mayhem> I guess I have to find the example so my syntax is right at least. Then tweak the numbers. Hey I don't even have the drive yet, but I figure I should get familiar and see if I can move a motor. The easy example dosent do the A.
[01:10:34] <jesseg> Actually, I believe the stepconf helper app has a ready made profile for 3 linear and one angular
[01:11:02] <Mr_Mayhem> Ok Angular instead of Linear for TYPE and degrees instead of units.
[01:11:18] <jesseg> yeah
[01:12:02] <Mr_Mayhem> I tried the easy one that runs via script and it would not give me the next button for after entering the A data in Pncconf
[01:12:36] <Mr_Mayhem> So I ran into the issue. So what file do I need to examine for an example, hmmm.
[01:13:14] <jesseg> let me poke around a bit
[01:14:00] <Mr_Mayhem> Hey, thanks. Nice to have help, I appreciate.
[01:16:38] <jesseg> Did you try running stepconf? That's different than pnconf
[01:20:11] <Mr_Mayhem> Naa, I used that for my old parallel port setup when I began my cnc adventure. Now I have the Mesa 5I25 and the 7I26 matching daughterboard. I ran a script I found in the Linuxcnc forums here to prep the pnconf app because it dosent have this card's directories and/or files yet on the original linuxcnc image. So the script fixes that issue so you can then run pnconfig. http://www.gnipsel.co
[01:20:11] <Mr_Mayhem> m/linuxcnc/configs/pncconf-7i76.html
[01:22:42] <jesseg> Anyway, I used the stepconf to generate a 3 linear and 1 angular .ini file.
[01:23:21] <jesseg> If you can find the Sherline4Axis_inch.ini file on your hard drive in the example configs folder, it gives example of 3 linear and 1 angular.
[01:23:28] <Mr_Mayhem> When I ran pncconf I can get to the last step for 3 axis, but not 4. When I tried to set XYZA instead of simple XYZ axis, I get stuck because the next button is not enabled, so I can not proceed to apply and save the config. I figure I have to manually edit something in the ini and or hal config files.
[01:24:08] <jesseg> In particular, you need the following:
[01:24:11] <jesseg> AXES=4
[01:24:18] <Mr_Mayhem> OK I will have a look. Then I need to see, how do the hal files get made? Do I just reopen pncconf and roll through it and save? Will the ini be enough for that stunt?
[01:24:30] <jesseg> COORDINATES = X Y Z A
[01:25:06] <jesseg> then your fourth axis needs to start with
[01:25:09] <jesseg> [AXIS_3]
[01:25:09] <jesseg> TYPE = ANGULAR
[01:25:27] <jesseg> and you need the rest of the calibration stuff for that axis there too.
[01:25:32] <Mr_Mayhem> ok coordinates, got it. Axis_3 let me catch up hehe.
[01:26:03] <jesseg> and your halfile needs to be an xyza file too
[01:26:43] <Mr_Mayhem> ok, I think I hit all but the hal.
[01:27:30] <jesseg> anyway, I've said more than I know now.. hopefully someone who knows this stuff will be along:P
[01:27:33] <Mr_Mayhem> Should I just copy over z and edit your mentioned elements, or only include your mentioned elements?
[01:27:48] <jesseg> I'm still in the beginning stages - with a step & dir on printer port and little sherline :P
[01:27:48] <Mr_Mayhem> for Axis_3
[01:27:54] <Mr_Mayhem> hehe
[01:27:59] <Mr_Mayhem> I am also.
[01:28:15] <jesseg> Let me paste all of this example A/Axis_3
[01:28:18] <Mr_Mayhem> But I am comfortable farting with the settings, no biggie.
[01:28:23] <Mr_Mayhem> ok
[01:28:31] <jesseg> [AXIS_3]
[01:28:31] <jesseg> TYPE = ANGULAR
[01:28:31] <jesseg> HOME = 0.0
[01:28:31] <jesseg> MAX_VELOCITY = 25.0
[01:28:31] <jesseg> MAX_ACCELERATION = 160.0
[01:28:32] <jesseg> STEPGEN_MAXVEL = 26.0
[01:28:33] <jesseg> STEPGEN_MAXACCEL = 196.0
[01:28:35] <jesseg> BACKLASH = 0.000
[01:28:37] <jesseg> INPUT_SCALE = 160
[01:28:39] <jesseg> MIN_LIMIT = -36000.0
[01:28:41] <jesseg> MAX_LIMIT = 36000.0
[01:28:43] <jesseg> FERROR = 5.0
[01:28:47] <jesseg> MIN_FERROR = 1.0
[01:28:49] <jesseg> HOME_OFFSET = 0.0
[01:28:51] <jesseg> HOME_SEARCH_VEL = 0.0
[01:28:53] <jesseg> HOME_LATCH_VEL = 0.0
[01:28:55] <jesseg> HOME_USE_INDEX = NO
[01:28:57] <jesseg> HOME_IGNORE_LIMITS = NO
[01:29:24] <jesseg> Let me know when you see <<THIS line and I'll know all my pasting made it through :P
[01:29:44] <Mr_Mayhem> I see the << line.
[01:29:50] <jesseg> That's just the fourth axis from the example sherline -- but it gives you an idea anyway.
[01:30:44] <Mr_Mayhem> Ok, well that's a good start. I notice some differences. I will try to make sense of it. I notice the 360 stuff for angles, ok.
[01:31:19] <jesseg> yeah, it looks like that sample only allows maximum 100 turns in either direction.
[01:32:08] <jesseg> Oh, up in the [TRAJ] section, you also need ANGULAR_UNITS = degree
[01:32:27] <jesseg> unless you wish to use metric angular units or something ha ha (or radians or gradians?)
[01:32:38] <Mr_Mayhem> hehe
[01:33:33] <Mr_Mayhem> I will never learn trig the way they usually teach it, ha. Ok let me do the TRAJ line.
[01:34:20] <jesseg> The AXES= and COORDINATES= lines also both go in the [TRAJ] section. Forgot to mention that.
[01:35:06] <jesseg> And if you have a [HAL] section in your ini file, it probably needs to point to some .hal file which has "xyza" in its name.
[01:35:12] <Mr_Mayhem> ok, well that's no big deal it turns out, they are already there for me too.
[01:35:13] <jesseg> an5yway, past my bedtime. Have fun!
[01:35:27] <Mr_Mayhem> Thanks!
[01:36:21] <jesseg> Welcome!
[02:14:30] <Deejay> moin
[02:26:02] <uw> HELLO DEEJAY
[02:26:08] <uw> eiskalt heir?
[02:26:13] <Deejay> hi uw
[02:26:23] <Deejay> nope, raining here
[02:26:34] <Deejay> not as cold as recent nights ;)
[02:26:42] <uw> well thats good
[02:26:46] <uw> records here
[04:46:19] <JeAl> hi
[05:49:13] <jthornton> morning
[06:53:39] <JeAl> ping
[07:03:13] <archivist> anyone for tennis
[07:55:04] <JeAl> seems no body tennis
[07:59:16] <rob_h> we all played out
[07:59:50] <rob_h> any one in the UK thinking of going to the Mach2014 show at the NEC?? how about you archivist
[08:00:01] <archivist> I usually go
[08:00:29] <rob_h> should see if there afew others i guess, if we agree on a day could meet up for a coffie like
[08:00:33] <archivist> its a bloody long walk though
[08:00:45] <rob_h> i think mach might seem like aplay day out tho after us going to the german EMO show
[08:01:10] <archivist> is that bigger then?
[08:01:11] <rob_h> o u should walk the EMO show.. thats a long way .. took us 3 days todo the show in a somewhat OK mannor still things we missed tho
[08:01:43] <rob_h> you can fit the NEC inside the hannover show ground easy i would way.
[08:02:19] <rob_h> it was nice to see the things you dont see here also, like alot of german made cnc machines
[08:03:26] <archivist> are you running the citizen sliding head yet?
[08:03:49] <rob_h> still a space issue haha but this christmas things are getting moves around and in it comes with barfeed
[08:03:56] <rob_h> i have a stack of work lined up for it
[08:04:40] <rob_h> i have sorted alot of collets for spindle and guide bush's out now also, and tooling
[08:04:52] <rob_h> just been quite bussy fixing/upgrading machines
[08:04:54] <rob_h> or making parts
[08:05:31] <rob_h> just been bussy chaning old DC motors on a superslant to new AC motors... also had to fit a new ballscrew on the X as it was well pasted its date
[08:05:39] <archivist> I got a spare spindle that may fit my sliding head off fleabay the other week
[08:05:44] <rob_h> nice new C3 screw and nut
[08:06:23] <rob_h> nice, sub spindle for you too then
[08:06:50] <rob_h> i have had the citizen running and stuff to have a play as one does :) and fixed all its Oil restrictors as most did not work
[08:06:51] <archivist> no it is the main spindle fr a later model
[08:07:36] <archivist> 131054656410
[08:08:25] <rob_h> nice
[08:08:31] <archivist> the adjusting nuts look like no spanner has been used
[08:09:20] <rob_h> yea some people do seem to abuse there machines when you look at some stuff
[08:10:07] <archivist> I mean nothing not even a hammer
[08:11:24] <rob_h> so whats you plan with that
[08:11:30] <archivist> I have an earlier model and it has been rusted a bit
[08:11:43] <rob_h> i see so thinking of swopping
[08:11:45] <archivist> may make it good
[08:11:53] <Tom_itx> archivist how about a game of pong?
[08:12:58] <rob_h> ri poping out for abit catch up soon
[09:55:31] <CHNCguy> hey hey everyone ;)
[09:56:37] <CHNCguy> Anyone know how to load themes?
[09:56:43] <CHNCguy> for a lathe?
[09:57:15] <archivist> themes?
[09:57:48] <CHNCguy> check this out http://www.youtube.com/watch?v=fkOJhT69WEc
[09:57:54] <CHNCguy> he has lathe themes
[09:57:59] <CHNCguy> he calls it "themes"
[09:58:06] <CHNCguy> its subroutines but with graphics
[09:59:13] <archivist> I have to restart firefox to view videos
[10:00:23] <CHNCguy> ohhh
[10:00:57] <archivist> there is a link to the forum on that video, did you follow it
[10:01:36] <CHNCguy> i did, but is was very confusing, did you get to figure it out?
[10:02:00] <archivist> I have never bothered for my lathe
[10:02:14] <CaptHindsight> CHNCguy: it looks like he's added some features to Linuxcnc that he hasn't advertised much
[10:02:36] <CHNCguy> i noticed that also, because he is the only one who has something like this...
[10:03:38] <archivist> so far in here I have only seen ngcgui discussed
[10:04:04] <micges> CHNCguy: there is info about installing here :https://github.com/cnc-club/linuxcnc-features
[10:04:19] <ReadError> is there any way to create a system event when a toolpath finishes?
[10:04:32] <ReadError> that sure would be nice
[10:05:07] <micges> what kind of event?
[10:05:13] <archivist> ReadError, a custom mcode
[10:05:17] <ReadError> maybe execute a shell script
[10:05:25] <ReadError> see my machine is in the basement
[10:05:32] <ReadError> and its cold there, so i do other things
[10:05:41] <ReadError> i could use a shell script + mutt
[10:05:43] <CaptHindsight> wake dog to change part
[10:05:45] <ReadError> send an email
[10:05:56] <ReadError> to local smtp server
[10:06:00] <ReadError> which would buzz my phone
[10:06:30] <micges> you can create say M100 with shell script inside in you nc_files directory
[10:06:53] <micges> and add M100 just before M2
[10:07:25] <ReadError> hm just need to use some awk or something to append this to all my files
[10:08:33] <archivist> sed
[10:08:45] <ReadError> derp yea
[10:09:14] <CHNCguy> quick question, when I set up the i/o for a 3rd axis being the turret, would it be a axis, or custom signals? I am using 5i25 and 7i76
[10:17:09] <pcw_home> Custom signals, its not really an axis
[10:20:24] <CHNCguy> so would I just say the turret is the A axis?
[10:20:36] <pcw_home> no
[10:20:46] <pcw_home> its not an axis
[10:24:31] <CaptHindsight> I imagine to lack of muffler on the 2-stroke will have an effect on the element of surprise https://www.youtube.com/watch?v=wE3fmFTtP9g
[10:25:42] <CHNCguy> so how would i select the config for the axis?
[10:27:43] <pcw_home> with most toolchangers you have wandered into the custom comp area
[10:30:58] <pcw_home> There may be some other people with CHNC/LinuxCNC retrofits that can guide you,
[10:31:00] <pcw_home> though the forum may be a better place to ask
[10:31:46] <CHNCguy> true
[10:48:14] <archivist> CHNCguy, I thought you had a copy of JT-Shop config
[10:57:17] <JT-Shop> you rang?
[10:58:20] <archivist> he needs a turret config/knowledge
[10:58:32] <JT-Shop> CHNCguy, take a look at the stepper winder on this page Maximum Workpiece Thickness: 22 Ga.
[10:58:47] <JT-Shop> http://gnipsel.com/linuxcnc/index.html
[10:59:35] <archivist> er wot, its for his hardinge
[11:00:48] <flughafen> any germans handy now?
[11:00:53] <JT-Shop> aye the stepper winder is an example of turning a motor without it being an axis
[11:02:30] <archivist> I thought you would be pointing him at some classicladder for the turret, I am not sure if he will get that
[11:06:05] <jthornton> actually rob_h has done what he is thinking about doing
[11:06:35] <CHNCguy> sorry im back ;)
[11:06:48] <CHNCguy> Hey archivist I do, but he uses an air motor setup
[11:06:49] <archivist> how many chncs have been done now
[11:07:42] <CHNCguy> lots probably, I did speak to Rob_h he used a servo also, but I have yet to hear back about his set up and how he using his mesa cards
[11:08:25] <archivist> he was in here this morning
[11:10:10] <CHNCguy> so what is the smart serial 0 in the mesa0 config page? is that just the pinouts on the 7i76?
[11:12:03] <pcw_home> sserial0 runs the digital I/O section of the 7I76
[11:12:17] <pcw_home> sserial1 is the expansion port
[11:12:36] <pcw_home> (with normal firmware and 7I76 on P3)
[11:16:20] <CHNCguy> thank you
[11:17:28] <CHNCguy> if im using a stepper drive, yet cant find the step on time, space, hold, and setup figures, do I just use 10000? Will this affect speed?
[11:19:20] <pcw_home> If you dont know (and they are recent drives) I would use something like 5000/5000/10000/10000
[11:19:36] <pcw_home> (that will limit you to 100 KHz max)
[11:20:31] <pcw_home> actually a little less than 100 KHz since you need some overhead
[11:22:21] <pcw_home> best to find the specs (rather than find them by having it malfunction in the middle of something on a particularly warm or cold day)
[11:22:23] <CHNCguy> thanks pcw
[11:22:38] <CHNCguy> well the drives are hbs86 hybrid servo drives
[11:22:57] <CHNCguy> the8
[11:23:02] <CHNCguy> they*
[11:23:17] <pcw_home> They must have a manual of some kind
[11:23:23] <CHNCguy> did see squat in their documentation about the timing pulses
[11:23:38] <CHNCguy> they have a lot in there but not about timing pulses and such
[11:23:51] <CHNCguy> http://www.leadshine.com/UploadFile/Down/HBS86d.pdf
[11:24:10] <CHNCguy> says input freq 200k
[11:25:53] <pcw_home> so you could try 2500,2500,10000,10000
[11:27:20] <CHNCguy> k thanks
[11:27:47] <pcw_home> (the setup and hold time will have very little influence on performance but the maximum step rate is 1/(StepTime+StepSpace))
[11:29:19] <CHNCguy> so the lower the step time and space the faster I can push it?
[11:29:55] <archivist> stepper drives are limited b the motor
[11:30:51] <pcw_home> Yes you max RPM will be limited by the torque fall-off of the motor/drive combination
[11:32:07] <pcw_home> (running at close to the maximum drive voltage will get the most speed out of the motors)
[11:32:48] <CHNCguy> thank you, im still in the motor config area of the pncConf, about to wire up the motors to see if they run ;)
[11:32:58] <CHNCguy> Will they run with the test/tune axis button?
[11:33:56] <pcw_home> should (though I dont know anything about how pncconf handles stepppers)
[11:34:33] <jthornton> might want to read the pncconf catagory in the forum
[11:40:07] <JeAl> by
[11:59:28] <IchGuckLive> Hi all B)
[11:59:48] <CHNCguy> hey hey
[12:00:59] <IchGuckLive> CHNCguy: how is work going
[12:01:48] <CHNCguy> Im trying to figure out wiring for the step and dir from the mesa pdf
[12:02:04] <IchGuckLive> 5i25 7i76
[12:02:50] <CHNCguy> yes
[12:03:04] <IchGuckLive> driver are Gecko leadshine ?
[12:03:57] <IchGuckLive> CHNCguy: are you usa or europ
[12:04:18] <CHNCguy> usa leadshine
[12:04:20] <IchGuckLive> im in germany
[12:04:31] <gweepprefect> greetings
[12:04:36] <IchGuckLive> oh i got 3 mashines running at your setup
[12:05:10] <IchGuckLive> CHNCguy: did you jumper the 5i25
[12:05:24] <TangentAudio> anyone awake that's up to speed on hostmot2 and 2.6.x linuxcnc?
[12:05:30] <CHNCguy> yes
[12:05:35] <CHNCguy> to power 7u76
[12:05:38] <CHNCguy> 7i76
[12:05:51] <CHNCguy> sweet guck wanna help :)
[12:05:53] <CHNCguy> ?
[12:06:08] <IchGuckLive> im helping all of you mesa freeks
[12:06:16] <CHNCguy> hahaha
[12:06:36] <IchGuckLive> so you got the 7i76 manual inside
[12:06:40] <CHNCguy> yes
[12:07:20] <IchGuckLive> page 11
[12:07:21] <CHNCguy> gonna wire up my first motor lol
[12:07:28] <IchGuckLive> TB2
[12:07:44] <IchGuckLive> pin 23 45
[12:07:53] <jthornton> CHNCguy, http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Stepper_Drive_Timing
[12:07:57] <IchGuckLive> thats all you need
[12:08:02] <jthornton> your leadshine is listed on that page
[12:08:12] <TangentAudio> stepgen pin assignment behavior seems to have changed in 2.6.. in 2.5.x stepgens used to only have step and dir pins and the rest were left as gpio... in 2.6.x (latest from git) it seems the extra pins show up as "Table2Pin", "Table3Pin" etc.
[12:08:26] <IchGuckLive> if its a M542 go for 5000 5000 20000 20000
[12:08:46] <IchGuckLive> if it is a M880a go for the numbers on the page
[12:08:49] <CHNCguy> its a HBS86
[12:09:09] <CHNCguy> hybrid servo drive with a stepper with live encoder feedback and PID loop within the drive
[12:09:29] <jthornton> don't see that one listed
[12:09:33] <CHNCguy> hi John, dont see HBS86 on that page
[12:09:38] <CHNCguy> its a new one
[12:09:55] <IchGuckLive> ok then go for the numbes in the datasheet
[12:10:03] <jthornton> they all appear to step on the rising edge
[12:10:12] <IchGuckLive> bu best to start with 2000 2000 6000 8000
[12:10:35] <IchGuckLive> CHNCguy: what is your leadscrew pitch
[12:11:04] <IchGuckLive> i guess your stepepr servo meets the 5divider not the 4
[12:11:05] <CHNCguy> leadscrew is .2 or 1tpi
[12:11:13] <CHNCguy> 5divider?
[12:11:23] <IchGuckLive> 500steps/rev
[12:11:31] <IchGuckLive> the encoder
[12:12:05] <IchGuckLive> TangentAudio: did you do the 5i25 update zip
[12:12:45] <CHNCguy> the encoder is 1000ppr
[12:12:49] <IchGuckLive> CHNCguy: some gearing between motor and leadscrew
[12:13:24] <IchGuckLive> CHNCguy: so your scale is 1000
[12:13:25] <TangentAudio> i'm running a 7i43 ... not aware of an update, any pointers? i can't turn up much info in searching
[12:13:26] <CHNCguy> yes i think its a 6 to 1 gear ratio
[12:13:48] <IchGuckLive> oh then its 6000
[12:15:07] <IchGuckLive> TangentAudio: 5i25 7i43
[12:15:09] <CHNCguy> is that the scale?
[12:24:33] <jthornton> wow I just got past another hurdle with python... time for a nap
[12:26:19] <CHNCguy> good job john! :D
[12:32:53] <IchGuckLive> sorry i lost Inet connect
[13:48:55] <CHNCguy> hey guys so im stuck, cant get my x axis to move hooked up step and dir (4 wires to my pulse and dir of my drive), can jog axis in AXIS but motor does not move, motor is powered and holding position
[13:49:38] <CHNCguy> IchGuck recommended upgrade to 2.5.2 I installed the 2.5.0 from the live cd download on the main linuxcnc site
[13:49:57] <skunkworks> More info.. How is it hooked up? what hardware and such
[13:50:19] <CHNCguy> 5i25 and 7i76
[13:50:24] <CHNCguy> got power to the card
[13:50:42] <CHNCguy> x axis is 0 in the config panel so pins 2-5 are used on tb2
[13:51:14] <CHNCguy> measured voltage on pin 4 and i get 5v and pin 2 5v
[13:51:42] <CHNCguy> yet in the manual pin 3 and 5 are step and dir + (shouldnt they be 5v?)
[13:53:22] <CHNCguy> i have pin 2 to pulse - pin 3 to pulse +, pin 4 to dir - and pin 5 to dir +
[13:53:46] <CHNCguy> any ideas?
[13:56:30] <JT-Shop> IIRC step + and step - are a differential pair for single ended you use one and the correct 0 or 5v pin
[13:57:10] <JT-Shop> and 2.5.3 is the latest version
[13:58:11] <CHNCguy> not sure im following you JT, so do I use the 0 or 5 pins? 1 and 6?
[13:59:52] <CHNCguy> I confirmed that pul - and dir - are supposed to be 5v.
[14:00:26] <CHNCguy> My wiring is correct pinned it out (not hard with a 1 foot wire)
[14:00:56] <CHNCguy> My motor is holding position and correcting for error, so i know the drive in enabled
[14:01:51] <CHNCguy> any ideas?
[14:04:59] <JT-Shop> if you need a positive step pulse you need to use pin 1 and pin 3 on the 7i76 IIRC
[14:05:24] <JT-Shop> I can dig my way into my plasma to be sure if pcw_home doesn't show up
[14:06:36] <CHNCguy> i checked the drive specs, it needs a 5v step0- and 5v DIR0- which I have
[14:07:33] <JT-Shop> what have you connected to step0 on your drive?
[14:08:08] <CHNCguy> step0- goes to pulse-
[14:09:04] <JT-Shop> pulse- is on the drive?
[14:09:17] <CHNCguy> yes sir
[14:09:36] <CHNCguy> i have pulse -/+ and dir+/-
[14:10:12] <JT-Shop> do you have a link to the manual for your drives?
[14:10:17] <CHNCguy> yes
[14:10:22] <CHNCguy> http://www.leadshine.com/UploadFile/Down/HBS86d.pdf
[14:10:30] <ju-emb> that are Optocoupler inputs
[14:10:52] <CHNCguy> .............
[14:11:01] <ju-emb> you need to connect + to the positive 5V (signal) and - to gnd
[14:11:31] <CHNCguy> on the drive or 7i76?
[14:11:56] <ju-emb> GND from 7i76 to - on drive
[14:12:09] <CHNCguy> gotcha one sec
[14:12:21] <ju-emb> signal from 7i76 to + on drive
[14:13:09] <JT-Shop> in the typical connections diagram it shows pul+ connected to VCC on the controller
[14:13:43] <JT-Shop> pul- connected to step- on the controller
[14:14:28] <JT-Shop> ju-emb, do you agree?
[14:14:50] <ju-emb> not yet, reading manual
[14:14:58] <JT-Shop> very last page
[14:15:10] <JT-Shop> it has opto inputs
[14:16:26] <ju-emb> yes, I think he should connect it as I say'd before
[14:16:28] <ju-emb> but let me check how are 7i76 output signals
[14:16:51] <ju-emb> the mesa cards normally have a 5V signal
[14:16:57] <ju-emb> on signals
[14:17:00] <CHNCguy> yes from pc
[14:17:04] <CHNCguy> i mean 5i25
[14:17:28] <ju-emb> doesn't matter are 5V or 3.3V
[14:17:40] <CHNCguy> im on 5v
[14:18:08] <ju-emb> but it is not an open collector output like in the manual from drive that CHNCguy has
[14:19:50] <CHNCguy> mmmm
[14:19:58] <JT-Shop> the 7i76 has both - and + outputs for step and direction as well as 0v and 5v
[14:20:14] <ju-emb> since the drive has only a led with an 270 R resistor as input you cannot damage anything connecting
[14:20:16] <ju-emb> the signal from mesa card to Pul+ on drive and GND from Mesa to Pul- from drive
[14:21:53] <ju-emb> that's completely correct if you work with 5V levels on Mesa card
[14:22:12] <CHNCguy> signal u mean step0+ to Pul (+)...........and pin 1 GND to pul (-)
[14:22:32] <ju-emb> that's right sir
[14:22:36] <CHNCguy> in the manual it mentions pul (-) needs 4-5v
[14:22:46] <ju-emb> nooooo
[14:22:53] <CHNCguy> ;)
[14:23:07] <CHNCguy> ok let me hook her up 1 sec
[14:23:12] <CHNCguy> is it the same for dir?
[14:23:21] <ju-emb> exactly
[14:23:32] <CHNCguy> dir+ to dir+ and pin1 to dir -?
[14:24:13] <ju-emb> don't know what pin 1 is, but GND of the MESA card should be connected to dir-
[14:24:33] <CHNCguy> pin 1 is gnd for first axis
[14:24:49] <ju-emb> someone has a quick link to your mesa card
[14:25:19] <ju-emb> datasheet of the mesa card
[14:26:00] <CHNCguy> k gonns power it on now, hope nothing fries ;D
[14:26:10] <ju-emb> The drives manual is made for industrial automation where 24V is most common Voltage level
[14:26:19] <ju-emb> don't worry
[14:26:30] <ju-emb> nothing will fry
[14:26:43] <CHNCguy> lights on, no smoke.... good start ;D
[14:27:01] <ju-emb> but I see smoke here
[14:27:08] <CHNCguy> lol
[14:27:22] <CHNCguy> launching now lets see if she moves
[14:27:23] <ju-emb> ooops is coming from my cigaret
[14:27:38] <CHNCguy> nothing moving ;(
[14:28:03] <ju-emb> what's about enable from drive?
[14:28:55] <CHNCguy> ?
[14:29:16] <ju-emb> there is a pin called Enable on your Drive
[14:29:31] <CHNCguy> yes if left open it will be enabled
[14:29:37] <CHNCguy> the green light on the drive is on
[14:29:46] <JT-Shop> http://mesanet.com/pdf/parallel/7i76man.pdf
[14:30:14] <ju-emb> did you connect enable to 5V on mesa card?
[14:30:35] <ju-emb> thanks JT
[14:31:10] <CHNCguy> I have that JT in front of me printed out ;) Thanks tho ;D
[14:31:26] <CHNCguy> i did not connect the 5v enable to the mesa card
[14:31:59] <CHNCguy> if the drive is not enabled it will give me a red fault and i can move the drive by hand
[14:32:11] <ju-emb> normally you connect that Enable signal to your drive enable signal from hal
[14:32:14] <JT-Shop> the leadshine manual states the ena+ usually left unconnected (enabled)
[14:32:38] <JT-Shop> for testing he can leave it unconnected
[14:33:11] <ju-emb> but see exactly the same diagramm in drives manual
[14:33:24] <CHNCguy> i remember seeing something about rising and falling edge where was I supposed to set this?
[14:33:27] <ju-emb> that's an optocouppler too
[14:33:30] <CHNCguy> does this matter?
[14:35:46] <ju-emb> manual say's a high on that pin enables the drive
[14:36:08] <andypugh> I think we can be pretty sure the drive is enabled.
[14:36:26] <JT-Shop> yep, if it is holding it's enabled
[14:36:45] <pcw_home> looks like the drive has differential inputs so you need to connect step+ to pul+ and step- to pul - etc
[14:37:28] <ju-emb> that we figured out, and it's connected like that
[14:37:45] <JT-Shop> on page 7 it shows pul+ connected to VCC on the controller
[14:37:51] <ju-emb> but I'm not conform with let the enable open
[14:38:14] <ju-emb> JT forget about that
[14:38:49] <andypugh> JT-Shop: You would need to do that for 5V TTL drive from a parport. But the Mesa card has proper differential outputs so should be able to drive the optos directly (If I interpret what PCW is saying correctly)
[14:38:54] <ju-emb> that is if your controller works with open collector outputs, but Mesa card doesn't
[14:39:37] <andypugh> CHNCguy: Have you set the pulse length correctly?
[14:40:02] <ju-emb> Meass card has PushPull outputs
[14:40:13] <pcw_home> The 7i76 will work either way but differential is better
[14:40:24] <ju-emb> Mesa
[14:41:25] <andypugh> CHNCguy: In the HAL, what do you have connected to the hm2_5i25.stepgen.0.position-cmd pin?
[14:42:59] <ju-emb> OK I confirm that the Enable line can be left unconnected if the drive is configured to see that as enabled
[14:43:22] <pcw_home> bad idea...
[14:44:00] <ju-emb> ofcourse, but to see a first move it's ok
[14:44:04] <JT-Shop> pcw_home, he is just testing the motors on the bench
[14:44:13] <pcw_home> OK
[14:44:30] <JT-Shop> and yes I agree that after that enable should be working
[14:44:39] <pcw_home> as long as they can be set up in a reasonable way (Normally disabled)
[14:44:45] <JT-Shop> or disable
[14:45:13] <ju-emb> so let's see what else could be wrong
[14:46:03] <CHNCguy> just got back took a pee, haha one sec let me read through what i missed
[14:46:59] <pcw_home> "For reliable response, pulse width should be longer than 10μs. Series connect resistors
[14:47:00] <pcw_home> for current-limiting when +12V or +24V used. The same as DIR
[14:47:01] <pcw_home> and ENA signal:
[14:47:03] <pcw_home> so long 200 KHz...
[14:48:10] <CHNCguy> Andy let me check on sec
[14:50:10] <CHNCguy> andypugh: i dont see what u mean
[14:50:50] <CHNCguy> i see net x-pos-cmd axis.0.motor-pos-cmd +>hm2_5i25.stepgen.00.position-cmd
[14:50:57] <CHNCguy> => *
[14:51:54] <CHNCguy> I will also hook up the enable disable to linux somehow, but I am just bench testing
[14:51:56] <ju-emb> Drive manual say's < 200kHz
[14:52:04] <pcw_home> how do you have the drive step/dir wired?
[14:52:05] <pcw_home> should be:
[14:52:07] <pcw_home> STEP+ --> PUL+ STEP- --> PUL-
[14:52:09] <pcw_home> DIR+ --> DIR+ DIR- --> DIR -
[14:52:32] <CHNCguy> I had that wired with no success Ill wire it back that way 1 sec
[14:52:40] <ju-emb> yes so it is
[14:52:47] <CHNCguy> i tried tying drive pul and dir - to gnd no success
[14:53:02] <_marka96> Speaks here anyone german ?
[14:53:21] <ju-emb> yes. but in diferent room
[14:53:51] <CHNCguy> is there a way to see if signals are coming off the card? Multimeter?
[14:54:01] <JT-Shop> so the step and direction times need to be > 10,000?
[14:54:41] <JT-Shop> CHNCguy, what did you use for step and direction time?
[14:55:12] <pcw_home> the manual has conflicting specs
[14:55:16] <CHNCguy> i used 6k 6k and 2500 and 2500
[14:55:28] <CHNCguy> I just set them to 10k in the hal file ill try that now
[14:55:43] <pcw_home> text in manual says 10k 10k 5k 5k
[14:55:45] <ju-emb> _marka96: did you get the invitation?
[14:56:08] <_marka96> yes
[14:56:49] <ju-emb> so join that room
[14:57:29] <_marka96> how is the name ?
[14:57:34] <ju-emb> #lcncgermans
[14:58:16] <CHNCguy> loaded and no movement ;(
[14:58:26] <CHNCguy> wait
[14:58:30] <CHNCguy> i got movement!!!!!!!!!!!!!!!!!
[14:58:32] <CHNCguy> WHOOOT
[14:58:50] <CHNCguy> slow ass movement...but movement!
[15:00:31] <CHNCguy> k so now how do I speed this baby up?
[15:00:37] <CHNCguy> Thanks a ton guys! :D
[15:02:05] <JT-Shop> what did you set velocity and acceleration to?
[15:02:46] <CHNCguy> default
[15:03:00] <CHNCguy> how do i get back into the file to adjust some params?
[15:03:36] <pcw_home> is likely your scale factor is wrong (how many line encoder do you have?)
[15:03:56] <CHNCguy> 1000ppr I set the drive to 1000 pulse per rev also
[15:05:13] <JT-Shop> CHNCguy, your using a pncconf generated configuration?
[15:05:46] <pcw_home> a 1000 PPR encoder has 4000 counts/rev
[15:05:51] <CHNCguy> yes
[15:06:14] <JT-Shop> run it again and modify your file
[15:06:38] <pcw_home> so pulses/rev will be 4000
[15:07:24] <CHNCguy> so what do u want me to modify in the file?
[15:08:49] <CHNCguy> i see it now
[15:08:58] <CHNCguy> the max velocity in each axis right?
[15:09:55] <jthornton> yes and acceleration
[15:10:22] <jthornton> how fast can the axes go?
[15:11:21] <CHNCguy> supposed to be 200ipm with the old weak servos 1.8nm, id like to get 400+ with these 8nm ones.
[15:12:12] <pcw_home> You may find the the step motors will not go as fast as the servos
[15:12:38] <CHNCguy> these are hybrids, they can go 3k
[15:12:49] <pcw_home> with what torque?
[15:13:06] <CHNCguy> 8nm low rpm, and at 3k 1.8nm
[15:13:19] <jthornton> nice pnconf mixes units for velocity and acceleration
[15:13:22] <CHNCguy> stock dc servos were 1.8nm max
[15:13:42] <pcw_home> 1.8NM peak?
[15:14:17] <CHNCguy> yes, that was their specs, they were also geared 6 to 1
[15:14:51] <CHNCguy> jbthorton, u got a chnc too right? They were 1.8nm on urs too right?
[15:15:08] <jthornton> CHNCguy, usually I find that acceleration is 10-20 times velocity
[15:15:16] <jthornton> yes I have a CHNC 1
[15:15:32] <jthornton> so try 200 for velocity and 50 for acceleration
[15:15:53] <CHNCguy> ok 1 sec
[15:15:57] <jthornton> and notice that the units are not the same between velocity and acceleration
[15:16:13] <pcw_home> note that stepmotor torque ~ servo peak torque
[15:16:25] <pcw_home> (the most it can deliver)
[15:16:57] <jthornton> stepmotors are strongest when holding still IIRC
[15:17:10] <jthornton> on a full step I assume
[15:17:15] <CHNCguy> these are hybrid steppers, they act more like a ac servo then a stepper.
[15:17:47] <pcw_home> Yes true of servos as well but servomotors tend to have a much slower torque falloff
[15:18:19] <pcw_home> Well except the torque curve is the same as a step motor
[15:18:47] <CHNCguy> thats why I chose these hybrids and see how they work out, supposedly they are the best of both worlds
[15:19:02] <CHNCguy> if they suck ill just exchange them for ac servos no biggy
[15:19:16] <pcw_home> The are much better in that they can not stall in the normal step motor sense
[15:20:31] <pcw_home> they still have step motor torques loss at speed (and are not available/practical in large sizes)
[15:27:37] * jthornton heads for pizza
[15:27:40] <pcw_home> *pcw_home goes to roast some peanuts*
[15:27:57] <Tom_itx> i'm with jt on the pizza..
[15:28:01] <Tom_itx> nuts to the peanuts
[15:29:09] <tjtr33> Gene mentioned some good notes about addf order on this mornings mailing list.
[15:29:19] <tjtr33> How to add such knowledge to local copy of 'Hal manual'?
[15:29:30] <tjtr33> I installed Okular v .15 to add annotations to the pdf under Ubu 12.04
[15:29:40] <tjtr33> beware Okular forces some changes. follow this https://groakat.wordpress.com/2013/08/27/annotating-pdf-with-okular/
[15:29:49] <tjtr33> Viewed ok with Okular 0.15 and Acrobat 9.5
[15:29:59] <tjtr33> thx Gene
[15:30:48] <tjtr33> also its typical KDE app, no help file for us Gnomes
[15:35:31] <andypugh> jthornton: I normally find that accel is 20 x velocity...
[15:43:51] <TangentAudio> cripes, that automatic UPnP stuff with VNC in the Ubuntu install just bit me
[15:44:02] <TangentAudio> i had temporarily set no password on VNC for desktop control
[15:44:31] <TangentAudio> it "helpfully" poked a hole on my firewall for me making my CNC controller wide open to the world
[15:44:37] <TangentAudio> i just caught some joker trying to install Chrome on it
[15:44:52] <mozmck> neat!
[15:50:48] <Loetmichel> TangentAudio: HARHAR
[15:52:51] <tjtr33> http://imagebin.org/282303 http://imagebin.org/282301
[16:08:35] <CHNCguy> I got 5k out of my motor on the bench ;) Probably a lot less on the machine, but we will see LOL
[16:29:55] <Deejay> gn8
[17:17:39] <CHNCguy> ok guys I got my motor going good, now how do I add an estop so the system? With the estop ladder in the config file
[17:17:40] <CHNCguy> ?
[17:18:36] <andypugh> Ideally e-stop should be hardware all the way.
[17:19:21] <andypugh> You can let software be one cause of e-stop, and it is good to tell LinuxCNC that the e-stop has been hit.
[17:19:52] <Tom_itx> net estop-loop hm2_[HOSTMOT2](BOARD).0.gpio.015.in_not => iocontrol.0.emc-enable-in
[17:20:09] <Tom_itx> minimal
[17:20:15] <CHNCguy> not sure what to do with that tom_itx ;)
[17:20:29] <CHNCguy> is that io15?
[17:20:31] <Tom_itx> sub the hostmot2 io for yours
[17:20:37] <andypugh> Too minimal for a machine with that speed and power..
[17:22:07] <CHNCguy> I was thinking, estop tied to relay which would kill a bank of things, like spindle input voltage (push it to 0 and stop spindle), hardware disable to drives, and a signal to linuxcnc saying an estop is triggered
[17:22:19] <Tom_itx> good idea
[17:22:20] <Tom_itx> yes
[17:23:59] <CHNCguy> so i got my motors running, now the next thing I would like to work on is an estop, in the config there is a ladder for this, how do I get this to work?
[17:24:00] <CHNCguy> ;D
[17:33:14] <CHNCguy> how would I hook up an MPG to my 7i76?
[17:33:29] <Tom_itx> encoder inputs
[17:34:32] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/cnc/configs/sherline/
[17:34:38] <Tom_itx> there's my configs
[17:34:49] <Tom_itx> look in my_jog.hal for mpg
[17:35:06] <CHNCguy> not loading :(
[17:35:25] <Tom_itx> port 81 blocked?
[17:35:37] <CHNCguy> just says cant connect
[17:35:42] <CHNCguy> to ur link
[17:36:11] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/cnc/configs/sherline/my_jog.hal
[17:36:28] <Tom_itx> if that doesn't work hang on
[17:37:17] <CHNCguy> dont work
[17:37:30] <Tom_itx> is your port81 blocked?
[17:39:37] <CHNCguy> brb
[17:39:49] <kengu> is there a linuxcnc error log file somewhere on the filesystem?
[17:51:15] <heathmanc> Got a firmware problem with a 5i20 and 7i48
[17:51:27] <heathmanc> Have firmw are
[17:51:57] <heathmanc> .8 downloaded and installed, yet does shows it loading .7
[17:52:29] <TangentAudio> where did you get the firmware versions by the way? i'm having some 7i43 firmware issues myself
[17:52:59] <kengu> pretty hard to find this kind of keypads, not maybe in pendant but bare, http://www.cnccookbook.com/img/LatheStuff/CNCConversion/CNCPanels/USBKbdPendant.jpg to hack with
[17:53:14] <heathmanc> dmesg that is. Also gives a muxed encoder v2 issue and says to update firmware
[17:53:57] <heathmanc> downloaded with synaptic package manager
[17:56:24] <andypugh> heathmanc: Better to get the firmware fresh from Mesa
[17:58:03] <skunkworks> TangentAudio: been reading your thread on cnczone..
[17:58:18] <andypugh> kengu: http://www.ebay.com/sch/i.html?_odkw=4+x+6+matrix+keypad&_osacat=0&_from=R40&_trksid=p2045573.m570.l1313.TR0.TRC0.Xmatrix+keypad&_nkw=matrix+keypad&_sacat=0
[18:01:01] <kengu> andypugh: uumm. matrix is the key, thanks. i was missing that earlier but still they do not offer one with the right prints to start with..
[18:03:55] <andypugh> No. I think that there are straightforward ways to make custom prints.
[18:04:39] <jthornton> CHNCguy, you still around?
[18:04:49] <CHNCguy> yupo
[18:05:09] <CHNCguy> whats up ;)?
[18:05:22] <kengu> yeah. i think i will quit on trying and then just settle with one of those
[18:05:35] <jthornton> you make any progress?
[18:05:45] <CHNCguy> yup
[18:05:52] <CHNCguy> i got the motors to work just fine
[18:05:58] <CHNCguy> problem was the step timing
[18:06:02] <jthornton> cool, you figure out where to hook the MPG up to?
[18:06:08] <CHNCguy> >=2000 for each wont work
[18:06:12] <CHNCguy> i mean
[18:06:12] <jthornton> it's always the details
[18:06:15] <CHNCguy> <=
[18:06:27] <CHNCguy> less than or equal to 2000 wont work
[18:06:32] <CHNCguy> same thing for 10k and above
[18:06:47] <CHNCguy> 2800 seemed to work great, the faster the pulse, the faster the motor
[18:07:04] <CHNCguy> I did not yet figure out the mpg, any light you want to shed? :)
[18:07:04] <jthornton> when you settle in on a number add it to the wiki page
[18:07:11] <CHNCguy> ok
[18:07:44] <jthornton> yes, there are 4 pins you can use for the MPG and you need mode 3 IIRC to use those pins as MPG
[18:08:28] <andypugh> CHNCguy: You have an encoder counter on the 7i76, though probably want to keep that for the spindle.
[18:08:44] <CHNCguy> mode 3?
[18:08:51] <CHNCguy> yes I set that one to spindle encoder in
[18:09:20] <andypugh> CHNCguy: I would look at the 7i73 pendant interface, it will connect to the smart-serial port on the 7i76 and can easily interface the entire control panel.
[18:09:32] <CHNCguy> is the io connector 3 right side num 0 where is says multihand wheel was one of the drop downs?
[18:09:39] <andypugh> kengu http://www.rapidkeypads.com
[18:09:55] <CHNCguy> i purchased the 7i73 as recommended a while ago
[18:09:58] <jthornton> sserial_port_0=300xxx
[18:10:02] <andypugh> Dunno, I have never used Pncconf :-)
[18:10:23] <jthornton> me neither
[18:10:32] <andypugh> In that case, wire the mpg to the 7i74 mpg terminals :-)
[18:10:44] <andypugh> (7i73, I mean)
[18:13:14] * jthornton just looked at the 7i73 and that is pretty neat
[18:13:15] <CHNCguy> sounds good to me ;) Ill try to work on that with you guys tomorrow, don't have it right now. Also what voltage do I need to power it, 12v? 24v?
[18:13:21] <andypugh> CHNCguy: For wiring individual wires to the Mesa headers, I find these really useful: http://uk.mouser.com/ProductDetail/Harwin/M20-1071200/?qs=sGAEpiMZZMs%252bGHln7q6pmzlZUuX%2f53qjGdAcq81cToY%3d
[18:13:46] <andypugh> CHNCguy: Just google 7i73man :-)
[18:14:01] <CHNCguy> not the 7i73v, the nominal voltage for mpgs
[18:14:08] <jthornton> http://www.mesanet.com/pdf/parallel/7i73man.pdf
[18:14:13] <jthornton> 5v usually
[18:14:15] <andypugh> That is the 12+12, but they come in a variety of sizes down to 2+2
[18:14:18] <CHNCguy> or what was the voltage for your john?
[18:14:48] <jthornton> MPG's are usually 5v
[18:15:27] <jthornton> andypugh, so those have the same pin spacing as the 7i73 headers?
[18:16:29] <CHNCguy> it looks like it
[18:18:42] <andypugh> Yes.
[18:18:54] <jthornton> cool
[18:19:08] <andypugh> You need to buy the little crimp terminals separately, and you need a pretty small crimping too.
[18:19:45] <jthornton> that's just the socket?
[18:19:55] <andypugh> Yes.
[18:21:46] <CHNCguy> ill have to check that out, but I thought u could get a ribbon cable for the 7i73 and just terminate to that>
[18:21:47] <CHNCguy> ?
[18:22:27] <andypugh> You can use ribbon cable, yes. But sometimes individual wires are more convenient.
[18:22:44] <andypugh> jthornton: Bag of 100 terminals: http://uk.mouser.com/ProductDetail/Harwin/M20-1180042/?qs=sGAEpiMZZMuMCDEXnIBRnIk8qVTlOFUB
[18:24:08] <andypugh> You probably don't want to buy the offical crimping tool! http://uk.mouser.com/ProductDetail/Harwin/Z20-320/?qs=sGAEpiMZZMu6TJb8E8Cjr9Pwp7Y5qQgU
[18:24:49] <jthornton> ouch
[18:25:22] <CHNCguy> haha expensive,
[18:25:51] <CHNCguy> can i play with the ios without getting the 12v to them? just for testing purposes, ill get a power supply for it tomorrow....
[18:26:55] <jthornton> are you talking about field power on the 7i76?
[18:27:00] <andypugh> jthornton: I use this crimper with good results: http://www.rapidonline.com/Tools-Equipment/Ratchet-Action-Crimp-Tool-Ht225d-85-0262?sourceRefKey=QtkkseedW
[18:27:40] <CHNCguy> yes
[18:28:12] <jthornton> none of the I/O will work without field power
[18:29:02] <jthornton> I normally use 24v for field power and the proxes on your CHNC should be 24v
[18:33:41] <CHNCguy> ya I think they are.
[18:34:00] <CHNCguy> Hey John can u help me get those subroutines loaded into linux, the ones in this link
[18:34:05] <CHNCguy> https://github.com/cnc-club/linuxcnc-features
[18:34:33] <CHNCguy> or anyone ;D
[18:36:07] <CHNCguy> First off how do I even download these files LOL
[18:36:18] <jthornton> what is it?
[18:36:20] <CHNCguy> nevermind, I saw the right side LOL
[18:36:32] <CHNCguy> its aparently features for linuxcnc lathe
[18:36:41] <CHNCguy> subroutines
[18:36:45] <jthornton> what kind of features?
[18:37:01] <jthornton> use ngcgui, it's part of LinuxCNC
[18:37:20] <CHNCguy> how do i use ngcgui? I just got my motors to work here......LOL
[18:38:23] <jthornton> http://linuxcnc.org/docs/html/gui/ngcgui.html#_ini_file
[18:38:56] <jthornton> all my lathe subroutines http://gnipsel.com/shop/hardinge/hardinge.xhtml
[18:39:20] <jthornton> so you add a few lines to your ini file and copy all my subroutines
[18:40:57] <CHNCguy> k
[18:41:46] <jthornton> my [DISPLAY] section of the ini file http://pastebin.com/pt6Jx9nZ
[18:42:00] <jthornton> anything with a # is a comment
[18:42:30] <jthornton> oh and this line too
[18:42:32] <jthornton> TOOL_EDITOR = tooledit x orien back front z diam
[18:45:46] <CHNCguy> k
[18:47:51] <andypugh> My lathe subs are prettier than ngcgui, but can't be assembled into a G-code file (in fact, no G-code is produced).
[18:48:51] <jthornton> yours does look better. how does that work with no G code?
[18:49:42] <andypugh> It uses fixed G-code subs, and calls them with parameters, rather than creating a g-code file that can be re-used.
[18:49:56] <jthornton> ok, that makes sense
[18:50:16] <CHNCguy> wheres ur subs andy?
[18:50:19] <jthornton> Dewey like to use helper subs with ngcgui
[18:50:28] <jthornton> I get confused by them
[18:50:32] <andypugh> (Though I am working on some mill tabs that simply MDI the G-code in from Python :-)
[18:50:42] <andypugh> CHNCguy: http://www.linuxcnc.org/index.php/english/forum/41-guis/26550-lathe-macros
[18:51:06] <jthornton> I do like the way ngcgui can concatenate the subroutines into one file
[18:51:45] <andypugh> Yeah, there are definite advantages to ngcgui if you make things more than once, and know what you want to make.
[18:52:09] <CHNCguy> true, that would work for single ops, but im my case with multiple tools and such, im not sure it would work nicely...expecially without seeing the toolpath
[18:52:12] <andypugh> My subs are more like a 2-axis version of manual lathe power feed :-)
[18:52:18] <jthornton> even for one offs it is faster than anything else I've tried
[18:52:53] <andypugh> Yeah, my stuff is for standing at the machine and thinking in metal :-)
[18:53:04] <CHNCguy> lol
[18:54:35] <andypugh> That's why I have decided I don't need a "proper" CNC lathe, the sorts of things I do suit the conventional centre-lathe layout and access for measuring tools etc.
[18:54:36] <jthornton> say for example I chuck up a blank and touch off Z then I can take a facing cut and zero Z, turn the OD, drill, rigid tap, part off etc just by filling in the blanks and telling ngcgui to use all of them in the order I placed them
[18:57:20] <CHNCguy> hey jt im trying to install the features at the link first and see how they are, https://github.com/cnc-club/linuxcnc-features
[18:57:26] <CHNCguy> but i cant install python for some reason
[18:57:35] <CHNCguy> can u guide me through it?
[18:57:51] <jthornton> it's greek to me
[18:57:56] <CHNCguy> is says type in terminal sudo apt-get install python-1xm1
[18:58:08] <CHNCguy> says couldnt find package
[18:58:10] <andypugh> Wheres my typical process would be to open the facing tab, load my T1, jog close to the work, touch of Z to 1, then face to zero. Then realise I haven't quite cleaned up enough, so face to -1mm, then re-touch off. Then I might turn a diameter to Z = -20, offer up the mating part, decide to make it a bit longer, so do it a bit further. The way I work is very iterative and hands-on.
[18:58:11] <jthornton> you should have python installed, just open a terminal and type in python
[18:58:32] <CHNCguy> yup i got
[18:58:32] <jthornton> don't know what python-1xml is
[18:58:33] <CHNCguy> it'
[19:00:40] <andypugh> I wonder if i could sell my l33t Google skillz?
[19:01:01] <jthornton> this is my facing subroutine http://pastebin.com/AceSu1rH
[19:01:29] <jthornton> if I pass a 1 to the set z I use G11 L20 to zero Z
[19:01:47] <andypugh> Either other folk are lazy, or bad at google, or I am particularly good at thinking of ways to search. (viz the wire-end rounding tools I found for that guy on the users list).
[19:01:55] <jthornton> so I tell it the diameter and how much to face off, if it don't clean up I run again
[19:02:42] <jthornton> heh I see that now
[19:02:59] <andypugh> I used the mill with the big Y screw and the gibs all nice and tight today. Very happy.
[19:03:37] <jthornton> it's nice when things work like they should
[19:04:22] <andypugh> 8mm tool, 5mm DOC 40mm/min, 600rpm, nice long swarf, lovely finish (in steel). The Mini mill would have wobbled and snapped the cutter.
[19:04:52] <CHNCguy> damn im stuck trying to get this subroutine loaded, can someone step by step this with me ;D
[19:04:56] <CHNCguy> https://github.com/cnc-club/linuxcnc-features
[19:05:03] <CHNCguy> scroll to the start 0
[19:05:23] <andypugh> Did you see my cnc-zone post about the games I had to play to fit the new nut? It had an unexpected ball transfer tube...
[19:05:43] <jthornton> no, I missed that
[19:06:07] <jthornton> but I don't visit the zone anymore... too many commercials to wade through
[19:07:04] <Jymmm> jthornton: ABP FTW
[19:07:10] <andypugh> CHNCguy: Ah, yes, the Russian stuff. It looks really very good, but I have no idea how it works. There are youtube videos that show how poweful it is, but don't really elucidate how to use it.
[19:08:20] <CHNCguy> yup, looks great, but dang...how do i install it!
[19:08:31] <jthornton> beats me
[19:08:36] <CHNCguy> I see the tutorials, but i keep getting 1n unkown command
[19:08:48] <CHNCguy> what is : (1n)?
[19:10:05] <andypugh> CHNCguy: You risk having a system that even you don't understand if you install ncggui + cnc-club "features" + anything else you find.
[19:10:23] <andypugh> I would certainly suggest creating backup configs :-)
[19:10:59] <andypugh> jthornton: Well, this was my special-order preloaded nut, 6 week delivery from GTEN.
[19:11:01] <andypugh> https://picasaweb.google.com/lh/photo/XLMGb2yLNvqkK70U11MJ7dMTjNZETYmyPJy0liipFm0?feat=directlink
[19:11:24] <CHNCguy> yup I agree, but at this elementary stage of my build it wont hurt, I have every setting written down...
[19:11:28] <andypugh> thats a 16mm screw, a huge upgrade on the 12mm.
[19:11:47] <jthornton> nice, what was the catch to install it?
[19:11:52] <CHNCguy> andypugh: so what is the thing he is using gladevcp?
[19:12:04] <CHNCguy> I don't know jt still trying to figure it out
[19:12:29] <jthornton> http://linuxcnc.org/docs/html/gui/gladevcp.html
[19:12:30] <andypugh> But wait! what's this? The nut has a tube not shown on that catalogue drawing, how is one meant to screw this into anything? https://picasaweb.google.com/lh/photo/TToLLpPtd1N2Gx-mynggUtMTjNZETYmyPJy0liipFm0?feat=directlink
[19:12:56] <jthornton> holy mackrel andy
[19:13:51] <andypugh> I am not a man to give up easily when I have spent £100 on a ball nut: https://picasaweb.google.com/lh/photo/ku1VIKupjIF3SwbYoYN909MTjNZETYmyPJy0liipFm0?feat=directlink
[19:14:27] <andypugh> it works, too: https://picasaweb.google.com/lh/photo/iwmInbQ6dhJEJzz6GOivzNMTjNZETYmyPJy0liipFm0?feat=directlink
[19:14:46] <jthornton> very nice!
[19:15:04] <jthornton> did you make the two halves then bore and thread it?
[19:15:29] <andypugh> Made it in one piece then split it with a slitting saw
[19:16:09] <jthornton> so it clamps on the threads?
[19:16:21] <jthornton> ok, I see the gap now
[19:16:43] <andypugh> The next issue is that the original screw just went in from the front, so can't be inserted from the back with the nut on: https://picasaweb.google.com/lh/photo/ezpd2gtGljk1WyDEkfw9idMTjNZETYmyPJy0liipFm0?feat=directlink
[19:17:21] <andypugh> Yes, it clamps the thread. I never thought of doing it until I had to, but it's a really solid way to hold that style of nut.
[19:17:33] <jthornton> it looks solid
[19:18:40] <andypugh> You can see in that last photo that I already solved that issue, using a taper and a differential screw. https://picasaweb.google.com/lh/photo/qzxm1XbHqIUZS5GCtz1CCdMTjNZETYmyPJy0liipFm0?feat=directlink
[19:18:51] <jthornton> did you see the Yaskawa Mechatrolink post
[19:19:17] <andypugh> And https://picasaweb.google.com/lh/photo/Gu1YtXinbAdzUHSIB5aBAdMTjNZETYmyPJy0liipFm0?feat=directlink then https://picasaweb.google.com/lh/photo/i0nmI4mYbTEeNgR8m-_f7tMTjNZETYmyPJy0liipFm0?feat=directlink
[19:19:40] <andypugh> Yeah, that's another "open but strangely closed" standard
[19:19:49] <jthornton> lol
[19:20:53] <Mr_Mayhem> So, any Mesa card folks around? I got the Mesa 5I25 and the matching 7I76 daughterboard for my mill, all the stepper outputs work now, so now and I am trying to get the analog 10v spindle control to show signs of life on a digital voltmeter. Its wired up to 12v in the proper circuit, and my 5th stepgen is set for spindle, but what else do I need to do to make it work? I don't see changes on
[19:20:53] <Mr_Mayhem> the meter when I play with the + and - buttons. The numbers go up and down in the test screen, so stepgen is working, hmmm.
[19:23:57] <andypugh> I had a very interesting problem, it took me a whilr to figure it out. The Y axis went very tight at the column-end. I initially thought that it was wear in the slides (which would make me sad), but it seemed odder than that, the table almost seemed to levitate at the column end. It was one of those things solved when not quite asleep. The swarf-shield had to be modified to suit the new nut:
[19:23:58] <andypugh> https://picasaweb.google.com/lh/photo/5UZI2W8BDMIhhgEybHfF9NMTjNZETYmyPJy0liipFm0?feat=directlink
[19:25:13] <andypugh> Spindle speed isnt a stepgen
[19:25:40] <Mr_Mayhem> oh. Serial?
[19:25:51] <andypugh> Mr_Mayhem: I don't suppose you are the Mayhem I know from Ixion?
[19:26:21] <Mr_Mayhem> No, I am different Mayhem, hehe.
[19:26:51] <andypugh> Mr_Mayhem: If you list the HAL pins you should see three pins with "spindle" in the name (IIRC_
[19:28:21] <Mr_Mayhem> ok let me get the list up on the screen.
[19:28:25] <andypugh> I can't recall the exact names, but id you have linuxnc "live" just open a terminal and do "halcmd show pin *5i25*" and you should be able to see them.
[19:28:44] <Mr_Mayhem> ok
[19:30:18] <andypugh> jthornton: The swarf shield hole wasn't quite big enough, so when the shield hit the column and started to slide, it pushed the table sideways. As the left-side guide is a V way, the effect was to push the table upwards......
[19:31:23] <jthornton> wow, I bet that was fun to sort out
[19:31:42] <andypugh> 45 minutes to disassemble, 30 seconds with a file, 1 hour to reassemble, and it all moved lovely.
[19:33:40] <andypugh> You might have noticed the rope in https://picasaweb.google.com/lh/photo/ku1VIKupjIF3SwbYoYN909MTjNZETYmyPJy0liipFm0?feat=directlink which is suspending the whole table from the head so I can work on the knee ways...
[19:36:35] <andypugh> CHNCguy: You still there? I am sorry, I got distracted.
[19:36:41] <Mr_Mayhem> I see spindir, spinena, and spinout.
[19:37:05] <andypugh> Them be the ones. spinout is the spindle speed
[19:37:22] <jthornton> I see the rope
[19:37:42] <andypugh> There is probably a parameter for scale. halcmd show param *spind*
[19:37:59] <andypugh> Sorry, don't type the "d" there.
[19:38:06] <Mr_Mayhem> ok
[19:39:33] <andypugh> I am being lazy, I have a 7i76 wired in behind me, all I need to do is boot that PC.
[19:40:48] <Mr_Mayhem> Yes, spindir - invert, spinena invert, spinout - maxlim, spinout - minlim, spinout - scalemax.
[19:41:05] <Mr_Mayhem> hehe
[19:41:11] <CHNCguy> im back andy :)
[19:41:50] <andypugh> The last three let you alter the relationship between spinout and the voltage on the terminals
[19:42:13] <Mr_Mayhem> ok, where do they ultimately need to be typed in?
[19:42:27] <andypugh> What spindle speed corresponds to 10V to the spindle drive?
[19:43:50] <Mr_Mayhem> well, I don't know but it goes up to 24000 rpm. I know the vdf can scale it, but I haven't played yet to that level of detail. I am just trying to see my voltmeter go up and down at this point. I do have the 12v wired to the 7I76.
[19:44:38] <Mr_Mayhem> If I set 10v to be 24000 rpm that would be a good start.
[19:45:24] <andypugh> If 10V is 3000 rpm at the vfd then the HAL file needs to include "setp hm2_5i25.0.7i76.00.spinout-scalemax 3000" to set the scaling, then set the min and max similarly to what you want the limits to be.
[19:45:49] <CHNCguy> Mr_Mayhem where in the pncconf did u set your spindle up at?
[19:46:13] <andypugh> (check the parameter name, I am guessing). Pncconf might know how to do this, I am not sure.
[19:46:21] <Mr_Mayhem> It was done as a 5th stepgen set to spindle.
[19:46:41] <andypugh> Yeah, stepgen, he be wrong.
[19:46:54] <CHNCguy> ya i think thats wrong
[19:46:58] <Mr_Mayhem> ok
[19:47:04] <CHNCguy> there is a place
[19:47:12] <CHNCguy> in smart serial 0
[19:47:15] <CHNCguy> 3rd tab
[19:47:27] <CHNCguy> but my pncconf crashes when I set it to spindle output
[19:47:39] <CHNCguy> not really crashes, but just doesnt let me finish, gives me errors
[19:47:46] <Mr_Mayhem> I tried the only other spindle thingie I could find, smart serial 0. It always crashes the pncconfig.
[19:47:54] <Mr_Mayhem> Error
[19:47:55] <andypugh> I doubt it actually "crashes"
[19:47:56] <Mr_Mayhem> yes
[19:48:24] <Mr_Mayhem> I think this is the 3rd tab, smart serial 0, yes?
[19:49:02] <CHNCguy> yes why does it have it there if all we get is errors, we must not be selecting something else also
[19:49:26] <andypugh> Now, here is something that might surprise you. When folk write software they tend to choose error messages that mean something. They may not mean anything to you, but I bet that Chris would know exactly what the error message meant.
[19:49:29] <Mr_Mayhem> One would assume this, yes. Maybe we need a dependency.
[19:50:33] <Mr_Mayhem> Yeah, he would be the person most familiar.
[19:51:35] <andypugh> The smart-serial stuff will only work if you have a smart-serial accessory attaached to TB3. The spindle VFD should actually be on TB4
[19:52:05] <andypugh> (I just noticed that the 7i76 manual was open in the background all along...)
[19:53:10] <Mr_Mayhem> yes, tb4. I assumed it uses pcm pulses or something. So what signal does control the output of the 10v output pot? hmm.
[19:53:32] <pcw_home> The 7I76 spindle stuff is part of sserial channel 0
[19:53:59] <CHNCguy> I see the pinout in the manual but nothing about how to select and set it up ;|
[19:54:19] <Mr_Mayhem> ok. That't the one tab I get the error on when I set it to spindle.
[19:54:32] <pcw_home> do you have field power applied?
[19:54:36] <Mr_Mayhem> at the end when I click apply.
[19:54:44] <Mr_Mayhem> Yes. 24v
[19:54:50] <CHNCguy> I don't LOL Mr_Mayhem does :D
[19:55:16] <Mr_Mayhem> Both yellow LED are lit steppers work fine.
[19:55:20] <pcw_home> probably a pncconf bug then
[19:56:16] <pcw_home> if this is the latest pncconf you will have to edit the hal file by hand
[19:56:24] <Mr_Mayhem> I have the last cd image, but it seems the same as the one I dl in March 2013
[19:56:44] <andypugh> I am playing with pncconf here, having also found a live LinuxCNC VM also lurking in a background window
[19:57:31] <Mr_Mayhem> Funny what you can find just laying around on your system.
[19:58:02] <andypugh> When you get to the "Mesa0 Configuration" stage of Pncconf, select the firmware you actually have (probably 7i76x2)
[19:58:42] <andypugh> Then click the "accept component changes" butan
[19:59:27] <andypugh> (oops, using the wrong vernacular there, that's the gaming window where they use "butan" :-)
[19:59:39] <Mr_Mayhem> I think it said 7I76 x1 in the help page that showed pinouts.
[19:59:43] <Mr_Mayhem> checking.
[20:01:34] <Mr_Mayhem> yes, /usr/share/doc/hostmot2-firmware-5I25/7I76x1.PIN
[20:02:09] <Mr_Mayhem> under the help/ Output tab in Pnconfig
[20:02:17] <andypugh> Fine, choose that, then hut the big "Accept..." button
[20:03:08] <andypugh> Then Smart Serial 0 tab should have a 7i76-Analog Output sub-tab?
[20:03:18] <Mr_Mayhem> Done, it did it's progress bar animations, and is done.
[20:03:59] <andypugh> Then set the analog output to "Spindle Output" and it ought to just work?
[20:04:31] <Mr_Mayhem> No, it has 7I76 Mode 0 I/O Card Tab 0, Tab 1, Tab 2
[20:05:04] <Mr_Mayhem> They are all 7I76 Mode 0 i/O Card x
[20:05:05] <andypugh> Can you put a screen grab on imagebin?
[20:05:16] <pcw_home> different versions?
[20:05:31] <pcw_home> (of pncconf)
[20:05:48] <pcw_home> Andy is likely running master
[20:06:04] <Mr_Mayhem> Yeah, that analog tab is not there.
[20:07:04] <Mr_Mayhem> I can't do the pastebin right now as the box isn't wired, what do I use to take a screen shot anyway? I am a linux newbie.
[20:07:27] <Mr_Mayhem> I'd have to copy the image file over via usb dongle.
[20:08:09] <CHNCguy> hey
[20:08:16] <CHNCguy> u said u have tab 2 right?
[20:08:18] <andypugh> The VM claims to be "v2.5-release"
[20:08:25] <CHNCguy> click smart serial 0
[20:08:40] <Mr_Mayhem> I clicked it.
[20:08:45] <CHNCguy> it should then say 7i76 mode i/o card tab 2
[20:08:51] <CHNCguy> its the 3rd tab
[20:09:00] <Mr_Mayhem> It does.
[20:09:06] <CHNCguy> k
[20:09:13] <CHNCguy> top drop down select spindle output
[20:09:16] <andypugh> And, in fact, Help-about claims to be "beta 1 version"
[20:09:18] <Mr_Mayhem> Unused analog input is noticable.
[20:09:25] <CHNCguy> click
[20:09:29] <CHNCguy> and dropdown
[20:09:34] <CHNCguy> then select spindle output
[20:09:44] <Mr_Mayhem> When I select this, I get the error when I get to "Apply" at the end.
[20:10:04] <CHNCguy> same here.... :( BOOOoooooOoooOoO
[20:10:16] <CHNCguy> hey guys how can we edit the file manually?
[20:10:19] <Mr_Mayhem> Yeah, that's how I feel.
[20:11:17] <CHNCguy> there has to be another setting that we are missing which causes the error, I don't have field power on right now so that might be my prob
[20:11:18] <andypugh> I always edit the files manually, FWIA
[20:11:24] <Mr_Mayhem> Andy mentioned an 7i76-Analog Output sub-tab, which is not here on my setup.
[20:11:40] <Mr_Mayhem> I have what you said, IO Tab 2
[20:11:54] <Tom_itx> catching up here... those terminals are C-Grid
[20:11:58] <Tom_itx> to fit the 7i73
[20:12:08] <Tom_itx> pretty sure
[20:12:14] <CHNCguy> ahhh i see
[20:12:20] <CHNCguy> one sec
[20:12:44] <Mr_Mayhem> I have to eject, I have a dinner to get to. Sorry about that. If you know what to do manually, please put it here and I will try when I return from dinner.
[20:12:48] <CHNCguy> haha i know now........
[20:12:56] <CHNCguy> i have ur answer ;D
[20:13:00] <Mr_Mayhem> ok
[20:13:04] <CHNCguy> ill type it in here
[20:13:07] <CHNCguy> have fun :D
[20:13:25] <Mr_Mayhem> thanks, I really appreciate the help, all of ya.
[20:13:33] <CHNCguy> ;D
[20:16:13] <CHNCguy> ********** OK so this might work ************* on the 3rd i/o table (I/O Connector 3) on the right hand side num 0 says unused encoder, you should select spindle input here. Then change the smart serial 0 tab 2 to spindle output. Then you will be able to test the spindle, if it runs here then ur good. I don't have field power so I can't test, gonna
[20:16:13] <CHNCguy> try it tomorrow. Hope this gets it working ;)
[20:16:27] <CHNCguy> andy, how do u modify the file to work the spindle?
[20:17:09] <CHNCguy> which file and what do you do to it?
[20:17:59] <andypugh> Manually it is just a case of adding "net somesignalnameorother motion.spindle-speed-out => hm2_5i25.0.7i76.0.spinout" to the HAL file.
[20:19:51] <andypugh> You can choose any signal names you want, and anywhere you use them in the HAL file they will represent the same value. The pins created my the motion module (which include the spindle speed) are all listed here: http://www.linuxcnc.org/docs/html/man/man9/motion.9.html
[20:20:26] <Tom_itx> any reserved words on those?
[20:21:25] <andypugh> There are no reserved signal names. In fact I think that signal names can be identical to pin names, even, but that would be asking for trouble. :-)
[20:21:58] <Tom_itx> for any number of reasons
[20:22:58] <andypugh> Ah, no, HAL does refuse to allow you to do that "Signal name 'motion.tooloffset.z' must not be the same as a pin"
[20:23:03] <Tom_itx> andypugh, when you did your LCD were you playing with the 7i73 at the time?
[20:23:19] <Tom_itx> i ran across your lcd pic the other day again..
[20:23:21] <andypugh> Yes, the LCD is connected via a 7i73
[20:23:47] <Tom_itx> do you remember how the lcd shows up in hal?
[20:24:00] <andypugh> subtly
[20:24:01] <Tom_itx> or is it just io pins
[20:24:12] <andypugh> it is just a single pin.
[20:24:27] <Tom_itx> what interface was the lcd?
[20:24:32] <Tom_itx> nibble?
[20:24:34] <Tom_itx> or spi
[20:24:37] <Tom_itx> or other
[20:24:43] <andypugh> hm2_5i25.0.7i73.0.1.display
[20:25:04] <Tom_itx> so the 7i73 handles it?
[20:26:09] <andypugh> Yes, one byte per servo thread, (gives a perfectly adequate update rate)
[20:26:26] <Tom_itx> lcds are pretty slow anyway
[20:26:38] <andypugh> The "lcd" HAL component handles the formatting, and creates net-able HAL pins
[20:26:58] <Tom_itx> i haven't looked into it much yet
[20:27:44] <TangentAudio> woohoo, just got the first signs of motion out of the VFD driver i've been writing
[20:28:10] <TangentAudio> (modbus-rtu control of an Emerson/Control Techniques Commander SK)
[20:28:14] <andypugh> "lcd" looked easy when i started it, then I foind that there was no floating-point printf in the kernel, so I ended up writing printf from scratch on HAL...
[20:29:25] <andypugh> Right, I am going to retire now, in the hope of seeing actual AM tomorrow, and getting stuff done.
[20:29:28] <andypugh> Night all
[20:29:32] <Tom_itx> later andy
[20:29:34] <pcw_home> 'nite
[20:31:47] <CHNCguy> nite
[20:32:53] <Tom_itx> pcw_home i'm not finding a pdf for the 7i73
[20:33:43] <pcw_home> google 7i73man
[20:34:03] <pcw_home> is there a broken link?
[20:34:25] <Tom_itx> ahh there it is
[20:34:37] <Tom_itx> usually they're listed on the product page
[20:34:41] <Tom_itx> i didn't see one there
[20:37:06] <Tom_itx> ok i was on the store page
[21:25:27] <CHNCguy> night yall ;D