Re: [Emc-users] Ladder question

2012-08-19 Thread Viesturs Lācis
2012/8/19 Chris Morley chrisinnana...@hotmail.com:

 2) can I make larger that piece of section display in which I can
 draw the ladder logics? now it consists of several blocks and it seems
 pretty inconvenient.

 No, and there is a reason.

 ladder evaluates the logic one rung at a time.
 it reads all the inputs, does all the logic, then sets all the outputs of the 
 _current_
 rung then works on the next rung.

 While it is possible to have more then one line of logic in a single rung,
 this isn't really bullet proof. Most of the time it's fine. But when the 
 output
 of one line feeds the input of another line (in the same rung) you can get 
 bitten.

 A section is a way to separate different functions to help organize a program.
 It also allows one to use sequential programs or subroutines.

Thank You very much for the explanation! This should go to the manuals
or at least ladder-newbie wiki page...
Now I start to understand the way I should arrange the order of all the logics.

-- 
Viesturs

If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
Hello, folks!

Is there a way to set commanded position for particular joint from VCP widget?
The machine I am building has 1 joint that positions one of the saw
blades. I would like to be able to set its position from VCP (most
probably pyvcp as it is easier for me to set up), but I have
difficulties finding, if there are any HAL pins that I can use to feed
in the requested position for particular joint. All the
axis.n.joint-pos-cmd, axis.n.motor-pos-cmd and
halui.axis.n.pos-commanded are all OUT pins.

The thing is that I see serious difficulties to ensure that MDI
commands would be used correctly, it has to be as idiot-proof as
possible.

-- 
Viesturs

If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread andy pugh
On 19 August 2012 13:08, Viesturs Lācis viesturs.la...@gmail.com wrote:

 Is there a way to set commanded position for particular joint from VCP widget?

I am fairly sure that the answer is No.

The answer is probably to have the stepgen or PID driven directly by
the VCP and to not involve MOTION at all.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
2012/8/19 andy pugh bodge...@gmail.com:
 On 19 August 2012 13:08, Viesturs Lācis viesturs.la...@gmail.com wrote:

 Is there a way to set commanded position for particular joint from VCP 
 widget?

 I am fairly sure that the answer is No.

 The answer is probably to have the stepgen or PID driven directly by
 the VCP and to not involve MOTION at all.

Thanks!

I thought about that too. The thing is that the joint needs to be
homed before work. So that would require some additional Ladder logic,
but I have no idea, how to do that - it would be easy with stepgen in
velocity mode, but I think I need it to be in position mode, in order
to position that saw blade pretty precisely - within 0,2-0,3 mm range.

How can I duplicate homing routine then?

-- 
Viesturs

If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread John Thornton
You could roll your own in GladeVCP... have you seen my tutorials on that?

John

On 8/19/2012 6:29 AM, Viesturs Lācis wrote:
 2012/8/19 andy pugh bodge...@gmail.com:
 On 19 August 2012 13:08, Viesturs Lācis viesturs.la...@gmail.com wrote:

 Is there a way to set commanded position for particular joint from VCP 
 widget?
 I am fairly sure that the answer is No.

 The answer is probably to have the stepgen or PID driven directly by
 the VCP and to not involve MOTION at all.
 Thanks!

 I thought about that too. The thing is that the joint needs to be
 homed before work. So that would require some additional Ladder logic,
 but I have no idea, how to do that - it would be easy with stepgen in
 velocity mode, but I think I need it to be in position mode, in order
 to position that saw blade pretty precisely - within 0,2-0,3 mm range.

 How can I duplicate homing routine then?



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
2012/8/19 John Thornton bjt...@gmail.com:
 You could roll your own in GladeVCP... have you seen my tutorials on that?


Yes, I have played a little with Glade. It is really nice, but there
is some learning curve for me to climb. I already am over deadline
with this machine, so I am interested to spend as little time as
possible on this.

OTOH that would be nice to create my own standalone gui, since I do
not need any g-code preview and other stuff - just few buttons and
maybe some other widgets. All those buttons and preview in Axis would
only distract the operator as they would not be used.

Anyway, I have an issue of reproducing homing routine either in HAL or
in Ladder. Can anyone share some advice, how to do that? I do not
really understand, how can I reset stepgen position to 0 or whatever
fixed value, based on the state of input from homing switch (rising
and falling edges, to be precise). There will be some offset between
pre-homing and post-homing stepgen positions, which I do not
understand, how to handle.
Has anyone already done that?

-- 
Viesturs

If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread John Thornton
Have you looked at halui to home the joint?

Have you seen this?

http://linuxcnc.org/index.php/english/component/kunena/?func=viewcatid=48id=23317limit=6



On 8/19/2012 7:00 AM, Viesturs Lācis wrote:
 2012/8/19 John Thornton bjt...@gmail.com:
 You could roll your own in GladeVCP... have you seen my tutorials on that?

 Yes, I have played a little with Glade. It is really nice, but there
 is some learning curve for me to climb. I already am over deadline
 with this machine, so I am interested to spend as little time as
 possible on this.

 OTOH that would be nice to create my own standalone gui, since I do
 not need any g-code preview and other stuff - just few buttons and
 maybe some other widgets. All those buttons and preview in Axis would
 only distract the operator as they would not be used.

 Anyway, I have an issue of reproducing homing routine either in HAL or
 in Ladder. Can anyone share some advice, how to do that? I do not
 really understand, how can I reset stepgen position to 0 or whatever
 fixed value, based on the state of input from homing switch (rising
 and falling edges, to be precise). There will be some offset between
 pre-homing and post-homing stepgen positions, which I do not
 understand, how to handle.
 Has anyone already done that?



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread andy pugh
On 19 August 2012 14:00, Viesturs Lācis viesturs.la...@gmail.com wrote:

 Anyway, I have an issue of reproducing homing routine either in HAL or
 in Ladder. Can anyone share some advice, how to do that? I do not
 really understand, how can I reset stepgen position to 0 or whatever
 fixed value, based on the state of input from homing switch (rising
 and falling edges, to be precise). There will be some offset between
 pre-homing and post-homing stepgen positions, which I do not
 understand, how to handle.

The simplest way is to store the current stepen counts as an offset
when the home switch is tripped (sample-hold, or something similar in
the Python code) then add that to the stepgen commanded value.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread andy pugh
On 19 August 2012 14:14, John Thornton bjt...@gmail.com wrote:
 Have you looked at halui to home the joint?

 Have you seen this?

 http://linuxcnc.org/index.php/english/component/kunena/?func=viewcatid=48id=23317limit=6


Or, for that matterr:
http://linuxcnc.org/index.php/english/component/kunena/?func=viewcatid=24id=22572limit=6start=6#22961
Which has a very simple motion-controller included.

Gabriel Willen (WillenCMD on the IRC) has already built a sharpening
machine using just HAL and Glade.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
2012/8/19 andy pugh bodge...@gmail.com:
 On 19 August 2012 14:00, Viesturs Lācis viesturs.la...@gmail.com wrote:

 Anyway, I have an issue of reproducing homing routine either in HAL or
 in Ladder. Can anyone share some advice, how to do that? I do not
 really understand, how can I reset stepgen position to 0 or whatever
 fixed value, based on the state of input from homing switch (rising
 and falling edges, to be precise). There will be some offset between
 pre-homing and post-homing stepgen positions, which I do not
 understand, how to handle.

 The simplest way is to store the current stepen counts as an offset
 when the home switch is tripped (sample-hold, or something similar in
 the Python code) then add that to the stepgen commanded value.

I am not sure that I understand, how did You mean that.

But I _think_ that I figured a way, how to solve this, I will try to
check it later this evening.

-- 
Viesturs

If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
2012/8/19 andy pugh bodge...@gmail.com:
 On 19 August 2012 14:14, John Thornton bjt...@gmail.com wrote:
 Have you looked at halui to home the joint?

 Have you seen this?

 http://linuxcnc.org/index.php/english/component/kunena/?func=viewcatid=48id=23317limit=6


 Or, for that matterr:
 http://linuxcnc.org/index.php/english/component/kunena/?func=viewcatid=24id=22572limit=6start=6#22961
 Which has a very simple motion-controller included.


John, Andy, thank You for the links!
It starts to seem that I might try to go with a small GladeVCP as the
only GUI for this machine.

Andy, in Your post You wrote:
If you extract the attached file into the configs directory and then
navigate into the directory in a terminal window and
halrun -I -f laser.hal


How can I tell Ubuntu to do these 2 commands right after startup?
cd /home/machine/linuxcnc/configs/hm2_stepper
halrun -I -f whatever.hal

I guess that it requires to create some script, but I have no idea,
what else should be added there.
Can somebody point me to a place, where it is explained in a simple way?

BTW, where can I see, what do those -l and -f mean?

-- 
Viesturs

If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread andy pugh
On 19 August 2012 15:04, Viesturs Lācis viesturs.la...@gmail.com wrote:

 I am not sure that I understand, how did You mean that.

Stepgen has a counts output. You need to store that value somewhere
in HAL at the point when the home switch is tripped.
(alternatively, store the position-fb value).
That value is your home position in absolute stepgen space.
All you need to do is to add that home position to the output from your VCP.

loadrt sample_hold
loadrt sum2

addf...

net homed sample_hold.0.hold
net stepgen.0.counts sample-hold.0.in
net home-counts sample-hold.0.out sum2.0.in0
net VCP-pos-out sum2.0.in1
setp sum2.0.gain0 [AXIS_N]STEPGEN_SCALE

The homed signal probably needs to be set by a latch on the home
switch, and reset from the VCP.
The VCP can generate the homing moves in userspace, as the actual home
logic happens in realtime.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread andy pugh
On 19 August 2012 15:09, Viesturs Lācis viesturs.la...@gmail.com wrote:

 How can I tell Ubuntu to do these 2 commands right after startup?
 cd /home/machine/linuxcnc/configs/hm2_stepper
 halrun -I -f whatever.hal

Probably in .bashrc. (or some other startup script magic).

 BTW, where can I see, what do those -l and -f mean?

http://linuxcnc.org/docs/html/man/man1/halcmd.1.html
-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread John Thornton
The problem I've run across with trying to use halrun is how to shut it 
down when finished. I have however stumbled across how to install your 
custom gui and run it from linuxcnc without jumping through a bunch of 
hoops.

http://gnipsel.com/linuxcnc/gui/gui03b.html

A goodle search for ubuntu how to run a program on startup seems to 
come up with the answer you seek.

John

On 8/19/2012 8:09 AM, Viesturs Lācis wrote:
 2012/8/19 andy pugh bodge...@gmail.com:
 On 19 August 2012 14:14, John Thornton bjt...@gmail.com wrote:
 Have you looked at halui to home the joint?

 Have you seen this?

 http://linuxcnc.org/index.php/english/component/kunena/?func=viewcatid=48id=23317limit=6

 Or, for that matterr:
 http://linuxcnc.org/index.php/english/component/kunena/?func=viewcatid=24id=22572limit=6start=6#22961
 Which has a very simple motion-controller included.

 John, Andy, thank You for the links!
 It starts to seem that I might try to go with a small GladeVCP as the
 only GUI for this machine.

 Andy, in Your post You wrote:
 If you extract the attached file into the configs directory and then
 navigate into the directory in a terminal window and
 halrun -I -f laser.hal


 How can I tell Ubuntu to do these 2 commands right after startup?
 cd /home/machine/linuxcnc/configs/hm2_stepper
 halrun -I -f whatever.hal

 I guess that it requires to create some script, but I have no idea,
 what else should be added there.
 Can somebody point me to a place, where it is explained in a simple way?

 BTW, where can I see, what do those -l and -f mean?



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread John Thornton
changing my search string to ubuntu 10.04 how to run a program on 
startup brings up even better results


On 8/19/2012 8:09 AM, Viesturs Lācis wrote:
 2012/8/19 andy pugh bodge...@gmail.com:
 On 19 August 2012 14:14, John Thornton bjt...@gmail.com wrote:
 Have you looked at halui to home the joint?

 Have you seen this?

 http://linuxcnc.org/index.php/english/component/kunena/?func=viewcatid=48id=23317limit=6

 Or, for that matterr:
 http://linuxcnc.org/index.php/english/component/kunena/?func=viewcatid=24id=22572limit=6start=6#22961
 Which has a very simple motion-controller included.

 John, Andy, thank You for the links!
 It starts to seem that I might try to go with a small GladeVCP as the
 only GUI for this machine.

 Andy, in Your post You wrote:
 If you extract the attached file into the configs directory and then
 navigate into the directory in a terminal window and
 halrun -I -f laser.hal


 How can I tell Ubuntu to do these 2 commands right after startup?
 cd /home/machine/linuxcnc/configs/hm2_stepper
 halrun -I -f whatever.hal

 I guess that it requires to create some script, but I have no idea,
 what else should be added there.
 Can somebody point me to a place, where it is explained in a simple way?

 BTW, where can I see, what do those -l and -f mean?



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread andy pugh
On 19 August 2012 15:48, John Thornton bjt...@gmail.com wrote:
 The problem I've run across with trying to use halrun is how to shut it
 down when finished. I have however stumbled across how to install your
 custom gui and run it from linuxcnc without jumping through a bunch of
 hoops.

 http://gnipsel.com/linuxcnc/gui/gui03b.html

It might be worth noting that this is a slightly different approach, a
new GUI that replaces Axis / Touchy / Mini etc. This still has all the
rest of LinuxCNC behind it (which might be useful). That includes
Motion, the Interpreter, etc.

The other way has none of that, just a realtime environment and only
the components that you explicitly load.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread John Thornton
I've only been able to figure out how to run my GUI with halrun from a 
terminal which is not very elegant as you have to type in exit or quit 
to unload the real time environment unless you know the secret to halrun 
closing when the GUI closes?

The new GUI doesn't replace the others it just lives beside them...

On 8/19/2012 9:20 AM, andy pugh wrote:
 On 19 August 2012 15:48, John Thornton bjt...@gmail.com wrote:
 The problem I've run across with trying to use halrun is how to shut it
 down when finished. I have however stumbled across how to install your
 custom gui and run it from linuxcnc without jumping through a bunch of
 hoops.

 http://gnipsel.com/linuxcnc/gui/gui03b.html
 It might be worth noting that this is a slightly different approach, a
 new GUI that replaces Axis / Touchy / Mini etc. This still has all the
 rest of LinuxCNC behind it (which might be useful). That includes
 Motion, the Interpreter, etc.

 The other way has none of that, just a realtime environment and only
 the components that you explicitly load.



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread andy pugh
On 19 August 2012 16:33, John Thornton bjt...@gmail.com wrote:

 The new GUI doesn't replace the others it just lives beside them...

What do you get if you only put your GUI in the INI?

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread John Thornton
You mean if I don't copy the files to the installed folders?

On 8/19/2012 9:42 AM, andy pugh wrote:
 On 19 August 2012 16:33, John Thornton bjt...@gmail.com wrote:

 The new GUI doesn't replace the others it just lives beside them...
 What do you get if you only put your GUI in the INI?



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread andy pugh
On 19 August 2012 18:20, John Thornton bjt...@gmail.com wrote:
 What do you get if you only put your GUI in the INI?
 You mean if I don't copy the files to the installed folders?

Perhaps I should have said If you put only your GUI in the INI

ie, can yours be the only GUI?

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread John Thornton
I think I understand but the accent gave me a rough time... I'm not 
running my GUI on top of or embedded in Axis or any other LinuxCNC GUI.

DISPLAY=MyGui

So yes it is running stand alone with all of LinuxCNC available to my 
GUI via the python interface.


On 8/19/2012 11:53 AM, andy pugh wrote:
 On 19 August 2012 18:20, John Thornton bjt...@gmail.com wrote:
 What do you get if you only put your GUI in the INI?
 You mean if I don't copy the files to the installed folders?
 Perhaps I should have said If you put only your GUI in the INI

 ie, can yours be the only GUI?



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Gabriel Willen
Hey Viesturs,

I have successfully done this twice, its fairly simple.  I would be more
than happy to help you through it.  Including a homing process.  I would
suggest only using glade for the User Interface, not to handle any time
based commands.  Found this out very quickly.  Its really easy to write a
hal component using halcomp and attach the python handlers to those i/o
pins you create.  If you would like to schedule a time to chat. Please let
me know.  I have been dealing with some family problems as of late, and has
cut down on my IRC time.  But these issues should be resolved quickly

Thanks
Gabe

On Sun, Aug 19, 2012 at 6:08 AM, Viesturs Lācis viesturs.la...@gmail.comwrote:

 Hello, folks!

 Is there a way to set commanded position for particular joint from VCP
 widget?
 The machine I am building has 1 joint that positions one of the saw
 blades. I would like to be able to set its position from VCP (most
 probably pyvcp as it is easier for me to set up), but I have
 difficulties finding, if there are any HAL pins that I can use to feed
 in the requested position for particular joint. All the
 axis.n.joint-pos-cmd, axis.n.motor-pos-cmd and
 halui.axis.n.pos-commanded are all OUT pins.

 The thing is that I see serious difficulties to ensure that MDI
 commands would be used correctly, it has to be as idiot-proof as
 possible.

 --
 Viesturs

 If you can't fix it, you don't own it.
 http://www.ifixit.com/Manifesto


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
2012/8/19 John Thornton bjt...@gmail.com:
 I think I understand but the accent gave me a rough time... I'm not
 running my GUI on top of or embedded in Axis or any other LinuxCNC GUI.

 DISPLAY=MyGui

 So yes it is running stand alone with all of LinuxCNC available to my
 GUI via the python interface.


Ok, that sounds good.
This whole create Your own standalone glade GUI seems pretty doable,
except for that python handler file. I took a look at it and did
understand approximately nothing.

-- 
Viesturs

If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
2012/8/19 Gabriel Willen gabewil...@gmail.com:
 Hey Viesturs,

 I have successfully done this twice, its fairly simple.  I would be more
 than happy to help you through it.  Including a homing process.

Thank You for the offer! I appreciate that!

 Its really easy to write a hal component using halcomp and
 attach the python handlers to those i/o pins you create.

I feel familiar with comp, I have customized HAL components for some
of my machines. But attach python handlers part is totally different
planet for me.

 If you would like to schedule a time to chat. Please let me know.

How about after some 10-15 minutes? I will restart to Ubuntu and find
some irc application.

-- 
Viesturs

If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread John Thornton
Basically there are a dozen lines that do magic then you just add a 
define for each signal you create in the Gtk Interface Designer to do 
the function you want.

The most confusing thing for me is there is so many ways to get to the 
end you can get lost along the way...

What controls does your machine need? iirc you need to home an axis

On 8/19/2012 12:51 PM, Viesturs Lācis wrote:
 2012/8/19 John Thornton bjt...@gmail.com:
 I think I understand but the accent gave me a rough time... I'm not
 running my GUI on top of or embedded in Axis or any other LinuxCNC GUI.

 DISPLAY=MyGui

 So yes it is running stand alone with all of LinuxCNC available to my
 GUI via the python interface.

 Ok, that sounds good.
 This whole create Your own standalone glade GUI seems pretty doable,
 except for that python handler file. I took a look at it and did
 understand approximately nothing.



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
2012/8/19 Viesturs Lācis viesturs.la...@gmail.com:
 2012/8/19 Gabriel Willen gabewil...@gmail.com:

 Its really easy to write a hal component using halcomp and
 attach the python handlers to those i/o pins you create.

 I feel familiar with comp, I have customized HAL components for some
 of my machines.

Sorry for bothering, but it is late and I am not sure, if I have got
it all right, so I would appreciate if anyone could take a look at my
little piece of code and share some insights, if I am on the right
track.

I took John's THC module and slightly edited it, so that it should:
1) start homing when home input bit goes true;
2) increase offset value in positive direction until home_sw_in goes true;
3) retract ~3 times slower until home_sw_in goes false and set homed bit true;
4) keep the previous offset value untouched, when home bit is false;

I will have classicladder logic, which will set home bit true, when
user will press appropriate button and will reset it to false, when
homed bit goes true. That way user can always rehome by pressing
that button again.

Here is all the contents of module:



component homing Module to home a simple stepgen controlled motor;

description

Based on John Thornton's THC module

;

author Viesturs Lacis;

license GPLv2 or greater;

option singleton yes;

// Input Pins

pin in bit home Do homing;
pin in bit home_sw_in Homing switch input;

// Output Pins
pin out float offset Stepgen position offset;
pin out bit homed Indicates, when homing is completed;

// Parameters
param rw float home_vel Home search velocity in user units per second;

// Global Variables
variable bit home1 Indicates, when home search has succeeded;

function _;

;;

#include rtapi_math.h

FUNCTION(_) {

if(home  !home_sw_in){
offset += (0,001*home_vel);
}
if(home  home_sw_in){
offset -= (0,0003*home_vel);
home1 = 1;
}
if(home1  !home_sw_in){
homed=1;
}
}


-- 
Viesturs

If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joint position from VCP

2012-08-19 Thread Viesturs Lācis
2012/8/19 John Thornton bjt...@gmail.com:
 Basically there are a dozen lines that do magic then you just add a
 define for each signal you create in the Gtk Interface Designer to do
 the function you want.

 The most confusing thing for me is there is so many ways to get to the
 end you can get lost along the way...

 What controls does your machine need? iirc you need to home an axis


Yes, I need to home one joint, the rest is intended to be handled by
classicladder.
I just sent another message with question, if I am on the right track
for the HAL component to do the homing. The idea is to sum2 that
offset and output from scale widget in VCP to get the final stepgen
position.
So in GladeVCP I would like to put one button to initiate the homing,
one scale widget to set the position for that joint, then some LEDs to
show the status of sensors just for operator to check if everything is
ok.
I _think_ that this should do.

-- 
Viesturs

If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] solder paste

2012-08-19 Thread dave
On Sat, 2012-08-18 at 06:18 -0500, ceen...@in-front.com wrote:
 I found a high pressure pump (up to 40,000PSI) that may work with solder 
 paste.  These are readily available on ebay as high pressure liquid 
 chromatography (HPLC) pumps.  A description is here:  
 http://www.lcresources.com/resources/getstart/2b01.htm
 
 Even if a standard Waters style pump has geometry too small for solder paste 
 it would not be too difficult to make a slightly larger pump with check 
 valves specifically designed for solder paste.  OTOH it is a $100-$200 
 experiment to see if a Waters pump would work because they typically use a 
 sapphire piston and sapphire check valve balls for high pressure  precise 
 metering.
 
 Kind of a neat design.
 
 
 Dennis
 
HPLC pumps are made to deliver precise flows of organic (pretty much)
liquids. Even suspended particulates are going to mess with the valving.
Classically, the mobile phase should pass thru a millipore filter;
probably .3 um. Sorry to be a wet blanket. 

Dave
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] solder paste

2012-08-19 Thread ceenbot
Thanks Dave.  Thought I would throw it out there.  I don't have any experience 
with a HPLC pump.  What if the geometry were larger and the check valves could 
cope with a suspended solid?  Think on the scale of a small hydraulic valve 
body.


Dennis


  HPLC pumps are made to deliver precise flows of organic (pretty much)
  liquids. Even suspended particulates are going to mess with the valving.
  Classically, the mobile phase should pass thru a millipore filter;
  probably .3 um. Sorry to be a wet blanket.
  
  Dave

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] solder paste

2012-08-19 Thread dave
On Sun, 2012-08-19 at 20:39 -0500, ceen...@in-front.com wrote:
 Thanks Dave.  Thought I would throw it out there.  I don't have any 
 experience with a HPLC pump.  What if the geometry were larger and the check 
 valves could cope with a suspended solid?  Think on the scale of a small 
 hydraulic valve body.
 
 
 Dennis
 
 
   HPLC pumps are made to deliver precise flows of organic (pretty much)
   liquids. Even suspended particulates are going to mess with the valving.
   Classically, the mobile phase should pass thru a millipore filter;
   probably .3 um. Sorry to be a wet blanket.
   
   Dave
 
Dennis:
I think that is a question for an engineer. 
I just used an HPLC for analysis of low levels of Vit A in animal
feeds. 
There are really no wrong questions ... how else does on learn?
Questions are much cheaper than an expensive HPLC pump. 

If you can take a look as some of the newer colored (paint/dye) heads in
HP printers. Cute technology IIRC. 

Dave

Dave
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] solder paste

2012-08-19 Thread ceenbot
Hi Dave,

That's funny.  I am an engineer but opinions and others' expertise are always 
welcome.  That is how I learn.  I found some inexpensive HPLC pumps on ebay but 
most are sold as-is.  You don't know if the seals are any good and if some 
yahoo like me tried to push solder paste through it...well who knows what shape 
the pump is in.  

I do have a larger pump I purchased from the 3M surplus store in St. Paul, MN.  
The pump is a screw piston type and is rated to somewhere near 30,000 PSI.  The 
assembly had a bunch of high pressure proportional valves and stainless tubing. 
 The pump cylinder is probably 5 cubic inches.  Quite large for a solder paste 
dispenser.

I have not looked into HP's paint heads.  Sounds interesting because one would 
think the paint media is a bit thicker than ink.  The older inkjet heads won't 
work because the ones I'm familiar with heat up a small thin film resistor to 
boil a spec of ink and this heated ink blows through a small orifice to the 
paper.  If I boiled solder paste I would have boiled solder paste.

Eventually I will find something that will work.  This is the idea kicking 
phase at the moment.


Dennis


  Dennis:
  I think that is a question for an engineer.
  I just used an HPLC for analysis of low levels of Vit A in animal
  feeds.
  There are really no wrong questions ... how else does on learn?
  Questions are much cheaper than an expensive HPLC pump.
  
  If you can take a look as some of the newer colored (paint/dye) heads in
  HP printers. Cute technology IIRC.
  
  Dave

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users