#garfield Logs

Nov 29 2014

#garfield Calendar


10:53 rue_more -2 and there is snow
20:18 rue_shop3 ok working on the new cnc
20:18 rue_shop3 I'm gonna ignore that if I started it again from scratch I could do a better job
20:19 m_itx wakes up a
20:20 rue_shop3 maybe its time to rewrite the makefiles to use the usb programmer by default, I havn't used the parallel programmer in like 2 years
20:20 rue_shop3 poor thing
20:20 Tom_itx hang it in a frame on the wall
20:21 rue_shop3 I might need it yet, if anything went wrong with all the usb programmers
20:21 rue_shop3 then again, I still have the working IDE programmer
20:21 Tom_itx then you could get another one
20:21 Tom_itx not like i don't have a few sitting around
20:21 rue_shop3 but it would take like weeks
20:21 Tom_itx i did finally sell one yesterday
20:21 rue_shop3 I dont remember how long yours took to get here
20:21 Tom_itx just predetermine when it's gonna go bad
20:22 rue_shop3 :)
20:22 Tom_itx that dude in hawaii got 4
20:22 rue_shop3 so, think an intel cellery is fast enough for linuxcnc?
20:22 Tom_itx wanted more
20:22 rue_shop3 they are good rpogrammers
20:22 Tom_itx you just need to test the latency with their test
20:22 rue_shop3 I have two usb programmers, the u2 board you sent me got turned into one
20:22 Tom_itx i know
20:23 rue_shop3 I still ahve the u4 in the "too special to use" pile
20:23 rue_shop3 :)
20:23 rue_shop3 I look at it every week tho
20:23 Tom_itx it would work too but you'd have to recompile the code
20:23 rue_shop3 yours is esp nice cause its in a box
20:23 rue_shop3 I have a bunch of tape around the other one
20:24 Tom_itx i got a sack full of boxes in the closet
20:24 Tom_itx iirc i got like 50 this time
20:24 rue_shop3 any progress in the OR with the fpga baords?
20:24 Tom_itx no
20:25 Tom_itx i got the chips off the boards
20:25 rue_shop3 you too sad to work on it?
20:25 Tom_itx too broke
20:25 rue_shop3 oh you said you were waiting for funding
20:25 rue_shop3 armyofevilrobots uses one of those fpga things on his
20:25 Tom_itx they are very nice
20:25 rue_shop3 he was showing me his gecko drive, its a little box that does 4 steppers
20:26 Tom_itx i would highly recomend the 7i90 now
20:26 Tom_itx cheaper than mine
20:26 Tom_itx better
20:26 Tom_itx 72 io instead of 48
20:26 Tom_itx faster fpga
20:26 Tom_itx newer
20:26 rue_shop3 way over any of my bugets, this cnc is using dc servo loop with m32
20:26 Tom_itx i'm getting one instead of mine when i can
20:27 rue_shop3 I'm prolly gonna slip over to the m324 to do all the axies
20:27 Tom_itx they've got servo daughter cards too
20:27 rue_shop3 it'll take in the step/dir from cnc
20:27 rue_shop3 do you know what the step rate limit is fom the parallel port?
20:27 Tom_itx i can find out
20:27 Tom_itx ask in #linuxcnc-devel
20:28 rue_shop3 I suspect 4 or 8Mhz
20:28 rue_shop3 the isa bus the parallel port is on is 8Mhz, I dont know how many cycles to write to it, should be 1
20:28 Tom_itx not many there this weekend but i just asked
20:28 rue_shop3 ok I wrote the dc control firmware
20:29 rue_shop3 my buttons are step and dir
20:29 rue_shop3 here goes!
20:29 e_shop3 thinks about the fact he's testing this RIGHT UNDER the smoke dete
20:31 Tom_itx i may get some DIN mounts for them too
20:31 Tom_itx he sells em for like $5 a pair
20:39 Tom_itx whatever you can do in 2x base periods
20:44 rue_shop3 base periods?
20:45 Tom_itx yeah they use RTAI
20:45 Tom_itx and have a base thread to run the functions in
20:45 Tom_itx i use a servo thread on the mesa cards
20:45 Tom_itx they don't use the base thread
20:46 Tom_itx it's why you need to run a latency test
20:46 Tom_itx and enter the values for your base thread
20:46 rue_shop3 oooh of course
20:46 Tom_itx so it varies from one pc to another
20:46 rue_shop3 I didn't think of that cause my current machine uses dos and there is no multitasking
20:47 Tom_itx RTAI is best then preempt-rt then xanomi
20:48 Tom_itx the new 2.6 and probably 2.7 use debian wheezy
20:56 Tom_itx # Not needed with Mesa cards
20:56 Tom_itx #BASE_PERIOD = 500000
20:56 Tom_itx # Servo task period, in nanoseconds
20:56 Tom_itx SERVO_PERIOD = 1000000
20:57 Tom_itx that's what mine is
20:58 rue_shop3 so 250steps/sec
20:59 rue_shop3 considering that your usually 200 steps/rev on a motor, thats pretty slow
20:59 rue_shop3 wait
20:59 rue_shop3 250k
20:59 rue_shop3 1000 rpm
20:59 Tom_itx but my card is doing 40000 per inch
20:59 Tom_itx and i get about 80 ipm
20:59 Tom_itx some are gettting alot higher
21:00 rue_shop3 1250rpm
21:00 rue_shop3 ARG
21:00 rue_shop3 rps
21:00 Tom_itx run the test vigourously on yours
21:00 rue_shop3 75000 rpm
21:00 rue_shop3 so the parallel port dosn't cause a reasonable limit on the step rate
21:00 Tom_itx it will run it ok but you run out of io for limits and other stuff
21:01 Tom_itx you can use soft limits
21:01 rue_shop3 how many limits do you need?
21:01 rue_shop3 my servo firmware isn't working
21:01 Tom_itx well you need to home it or enter a home value
21:02 Tom_itx so at least 3
21:02 rue_shop3 I'v got no idea if this version was used on anything
21:02 Tom_itx i have 2 on x 2 on y and 1 on z
21:02 rue_shop3 ah
21:02 Tom_itx but don't use the extra one because i have soft limits set
21:02 Tom_itx it's wired but never hit
21:03 Tom_itx then some run a vfd spindle
21:03 Tom_itx and pendant buttons and encoder
21:03 rue_shop3 this code really looks like it should work
21:04 Tom_itx i'm using probably around 15-20 io without counting
21:04 Tom_itx maybe a few more
21:04 rue_shop3 most of that is the pendant tho yes?
21:05 Tom_itx spindle on off
21:05 Tom_itx spindle speed
21:05 Tom_itx you can run an encoder on the spindle with index... that's 3
21:05 Tom_itx but yeah probably most is on the pendant
21:06 Tom_itx 8 for the step dir
21:06 Tom_itx i wired in an A axis
21:06 Tom_itx limits on each
21:06 Tom_itx that's another 7
21:06 Tom_itx only use 1 on z)
21:07 rue_shop3 this shoudl step 32 units every time the button is pressed
21:07 Tom_itx then there's things like coolant
21:07 Tom_itx those take io
21:07 rue_shop3 it would be hard to code is the pendant were just serial yes?
21:08 Tom_itx you could put it on an SSERIAL card
21:08 Tom_itx he has one designed for a pendant
21:09 Tom_itx if you can write the code you can do it
21:09 Tom_itx it's pretty open to that
21:09 Tom_itx alot of the features started out just that way
21:10 Tom_itx the source is readily available
21:11 rue_shop3 writing to the PIN should toggle the pin yes?
21:11 Tom_itx i would think so
21:11 Tom_itx is the ddrx set?
21:11 rue_shop3 its an output
21:12 rue_shop3 iirc, if you write a 1 to PIN instead of PORT, the output state toggles
21:12 Tom_itx you read PIN and write PORT
21:12 Tom_itx you _can_ write PIN
21:12 rue_shop3 but iirc if you write to PIN it toggles the output
21:12 Tom_itx but originally it was an undocumented feature
21:15 rue_shop3 I dont know if its supported on avrs as old at the m32
21:15 rue_shop3 :)
21:16 Tom_itx can't tell you
21:17 rue_shop3 well, the led looks like its on
21:17 rue_shop3 some debug eh?
21:18 Tom_itx stick it behind a fan and see if it's pulsing
21:21 rue_shop3 hmm I'm sure the timer isn't rolling over
21:21 rue_shop3 it triggers the PD recalc, so that would explain why the outputs aren't chaning
21:22 Tom_itx https://www.mail-archive.com/emc-users@lists.sourceforge.net/msg51660.html
21:23 Tom_itx for the new TP
21:24 rue_shop3 k...
21:26 Tom_itx for 2.7
21:27 rue_shop3 huh, the PIN = disn't work
21:27 rue_shop3 noted...
21:28 rue_shop3 I have a flashing led
21:28 rue_shop3 aha, that proves it, the overflow interrupt isnt' oing off
21:30 rue_shop3 ah no, there it goes
22:12 root_ hey dan
22:12 rue_shop3 hey
22:12 rue_shop3 who are you?
22:12 rue_shop3 :)
22:12 root_ woops
22:12 root_ lol
22:13 moon me
22:13 rue_shop3 ah
22:13 rue_shop3 whats up?
22:13 moon i look like a dumb ass
22:13 moon uh
22:13 moon how does a guy move up threw subnets
22:13 moon i am on arouter on a router
22:14 moon i want to get to a prionter one step up
22:14 rue_shop3 you cant go down to the end computer, just up
22:14 rue_shop3 the subnets have to be different numbers
22:14 rue_shop3 you cant have a 192.168.1 off a 192.168.1
22:14 rue_shop3 or it cant tell whats where
22:15 moon one is 192.168.0.* and other 192.168.1.*
22:16 moon wait maybe im a dumb ass
22:16 moon i just nmaped it it looks like i can see them
22:16 moon :P
22:17 rue_shop3 you can see up towards the internet but not down
22:18 moon yes that makes sence fire walls are check valves right
22:18 rue_shop3 yup
22:18 moon cool
22:19 moon thanks
22:19 moon bye