- Posts: 87
- Thank you received: 17
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
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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"/>
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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?
Please Log in or Create an account to join the conversation.