P - the homeport letter, in this case indicating Portsmouth
M- branch letter; in this case 'miscellaneous'; this covered a wide range of branches, including artificers, carpenters, SBA's, cooks and stewards etc etc
X - pay scale; in this case post-1925 scale
Hope this helps