00:22:17 CNC_Workshop has joined #emc-mazak 00:23:09 Hey. Hi Roland. 00:27:44 CNC_Workshop is now known as jmk_aka_Roland 00:28:05 jmk_aka_Roland is now known as jmk_mazak 00:28:39 petev has joined #emc-mazak 00:28:45 hi pete 00:28:53 hi 00:28:59 hi pete. Thanks for the pointers. 00:29:04 no problem 00:30:41 * jmk_mazak is thinking of enhancements for CL 00:31:03 like each element should have a property "name" that could be set to something meaninful 00:31:13 later ;-) 00:31:25 yeah, that would be nice 00:31:45 just take a look at the GUI code though and you may re-consider wanting to make any changes 00:31:55 I cleaned it up a lot, but it still needs serious help 00:35:54 yeah 00:36:31 I was hoping the existing properties dialog had most of the required code (I'm not much of a GUI guy myself) 00:36:40 have to look into it later 00:43:28 anonimasu has joined #emc-mazak 00:58:05 http://membres.lycos.fr/mavati/classicladder/ 00:58:17 Some example screen shots 01:07:40 ClassicLadder has just done it's first relay clicking on the Mazak!!! Woot! 01:08:10 congratulations! 01:08:44 click the ESTOP button on the EMC GUI, the machine power turn on, then CL waits one sec, turns on a relay to precharge the DC supply caps, then another second and it turns on a contactor to bypass the resistors 01:09:18 :) 01:10:15 ditto 01:10:17 nice 01:10:46 now I gotta figure out how to make it load the program automatically 01:11:07 thought I had that right, but it doesn't seem to have worked, so I loaded it manually 01:22:19 pete, you there? 01:26:09 looking at the code, it seems that a ladder program isn't a single file, but a collection of files in a directory? 01:28:10 yes, sorry, I was on my other monitor 01:28:40 when I saved my program, I specified a path, and it saved one file ( .clp) there 01:28:52 trying to load the program by passing that filename isn't working 01:29:10 so I looked at the code, and it expects a directory as an arg (it seems) 01:29:44 hmm, let me take a look 01:29:50 I know I tested the loading 01:30:02 * jmk_mazak plants printfs in files.c:LoadProjectFiles ... 01:32:26 you know it looks like some of that code is from an older version of CL and I never updated it 01:32:47 I assumed it was designed to support two file formats, old and new 01:32:53 the old stuff used to store the ladder logic in a bunch of files 01:33:07 nasty 01:36:51 I think it may just take removing the check for it to be a directory 01:37:35 look on line 122 of classicladder.c 01:37:38 that VerifyDirectory thing 01:38:12 yes, looks like the files.c code is ok and looks for a .clp extension 01:38:24 if not, it assumes old style dir with loads of files 01:39:57 so do we care about support for "old style"? 01:40:17 I don't think so 01:40:44 mostly for loading old configs, but none should exist for use with emc 01:40:45 if not, I might just rewrite VerifyDirectory to be VerifyFile, it would simply test for the existance of a file matching its arg 01:41:09 I think that would be ok 01:41:22 could delete some code in files.c too 01:46:44 I'm gonna just add a new verify function for now, keep the old one until we have time for a more complete extraction of the old stuff 01:47:16 that is crufty code 01:47:39 strcpy(static buffer, user supplied arg) - classic buffer overflow 01:48:24 try strncpy 01:48:34 use sizeof() to limit 01:48:35 yeah, thats what I normally do 01:49:41 do you know what all the temp dir stuff is all about? 01:49:59 no 01:50:09 you're no help at all ;-) 01:50:36 hmm, I think I know now 01:51:10 loading a new style file consists of splitting it into old style files in the temp dir, then invoking the old loader 01:51:25 so old style support won't be going away for a while 01:51:26 oh, that's ugly 01:51:40 yep 01:53:04 you know, I think my problem is simply that I didn't specify the right path 01:53:11 but there is no error detection whatsoever 01:53:27 file doesn't exist, so what.., just keep going anyway 01:55:35 yeah, just looked at teh VerifyDirectorySelected() code and it checks for .clp too 01:55:50 jmk_mazak: what time is it over there? 01:56:01 7:15 pm 01:56:08 little after 5 01:56:18 nice.. it's 3:15 here 01:56:41 am 01:57:26 ouch 01:57:55 I know I'm gonna regret staying up late in the morning :) 01:58:38 this code would get really confused if you had a directory name ending in .clp, or a single file that didn't end that way 01:59:08 agreed 02:02:09 seems the proper approach would be to stat() the file/dir name to decide what it is and how to treat it 02:02:37 I think stat tells you if it's a dir 02:02:43 yep 02:03:16 so "verifySource(name) could test that name is either a regular file or a dir 02:03:26 and later Load could decide how to process it 02:03:28 both based on stat 02:04:06 methinks I'm gonna do that. what do you think? 02:07:59 sure, that would be best 02:12:26 night guys.. 02:12:35 night alex 02:12:45 alex_joni has left #emc-mazak 02:51:25 steves_logging has joined #emc-mazak 02:56:54 petev has quit 07:43:47 jmk_mazak has quit 07:43:47 rayh has quit 07:43:47 steves_logging has quit 07:43:48 jmkasunich has quit 07:43:48 ChanServ has quit 07:43:48 fenn has quit 07:50:18 ChanServ has joined #emc-mazak 07:50:18 steves_logging has joined #emc-mazak 07:50:18 jmk_mazak has joined #emc-mazak 07:50:18 fenn has joined #emc-mazak 07:50:18 rayh has joined #emc-mazak 07:50:18 jmkasunich has joined #emc-mazak 07:50:34 [Global Notice] Hi all. We're experiencing routing issues. We'll keep you posted on wallops. To turn on wallops, depending on your client: "/umode +w" or "/mode yournick +w" .... thanks! 07:51:41 jmkasunich has quit 07:51:41 rayh has quit 07:51:41 jmk_mazak has quit 07:51:41 steves_logging has quit 07:51:41 ChanServ has quit 07:54:23 fenn has quit 08:00:31 steves_logging has joined #emc-mazak 08:00:31 jmk_mazak has joined #emc-mazak 08:00:31 rayh has joined #emc-mazak 08:00:31 jmkasunich has joined #emc-mazak 08:01:37 ChanServ has joined #emc-mazak 08:01:37 fenn has joined #emc-mazak 08:01:37 alex_joni has joined #emc-mazak 08:08:51 [Global Notice] Hi all. We're experiencing routing problems, probably to do with level3, and we're not sure the routes we have will remain stable. Further detail messages will appear via wallops. You can receive wallops on your status window via one of the following commands: "/umode +w" or "/mode YOURNICK +w". Thanks. 08:15:56 [Global Notice] Hi all. If you're interested, and please show care and tact in joining, we're setting up a ##level3 channel to track what's going on. Thanks. 12:42:53 jmk_mazak has quit 12:46:05 jmkasunich is now known as jmk_sleep 14:28:02 [Global Notice] Hi all. Due to the level3 problems, we're left needing some rehubbing. This should take but a couple of minutes, but it will be high impact. Apologies in advance. 14:28:59 fenn has quit 14:28:59 ChanServ has quit 14:28:59 alex_joni has quit 14:28:59 jmk_sleep has quit 14:28:59 rayh has quit 14:28:59 steves_logging has quit 14:29:29 ChanServ has joined #emc-mazak 14:29:29 jmk_sleep has joined #emc-mazak 14:29:29 rayh has joined #emc-mazak 14:29:29 steves_logging has joined #emc-mazak 14:29:29 fenn has joined #emc-mazak 14:29:29 alex_joni has joined #emc-mazak 14:31:04 [Global Notice] All done. Thanks to everyone for your patience, and thank you for using freenode! Have a great afternoon. 15:11:51 alex_joni has quit 18:41:53 jmk_sleep is now known as jmkasunich 19:42:03 Wah. We now have homing of sorts and full motion. 19:50:38 :) 19:55:03 working out the number of pulses per inch. 19:59:37 alex_joni has joined #emc-mazak 20:09:19 Okay we have a number for input scale. 20:09:33 12345.6 ? 20:09:40 x has about 0.001 backlash 20:09:58 33865 20:10:27 dead on with five inch travel. 20:11:01 alex_joni has changed the topic to: This is the discussion channel about the emc retrofit of an Mazak. So far Axis X is working under emc control. Lots of wiring done already, still some to go. 20:11:11 rayh: how does that sound? 20:11:53 Sounds good to me. 20:12:19 classic ladder is working great. 20:12:27 as is the motion stuff. 20:12:28 ok.. think you can change it if you want 20:12:38 could you try that out? 20:12:45 * alex_joni walks you through it 20:13:04 first you need to Op yourself: /msg ChanServ OP #emc-mazak rayh 20:17:04 then you need to use /topic "newtopic" to change it 20:23:50 #emc-mazak rayh 20:24:10 almost :) 20:25:01 /msg ChanServ OP #emc-mazak rayh 20:25:18 exactly, but without the space at the beginning :) 20:25:27 okay 20:25:37 right 20:25:51 now you can kick all of us out of here if you want :D 20:25:58 kidding.. try /topic 20:25:58 Oh now I'm red and at the top 20:26:09 you are the chief now :P 20:26:09 You're gone! 20:26:20 rayh has changed the topic to: "This is the discussion channel about the emc retrofit of an Mazak. So far Axis X is working under emc control. Lots of wiring done already, still some to go. ClassicLadder is working. 20:26:29 yay 20:26:37 So now how do I de op myself? 20:26:58 send the same command to ChanServ, but with a '-' in front of rayh 20:27:06 okay 20:27:17 like this: /msg ChanServ OP #emc-mazak -rayh 20:27:28 sweet.. you got a hang of it :) 20:27:50 Yes but remembering may be an issue at my age. 20:27:58 you can ask any time 20:28:04 I'll save those commands. 20:28:14 logger_mzk, bookmark 20:28:14 See http://solaris.cs.utt.ro/irc/irc.freenode.net:6667/emcmazak/2005-10-21#T20-28-14 20:28:20 save this bookmark :) 20:28:24 you go them all there 20:30:26 rayh: you said you have homing.. not totally true :P 20:30:38 index-pulse homing is missing :D 20:31:06 Right. That's the next thing we need to do. 20:31:18 ok.. I wanna be there when you discuss that 20:31:29 too bad it's so far away :/ 20:31:50 Perhaps we can have the discussion h;ere. 20:32:05 would be nice.. can you ask john? 20:32:14 not sure how much longer I can be awake :D 20:33:47 We can save the essence of it for you. 20:33:57 You do need some sleep. 20:34:12 well. was planing to go to sleep in an hour or so 20:34:22 will leave for a while, and check in later.. ok? 20:34:27 I certainly appreciate all your help with this. 20:34:42 I am fully confident that jmk will sort it out properly.. 20:35:16 but I thought it might be nice if I could lend a hand :) 21:16:11 logger_mzk has joined #emc-mazak 21:16:12 topic is: "This is the discussion channel about the emc retrofit of an Mazak. So far Axis X is working under emc control. Lots of wiring done already, still some to go. ClassicLadder is working. 21:16:12 Users on #emc-mazak: logger_mzk alex_joni anonimasu jmkasunich rayh steves_logging fenn @ChanServ 21:21:36 * alex_joni goes to bed 21:21:48 night guys.. and let me know what you come up with 21:21:49 alex_joni has left #emc-mazak