*Hi*

*about --*Why not try doing it the way I said?---



*I*'*m* only quessing about what you said because i do not understand that
programming language.

 “Martian” language.



/////////////////////////////

first -- only 2 files that I can change

1—5i20.ini

2—hm2-servo.hal

is this right?



////////////////////////

--- Just change the Hostmot2 configuration string to have 4 encoders---

in 5i20.ini

----

[HOSTMOT2]

DRIVER=hm2_pci

BOARD=5i20

CONFIG="firmware=hm2/5i20/SVST8_4.BIT num_encoders=3 num_pwmgens=3
num_stepgens=0"---



need change it to



[HOSTMOT2]

DRIVER=hm2_pci

BOARD=5i20

CONFIG="firmware=hm2/5i20/SVST8_4.BIT num_encoders=4 num_pwmgens=3
num_stepgens=0"



////////////////////////////////

is this right?

///////////////////////////////////////////////////



----2) Set the 4th encoder to counter-mode:
setp hm2_5i20.0.encoder.03.counter-mode 1



/////////////

in file ---hm2-serv0.hal

change this

# encoder feedback

setp hm2_[HOSTMOT2](BOARD).0.encoder.03.counter-mode 0



to

# encoder feedback

setp hm2_[HOSTMOT2](BOARD).0.encoder.03.counter-mode 1

/////////////////////////////////////////////////



about

3) set the scale such that 5V = 100%
setp hm2_5i20.0.encoder.03.scale 1234.5678 (The number should be found
by experiment)

…………………….

in which file 5i20.ini or hm2-servo.hal I should do that?

////////////

is this in ---ini --- INPUT_SCALE =           (-167936)?

 or just add (setp hm2_5i20.0.encoder.03.scale 1234.5678) into

hm2-servo.hal?

thank you







//////////////



thank you














On Mon, Jun 2, 2014 at 3:45 AM, andy pugh <bodge...@gmail.com> wrote:

> On 2 June 2014 00:53, a k <pccncmach...@gmail.com> wrote:
> > this is axis that i add and i think that line that need to be replaced
> one
> > of 10-11-12-13-14
>
> Adding an extra axis adds a lot more than it needed. You don't need
> the PID and you don't actually have the extra axis.
>
> Why not try doing it the way I said?
>
> Just change the Hostmot2 configuration string to have 4 encoders and
> then make the other changes I suggested?
>
> In the configuration you have the hostmot2 confog string is actually
> defined in the INI file and read from the INI file into the HAL file.
> So you need to make the "...num_encoders=4..." change in the INI file,
> not the HAL file, but the rest of the recipe stays the same.
>
> --
> atp
> If you can't fix it, you don't own it.
> http://www.ifixit.com/Manifesto
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to