Anuncios

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

head orientation

cr-cam01
Contributor

head orientation

cr-cam01
Contributor
Contributor
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
0 Me gusta
Responder
Soluciones aceptadas (1)
355 Vistas
2 Respuestas
Respuestas (2)

gregorANU4T
Enthusiast
Enthusiast
Solución aceptada

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
Contributor
Contributor
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
0 Me gusta