Home› Programming
Discussion
Back to discussions page
salex29
Posts: 4 Apprentice
External Communication - Arduino/ Raspberry Pi / Laptop |
61 views
|
Answered | |
/ Most recent by matthewd92
in Programming
|
2 comments |

in Programming
From your raspberry pi you can read or write information in robot modbus registers.
You can easily find modbus communication library on the web. This can be done in Python for example.
To make this work you could do something like concat the variable name with the value in that variable and then send through the socket to the server where it would know how to decompile the value received into the name and value
To use the function do something like This would send a string to the socket server something like "myVariable:3" at which point you could split the string into the value and the name by splitting on the ":" delimiter.