Use the ModBusServer() instruction in the program editor, and follow the instructions embedded in the Help file.