Arduino and Rockwell - ModBus RS485

would help a lot if someone had some sample code for modification.

All you needed to do was ask.

void setup()
{
}

void loop()
{
}

Hope that helps. Good luck.