Pb with simulation with machine with NC-INSTRUCTION

Dear community,

I have strange behavior with a NC Instruction which I use to tilt the spindle in a Mill Turn Machine.
If i put 45° in NC-instruction, the spindle turn at 45° : OK (picture below)

 

And now if i make an operation and in this operation i call the instruction : i have the spindle at another angle in the simulation  (45° + 90 °) : KO

 

But if i desactivate the NCinstruction and i put the angle in the TOOL AXIS, the simulation is OK :
 

 


Does anyone have an idea to solve this problem? I attach the 3dxml i it can help.

 

Thank's