Re: [Emc-users] bldc hal file example?

2012-06-22 Thread Andrew
2012/6/22 Ralph Stirling ralph.stirl...@wallawalla.edu

 I have my prototype linear motor assembled and ready
 to test tomorrow.  I'm trying to figure out how to connect
 everything in hal, and seem to be missing some pieces of
 the puzzle.  I want to use a 7I43 to generate the PWM
 signals with the bldc component.  I'd like to run open loop
 for my initial testing, and add an Austria Microsystems
 magnet linear encoder later for closed loop.

 Andy or Peter (or anybody else), would you have an example
 ini and hal file for generating 3-phase waveforms open loop
 with a 7I43?  Do I need a different firmware for 3-phase,
 or can the standard SVST4_12 in conjunction with the bldc
 component do the job?

 Hi Ralph,

Later today l can share my config for 7i43+7i39 linear motors.

Andrew
--
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] Monitor and control my CNC through an IP camera ?

2012-06-22 Thread Rando Sauvage
2012/6/21, John Kasunich jmkasun...@fastmail.fm:

 On Thu, Jun 21, 2012, at 04:11 PM, Rando Sauvage wrote:

 2012/6/21, John Kasunich jmkasun...@fastmail.fm:
 
  On Thu, Jun 21, 2012, at 02:19 PM, Rando Sauvage wrote:
 
  I have tried to do a logical OR with hal components in my custom.hal
  file, but it doesn't works since my emc_pause script doesn't address
  a real pin anymore ...
 
  loadrt or2 count=1
  addf or2.0 servo-thread
 
  net programPause = halui.program.pause
 
  net pause-joystick or2.0.in0 = input.0.btn-thumb
  net pause-console or2.0.in1
  net programPause = or2.0.out
 
  I have then modified my emc_pause script as follow:
  halcmd setp pause-console 1;
  But it fails with this error: commandline:0: parameter or pin
  'pause-console' not found, because pause-console is a signal name
  with no pin associated ...
 
  As Andy has already pointed out, you could setp the input pin
  of the OR gate:
halcmd setp or2.0.in1 1;
 
  You could also retain the readability benefits of the named
  signal by using the sets command, which lets you set a signal
  instead of a pin:
halcmd sets pause-console 1;
 
  --
John Kasunich
jmkasun...@fastmail.fm
 
 Thanks both for your answers.

 I am quite sure I tried halcmd setp or2.0.in1 1; and it didn't work
 (it failed with a message pin already in use or something like
 this).

 Wasn't aware of the existence of the sets command, great!

 I will get a try again in a couple of hours and let you know.

 Xavier


 Oh, right - it won't let you set the pin because there is a signal
 connected to it.  If you delete the line net pause-console or2.0.in1
 then the pin would be free, and setp would work.  But personally
 I would keep the signal and use sets.  That way you have a nice
 readable signal name when you are studying the HAL file five
 years from now.


You know what ? You are 100% right here ! I have tested the 2
solutions, and yes, both work.

To sum-up the two solutions:
1) *** using setp ***

- custom.hal contains:
loadrt or2 count=1
addf or2.0 servo-thread
net programPause = halui.program.pause
net pause-joystick or2.0.in0 = input.0.btn-thumb
net programPause = or2.0.out

- and my emc_pause script is modified as follow (we address directly
the second input of the OR gate):
#!/bin/sh
halcmd setp or2.0.in1 1;
sleep 0.1
halcmd setp or2.0.in1 0;
sleep 1
halcmd setp halui.spindle.stop 1;
sleep 0.1
halcmd setp halui.spindle.stop 0;
halcmd setp halui.flood.off 1;
sleep 0.1
halcmd setp halui.flood.off 0;
echo Machine paused.


2) *** better solution: use sets (set signal) ***

- custom.hal contains:
loadrt or2 count=1
addf or2.0 servo-thread
net programPause = halui.program.pause

net pause-joystick or2.0.in0 = input.0.btn-thumb
net pause-console or2.0.in1
net programPause = or2.0.out

- and the beginning of my emc_pause script is modified as follow (this
time we address the signal that is connected to one of the input of
the OR gate):
#!/bin/sh
halcmd sets pause-console 1;
sleep 0.1
halcmd sets pause-console 0;
sleep 1
...

Obviously, I did the same for the emc_resume script / button. The only
difference is that we declare two OR gates (loadrt or2 count=2) and
the second one is addressed with the name or2.1.

Note for those who are looking for more info: the html documentation
doesn't contain all the commands (eg I think that sets is missing), so
take a look at the man page of halcmd (man halcmd).


Thanks again for your help :-)

Xavier

--
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] bldc hal file example?

2012-06-22 Thread andy pugh
On 22 June 2012 04:38, Ralph Stirling ralph.stirl...@wallawalla.edu wrote:

 Andy or Peter (or anybody else), would you have an example
 ini and hal file for generating 3-phase waveforms open loop
 with a 7I43?  Do I need a different firmware for 3-phase,
 or can the standard SVST4_12 in conjunction with the bldc
 component do the job?

You need a firmware with the 3-phase pwm in it.
You should have a TPEN4_5.BIT file as part of the standard firmware suite.

What motor drive hardware are you using? The 7i39 is convenient, but
requires specific firmware.

-- 
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] SCARA robot arm 3D printer

2012-06-22 Thread charles green
hey bishop, do the thing with the knife.

--- On Thu, 6/21/12, transis...@transistor-man.com 
transis...@transistor-man.com wrote:

 From: transis...@transistor-man.com transis...@transistor-man.com
 Subject: Re: [Emc-users] SCARA robot arm 3D printer
 To: emc-users@lists.sourceforge.net
 Date: Thursday, June 21, 2012, 10:20 PM
 On 2012-06-20 09:14, ceen...@in-front.com
 wrote:
  This link is for a reprap SCARA: 
  http://www.youtube.com/watch?v=Cquw7dvR80A
 
  There was a conversation a while back about how many
 plastic Yoda
  heads and other fast prototyped plastic waste would end
 up in land
  fills.  I see the above reprap SCARA being a
 positive and 
  constructive
  engineering use for a reprap machine.  The HF06
 used stepper motor 
  and
  linear bearings but the rest is pretty much made with a
 reprap.
 
  Cool stuff.
 
 
  Dennis
 
 
   ---Original Message---
   From: Jeshua Lacock jes...@3dtopo.com
   To: Enhanced Machine Controller (EMC) 
  emc-users@lists.sourceforge.net
   Subject: Re: [Emc-users] SCARA robot arm 3D
 printer
   Sent: Jun 20 '12 02:25
 
 
   On Jun 19, 2012, at 9:46 AM, andy pugh
 wrote:
 
    On 19 June 2012 15:46,  transis...@transistor-man.com
 wrote:
   
    As the printer is a SCARA arm
   
    This is an interesting development, as
 it has more printable
    components than a conventional RepRap.
 You could (in theory) 
  print the
    arms, whereas printing linear slides is
 more tricky.
 
   Wow, that is a really great idea! Pretty much
 the only thing you 
  couldn't print is the steppers (and electrical
 components) - but those 
  things are cheap!
 
 
   Cheers,
 
   Jeshua Lacock
   Founder/Engineer
   3DTOPO Incorporated
   http://3DTOPO.com
   Phone: 208.462.4171
 
 
  
 
 --
  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
 
 That is excellent,
 
 I didn't realize it, bit you're correct, there are fewer
 non-printable 
 parts on a scara versus a conventional XY platform. (no
 linear bearings)
 
 That platform (video) looks really far along. One of the
 mechanisms IBM 
 used in this arm to maintain constant direction on the front
 facing 
 appendage is just link it with a belt to the theta 1 axis.
 it 
 effectively removes the 'turn' on the front axis, so you
 don't 
 necessarily have to have the extruder (or pen) in the
 video's case in 
 the exact center of the front facing part. I can snag a
 picture later on 
 to demo this, which might be useful for
 printed-out-scara-arms.
 
 @jeshua, thanks! The smiley-face was a reference to the
 movie 'moon'. 
 There's a robot in the film with a very basic display, that
 looks 
 similar to the printout.
 
 I think this is the most-recent for scara-reprap
 development:
 http://forums.reprap.org/read.php?2,128991,128991
 
 if you run into other people developing for that platform
 i'd be 
 curious,
 
 Thanks,
 -Dane
 
 --
 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] [FWD: RE: Live Config]

2012-06-22 Thread Chris Morley


It seems that the calibration program will only check the first HAL file
described in the INI file. which is ppmc_load.hal.
while the values for substitution are in ppmc_motion.hal

if you move the  setp ppmc.0.encoder.00.scale [AXIS_0]INPUT_SCALE
etc into the ppmc_load.hal -I bet it will work properly.
I can't test that cause I don't have a ppmc product.

Let me know if that works...sorry the answer took so long.
Chris M


From: d...@archfitters.com
To: emc-users@lists.sourceforge.net
Date: Mon, 18 Jun 2012 17:33:44 -0700
Subject: Re: [Emc-users] [FWD: RE: Live Config]

Here are the config files..Thanks 
 
 Original Message 
Subject: Re: [Emc-users] [FWD: RE: Live Config]
From: Chris Morley chrisinnana...@hotmail.com
Date: Tue, June 12, 2012 11:12 pm
To: EMC emc-users@lists.sourceforge.net
 
 
 
well there also has to be a substitution entry in the ini file
in the Hal file it would look like this:
setp hm2_7i43.0.pwmgen.00.scale [AXIS_0]OUTPUT_SCALE
 
in the INI file like this:
[AXIS_0]
OUTPUT_SCALE = 1000
 
post your config files and I can look directly
Chris M
 
 
From: d...@archfitters.com
To: emc-users@lists.sourceforge.net
Date: Mon, 11 Jun 2012 06:58:33 -0700
Subject: Re: [Emc-users] [FWD: RE: Live Config]
 
 
 
Thanks for responding. I must admit my question was extremely poorly
written. Sorry for the poor grammar and bad descriptions. I checked the
hal files as mentioned below and found no spaces before the setp
commands. Let try this again. I have uploaded a Sceenshot. I am trying
to get input_scale: on Tune 0. Can some one please show me how to ad
this. 
 
 
 This is hard to explain without looking at the screen. IF you choose
 to machine config in EMC 2.6 you are able to change and test the axis
 values while EMC is open. My Y axis is missing the input box to change
 the resolution. I would like to find out how to add and remove the
 input boxes for this area.


 
Hi Doug
 
I think you are talking of 'calibration' selected under the machine
heading
in AXIS?
 
Calibration calls a program that scans the HAL file.
If you add a space before the setp eg:
setp hm2_5i20.0.stepgen.02.maxaccel 2.5
 
Calibration will ignore the line and it will not show the box.
Next time a little more detail of how you got to the problem will help
us help you. And I hope this was what you are talking of :)
 
I hope this helps.
 
Chris M
 
--
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  
  
--
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