00:38:34 alex_joni has left #emc-mazak 01:25:55 rayh is now known as rayh-away 01:33:36 CNC_Workshop-awa has quit 09:37:29 alex_joni has joined #emc-mazak 10:01:55 mshaver has joined #emc-mazak 10:14:23 hi matt 13:55:42 anonimasu has quit 13:56:15 anonimasu has joined #emc-mazak 15:30:03 rayh-away is now known as rayh 15:47:00 got specific problems? 15:47:10 let's move it in here... 15:49:02 jmk keeps saying that it's just like wiring components and I've done some of that. 15:49:22 right 15:50:56 CNC_Workshop has joined #emc-mazak 15:51:15 power is up. 15:51:56 rayh is now known as rayh-away 15:53:58 ok.. 15:54:01 ask away :) 15:58:32 I wish I knew enough to ask an intelligent question. 15:58:41 what are you trying to do? 15:58:47 or what isn't working? 15:58:49 I see a numbe of bask scripts in the main directory here. 15:58:52 let's take it slow.. 15:59:09 bash scripts? how are they called? 15:59:09 Looks like they were intended to test out portions by starting and stopping things. 15:59:32 jmk was able to get motion running with emc so that is good. 16:00:14 There is one small problem with the z quill. It's brake is set using amp enable/disable 16:00:14 aha 16:00:41 The enable way is fine cause before the brake disengages the amp is going. 16:01:01 ok.. and the disable should be the other way around? 16:01:10 first brake, then disable amp.. right? 16:01:14 or at least don't wait 16:01:18 But the other way round, in the time it takes the brake to lock, the quill has fallen enough that it causes a following error. 16:01:28 I see.. let me look at the files 16:01:31 Exactly. 16:02:18 one question.. is there any delay between the start of the brake and the amp disable? 16:02:24 If you have other things "hanging fire" take care of those and we can get this solved later. 16:02:33 No the same sig does both. 16:02:36 so this is only because of the time the brake takes to lock? 16:02:39 ahh.. ok 16:02:52 Yes That is what it seems to me to be. 16:02:56 so basicly we need a timer on this sig, and first do the brake, then the amp disable 16:03:07 Right. 16:03:30 not sure I know enough about CL to do that.. but I'll try :) 16:03:42 I don't think this is done with cl at all. Direct connections in HAL. 16:03:48 yes, but it SHOULD 16:04:22 That would be a desirable thing. 16:04:46 jmk was getting the hang of cl and was happy with the way that it integrated with hal. 16:05:03 just don't think that he had time enough to really get it integrated. 16:05:25 Let me look at the hal sigs to cl. 16:06:11 you happen to know what the signal for the brake release is? 16:07:41 looking 16:08:00 I see a servo-enable signal 16:08:19 or maybe you know where the relay for the brake is connected? 16:08:48 # need to release the Z-axis brake when running 16:08:48 linksp Z-amp-running motenc.3.out-15 16:09:14 I see... 16:09:23 so Z-amp-running is the signal from HAL 16:10:12 * CNC_Workshop chases the brake wire. 16:10:27 err.. no it's not 16:10:38 the brake wire might go to motenc.3.out-15 16:11:55 btw, did you manage to get spindle running? 16:14:11 rayh: from looking at the HAL file I see this: 16:14:20 I didn't. get sp running. 16:14:28 the signal Z-amp-running comes from the amp 16:14:40 when the amp doesn't run, it toggles the signal 16:14:49 by then it's late to turn on the brake 16:15:38 but here's how I would do it: 16:15:46 k 16:15:51 do you see newsig servo-enable bit 16:15:51 linksp servo-enable motenc.3.out-02 16:15:51 linksp servo-enable axis.0.amp-enable-out 16:15:58 that's the servo enable bit 16:16:13 * alex_joni suspects that all servos are connected to motenc.3.out-02 16:16:21 enable of the servos 16:16:50 so we need to rewire the enable of axis.2.amp-enable-out through CL 16:17:20 here's what I need you to do: figure out a free output from the motenc 16:17:36 and wire the drive-enable there (physically) 16:17:46 * alex_joni goes home, and is online again in 15 mins. 16:17:53 ok? 16:18:31 alex_joni has quit 16:19:46 okay it looks like jblock2 numbered 4-7 are open 16:20:19 That has 24 volt power and ground applied now but no outputs connected 16:42:02 alex_joni has joined #emc-mazak 16:42:07 CNC_Workshop: back 16:43:17 I need to go grab a bite, but will leave this open 16:43:18 back in 15 I think 16:44:14 No need to hurry. I've got plenty to study. 16:58:01 back 17:00:20 Got hydraulics running 17:00:56 arm up and down will go. 17:01:18 carousel will rotate both directions. 17:01:22 nice 17:01:31 now.. back to that Z-axis stuff 17:01:35 if you like.. 17:01:58 jack is looking for the wires that tip the tool into or out of the carousel 17:02:02 okay. 17:02:08 z axis brake. 17:02:10 I 17:02:12 right 17:02:13 ve got 17:02:24 space on the motenc breakout. 17:02:34 seen that message in the log 17:03:07 from what I'm seeing : motenc.3.out-02 17:03:25 that's where all the servo-enables are connected. is that so? 17:09:59 Let me look. 17:11:30 it looks like z+ and z- are on that. 17:11:44 Z+ and Z- ? 17:11:48 that doesn't make sense 17:12:16 says that aena should be there 17:12:25 axis enables 17:12:45 who does? 17:14:26 I mean who says that aena should be there? 17:15:53 A paper I've got here. 17:17:23 right.. that's what I see from the hal files too 17:24:48 Got a guy here tracing wires -- need to work with him for a few minutes. 17:25:39 I'll be leaving in about half an hour :( 17:25:56 but I'll be back online later tonight (in 2-3 hours I hope) 17:31:15 gotta go.. 17:31:31 will read the log when I get back.. so keep posting results :) 17:31:33 alex_joni has quit 17:39:40 Well flood coolant works. Got year old coolant everywhere. 17:39:50 yum 17:40:24 can we get a smell-o-vision webcam running? 17:47:34 Now I know why they call it flood. We got one. 18:47:01 We've got tool change arm rotation. 19:45:01 alex_joni has joined #emc-mazak 19:45:04 hello 20:43:11 HI alex. Juat back from a snack. 20:43:19 same here 20:43:28 tested the loal KFC (just opened) 20:43:38 We have motion on all of the hydraulic actuators when we pull em with halcmd. 20:43:54 Checking on the prox switches now. 20:44:11 I still need to figure out the spindle movement. 20:44:29 gear change and orient. 20:44:35 ok.. same when you have questions 20:44:38 I see some of the hal commands. 20:44:43 or if you want to address the Z stuff again 20:44:56 is the KFC any good? 20:46:56 yup 20:47:46 Great. Some of em here make thighs and drumsticks that are so greasy that you can hardly wade through it. 20:48:49 hehehe 20:50:25 We are chasing out a few wires here for prox switches. 20:50:45 and cleaning up some of the rrl connected to the tool changer. 20:53:12 newsig spindle-ready bit 20:53:12 newsig spindle-run bit 20:53:33 question. is the spindle-run a command. 20:53:41 no.. it's a signal 20:53:46 called spindle-run 20:54:03 but it should say that the spindle is running 20:54:14 so maybe newsig spindle-running might be more appropiate 20:54:58 okay. 20:55:53 I see that jmk was using messages to halcmd like 20:55:58 bin/halcmd sets spindle-use-low-gear 1 20:56:24 bin/halcmd sets spindle-rpm-cmd 400 20:56:29 and so on. 20:57:23 right 20:57:30 set signal 20:57:41 so he sets the signal to a given value 20:58:50 Now he was running the spindle that way 20:59:09 changing gears and changing speed. 20:59:09 right 20:59:21 and now you'll want to connect the spindle-rpm-cmd to emc 20:59:24 But it did not do it the next day when I tried. 20:59:24 and see if that works 20:59:34 huh.. not? 20:59:48 I see this also. 21:00:13 # spindle related signals: "high level" signals 21:00:13 # ready (from drive to PC) 21:00:13 # run (from PC to drive) 21:00:14 # at speed (from drive to PC) 21:00:14 # orient command (to spindle control) 21:00:15 # oriented status (from spindle control) 21:00:15 # commanded speed (from EMC to control) 21:00:17 # spindle current feedback (from drive to PC) 21:00:37 Here he says that run is from pc to drive. 21:00:40 ok.. so maybe ready needs to be set 21:00:46 Think that might be an enable? 21:00:53 yes 21:01:12 look at ready 21:01:15 If so it would get set by the machine-on stuff. 21:01:24 bin/halcmd show signal spindle-ready 21:01:27 or so I'd think 21:01:31 not by machine-on 21:01:57 Yes I don't think that connection had been made at all. 21:02:10 but by iocontrol.0.spindle-on 21:02:17 it's not connected now, but it needs to be 21:02:23 try linking like this: 21:02:35 linksp spindle-run iocontrol.0.spindle-on 21:02:53 He was mumbling about machine on not being an NML message at all. 21:02:55 linksp spindle-rpm-cmd iocontrol.0.spindle-speed-out 21:03:07 don't need machine on 21:03:17 What you are giving me should go into the .hal file? 21:03:29 you could just use that with bin/halcmd 21:03:31 to test 21:03:38 and if it's ok, then into the .hal file with it 21:03:52 Okay. As soon as we get a couple more wires rung out I'll start it up again. 21:06:06 ok.. 21:07:53 okay. I've got those two linksp's in there. 21:08:06 no replies 21:08:57 I hear something when I press spindle forward 21:09:33 gotta put it into gear. 21:10:24 probably 21:10:30 but no message for gear :/ 21:11:11 so do a sets spindle-use-low-gear 1 21:11:53 roland@localhost:~/emc2$ bin/halcmd sets spindle-use-high-gear 1 21:11:53 HAL: ERROR: signal 'spindle-use-high-gear' not found 21:12:46 newsig spindle-use-low-gear bit 21:15:11 okay. I get some spindle motion. 21:15:17 only one direction right now. 21:15:30 but it is there with mdi m3 s500 21:16:20 logger_mzk has joined #emc-mazak 21:16:20 topic is: "Mazak EMC retrofit. X and Y homing and moving nicely. Spindle drive works too. Working on Z now." 21:16:20 Users on #emc-mazak: logger_mzk alex_joni CNC_Workshop anonimasu mshaver rayh-away fenn steves_logging @ChanServ 21:17:03 probably, but the speed control is only positive 21:17:05 will change it 21:17:09 ok? 21:18:10 now what do I need to do? 21:18:25 cvs up and compile? 21:18:39 hang on for me to do it first ;) 21:18:47 give me 30 mins for changing and testing 21:19:00 okay will dol 21:19:12 brb 21:19:15 booting a BDI 21:19:19 alex_joni has quit 21:24:05 alex_joni has joined #emc-mazak 21:24:14 back 21:24:16 looking at it now 21:27:33 changed, now testing 21:29:52 ray: one question 21:30:09 when you are running the spindle in reverse, and you have speed = -500 RPM 21:30:22 what should spindle increase do? go to -501 RPM ? 21:36:20 Oh. Those were intended to change belt ratios on a bridgeport with the center belt idler. 21:36:51 Is that possible to find current spindle speed and jump it up 21:36:59 or down. 21:37:25 That whole manual control thing is rather confusing to me. 21:37:41 I thought that's what it's for 21:37:42 seems to be running ok :) 21:37:43 I've not really tried it on a machine. Matt has 21:37:58 if you select forward, it starts at 500 21:38:06 and if you click on > it goes to 501 21:38:07 and so on 21:38:07 oh okay. 21:38:18 let me commit the fixes 21:38:20 if you hold it down, does it repeat? 21:38:23 no 21:38:30 it's only one NML message 21:38:36 okay one rpm for each press. 21:38:36 but you could set that up :) 21:38:40 right 21:38:47 one RPM for each NMLmessage 21:38:57 you might want to change tkemc to send more messages 21:39:00 if you'd like 21:39:13 Well let's leave it that way for now. 21:39:29 Tkemc could easily do that iterating. 21:40:03 right.. that's what I thought too 21:40:11 you can cvs up now 21:40:11 and test 21:41:10 Okay. 21:41:54 say if it works 21:41:59 oh crap. 21:42:02 warn if not, so I can hide 21:42:03 what? 21:42:11 the cvs here is in jmk's name. 21:42:25 and you don't have his passw? 21:42:33 you got it. 21:42:44 I'll checkout a version. 21:42:44 easy 21:42:47 no 21:42:55 go to emc2/src/emc/iotask 21:43:04 enter CVS (the folder 21:43:13 and change the file called Root 21:43:39 it should say: :ext:jmkasunich@cvs.sourceforge.net:/cvsroot/emc 21:43:46 change jmkasunich to rayh 21:44:02 and you should be able to cvs up in that dir (emc2/src/emc/iotask/ ) 21:46:17 nah. That's got all kinds of bad reports from cvs. 21:47:11 what bad reports? 21:48:00 doesn't like cvs -d up 21:48:18 I'll just check out a new set. 21:48:28 cvs up -d 21:48:43 but 'cvs up' is just as safe 21:50:10 k 21:50:13 got it. 21:50:34 make and sudo scripts/emc.run :D 21:51:32 bad habit of running configure also 21:51:41 nah.. no use for that 21:51:52 running configure once is more than enough :D 21:52:10 not the way that I can trash stuff! 21:52:57 lol.. :), don't think you trash rtai 21:53:03 okay it's running -- can't turn on power right now. 21:53:05 or any other stuff that gets checked in configure :) 21:53:16 but if you like it.. 21:53:29 I like it a lot. Thanks for the good work. 21:53:50 as soon as we get a couple more wires tucked in we can test it. 21:54:31 okie dokie 21:54:50 any news from jmk? 21:55:05 Don't think that you need to stay up cause of me. 21:55:24 nothing yet from jmk. 21:55:36 I think he will check in here first. 21:56:45 it's still early :) 21:59:01 only a bit after 11 21:59:01 last night it was after 3am I got to bed :) 22:04:29 wahoo which is short for it works great. 22:04:48 Now i need to put those two links into .hal 22:05:24 cool :D 22:05:26 * alex_joni is happy 22:13:46 I put those two linksp commands into .hal and I'm getting an error during startup. 22:14:27 HAL: ERROR: value '-8bin/halcmd' invalid for float parameter 22:14:27 HAL config file mazak_rf.hal failed. 22:17:07 can you show me the lines you put in there? 22:17:47 # rayh begins to screw it up with help from aj 22:17:47 # connect iocontrol signals 22:17:47 linksp spindle-run iocontrol.0.spindle-on 22:17:48 linksp spindle-rpm-cmd iocontrol.0.spindle-speed-out 22:18:12 hmm.. 22:18:31 do a grep for -8bin/halcmd 22:18:34 inside the mazak_rf.hal 22:18:40 maybe a bad paste in there 22:19:28 # link the final motor command to the DAC 22:19:28 linksp sp-mtr-rpm-cmd motenc.3.dac-03-value 22:19:28 # set scaling - 10V = 4500RPM at the motor 22:19:28 setp motenc.3.dac-03-gain 0.002222 22:19:29 # correct for offset, it causes drift and hunting 22:19:29 setp motenc.3.dac-03-offset -8bin/halcmd sets spindle-rpm-cmd 400 22:19:39 in a section jmk put in. 22:20:00 hmmm... probably that 22:20:00 :D 22:20:06 or maybe I screwed that up before but i think it was there. 22:20:12 yup, more likely 22:20:24 delete the bin/halcmd sets spindle-rpm-cmd 400 22:20:32 and leave only the offset -8' 22:20:46 k 22:21:53 I think that did it. 22:22:01 cool 22:23:34 doesn't respond to speed commands. 22:23:47 running about 20 rpm no matter what I do. 22:24:50 let me check it with gear change and hydraulic up. 22:25:09 hmm 22:26:21 that's it. 22:28:14 works now? 22:28:24 spindle from tkemc is good. 22:28:31 coo 22:28:36 Now I need gear change 22:28:51 I was planning m101 and m102 22:29:15 I thought that jmk had it down to a single line through halcmd to do this. 22:31:00 bin/halcmd sets spindle-low-gear 1 22:31:01 I think 22:31:10 but not sure what you need to turn on 22:32:18 Yes that worked but getting back to high gear did not. 22:32:39 roland@localhost:~/emc2$ bin/halcmd sets spindle-use-high-gear 0 22:32:39 HAL: ERROR: signal 'spindle-use-high-gear' not found 22:32:47 low-gear 0 22:33:06 roland@localhost:~/emc2$ bin/halcmd sets spindle-use-high-gear 1 22:33:07 HAL: ERROR: signal 'spindle-use-high-gear' not found 22:34:50 brb fixing some drawings on another box. 22:34:50 not high-gear 22:35:02 bin/halcmd sets spindle-use-low-gear 0 22:45:26 brb 22:45:29 alex_joni has quit 22:48:32 alex_joni has joined #emc-mazak 22:49:20 CNC_Workshop: hitting the sack soon 22:51:48 k 22:52:10 Thanks for all your help. This is starting to look like it's going to work. 22:52:14 is it working as it should? 22:52:33 nice.. you'll be the only one around that does emc/hal? 22:52:39 or are there other people? 22:53:10 Not many really using it. Soon there will be. 22:53:40 ok.. grab them in here when needed 22:53:42 :) 22:53:49 We have axis motion under control and spindle so we could make parts the way it is. 22:54:12 cool 22:54:22 there is that Z-axis thing to be resolved afaik 22:54:23 Still have that axis index/home pulse thing. 22:54:47 I need to discuss that with jmk thoroughly 22:54:55 maybe even on the dev list 22:55:00 Long way to go with the lube level and pressure switches and such. 22:55:05 although lately I'm not very fond of doing that 22:55:16 there is a hal-pin for lube level in the iocontroller 22:55:22 so that might be connectable :D 22:55:30 Whenever you guys get there. This is close enough for government work as is. 22:55:38 not sure about the outside of the mazak 22:55:47 Yes. 22:55:59 Is the lube stuff iin iocontrol 22:56:06 it is 22:56:10 and it reports to GUI 22:56:16 but doesn't do much more.. 22:56:27 Fantastic. I'll see if I can get it going when we get the wires finished. 22:56:35 * alex_joni knows little about machining 22:56:51 so most the coding I did was .. "common-sense" 22:57:20 nice to see that most of it fits ;) 22:57:52 You bet it does. 22:58:04 ok.. off to bed 22:58:10 have fun on the mazak 22:58:18 send me some pics when it's done :) 22:58:20 bye 22:58:39 catch you tomorrow. 22:58:48 ok 22:58:51 alex_joni has quit