Hi,
Sure Both the PWH and P2H can be programmed at will.
JS1H-XY-P2H-S-NNN-TPR2-R-P1A-NNN-P1A-NNN-Y1A-NNN-Y1A-Y1A-Y1A-Y1A-NNN-Y1A-BRLN-NN
or
JS1H-XY-PWH-S-NNN-TPR2-R-P1H-NNN-P1H-NNN-Y1H-NNN-Y1H-Y1H-Y1H-Y1H-NNN-Y1H-BRWN-NN
would be a close match
It doesn't solve your problem, but maybe contact the helpdesk/Danfoss. They might have got a package with the software pre-written.
I would expect Danfoss to have a compatibility solution for issues like these. The last NN could be replaced with something else to get the compatibility you want.
It's bad enough that they forgot to keep the mounting holes compatible.
The 2 mm should not have made the difference.
Writing a MC24-130 to interface will also take a lot of effort, and is expensive (extra wiring, hardware, points of failure...)