13:07:48 logger_mzk has joined #emc-mazak 13:07:48 topic is: "Mazak EMC retrofit. X and Y homing and moving nicely. Spindle drive works too. Working on Z now." 13:07:48 Users on #emc-mazak: logger_mzk alex_joni rayh-away anonimasu fenn steves_logging jmkasunich @ChanServ 13:14:43 rayh: are you around? 13:41:13 alex_joni has quit 13:47:13 alex_joni has joined #emc-mazak 13:48:01 * alex_joni is away: back-later 14:41:13 * alex_joni is back 15:05:26 just got in this morning 15:05:31 ray's here too 15:05:57 I'm baaaacck! 15:06:22 hey rayh 15:06:31 * alex_joni is having problems with tkemc :) 15:06:58 Symptoms? 15:07:29 rayh-away is now known as rayh 15:07:36 it's a bug I'm trying to fix 15:07:44 the one with axes 'X Z A' 15:07:56 it seems the problem is in how tkemc remembers the axes it has 15:07:59 Okay. 15:08:54 A bit of history. In the old days... perhaps still... we had to send all commands to x as axis 0 15:09:07 y as 1, z 2... 15:09:17 yup 15:09:28 We used both axis numbers and names. from two different ini lines 15:09:28 but it seems that if you have XZA, then the axes are called 012 15:09:31 not 023 15:09:38 so that's where tkemc assumes wrong 15:10:15 If it does assume 012 then it has a problem introduced in the last three years or so. 15:11:06 That is all that stuff about if coordnames... 15:11:54 Do we still need 1,3,4 if the machine is x,z,a? 15:12:21 we need 0 1 2 if the machine is X,Z,A 15:12:34 but it assumes 0, 2, 3 15:12:59 So emc uses whatever names you put on that ini line to route commands. 15:13:18 no.. to get it straight 15:13:32 right now tkemc builds: 0,2,3 and it should really o 0,1,2 mapped to XZA 15:14:27 There were problems with the interpreter that caused us to require x=0 y=1 z=2 a=3... 15:14:52 and you had to have those extra axis definitions in the ini even though you didn't display them with tkemc. 15:15:26 The coordnames stuff was just a gui tweak rather than a emc fix. 15:17:16 yup, but it seems it's fixed now (in emc), and tkemc still does the thing which causes it to fail 15:18:11 a motion command looks like 15:18:20 Issuing EMC_AXIS_INCR_JOG -- (+125,+32, +7, +0,1.000000,1.000000,) 15:18:20 emcStatus->motion.traj.mode = 1 15:18:21 Issuing EMC_AXIS_INCR_JOG -- (+125,+32, +8, +1,1.000000,1.000000,) 15:18:21 emcStatus->motion.traj.mode = 1 15:18:22 Issuing EMC_AXIS_INCR_JOG -- (+125,+32, +9, +2,1.000000,1.000000,) 15:18:22 15:18:51 The difference between these is the +0 +1 +2 which is the axis the motion command is intended for. 15:20:15 yes it does 15:20:22 ok.. need to go away for a while 15:20:25 will work on this later 15:20:36 Quick question. 15:20:48 alex_joni has quit 15:21:04 Do you want tkemc to map x to 0 z to 2 15:21:27 or do you think that emc can handle x at 0 z at 1 16:05:16 jmkasunich has left #emc-mazak 16:29:04 steves_logging is now known as steves_stallings 16:30:01 rayh: morning, I found paramater in my copy of wiki config to direct upload files, but cannot find config on sourceforge, going to need help from alex or paul 16:49:19 Okay. I'll see if I can give alex a heads up. 17:23:52 alex_joni has joined #emc-mazak 17:23:59 * alex_joni is back 17:24:23 hi alex, I need some help with wiki stuff 17:27:49 shoot 17:27:54 not sure I can help though :D 17:28:54 file uploads are not working, I found $UploadDir in my local copy of wiki config, but cannot find config on SourceForge 17:29:08 * alex_joni knows little about the wiki there 17:29:36 computer literate, linux ignorant, have no idea where wiki code is on source forge amid the jungle of files 17:29:37 can you describe where you found it? 17:29:47 ahh.. ok :D 17:29:58 i didn't, got local copy before it moved 17:30:02 Database is stored in temporary directory /tmp/persistent/e/em/emc/wiki/wiki 17:30:08 not sure about the rest :) 17:30:13 let me ssh and look around 17:30:24 I will ssh also... 17:33:26 go to /home/groups/e/em/emc/ 17:34:11 there is a config file there 17:34:35 and $UploadDir and $UploadUrl are in there 17:34:39 * alex_joni goes back to tkemc 17:36:08 rayh: still about? 17:37:12 Yes I am. 17:37:20 alex, well if I try to edit we could have a mess, I will be happy to look and learn, but if I try you could have a bigger job of cleanup 8-) 17:38:14 last time I ran a *nix system was in the early 80's using vi editor (which I do not remember!) 17:39:16 vi is short for vile 17:39:45 imo the newer editors are much more intuitive. 17:40:17 300 baud and 12 line window even! 17:44:33 alex_joni has quit 17:46:09 alex_joni has joined #emc-mazak 17:46:23 rayh: around? 17:48:47 alex: should I try to use a text editor on ssh console or is it easy to upload and download files using ssh? 17:49:40 you could use vi I guess 17:51:04 any idea if wiki will need restart to have changes take effect? 17:52:34 don't think so 17:52:46 it's interpreted, so it should read that file on every access.. I think 17:52:56 rayh is now known as rayh-away 17:59:00 well the upload dir looks sensible, but files I upload do not appear there 17:59:37 I know.. seen that too 17:59:48 * alex_joni suggest looking for access rights on that dir 18:18:17 rayh-away is now known as rayh 18:21:30 alex_joni has quit 18:21:36 steves_stallings is now known as steves_logging 18:21:40 alex_joni has joined #emc-mazak 19:01:58 alex_joni is now known as alex_joni_busy 19:17:29 starting to think it's a problem in emc2 ... 19:18:10 it's? 19:18:25 motion control 19:18:32 naming is not done like in the rest of emc 19:18:42 need to look into more detail 19:31:07 alex_joni_busy has quit 19:35:18 alex_joni has joined #emc-mazak 19:36:29 CNC_Workshop has joined #emc-mazak 19:37:25 Hi alex. I'm just starting to look around in the mazak pc. 19:37:57 rayh that is 19:44:24 may need a bit of pointer as I progress with startup stuff. 19:58:07 alex_joni has quit 20:00:05 alex_joni has joined #emc-mazak 20:02:19 tomp has joined #emc-mazak 20:03:30 Hi tom. I'm sitting at the mazak pc now. 20:03:56 Hi CNC_Workshop ?? whats up with Z? 20:04:04 Wow does the stuff you worked up make a difference when trying to find stuff. 20:04:12 Z is up and running. 20:04:30 Brake drops out when axis enable comes on. 20:04:41 or aaxis inhibit goes off. 20:04:57 I was pretty lost, I just left bread crumbs... 20:05:03 Roland and Mark completed the encoder drive stuff 20:05:19 We got it in place yesterday noon 20:05:48 We can read the spiindle encoder and build an orient ramp. 20:05:49 so.. what's missing? 20:06:06 and can change gears. 20:06:33 I need to write the bash scripts to change gears using m101 and m102 20:07:17 Need to write a line in classic ladder to turn on hydraulics when we come out of estop 20:07:42 I need a connector between emc and hal for spindle speed command. 20:07:52 wow, lemme see what your scripts look like.. will they wait for completion :-) ? 20:08:02 dnag this sounds cool, 20:08:11 dnag 20:08:20 dnagdnag dang! 20:08:24 CNC_Workshop: there is a connector between emc and hal for spindle speed 20:08:26 Everything that Jmk has done is in sf in the emc2 module. 20:08:36 iocontrol does that 20:09:05 hiya alex & thanks again fer help on CL 20:09:15 How can I link that so that HAL follows it? 20:09:20 it exports a lot of spindle speed related pins, just take the one you need and connect it to your speed control module 20:09:28 CNC_Workshop: looking at the exact namings now 20:09:34 what drives your spindle? 20:09:51 give me a minute. just started looking at that file. 20:10:36 I would suggest using iocontrol.0.spindle-speed 20:10:45 I would suggest using iocontrol.0.spindle-speed-out 20:10:49 bin/halcmd sets spindle-rpm-cmd 1000 20:11:02 ok.. that's a signal 20:11:08 will run the spindle at 1k 20:11:31 connect that signal to iocontrol.0.spindle-speed-out 20:11:33 not sure that that starts it though. 20:11:59 Let me fire up an emc and issue that command in a terminal. 20:12:19 looking at the mazak hals now 20:13:28 ok.. connect these: 20:14:12 linksp spindle-run iocontrol.0.spindle-on 20:14:44 linksp spindle-rpm-cmd iocontrol.0.spindle-speed-out 20:15:09 linksp spindle-at-speed iocontrol.0.spindle-speed-in 20:15:41 that should give some minimal functionality 20:15:48 but no safe testing though... 20:16:14 doesn't test for spindle-ready... 20:16:19 about what line would I add these so that they fit with other stuff 20:17:20 I'm thinking I can test the spindle ready and all with cl and then enable these 20:17:55 but for right now I'd like to be able to run spindle knowing that it is up and ready. 20:18:17 for testing: run emc (like till now) 20:18:26 then issue the commands using bin/halcmd 20:18:33 the from tkemc switch spindle on 20:18:36 and test speed 20:19:23 lame Q: I went to SF, where do I look for "Everything that Jmk has done is in sf in the emc2 module."? 20:20:07 CVS 20:20:15 I'm thinking about line 379 in .hal 20:20:17 thanx 20:20:33 tomp: or alternative: get it from http://solaris.cs.utt.ro/~emc/ 20:20:37 updated once / day 20:20:45 thnanx 20:20:51 The most of it is in configs directory mazak-rf.* 20:20:53 might be easier :) 20:21:06 ray: let me know if it works 20:21:10 and how it behaves 20:21:42 might want to connect the spindle speed set and feedback to a PID component 20:21:52 to do precise speed 20:23:51 Okay. 20:24:06 I've got hydraulics up 20:26:03 I can move some of the actuators 20:27:23 I'm missing something spindle enable I suspect. 20:27:54 No spindle enable is pulled in. 20:28:05 when you select spindle forward in TkEMC it should send iocontroller.0.spindle-on 20:28:22 how does spindle-ready look? 20:28:29 maybe you got some conditions not met? 20:31:40 Jmk was working with ladder this am and I'm not certain what he did. 20:31:50 I guess I'd better read a bit. 20:33:01 I see some links between high and low gear and cl 20:35:38 hmm 20:36:08 I see that we need z brake to turn on before enable turns off. 20:36:25 Now that the quill is getting oiled it drops pretty fast. 20:37:08 restarting with the three links in .hal 20:37:30 HAL: ERROR: type mismatch 'iocontrol.0.spindle-speed-in' <- 'spindle-at-speed' 20:37:30 HAL config file mazak_rf.hal failed. 20:38:46 do you need to >type< the 'linksp command ( like BIT) ? 20:39:49 hang on a sec 20:41:16 try without that one 20:41:39 I see the bit definitions in the newsig section. 20:42:04 tomp: got a mail address I can forward these files. 20:42:20 tomp-tag@sbcglobal.net 20:42:32 or replace with spindle-amps 20:42:39 I think that's supposed to be the feedback 20:43:05 spindle-at-speed is just a bit that says that speed has been reached 20:44:03 yeash, try without that sense input, we dont care right now 20:44:07 first I thought it's smthg else 20:45:15 brb 20:54:05 this axes stuff is really messed up :/ 20:54:31 * alex_joni can't wait to get a grip on jmk and figure it out 21:07:23 CNC_Workshop: any luck on the spindle? 21:11:45 Had to visit for a few. 21:12:04 jmk said he wouldn't be on line till tomorrow. 21:12:08 ok.. 21:12:16 will drop him an email.. probably 21:12:20 tomp: just sent the fiile. 21:12:46 I'll do a bunch of reading here and then try it again. Thanks for the hints. 21:14:55 no problem 21:15:09 seems it's pretty down in the code (the problem I stumbled upon) 21:16:08 logger_mzk has joined #emc-mazak 21:16:09 topic is: "Mazak EMC retrofit. X and Y homing and moving nicely. Spindle drive works too. Working on Z now." 21:16:09 Users on #emc-mazak: logger_mzk tomp alex_joni CNC_Workshop rayh anonimasu fenn @ChanServ steves_logging 21:16:30 bbl 21:16:31 alex_joni has quit 21:21:22 CNC_Workshop is now known as CNC_Workshop-awa 21:38:31 ray, got the mail, off to read it 21:38:34 tomp has quit 22:40:36 alex_joni_busy has joined #emc-mazak 22:40:50 alex_joni_busy is now known as alex_joni 22:51:44 alex_joni_ has joined #emc-mazak 22:52:51 alex_joni has quit 22:52:57 alex_joni_ is now known as alex_joni