Thaks Pablo . Now my program works . I'm near to implemts the modbus protocol on Gambas. For the moment i can read from a Serial modbus net (RS485). Last step is implemt write OP (50% of the work is done) Thanks to all :-)) ---------- Initial Header -----------