How can i send a float to a plc using Modbus tcp?

More
26 Dec 2013 05:56 #42010 by frank_dunn1
Hi

I want to send axis position command values via modbus tcp to a plc and then using canbus to a servo controller. The modbus part is not a problem , I can set it up to work with int or bool but the values im looking for are floats .
Is there any way to convert the x ref cmd to integer or is there already a value thats not a float ?

Please Log in or Create an account to join the conversation.

More
29 Dec 2013 12:43 #42139 by Todd Zuercher
multiply the float times a factor of 10 (determined by the number decimal places of accuracy you need. Then input that into classic ladder.

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum