On 7 December 2017 at 15:51, 王若溪 <thuwr...@gmail.com> wrote: > If motion.motion-type == 5 can be a HAL signal then my problem is solved. I > could program the behaviour that suits my need.
If you need a logical true/false based on that pin (Which is S32) then I think (after looking through all the likely HAL components) that you would need to convert to U32 and use mux_generic (which lets you define an output state for every motion type) or convert to float and use "near" or "wcomp" http://linuxcnc.org/docs/2.7/html/man/man9/conv_s32_u32.9.html http://linuxcnc.org/docs/2.7/html/man/man9/conv_s32_float.9.html http://linuxcnc.org/docs/2.7/html/man/man9/mux_generic.9.html http://linuxcnc.org/docs/2.7/html/man/man9/near.9.html -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1916 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users