A couple of things that are perhaps not well known, but can make things easier.
If you are using a Mesa system and have several smart-serial devices of the same type it can be a little hard to identify which is which as they are adressed by where they are connected. if you use "loadrt hostmot2 use_serial_numbers=1" then instead of hm2_5i24.0.8i20.0.2.... and hm2_5i24.0.8i20.0.4 you get (in my case) hm2_8i20.0003... and hm2_8i20.0008d... Where the hex digits are the last 4 digits of the serial number (which should be on a sticker on the card). This is shorter, and also means that the HAL pin name stays the same no matter which socket you plug the connector into. LUT5 is extremely useful. It allows you to set up a single output for any combination of up to 5 inputs. Great for things like machine guards, pneumatic chuck releases etc. (door must be open, spindle must not be turning, switch or pedal pressed, for example). It gets even more useful of you connect the output back into an input. Then it can have different behaviour depending on current state. I wanted my PSU to be allowed to turn on as long as the bus voltage was low and to be able to turn off under any conditions. I did this be feeding the machine-on, bus-high, bus-low an current output into 4 inputs, then spent a little while looking at the truth-table in my LUT5 tool. At the moment it behaves the same regardless of the bus-high input, but it is one hex number to change to alter that. http://linuxcnc.org/docs/2.7/html/man/man9/lut5.9.html and the online LUT5 tool https://docs.google.com/spreadsheets/d/1_VlL39jUOPpS8Tt9mpRK-eaSTS6C6PHBDoE3JitvLzs/edit?usp=sharing -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
