Re: [Emc-users] E-stop and machine on/off

2010-09-25 Thread vh5...@libero.it
Hi,
I solved my problem using a bit invert on the pin halui.estop.is-activated as 
below

# External E-Stop
net estop-loop <= parport.0.pin-13-in-not
net estop-loop => iocontrol.0.emc-enable-in

loadrt not count=1
addf not.0 servo-thread
net estop-disabled-in not.0.in <= halui.estop.is-activated
net estop-disabled-out not.0.out => halui.machine.on 

Bye
Luigi






>Messaggio originale----
>Da: vh5...@libero.it
>Data: 25/09/2010 15.55
>A: 
>Ogg: E-stop and machine on/off
>
>Hi,
>I'm running EMC2 2.2.8 and I've got an external safety circuit. When I reset 
>my external E-stop and I arm my electronics I want that Axis starts with 
>machine ON.
>I connected the signal coming from my external circuit to the E-stop and I 
>would like that also the machine starts. 
>In the pinout.hal file I put the code below but I relized that the machine 
>starts only sometimes very random, each 6/7 attempts the machine starts.
>
># External E-Stop
>net estop-loop <= parport.0.pin-13-in-not
>net estop-loop => iocontrol.0.emc-enable-in
>net estop-loop => halui.machine.on
>
>It's amazing because if I use the internal E-stop and I release the E-stop 
in 
>Axis then it works correctly
>
># Internal E-Stop
>net estop-loop <= iocontrol.0.user-enable-out
>net estop-loop => iocontrol.0.emc-enable-in
>net estop-loop => halui.machine.on
>
>What's the difference?
>
>Anyway I would like the machine starts when the external E-stop is released, 
>is it possible.
>
>Thank you
>Luigi



--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] E-stop and machine on/off

2010-09-25 Thread vh5...@libero.it
Hi,
I'm running EMC2 2.2.8 and I've got an external safety circuit. When I reset 
my external E-stop and I arm my electronics I want that Axis starts with 
machine ON.
I connected the signal coming from my external circuit to the E-stop and I 
would like that also the machine starts. 
In the pinout.hal file I put the code below but I relized that the machine 
starts only sometimes very random, each 6/7 attempts the machine starts.

# External E-Stop
net estop-loop <= parport.0.pin-13-in-not
net estop-loop => iocontrol.0.emc-enable-in
net estop-loop => halui.machine.on

It's amazing because if I use the internal E-stop and I release the E-stop in 
Axis then it works correctly

# Internal E-Stop
net estop-loop <= iocontrol.0.user-enable-out
net estop-loop => iocontrol.0.emc-enable-in
net estop-loop => halui.machine.on

What's the difference?

Anyway I would like the machine starts when the external E-stop is released, 
is it possible.

Thank you
Luigi

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] pin 'halui.mdi-command-10' does not exist

2010-09-23 Thread vh5...@libero.it
Hi,
I'm running EMC 2.2.8 and I'm trying to call an external program using 'halui.
mdi-command-xx' commands in the ini file but it seems that EMC had a limit of 
10 halui.mdi-command-xx.
If I use commands up to 09 they are ok but when I add an other command I get 
the error pin 'halui.mdi-command-10' does not exist. Beyond 09 commands it is 
forbidden!!!???
Part of my ini file is:

[HALUI]
#MDI_COMMAND 0
MDI_COMMAND = M102
#MDI_COMMAND 1
MDI_COMMAND = M100
#MDI_COMMAND 2
MDI_COMMAND = M115
#MDI_COMMAND 3
MDI_COMMAND = M116
#MDI_COMMAND 4
MDI_COMMAND = M103
#MDI_COMMAND 5
MDI_COMMAND = G0 X-135
#MDI_COMMAND 6
MDI_COMMAND = G0 Y210
#MDI_COMMAND 7
MDI_COMMAND = G0 X320
#MDI_COMMAND 8
MDI_COMMAND = G0 Y-168
#MDI_COMMAND 9
MDI_COMMAND = G0 Z0
#MDI_COMMAND 10
MDI_COMMAND = M119

Can you help me
Thank you
Luigi

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Help! Axis runs hidden

2010-09-09 Thread vh5...@libero.it
Hi guys,
today I started my machine and EMC2 didn't start automatically as all the days 
(it is in the start-up section) so I tried to launch it manually and I got the 
error "ECMC2 is still runnnig. Restart it". So I realized that the process was 
still active. I killed the running processes and restarted EMC2 but nothing 
happened. The problem is that I cannot see Axis interface... Axis and EMC2 are 
listed in the processes list (sleeping) but I cannot see the grafic interface. 
I tried to stop the processes and restart them but nothing changed. 
I'm running Ubuntu 8.04, EMC2 2.2.8
All the other application are running correctly, only Axis is hidden.

What can I do?

Thank you

Luigi

--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HOMING OFFSET SPEED

2010-05-28 Thread vh5...@libero.it
So, isn't G0 the final speed in EMC2 2.2.8 during homing offset? I was 
wandering because my machine moved correctly in G0 instead during the homing 
offset I noticed an axis stalling. Speed too high!
I there the possibility to set it?
I cannot upgrade my EMC because I made a lot modifications.


Thank you
Luigi



>> It makes the final move at the maximum axis speed (the same speed as
>> is used for G0 moves)
>
>Ignore that, it seems that my understanding of the matter was erroneous.
>
>-- 
>atp
>



--

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] HOMING OFFSET SPEED

2010-05-28 Thread vh5...@libero.it
Hi guys,
I'm using EMC2 2.2.8 and I'm having troubles with the homing offset because I 
don't know where to setup its speed.
My homing sequence is correct: when the limit switch is engaged (with speed 
HOME_SEARCH_VEL) the movement inverts (with speed HOME_LATCH_VEL ) and then, 
when it is released, the machine moves to the HOME_OFFSET point with a very 
high speed that I cannot setup.
My homing section is:
...
HOME_OFFSET =  -5.0
HOME_SEARCH_VEL =  -3.0
HOMING_LATCH_VEL =2.0
...

Is there a parameter to setup the homing offset speed?

Thank you
Luigi

--

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] R: Re: Axis "program redrawing"

2010-05-04 Thread vh5...@libero.it
Hi Jeff,
I'm currently using EMC 2.2.8.
As you said I'm using the parameter #5399 just to read the analog value. This 
value sets the dimension of my workpiece. The tool path changes following the 
new set value but the program keeps on displaying the same workpiece.
Is there any solution?

Since my workpiece is very easy (a parallelepiped) I tried also to insert in 
Axis a cube but I need to retreive the right dimensions first. For this purpose 
I tried to use python commands as you mentioned in the mail archivie:

import commands

float(commands.getoutput("halcmd getp motion.analog-in-00 "))

It doesn't work, but probably I don't use this code in the right point... Can 
you suggest me where to create an object to be displayed?

Regards
Luigi
 


>Messaggio originale
>Da: jep...@unpythonic.net
>Data: 04/05/2010 18.01
>A: "vh5...@libero.it", "Enhanced Machine Controller (EMC)"

>Ogg: Re: [Emc-users] Axis "program redrawing"
>
>No.
>
>The AXIS preview can't know what analog value will be present at the
>time the M66 instruction is actually executed, so anything it does will
>be wrong.
>
>The current version of AXIS seems to use the prior value of parameter
>#5399 as the input's value; as #5399 is not typically a saved parameter,
>this usually means that the inputs will always be treated as 0.0 or
>false. (looking at pre2.4; 2.3 may be different)
>
>I'm not totally against doing something more sophisticated than this,
>but I don't know what that thing would be.
>
>Jeff
>



--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Axis "program redrawing"

2010-05-04 Thread vh5...@libero.it
Hi,
I put in my pyVCP panel a "scale" object that is read in my pyvcp.hal as a 
"motion.analog-in-00"
In my g-code this analog value is read by a M66 E0 L0 Q1 instruction ad it is 
used to modify a position value.
It works great except then in the visualization of the program in "Axis". I 
would like to see the program changing when I move the scale (reloading the 
program as well) instead I can see changing only the path. Even if I reload the 
program [Control-R] I cannot see any difference,
Is there the possibility to modify Axis in some parts just to see the program 
changing with the related analog value as above?

Thanks
Luigi 

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] GEOMETRY = ZXY in Axis

2009-10-15 Thread vh5...@libero.it
Hi,
I can't rotate the backplot preview in Axis as requested in my application. 
I put in the .INI file, under [DISPLAY] section, the identifier GEOMETRY = ZXY 
but I can't see any difference in my preview.

Can you help me?

Best Regards

Luigi

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] halui commands in M100 while program is running

2009-10-13 Thread vh5...@libero.it
Hi guys, 
thank you for your answers.
I've already tried to use the MDI_COMMAND in the ini file to launch the M100 
bash script but since I'm performing a homing I got an error: I cannot do 
homing in MDI mode.
Now, since I can launch correctly my M100 program from terminal (./M100) , I 
would like to know how to link a pin with a bash script. Can I do somethik like 
this? 
net ./basch_script_file <= parport.0.pin. ???

Thank you
Luigi

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] halui commands in M100 while program is running

2009-10-12 Thread vh5...@libero.it
Hello,
I would like to perform some halui commands while the program is running 
but I get some errors. 
For instance I put a M100 program at the beginning of 
my g-code just to make some checks before starting with the production.
Here 
there is the code of my M100 program that should home my system. The problem is 
that I gat an error: "Can't do that (EMC_AXIS_HOMING) in auto mode with the 
interpreter reading." 
Just for this reason I used halui.mode.manual and halui.
program.stop but the error is still on. Am I mistaking something?

Thank you 

Luigi

 
#!/bin/sh

#homing
halcmd setp halui.mode.manual True
halcmd setp 
halui.program.stop True

halcmd setp halui.joint.0.select True
homed=$(halcmd -
s show pin halui.joint.0.is-homed|cut -c 17)
echo $homed
if [ $homed = "F" ]; 
then
halcmd setp halui.joint.selected.home True
fi

halcmd setp halui.program.
run True
halcmd setp halui.mode.auto True

exit 0






--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Circular blade Mill

2009-03-29 Thread vh5...@libero.it
Hi guys,
I'm going to bild a 3 axis Circular blade Mill and I would like to display a 
circular blade tool instead of displaying the usual "cone" in the Axis 
interface.
I tried to change my tool modifying the tool table but I can only change the 
diameter and not the high of the tool.
Do you know how to do?

Thank you

Luigi 

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users