Re: [Emc-users] On the status of BLDC component and Hostmot2

2011-08-18 Thread Peter C. Wallace
On Thu, 18 Aug 2011, andy pugh wrote:

> Date: Thu, 18 Aug 2011 23:09:55 +0100
> From: andy pugh 
> Reply-To: "Enhanced Machine Controller (EMC)"
> 
> To: "Enhanced Machine Controller (EMC)" 
> Subject: Re: [Emc-users] On the status of BLDC component and Hostmot2
> 
> On 18 August 2011 20:27, John Prentice  wrote:
>
>> I suspect there could be a coding problem in 3pwmgen. The documentation and
>> the loaded component have "fault" as an output pin. All the description of
>> it suggests it should be an input (e.g. it disables the generator, the
>> invert pin alters it being active high/low etc.)
>
> It's been a while since I looked, but I think it was correct. There is
> a physical pin that the 7i39 uses to indicate that it has faulted, and
> a HAL pin to echo that status, IIRC. The physical pin is an input to
> the FPGA 3pwmgen, the "fault" HAL bit is an output.

The 7I39 doesnt use the pin but its fed through one of the sense pins I 
believe.

The external fault input is for things like IGBT modules that have a 
overcurrent/overtemp fault output pin. Its a latched input (with a ~100 ns 
glitch filter)  that turns off all PWM outputs and requires the host (EMC in 
this case) to react to the fault HAL pin and  re-enable the outputs


Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] On the status of BLDC component and Hostmot2

2011-08-18 Thread andy pugh
On 18 August 2011 20:27, John Prentice  wrote:

> I suspect there could be a coding problem in 3pwmgen. The documentation and
> the loaded component have "fault" as an output pin. All the description of
> it suggests it should be an input (e.g. it disables the generator, the
> invert pin alters it being active high/low etc.)

It's been a while since I looked, but I think it was correct. There is
a physical pin that the 7i39 uses to indicate that it has faulted, and
a HAL pin to echo that status, IIRC. The physical pin is an input to
the FPGA 3pwmgen, the "fault" HAL bit is an output.

> Finally, just a clarification; I presume one nets the 5i20 GPIO pins defined
> in the 7i39 manual to the "hall" inputs of the bldc component.

Yes, indeed. They are just input pins, so don't get given a special
status by the driver. (In fact, you could use them for something else
if you had a different form of motor feedback, and simply use the 7i39
for signal conditioning)

-- 
atp
"Torque wrenches are for the obedience of fools and the guidance of wise men"

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] On the status of BLDC component and Hostmot2

2011-08-18 Thread John Prentice

Andy, greetings
>
>> Andy: What is the best place to find the mapping between the 
>> configuration
>> tags for bldc and the personality word
>
> Ignore "personality", it's a side effect of the way that comp works
> and the auto-generated documentation.
>
Thanks - that is fine - I wanted to make sure I did not miss "netting" any 
important pins.

I suspect there could be a coding problem in 3pwmgen. The documentation and 
the loaded component have "fault" as an output pin. All the description of 
it suggests it should be an input (e.g. it disables the generator, the 
invert pin alters it being active high/low etc.)

I will leave it unconnected for now - yes I nearly have actual wiring into 
the 7i39 :=)

Finally, just a clarification; I presume one nets the 5i20 GPIO pins defined 
in the 7i39 manual to the "hall" inputs of the bldc component.

TIA

John Prentice 


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] On the status of BLDC component and Hostmot2

2011-08-18 Thread andy pugh
On 18 August 2011 11:43, John Prentice  wrote:

> Andy: What is the best place to find the mapping between the configuration
> tags for bldc and the personality word

Ignore "personality", it's a side effect of the way that comp works
and the auto-generated documentation.

You will get the pins you need for the input and output modes you specify.

-- 
atp
"Torque wrenches are for the obedience of fools and the guidance of wise men"

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] On the status of BLDC component and Hostmot2

2011-08-18 Thread John Prentice
Andy, Peter W-  greetings

Thank you for info on the firmware naming.

Andy: What is the best place to find the mapping between the configuration 
tags for bldc and the personality word whose bits are used in the pin 
definitions to define the existence of some pins?

Best wishes

John Prentice


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] On the status of BLDC component and Hostmot2

2011-08-16 Thread Peter C. Wallace
On Tue, 16 Aug 2011, John Prentice wrote:

> Date: Tue, 16 Aug 2011 21:16:48 +0100
> From: John Prentice 
> Reply-To: "Enhanced Machine Controller (EMC)"
> 
> To: "Enhanced Machine Controller (EMC)" 
> Subject: Re: [Emc-users] On the status of BLDC component and Hostmot2
> 
> Andy, greetings
>
>>
>> There is an SVTP7_7i39 bitfile which I believe should arrive with a
>> apt-get install emc2-firmware (and which you might already have)
>> The current release (2.4.6) has the bldc_hall3 component, but doesn't
>> seem to have the three-phase PWM Hostmot2 function so you will need
>> 2.5 to use the 7i39.
>
> I have installed the emc2-firmware package and in the 5i20 folder the
> changelog for firmware release 0.8 says there is a 5i20/SVTP_7I39.PIN  The
> actual file installed is SVTP6_7I39.PIN. The changelog says there is a
> ti23/SVTP6_7I39.PIN. I take it that ti23 is a typo for 5i23.
>
> Now for some wild guessing on naming. SV starts ever name, TP = three phase,
> 6 is a version number and 7i39 is the daughter board expected.

SV means servo, TP means ThreePhase, 6 is the number of servo channels (3x 
7I39) 7I39 means pinout matches 7I39

>
> If 6 is the version then it sounds as though the released firmware is behind
> the version (SVTP7_7i39) to which you refer. Release was December 19 2010 by
> Jeff Epler.
>
> I have not yet found where the actual bit files (and VHDL stuff) are stored.
>
> Any advice/help welcomed - I have so many unknowns that I at least want to
> start with the latest versions of everything.
>
> Thanks
>
> John Prentice
>
>
> --
> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
> user administration capabilities and model configuration. Take
> the hassle out of deploying and managing Subversion and the
> tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] On the status of BLDC component and Hostmot2

2011-08-16 Thread andy pugh
On 16 August 2011 21:16, John Prentice  wrote:

> Now for some wild guessing on naming. SV starts ever name, TP = three phase,
> 6 is a version number and 7i39 is the daughter board expected.

Not quite. (but partly my fault)
SV = Servo, TP = Three Phase, 6 = Supports 6 servos.
>
> If 6 is the version then it sounds as though the released firmware is behind
> the version (SVTP7_7i39) to which you refer.

No, sorry, that was a typo. I meant SVTP6. The one you have is, as far
as I know, the latest version.

> I have not yet found where the actual bit files (and VHDL stuff) are stored.

The bit  files should be in /lib/firmware/hm2

-- 
atp
"Torque wrenches are for the obedience of fools and the guidance of wise men"

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] On the status of BLDC component and Hostmot2

2011-08-16 Thread John Prentice
Andy, greetings

>
> There is an SVTP7_7i39 bitfile which I believe should arrive with a
> apt-get install emc2-firmware (and which you might already have)
> The current release (2.4.6) has the bldc_hall3 component, but doesn't
> seem to have the three-phase PWM Hostmot2 function so you will need
> 2.5 to use the 7i39.

I have installed the emc2-firmware package and in the 5i20 folder the 
changelog for firmware release 0.8 says there is a 5i20/SVTP_7I39.PIN  The 
actual file installed is SVTP6_7I39.PIN. The changelog says there is a 
ti23/SVTP6_7I39.PIN. I take it that ti23 is a typo for 5i23.

Now for some wild guessing on naming. SV starts ever name, TP = three phase, 
6 is a version number and 7i39 is the daughter board expected.

If 6 is the version then it sounds as though the released firmware is behind 
the version (SVTP7_7i39) to which you refer. Release was December 19 2010 by 
Jeff Epler.

I have not yet found where the actual bit files (and VHDL stuff) are stored.

Any advice/help welcomed - I have so many unknowns that I at least want to 
start with the latest versions of everything.

Thanks

John Prentice 


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] On the status of BLDC component and Hostmot2

2011-08-15 Thread andy pugh
On 15 August 2011 12:23, John Prentice  wrote:

> Finally a really dumb question. The 7i39 has SENSE A0/A1 and SENSE B0/B1
> outputs to FPGA board and these signals are on Pins 4/5 of the encoder
> interfaces. What are they for?

I think that is a question for PCW. I don't think that the Hostmot2
firmware does anything with them.

-- 
atp
"Torque wrenches are for the obedience of fools and the guidance of wise men"

--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] On the status of BLDC component and Hostmot2

2011-08-15 Thread John Prentice

> Rather than download/compile, you can install the precompiled package
> from the buildbot, which is probably easier:
> http://buildbot.linuxcnc.org/
>
> Do you have Hall sensors on the motors?
>
Andy, greetings

Thanks for the suggestion of Buildbot.

The motors do have Hall sensors. I thought that I would start "gently" with 
trapezoidal drive, then close the position loop with the encoders and 
finally see what happens to performance using sinusoidal. The encoder 
resolution is so high (effectively 25,000 counts per rev) that it seems 
there could be lots of traps.
The XY stage is obviously from some semiconductor fab. line, made by 
Newport, very stiff mechanically. It must have been servo controlled 
originally though I have no original electronics.

Finally a really dumb question. The 7i39 has SENSE A0/A1 and SENSE B0/B1 
outputs to FPGA board and these signals are on Pins 4/5 of the encoder 
interfaces. What are they for?

Best wishes

John Prentice 


--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] On the status of BLDC component and Hostmot2

2011-08-15 Thread andy pugh
On 15 August 2011 11:07, John Prentice  wrote:

> If I pull 2.5-pre and compile it should I have everything needed (including
> a bitfile for Mesa 5i20)?

There is an SVTP7_7i39 bitfile which I believe should arrive with a
apt-get install emc2-firmware (and which you might already have)
The current release (2.4.6) has the bldc_hall3 component, but doesn't
seem to have the three-phase PWM Hostmot2 function so you will need
2.5 to use the 7i39.

Rather than download/compile, you can install the precompiled package
from the buildbot, which is probably easier:
http://buildbot.linuxcnc.org/

Do you have Hall sensors on the motors?

If you don't have encoders or Hall sensors on the motors, but only
linear scales, then it is probably still possible to run the stage as
the relationship between stage position and motor rotor angle is
fixed. You will need to run the magnetic alignment routine in "bldc"
(loadrt bldc cfg=q ) and have the encoder scale set to the number of
linear scale counts per motor physical rev, with the correct motor
pole count parameter set in "bldc"

-- 
atp
"Torque wrenches are for the obedience of fools and the guidance of wise men"

--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] On the status of BLDC component and Hostmot2

2011-08-15 Thread John Prentice
Greetings

I have an XY stage with Heidenhain linear encoders and BLDC motors on its 
screws. The encoders have built in interpolation giving a 0.08 micrometre 
resolution.

I have a Mesa 7i39 on its way.

There was a lot of BLDC work done by Andy Pugh around the turn of the year 
but so far as I can see everything is now very quiet.

If I pull 2.5-pre and compile it should I have everything needed (including 
a bitfile for Mesa 5i20)?

The motors are Elcom/Pittman Nema 23 frame (5111D008) - So far Google has 
not helped much! I plan to test initially with a rotary encoder as runaway 
on the XY table would be nasty.

Does anyone have any additional advice?

John Prentice 


--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users