Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Mitsubishi FX series instructions convert floating-point data?
Mitsubishi FX series instructions convert floating-point data?
In Mitsubishi PLC, the instruction to convert integers into floating-point numbers is int. This instruction converts binary integers to binary floating-point numbers. Constants k and h are automatically converted in each floating-point operation instruction and are not processed in FLT instruction. For example, to convert an integer of 16 bits into a floating point number, you can use the int instruction; To convert a 32-bit integer to a floating-point number, you can use the DINT instruction. When using these instructions, it should be noted that a 16-bit integer will occupy 32-bit space after being converted into a floating-point number.