Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

cr-cam01
354 Vistas, 2 Respuestas

head orientation

Good morning,
I would need to lock the b axis every 5 degrees (and positive and negative multiples)
with the m107 function and leave it unlocked in the other cases. who can help me insert the correct wording in the post? thank you
gregorANU4T
en respuesta a: cr-cam01

You can use the modulo operator to determine if the rotary value is a multiple of 5, for example:

 

<IF>[eq(<ROT2-WIND>%5,0)]<THEN>M107<ENDIF>

cr-cam01
en respuesta a: cr-cam01

thanks gregorANU4T
in fact the proposed solution works ...
in the meantime I also found a solution with the string:
[: W = <ROT1-WIND> / 5] <IFNOT> [(W% 1 == 0)] <THEN>
Thanks again