Posts by Viktor W

    Hi, i am looking for a solution to this topic.

    My Goal: After finishing the code i want to reset the value of the Extern Axis, without rotating all the way back.


    Open your working project ib WoV, open drives configuration, right click on E1 motor and enable coupling, etc

    I followed your advice and enabled coupling correctly.

    When i run the code following happens:


    //The Axis is finished with the program, the E2 value is 60, and before it goes back to home position, where the E2 value is 0 we want to reset without rotating.


    DEF RESET_E2()

    ptp $pos_act

    $ASYNC_AXIS='B00010'

    WAIT SEC 0.5

    $ASYNC_EX_AX_DECOUPLE='B00010'

    WAIT SEC 0.5 // Until here everything is fine lets say the axis has the value 60

    $AXIS_ACT.E2=0 // Here i expect the value to change back to 0 without rotating but the value does not change.

    WAIT SEC 0.5

    $ASYNC_EX_AX_DECOUPLE='B00000' // Here the the value changes to 0 and the unwanted rotation happens.

    WAIT SEC 0.5

    $ASYNC_AXIS='B00000'

    END

    I really want to find a solid solution to this problem.

    Thank you!

Advertising from our partners