Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Plc, what is the instruction of real number to integer?
Plc, what is the instruction of real number to integer?
I don't know what PLC you are. Siemens 200 can convert the real value (IN) into a double integer value with the ROUND instruction, and put the result into the variable specified by OUT. If the fractional part is equal to or greater than 0.5, the carry is an integer. Or the TOUND truncation instruction converts the 32-bit real number (in) into a 32-bit double integer, and puts the integer part of the result into the variable specified by OUT. Only the integer part of the real number is converted and the decimal part is discarded. Others should be similar!