Display AXISSTATUS on HMI

Display AXISSTATUS on HMI

Does anyone know how to display AXISSTATUS on an HMI page (in a textbox) as the letters, the same way it's shown in the axis parameters window of MotionPerfect. 

I've tried simply casting it to a string in a variable but that just gives the decimal version of the binary representation. 

I have managed to do this in a program but its very clunky and inefficient. 

Any help/ advice will be appreciated.