Mas01
Member
How do I convert a float to an integer?
I've got a floating-point number D606, value 3999.863.
I need to convert it to an integer (4000), then I need to move it into Data register D600 (integer), which is then output on a Digital to Analogue card , Q68DAIN (Mitsubishi Q-series). This integer value of 4000 should output 20mA.
Is there such a command like this & will it work? :
-----[INT D606 D600]---
Anyone help?
I've got a floating-point number D606, value 3999.863.
I need to convert it to an integer (4000), then I need to move it into Data register D600 (integer), which is then output on a Digital to Analogue card , Q68DAIN (Mitsubishi Q-series). This integer value of 4000 should output 20mA.
Is there such a command like this & will it work? :
-----[INT D606 D600]---
Anyone help?
Last edited: