- Posts: 87
- Thank you received: 17
Ethercat HAL driver
- jc2ktr
- Offline
- Premium Member
-
db1981 wrote: hello,
theres an bug in your hal file.
Move the line "addf lcec.write-all servo-thread" at the last position of the addf's, after your line "addf conv-float-s32.7 servo-thread ".
at the moment your are constantly writing zero to the drives, because you are sending the output (write-all) before you are doing scaling and calculations.
And you have to move all convertions that are related to inputs (feedback) between
lcec-read and motion, otherwise motion reads zero or old values to.
-addf lcec.read-all
-addf input conversions....
-addf motion, pids, classic ladder...
-addf output conversions....
-addf lcec.write-all (the last)
all modules are called in every cycle in the order you have placed addf in the hal.
read this answer again: forum.linuxcnc.org/24-hal-components/223...er?start=1140#199443
Thanks, i wasn´t aware that this is also neccesary for conversion and scaling
My biggest issue was that my "S-0-0001 TNcyc" cycle time in my Rexroth drives were still 2000us
After setting it to 1000us i was able to jog the axis around
I´ve edited my hal would you please take a look again if it is ok so?
Please Log in or Create an account to join the conversation.
- db1981
- Offline
- Platinum Member
-
- Posts: 790
- Thank you received: 276
hal looks good now....
you can get rid of your convert and scale modules like so:
<pdoEntry idx="002f" subIdx="00" bitLen="32" halPin="S-0-0047-poscmd" halType="s32"/>
<pdoEntry idx="002f" subIdx="00" bitLen="32" halPin="S-0-0047-poscmd" halType="float" scale="0.0001"/>
<pdoEntry idx="0033" subIdx="00" bitLen="32" halPin="S-0-0051-posfb" halType="s32"/>
<pdoEntry idx="0033" subIdx="00" bitLen="32" halPin="S-0-0051-posfb" halType="float" scale="10000"/>
Please Log in or Create an account to join the conversation.
- jc2ktr
- Offline
- Premium Member
-
- Posts: 87
- Thank you received: 17
db1981 wrote: hi,
hal looks good now....
you can get rid of your convert and scale modules like so:
<pdoEntry idx="002f" subIdx="00" bitLen="32" halPin="S-0-0047-poscmd" halType="s32"/>
<pdoEntry idx="002f" subIdx="00" bitLen="32" halPin="S-0-0047-poscmd" halType="float" scale="0.0001"/>
<pdoEntry idx="0033" subIdx="00" bitLen="32" halPin="S-0-0051-posfb" halType="s32"/>
<pdoEntry idx="0033" subIdx="00" bitLen="32" halPin="S-0-0051-posfb" halType="float" scale="10000"/>
Thanks. i´ll try it these days
Thanks for your help
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
www.crowdsupply.com/harmonic-bionics/ease
Useful?
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
-
- Posts: 22011
- Thank you received: 7491
I'll have a Mesa 7i92 please !
Please Log in or Create an account to join the conversation.
- thomaseg
- Offline
- Senior Member
-
- Posts: 44
- Thank you received: 5
Actually, i bought one last week and it arrived friday, but i haven't had the time to tinker with it yet. My plan was to use it for I/O for the control-panel. Instead of using loads of rather expensive Beckhoff modules.... An arduino can handle most(all?) the inputs and handle outputs such as powergraph for the spindle etc...Just found looking for an answer to a forum question:
www.crowdsupply.com/harmonic-bionics/ease
Useful?
/Thomas
Please Log in or Create an account to join the conversation.