interfacing to libmodbus is fairly straightforward. i'm leaving out the error checking and what not, since the whole code is on githubopening a connection modbus_t *ctx = modbus_new_rtu ( "COM1", 9600, 1,8 ,1); if ( ctx) { if(modbus_connect ( ctx ) ==...