OK I got a chance to try it and it did not work at all, I got nothing on the LCD.
It seems it does not see it unless modbus is turned on?
I can not believe all the time you spent to help me but I am feeling bad about the time you wasted I really thought it would be easy maybe I should give up until I learn more about it.
Thank you so much for your time on this

Fred
OK I think I see the problem. Go an turn OFF all the modbus stuff you turned on.
Then load the driver and look to see what port# it is using.
Then go to GenConfig page look in the lower LH corner and set the COM port to the one you are using. Check 8 bit.
That will set up mach to use the com port .
Then retry your code to see what happens.
(;-) TP