- Configuring LinuxCNC
- Advanced Configuration
- ClassicLadder
- How can i send a float to a plc using Modbus tcp?
How can i send a float to a plc using Modbus tcp?
- frank_dunn1
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
26 Dec 2013 05:56 #42010
by frank_dunn1
How can i send a float to a plc using Modbus tcp? was created 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 ?
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.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5008
- Thank you received: 1441
29 Dec 2013 12:43 #42139
by Todd Zuercher
Replied by Todd Zuercher on topic How can i send a float to a plc using Modbus tcp?
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.
- Configuring LinuxCNC
- Advanced Configuration
- ClassicLadder
- How can i send a float to a plc using Modbus tcp?
Time to create page: 0.057 seconds