#emc-devel | Logs for 2011-09-05

Back
[00:04:19] -!- theorbtwo has quit [Ping timeout: 245 seconds]
[00:04:33] theorb is now known as theorbtwo
[00:17:54] -!- jbunch has quit [Read error: Connection reset by peer]
[00:36:20] -!- danielfalck [[email protected]] has joined #emc-devel
[00:51:23] -!- andypugh has quit [Quit: andypugh]
[00:58:52] -!- atom1 has quit [Quit: Leaving]
[01:08:18] -!- chester88 has quit [Ping timeout: 276 seconds]
[01:12:41] -!- mozmck1 has quit [Ping timeout: 252 seconds]
[01:21:58] -!- chester88 [[email protected]] has joined #emc-devel
[01:23:41] -!- tom3p [[email protected]] has joined #emc-devel
[01:41:33] -!- Valen has quit [Ping timeout: 260 seconds]
[02:05:39] -!- skunkworks_ has quit [Quit: ChatZilla 0.9.87 [Firefox 3.6.21/20110830191619]]
[02:20:25] -!- Tom_itx has quit []
[02:46:31] -!- mozmck [mozmck!~moses@client-173.225.233.241.dfwtx.partnershipbroadband.com] has joined #emc-devel
[02:51:34] -!- tom3p [[email protected]] has parted #emc-devel
[03:01:24] -!- toastydeath has quit [Ping timeout: 276 seconds]
[03:05:18] -!- stormlight has quit [Quit: stormlight]
[03:08:11] -!- sumpfralle has quit [Ping timeout: 252 seconds]
[03:15:13] -!- stormlight has quit [Quit: stormlight]
[04:27:38] -!- ve7it has quit [Remote host closed the connection]
[04:31:04] -!- stormlight has quit [Client Quit]
[04:36:24] -!- Eartaker has quit [Client Quit]
[04:37:12] -!- aitalmac has quit [Quit: Leaving]
[04:38:38] -!- garage_seb [[email protected]] has joined #emc-devel
[05:08:46] -!- Eartaker has quit [Quit: Leaving]
[05:14:19] -!- aitalmac has quit [Quit: Leaving]
[05:19:36] -!- garage_seb has quit [Quit: Leaving]
[05:20:55] -!- mhaberler has quit [Quit: mhaberler]
[05:39:15] -!- kbarry has quit [Quit: ChatZilla 0.9.87 [Firefox 4.0.1/20110413222027]]
[06:07:14] -!- mhaberler [[email protected]] has joined #emc-devel
[06:15:47] -!- psha[work] [psha[work][email protected]] has joined #emc-devel
[06:30:33] -!- aitalmac has quit [Client Quit]
[06:49:21] -!- vladimirek [[email protected]] has joined #emc-devel
[06:50:48] -!- e-ndy [e-ndy!~jkastner@nat/redhat/x-rlwhryrpfaaaeupo] has joined #emc-devel
[07:00:14] -!- theos has quit [Disconnected by services]
[07:05:09] -!- Mendelbilld has quit [Ping timeout: 245 seconds]
[07:31:41] -!- stormlight has quit [Quit: stormlight]
[07:38:10] -!- Eartaker has quit [Quit: Leaving]
[07:39:56] -!- El_Matarife has quit [Quit: Nettalk6 - www.ntalk.de]
[07:40:32] -!- robh__ [[email protected]] has joined #emc-devel
[07:47:05] -!- mhaberler has quit [Quit: mhaberler]
[08:11:27] -!- Mendelbilld has quit [Ping timeout: 240 seconds]
[08:26:15] -!- bootnecklad has quit [Ping timeout: 240 seconds]
[09:06:53] bootnecklad` is now known as bootnecklad
[09:23:34] -!- anonimasu has quit [Read error: Connection reset by peer]
[09:43:14] -!- e-ndy has quit [Quit: Ex-Chat]
[09:49:17] -!- e-ndy [e-ndy!~jkastner@nat/redhat/x-smwtvtbhkyspoduc] has joined #emc-devel
[09:57:43] -!- anonimasu has quit [Read error: Connection reset by peer]
[10:32:37] -!- Technicus has quit [Quit: Leaving.]
[10:45:34] -!- e-ndy has quit [Quit: Ex-Chat]
[11:26:13] -!- bootnecklad has quit [Disconnected by services]
[11:26:17] bootnecklad` is now known as bootnecklad
[11:35:42] -!- awallin_ [awallin_!~quassel@2001:708:110:1020:224:7eff:feda:7c7d] has joined #emc-devel
[11:49:03] -!- jbunch_ has quit [Read error: Connection reset by peer]
[11:49:08] -!- mhaberler_ [[email protected]] has joined #emc-devel
[11:52:16] -!- TekniQue has quit [Ping timeout: 264 seconds]
[12:02:20] -!- mhaberler_ has quit [Read error: Connection reset by peer]
[12:02:38] -!- mhaberler [[email protected]] has joined #emc-devel
[12:11:58] -!- e-ndy [e-ndy!~jkastner@nat/redhat/x-jqahprpdnmjosbbb] has joined #emc-devel
[12:23:39] -!- TekniQue has quit [Changing host]
[12:24:38] -!- TekniQue has quit [Quit: leaving]
[12:24:54] -!- TekniQue has quit [Changing host]
[12:37:05] -!- mhaberler_ [[email protected]] has joined #emc-devel
[12:39:01] -!- mhaberler__ [[email protected]] has joined #emc-devel
[12:39:01] -!- mhaberler__ has quit [Client Quit]
[12:39:26] -!- mhaberler_ has quit [Read error: Connection reset by peer]
[12:40:11] -!- mhaberler has quit [Ping timeout: 252 seconds]
[12:40:17] -!- mhaberler [[email protected]] has joined #emc-devel
[12:40:31] -!- mhaberler has quit [Client Quit]
[12:40:53] -!- mhaberler [[email protected]] has joined #emc-devel
[12:41:54] -!- mhaberler has quit [Read error: No route to host]
[12:42:02] -!- mhaberler [[email protected]] has joined #emc-devel
[12:54:12] -!- IG-garage has quit [Remote host closed the connection]
[13:54:29] -!- theos has quit [Disconnected by services]
[13:57:53] -!- mhaberler has quit [Quit: mhaberler]
[13:59:30] -!- theos has quit [Disconnected by services]
[14:02:06] -!- Loetmichel has quit [Ping timeout: 258 seconds]
[14:13:06] -!- Valen has quit [Quit: Leaving.]
[14:24:54] -!- psha[work] has quit [Quit: Lost terminal]
[14:30:56] -!- e-ndy has quit [Quit: Ex-Chat]
[14:32:38] -!- ve7it [[email protected]] has joined #emc-devel
[15:16:33] -!- automata has quit [Read error: Connection reset by peer]
[15:23:31] fragalot_ is now known as fragalot
[15:23:55] -!- fragalot has quit [Changing host]
[15:37:26] -!- skunkworks_ [[email protected]] has joined #emc-devel
[15:39:46] -!- awallin_ has quit [Remote host closed the connection]
[15:53:20] -!- sumpfralle has quit [Ping timeout: 260 seconds]
[16:14:52] -!- kbarry has quit [Quit: ChatZilla 0.9.87 [Firefox 4.0.1/20110413222027]]
[16:37:47] -!- mhaberler [[email protected]] has joined #emc-devel
[17:03:45] -!- toastyde1th has quit [Read error: Connection timed out]
[17:22:19] -!- psha [[email protected]] has joined #emc-devel
[17:24:22] -!- jbunch has quit [Ping timeout: 250 seconds]
[17:25:09] -!- odiug has quit [Ping timeout: 240 seconds]
[17:35:13] -!- jbunch has quit [Read error: Connection reset by peer]
[17:38:10] -!- ISSSY has quit [Client Quit]
[17:58:59] -!- mhaberler_ [[email protected]] has joined #emc-devel
[18:00:59] -!- mhaberler has quit [Ping timeout: 240 seconds]
[18:00:59] mhaberler_ is now known as mhaberler
[18:05:20] -!- e-ndy [[email protected]] has joined #emc-devel
[18:22:45] -!- WalterN has quit [Ping timeout: 258 seconds]
[18:27:39] -!- sumpfralle has quit [Ping timeout: 276 seconds]
[18:35:09] -!- ries has quit [Ping timeout: 245 seconds]
[18:43:05] -!- Mendelbilld has quit [Ping timeout: 260 seconds]
[18:46:35] -!- jbunch has quit [Ping timeout: 240 seconds]
[18:57:11] -!- maximilian_h [[email protected]] has joined #emc-devel
[18:57:11] -!- maximilian_h has quit [Client Quit]
[18:58:51] -!- nullie has quit [Quit: Ex-Chat]
[19:36:46] -!- isssy has quit [Client Quit]
[19:40:03] -!- mrsunshine has quit [Quit: Leaving]
[19:55:34] -!- jimbo132 has quit [Ping timeout: 245 seconds]
[20:00:19] -!- mhaberler has quit [Quit: mhaberler]
[20:03:54] -!- andypugh [andypugh!~andy2@cpc2-basl1-0-0-cust1037.basl.cable.virginmedia.com] has joined #emc-devel
[20:04:29] <andypugh> I am puzzled by C again.
[20:06:19] <andypugh> Can anybody explain src/emc/kinematics/tp.c lines 1245 et.seq? It appears to be using variables uninitialised, but presumably isn't.
[20:07:16] <andypugh> Ah, ok, module global. That seems wrong.
[20:08:20] <andypugh> That seems wrong. To do the DIO synchronous with motion, shouldn't it be using the tp->syncdio rather than the global?
[20:08:52] <andypugh> (I am looking at M67, but it would help to understand DIO first)
[20:15:19] -!- Mendelbilld has quit [Ping timeout: 240 seconds]
[20:17:38] <psha> andypugh: thx for anwser on forum about gladevcp :)
[20:20:28] <psha> it seem that there is no such thing as tp->syncdio
[20:20:54] <andypugh> I thought I saw it in the struct
[20:21:26] -!- syyl has quit [Quit: Leaving]
[20:21:30] <psha> it's in TC_STRUCT
[20:21:31] <psha> not in TP
[20:21:32] <andypugh> tc.h 101
[20:21:57] <andypugh> Bear with me...
[20:22:53] <psha> however TP holds queue of TC's
[20:23:06] <psha> as you can see in 249 int tpAddRigidTap(TP_STRUCT *tp, EmcPose end, double vel, double ini_maxvel,
[20:23:21] <andypugh> yes, I mean tc->syncdio. tc is an element of tp, I think ( tc = tcqItem(&tp->queue, 0, period); )
[20:24:35] <andypugh> So, it looks like it might be meant to get tc from tp and index, and then use syncdio
[20:25:01] <andypugh> No, sorry, wrong index.
[20:25:14] <andypugh> (I need to stop thinking out loud)
[20:26:16] <psha> heh, why not
[20:26:51] <andypugh> tpToggleDIOs gets a TC_STRUCT and does the work there (tp.c:620)
[20:28:14] <psha> it's living in monster tpRunCycle
[20:28:28] <andypugh> Yes, I found it there.
[20:29:58] <psha> as i understand global syncdio is used to gather all changes needed and then they are stored in TC-local copy
[20:30:02] -!- YK has quit [Quit: Page closed]
[20:30:14] <psha> see 324
[20:30:31] <andypugh> tpSetDout is called from command.c. It looks like it is meant to add a DIO change to the tp queue.
[20:30:36] <psha> and 435
[20:30:43] <psha> kind of
[20:30:47] -!- Technicus has quit [Quit: Leaving.]
[20:30:54] <psha> and 546
[20:30:55] <andypugh> Ah, yes.
[20:31:06] <psha> so you first record changes you need and then they are queued
[20:33:09] <psha> btw may you describe in brief what's problem?
[20:33:16] <andypugh> I haven't spotted it, but I guess there are two functions in there, one eating the queue and one making it?
[20:33:37] <andypugh> The underlying problem is that M67 doesn't do anything.
[20:34:28] <psha> M67 is analog IO or digital?
[20:34:49] <andypugh> Analogue, synced to motion.
[20:35:15] <psha> hm
[20:35:22] <psha> DIO's are not related to it?
[20:35:29] <andypugh> I think the reason it does nothing can be found in tpSetAout, tp.c:1241
[20:35:50] <psha> looks like :)
[20:35:59] <andypugh> I was trying to understand how DIO works, to figure out what is missing from AIO
[20:36:24] <psha> http://psha.org.ru/irc/%23emc-devel/2010-07-19.html#16:09:07
[20:36:27] <psha> :))
[20:36:34] <psha> found link...
[20:36:49] <psha> do you have test case?
[20:37:03] <psha> simple G-code that may be used to watch that it's working?
[20:37:37] <andypugh> Not yet.
[20:38:21] <andypugh> I was going to run some 4-quadrant circles with either an M67 or M68 to see the difference.
[20:38:40] <andypugh> (watchine velocities in Halscope)
[20:38:42] <psha> probably simplies way is to add extra couple of fields to syncdio struct
[20:38:50] <psha> instread of introducing syncaio_t
[20:38:58] <andypugh> syncio ?
[20:39:03] <psha> yes
[20:40:05] <psha> wait a bit, i'll take a look
[20:40:13] <andypugh> Well, it looks like cleverer folk than me have tried to fix it and failed :-(
[20:40:32] <psha> if you'll give me simple G-code example it would be great
[20:41:39] <andypugh> Let me see what I can do. I think I can run halscope and tkemc..
[20:42:03] <andypugh> (Axis is out, as I am ssh-ing)
[20:42:33] <andypugh> The emc2 machine is in a corner, with no input devices
[20:45:40] <psha> halscope not needed - just simple test case
[20:46:06] <psha> 5-10 lines of gcode
[20:46:19] <psha> i'm total noob in it...
[20:52:20] <andypugh> Well, I think Halscope is the only way to tell that the changes happen at the right time, and don't break blending like M68 does
[20:52:53] <psha> heh, first step is to ensure that they are changing :)
[20:53:08] <psha> what's M67 syntax?
[20:53:26] <andypugh> M67 E(channel) Q(value)
[20:54:00] <andypugh> Should set a value on motion.analog-out-{channel}
[20:57:07] <psha> M67 E0 Q10 G0 X10
[20:57:08] <psha> ?
[20:57:20] <psha> will set out-00 when X becomes 10?
[20:57:24] <psha> or when motion is started?
[20:58:36] -!- sumpfralle1 has quit [Read error: Connection reset by peer]
[20:59:14] <andypugh> I think it should happen as soon as X starts moving. You could argue that (in that format) it should start changing at the beginning of the move, and hit the final value at the end of the move. But for the application that was requested (setting laser power for an engraver) I think an immediate change is called for.
[21:01:02] <psha> i think it should set value immidiatly
[21:01:04] <psha> but when?
[21:01:14] <psha> when digital synced is changed?
[21:01:15] <psha> on start?
[21:01:52] -!- Mendelbilld has quit [Ping timeout: 264 seconds]
[21:03:11] <psha> hm, looks like it's working...
[21:03:20] <psha> what pin has axis velocity?
[21:04:38] -!- WalterN has quit [Read error: Connection reset by peer]
[21:06:30] <andypugh> axis.N.vel?
[21:06:40] <andypugh> Just a minute
[21:07:23] <andypugh> axis.N.joint-vel-cmd
[21:12:00] <psha> fine
[21:12:34] <psha> with aio's there is small problem...
[21:13:23] <andypugh> They don't change?
[21:13:42] <andypugh> Well, they do with M68, not M67
[21:14:36] <psha> no
[21:14:42] <psha> they are cleared on next M67
[21:14:50] <psha> same as dio's
[21:14:56] <psha> wait a bit, i'll commit and push
[21:18:08] <psha> andypugh: may this one
[21:18:22] <psha> http://psha.org.ru/cgit/psha/emc2.git/commit/?h=m67-fix
[21:18:35] <psha> there are problems but at least it's working :)
[21:20:11] <psha> http://psha.org.ru/tmp/m67/
[21:20:17] <psha> gladevcp ui/hal files to check
[21:20:55] <psha> i've used G0 X10; M67 E0 Q10 G0 X0; M67 E1 Q-10 G0 X10;
[21:21:09] <psha> and now it's late here
[21:21:23] <andypugh> psha: Flushing the volatile struct is correct, once the new values are queued in a tc, I think?
[21:22:04] <psha> no
[21:22:13] <psha> consider you have two aio's
[21:22:18] <psha> first you set aio-00
[21:22:25] <psha> as in my commands
[21:22:48] <psha> if you flush you'll get aio-00 => 0, aio-01 => -10 in the beginning of third motion
[21:22:54] <psha> same behaviour is for DIO's
[21:23:40] <psha> only way to avoid this is to use bitmasks
[21:24:44] <andypugh> I need to look at the code, it isn't making much sense. I guess that the local struct is meant to maintain the notional state during the execution of the notional motion that defines the queue?
[21:25:12] <psha> heh, there is only flag that indicates that something has changed
[21:25:17] <psha> anychanged
[21:25:28] <psha> if it's set whole set of DIO's was overwritted with new values
[21:25:41] <psha> (and now AIO's too)
[21:25:59] <andypugh> So, yes, flushing seems wrong. The anychanged flag should be set by explicitly checking if any element has changed.
[21:26:05] <psha> probably we need AIO/DIO mask to ensure that only changed values are overwritten
[21:26:25] <psha> i'll fix this tomorrow
[21:26:36] <psha> + two masks (32 bit?)
[21:26:45] <andypugh> It's probably cheaper to write them all every time, but it has to be with valid data
[21:26:47] <psha> for dio and aio
[21:27:19] <andypugh> writing to HAL pins is cheap, one write to shared memory.
[21:27:48] <psha> maintaining correct state is not cheap ;)
[21:28:42] <psha> may you post it to emc-dev for review/discussion?
[21:29:18] <psha> i'll try to post mask-fix in followup as soon as possible
[21:29:38] <psha> generaly it's 10-15 minutes to fix it but with fresh head :)
[21:29:45] <andypugh> Lets get a complete working patch first, that passes the test etc.
[21:30:22] <andypugh> There has to be some subtle issue if dgarr and micges have all failed
[21:30:31] <psha> maybe
[21:30:37] <psha> but maybe they had no time ;)
[21:32:35] -!- odiug has quit [Read error: Operation timed out]
[21:33:37] <andypugh> The local struct holds the state. (as M67 commands come in one channel at a time).
[21:34:24] <andypugh> I don't think we need to check that any values have changed. If you see an M67, change the local state to suit, and write that to the queue.
[21:34:53] <andypugh> The issue is initialising the local state correctly.
[21:37:16] <psha> please refetch last commit, i've amended it
[21:38:35] <andypugh> OK, It wil take me a little while to remember how to add a remote.
[21:48:19] <psha> andypugh: ammended once more (v3)
[21:48:23] <psha> and added mask patch
[21:49:06] -!- servos4ever has quit [Quit: ChatZilla 0.9.85 [SeaMonkey 2.0.11/20101206162726]]
[21:49:44] <psha> http://psha.org.ru/cgit/psha/emc2.git/log/?h=m67-fix
[21:49:58] <psha> now it's working fine for me
[21:50:19] <psha> but i have to go to bed - need to wake up in ~5 hours... :(
[21:50:21] <psha> bb
[21:50:30] <psha> andypugh: ^^
[21:51:28] <andypugh> Goodnight
[21:51:29] <psha> since now it's working may you post it to dev list?
[21:51:34] <psha> bb
[21:51:36] -!- psha has quit [Quit: leaving]
[21:52:52] -!- Fox_Muldr has quit [Ping timeout: 268 seconds]
[21:55:36] -!- e-ndy has quit [Quit: Ex-Chat]
[22:03:56] -!- Technicus has quit [Quit: Leaving.]
[22:07:37] -!- vladimirek has quit [Remote host closed the connection]
[22:09:14] -!- Technicus has quit [Client Quit]
[22:09:59] -!- MarkusBec has quit [Ping timeout: 252 seconds]
[22:10:09] -!- lilalinux has quit [Ping timeout: 268 seconds]
[22:10:21] -!- sumpfralle has quit [Ping timeout: 252 seconds]
[22:31:45] -!- Mendelbilld has quit []
[23:00:02] -!- skunkworks_ has quit [Remote host closed the connection]
[23:15:51] -!- Technicus has quit [Quit: Leaving.]
[23:20:18] -!- Snowman_ has quit [Ping timeout: 252 seconds]
[23:40:30] -!- stormlight has quit [Quit: stormlight]
[23:56:30] -!- snoman has quit [Quit: Page closed]