Thank you for your replay.
Actually I will use a sensor which measures the distance (analoge data measured by voltage level)and it will send to PLC. And in PLC it will convert to binary data and then it send to robot. Then Robot program will convert this binary data to integer and then Robot will go to that instraction(like distance). This is the think I need to do. Therefore I need to convert binary to integer.