As I understand, you are going to get from the PLC number for example - 100 in binary - 1100100 ? Then you can just read it directly using M_In16 instruction like :
*loop
M1 = M_In16(2200)
PCurrPos = P_Curr
PCurrPos.X = M1
Mov PCurrPos
GoTo *loop
In this example you can move your robot in X axis from the PLC.
If I got it wrong just say it and maybe we'll find another solution!