Simulating machine code and evaluating the value of $P_TOOLR displays a value of 0:
Solution
Background is, that the Dn sets the value for $P_TOOLR. With the execution of both in one line the evaluation of $P_TOOLR takes place before the D1 gets evaluated. Splitting both in two separate lines corrects the problem.
Hardware/Software Configuration
Platform: all
OS: n/a
OS Version: n/a
Product: NX
Application: CAM
Version: V12.0.2
Function: ISV
Ref: 002-8016067